]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Regenerate `configure' scripts for `uclinuxfdpiceabi' libtool.m4 update
[thirdparty/gcc.git] / libvtv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Vtable Verification Runtime Library 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
589 PACKAGE_TARNAME='libvtv'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
594
595 ac_unique_file="vtv_rts.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 VTV_NO_OBSTACK_FALSE
638 VTV_NO_OBSTACK_TRUE
639 VTV_CYGMIN_FALSE
640 VTV_CYGMIN_TRUE
641 XCFLAGS
642 libtool_VERSION
643 enable_static
644 enable_shared
645 lt_host_flags
646 CXXCPP
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 RANLIB
662 AR
663 AS
664 CCASFLAGS
665 CCAS
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
671 CXX
672 toolexeclibdir
673 toolexecdir
674 toplevel_srcdir
675 toplevel_builddir
676 libvtv_srcdir
677 libvtv_builddir
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 ENABLE_VTABLE_VERIFY_FALSE
719 ENABLE_VTABLE_VERIFY_TRUE
720 EGREP
721 GREP
722 CPP
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 LIBSTDCXX_RAW_CXX_LDFLAGS
731 LIBSTDCXX_RAW_CXX_CXXFLAGS
732 target_noncanonical
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 multi_basedir
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_multilib
788 enable_version_specific_runtime_libs
789 enable_vtable_verify
790 enable_dependency_tracking
791 enable_silent_rules
792 enable_maintainer_mode
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 enable_libtool_lock
799 enable_cet
800 with_gcc_major_version_only
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 CXXCPP'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-multilib build many library versions (default)
1432 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1433 --enable-vtable-verify Enable vtable verification feature
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-cet enable Intel CET in target libraries [default=no]
1449
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1456 --with-gcc-major-version-only
1457 use only GCC major number in filesystem paths
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1470 CXXCPP C++ preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to the package provider.
1476 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1477 General help using GNU software: <http://www.gnu.org/gethelp/>.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 GNU Vtable Verification Runtime Library configure 1.0
1541 generated by GNU Autoconf 2.69
1542
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } > conftest.i && {
1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_header_mongrel ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if eval \${$3+:} false; then :
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1642 fi
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 else
1647 # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1657 else
1658 ac_header_compiler=no
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1663
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1673 else
1674 ac_header_preproc=no
1675 fi
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1679
1680 # So? What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682 yes:no: )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ;;
1688 no:yes:* )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ;;
1700 esac
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 eval "$3=\$ac_header_compiler"
1707 fi
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_mongrel
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=$ac_status
1751 fi
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 $4
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_func
1901
1902 # ac_fn_cxx_try_compile LINENO
1903 # ----------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_cxx_try_compile ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_cxx_try_compile
1939
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1
1971 fi
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_cpp
1976
1977 # ac_fn_cxx_try_link LINENO
1978 # -------------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_link ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1997 fi
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2005 }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_retval=1
2012 fi
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2020
2021 } # ac_fn_cxx_try_link
2022 cat >config.log <<_ACEOF
2023 This file contains any messages produced by compilers while
2024 running configure, to aid debugging if configure makes a mistake.
2025
2026 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
2027 generated by GNU Autoconf 2.69. Invocation command line was
2028
2029 $ $0 $@
2030
2031 _ACEOF
2032 exec 5>>config.log
2033 {
2034 cat <<_ASUNAME
2035 ## --------- ##
2036 ## Platform. ##
2037 ## --------- ##
2038
2039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2044
2045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2047
2048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055
2056 _ASUNAME
2057
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065 IFS=$as_save_IFS
2066
2067 } >&5
2068
2069 cat >&5 <<_ACEOF
2070
2071
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2075
2076 _ACEOF
2077
2078
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 $as_echo "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142 (
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170 )
2171 echo
2172
2173 $as_echo "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 $as_echo "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 $as_echo "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2223
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2226
2227 $as_echo "/* confdefs.h */" > confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2254
2255
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270 else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2273 fi
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 do
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 as_fn_error $? "failed to load site script $ac_site_file
2285 See \`config.log' for more details" "$LINENO" 5; }
2286 fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2299 fi
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2324 *)
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2354 fi
2355 done
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362 fi
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374
2375
2376
2377 #AC_INIT(package-unused, version-unused, libvtv)
2378
2379
2380 # Default to --enable-multilib
2381 # Check whether --enable-multilib was given.
2382 if test "${enable_multilib+set}" = set; then :
2383 enableval=$enable_multilib; case "$enableval" in
2384 yes) multilib=yes ;;
2385 no) multilib=no ;;
2386 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2387 esac
2388 else
2389 multilib=yes
2390 fi
2391
2392
2393 # We may get other options which we leave undocumented:
2394 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2395 # See config-ml.in if you want the gory details.
2396
2397 if test "$srcdir" = "."; then
2398 if test "$with_target_subdir" != "."; then
2399 multi_basedir="$srcdir/$with_multisrctop../.."
2400 else
2401 multi_basedir="$srcdir/$with_multisrctop.."
2402 fi
2403 else
2404 multi_basedir="$srcdir/.."
2405 fi
2406
2407
2408 # Even if the default multilib is not a cross compilation,
2409 # it may be that some of the other multilibs are.
2410 if test $cross_compiling = no && test $multilib = yes \
2411 && test "x${with_multisubdir}" != x ; then
2412 cross_compiling=maybe
2413 fi
2414
2415 ac_config_commands="$ac_config_commands default-1"
2416
2417
2418 # -------
2419 # Options
2420 # -------
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2422 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2423 # Check whether --enable-version-specific-runtime-libs was given.
2424 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2425 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2426 yes) version_specific_libs=yes ;;
2427 no) version_specific_libs=no ;;
2428 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2429 esac
2430 else
2431 version_specific_libs=no
2432 fi
2433
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2435 $as_echo "$version_specific_libs" >&6; }
2436
2437 # Do not delete or change the following two lines. For why, see
2438 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2439 ac_aux_dir=
2440 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2441 if test -f "$ac_dir/install-sh"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/install-sh -c"
2444 break
2445 elif test -f "$ac_dir/install.sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install.sh -c"
2448 break
2449 elif test -f "$ac_dir/shtool"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/shtool install -c"
2452 break
2453 fi
2454 done
2455 if test -z "$ac_aux_dir"; then
2456 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2457 fi
2458
2459 # These three variables are undocumented and unsupported,
2460 # and are intended to be withdrawn in a future Autoconf release.
2461 # They can cause serious problems if a builder's source tree is in a directory
2462 # whose full name contains unusual characters.
2463 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2464 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2465 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2466
2467
2468 # Make sure we can run config.sub.
2469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2470 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2473 $as_echo_n "checking build system type... " >&6; }
2474 if ${ac_cv_build+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 ac_build_alias=$build_alias
2478 test "x$ac_build_alias" = x &&
2479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2480 test "x$ac_build_alias" = x &&
2481 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2484
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2487 $as_echo "$ac_cv_build" >&6; }
2488 case $ac_cv_build in
2489 *-*-*) ;;
2490 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2491 esac
2492 build=$ac_cv_build
2493 ac_save_IFS=$IFS; IFS='-'
2494 set x $ac_cv_build
2495 shift
2496 build_cpu=$1
2497 build_vendor=$2
2498 shift; shift
2499 # Remember, the first character of IFS is used to create $*,
2500 # except with old shells:
2501 build_os=$*
2502 IFS=$ac_save_IFS
2503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2504
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2507 $as_echo_n "checking host system type... " >&6; }
2508 if ${ac_cv_host+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test "x$host_alias" = x; then
2512 ac_cv_host=$ac_cv_build
2513 else
2514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2516 fi
2517
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2520 $as_echo "$ac_cv_host" >&6; }
2521 case $ac_cv_host in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2524 esac
2525 host=$ac_cv_host
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_host
2528 shift
2529 host_cpu=$1
2530 host_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 host_os=$*
2535 IFS=$ac_save_IFS
2536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2537
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2540 $as_echo_n "checking target system type... " >&6; }
2541 if ${ac_cv_target+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test "x$target_alias" = x; then
2545 ac_cv_target=$ac_cv_host
2546 else
2547 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2549 fi
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2553 $as_echo "$ac_cv_target" >&6; }
2554 case $ac_cv_target in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2557 esac
2558 target=$ac_cv_target
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_target
2561 shift
2562 target_cpu=$1
2563 target_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 target_os=$*
2568 IFS=$ac_save_IFS
2569 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 # The aliases save the names the user supplied, while $host etc.
2573 # will get canonicalized.
2574 test -n "$target_alias" &&
2575 test "$program_prefix$program_suffix$program_transform_name" = \
2576 NONENONEs,x,x, &&
2577 program_prefix=${target_alias}-
2578
2579 target_alias=${target_alias-$host_alias}
2580
2581 case ${build_alias} in
2582 "") build_noncanonical=${build} ;;
2583 *) build_noncanonical=${build_alias} ;;
2584 esac
2585
2586 case ${host_alias} in
2587 "") host_noncanonical=${build_noncanonical} ;;
2588 *) host_noncanonical=${host_alias} ;;
2589 esac
2590
2591 case ${target_alias} in
2592 "") target_noncanonical=${host_noncanonical} ;;
2593 *) target_noncanonical=${target_alias} ;;
2594 esac
2595
2596
2597
2598
2599
2600 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2601 -I\$(top_builddir)/../libstdc++-v3/include \
2602 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2603 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2604 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2605 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2606
2607
2608
2609
2610 # Expand $ac_aux_dir to an absolute path.
2611 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 $as_echo "$CC" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695 if test "x$ac_ct_CC" = x; then
2696 CC=""
2697 else
2698 case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702 ac_tool_warned=yes ;;
2703 esac
2704 CC=$ac_ct_CC
2705 fi
2706 else
2707 CC="$ac_cv_prog_CC"
2708 fi
2709
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 fi
2750 fi
2751 if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753 set dummy cc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 ac_prog_rejected=no
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2772 continue
2773 fi
2774 ac_cv_prog_CC="cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2785 shift
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2790 shift
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792 fi
2793 fi
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2810 do
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848 test -n "$CC" && break
2849 done
2850 fi
2851 if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in cl.exe
2854 do
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 test -n "$ac_ct_CC" && break
2893 done
2894
2895 if test "x$ac_ct_CC" = x; then
2896 CC=""
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904 CC=$ac_ct_CC
2905 fi
2906 fi
2907
2908 fi
2909
2910
2911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 as_fn_error $? "no acceptable C compiler found in \$PATH
2914 See \`config.log' for more details" "$LINENO" 5; }
2915
2916 # Provide some information about the compiler.
2917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 set X $ac_compile
2919 ac_compiler=$2
2920 for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929 ac_status=$?
2930 if test -s conftest.err; then
2931 sed '10a\
2932 ... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
2935 fi
2936 rm -f conftest.er1 conftest.err
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2939 done
2940
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2943
2944 int
2945 main ()
2946 {
2947
2948 ;
2949 return 0;
2950 }
2951 _ACEOF
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2956 # of exeext.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958 $as_echo_n "checking whether the C compiler works... " >&6; }
2959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960
2961 # The possible output files:
2962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { { ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2988 # so that the user can short-circuit this test for compilers unknown to
2989 # Autoconf.
2990 for ac_file in $ac_files ''
2991 do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995 ;;
2996 [ab].out )
2997 # We found the default executable, but exeext='' is most
2998 # certainly right.
2999 break;;
3000 *.* )
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 then :; else
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 fi
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3009 # actually working.
3010 break;;
3011 * )
3012 break;;
3013 esac
3014 done
3015 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017 else
3018 ac_file=''
3019 fi
3020 if test -z "$ac_file"; then :
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 as_fn_error 77 "C compiler cannot create executables
3029 See \`config.log' for more details" "$LINENO" 5; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 ac_exeext=$ac_cv_exeext
3039
3040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043 $as_echo_n "checking for suffix of executables... " >&6; }
3044 if { { ac_try="$ac_link"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057 # work properly (i.e., refer to `conftest.exe'), while it won't with
3058 # `rm'.
3059 for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 break;;
3065 * ) break;;
3066 esac
3067 done
3068 else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 rm -f conftest conftest$ac_cv_exeext
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076 $as_echo "$ac_cv_exeext" >&6; }
3077
3078 rm -f conftest.$ac_ext
3079 EXEEXT=$ac_cv_exeext
3080 ac_exeext=$EXEEXT
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdio.h>
3084 int
3085 main ()
3086 {
3087 FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3089
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files="$ac_clean_files conftest.out"
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098 $as_echo_n "checking whether we are cross compiling... " >&6; }
3099 if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3122 cross_compiling=no
3123 else
3124 if test "$cross_compiling" = maybe; then
3125 cross_compiling=yes
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details" "$LINENO" 5; }
3132 fi
3133 fi
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136 $as_echo "$cross_compiling" >&6; }
3137
3138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if ${ac_cv_objext+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 fi
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if ${ac_cv_c_compiler_gnu+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203 choke me
3204 #endif
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
3212 else
3213 ac_compiler_gnu=no
3214 fi
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223 else
3224 GCC=
3225 fi
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if ${ac_cv_prog_cc_g+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250 else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254
3255 int
3256 main ()
3257 {
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264
3265 else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3270
3271 int
3272 main ()
3273 {
3274
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3298 fi
3299 else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3304 fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if ${ac_cv_prog_cc_c89+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 struct stat;
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319 struct buf { int x; };
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321 static char *e (p, i)
3322 char **p;
3323 int i;
3324 {
3325 return p[i];
3326 }
3327 static char *f (char * (*g) (char **, int), char **p, ...)
3328 {
3329 char *s;
3330 va_list v;
3331 va_start (v,p);
3332 s = g (p, va_arg (v,int));
3333 va_end (v);
3334 return s;
3335 }
3336
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3348 #define FOO(x) 'x'
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3350
3351 int test (int i, double x);
3352 struct s1 {int (*f) (int a);};
3353 struct s2 {int (*f) (double a);};
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 int argc;
3356 char **argv;
3357 int
3358 main ()
3359 {
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 do
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3377
3378 fi
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3381 x)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383 $as_echo "none needed" >&6; } ;;
3384 xno)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386 $as_echo "unsupported" >&6; } ;;
3387 *)
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392 if test "x$ac_cv_prog_cc_c89" != xno; then :
3393
3394 fi
3395
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409 if ${am_cv_prog_cc_c_o+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 # Make sure it works both with $CC and with simple cc.
3424 # Following AC_PROG_CC_C_O, we do the test twice because some
3425 # compilers refuse to overwrite an existing .o file with -o,
3426 # though they will create one.
3427 am_cv_prog_cc_c_o=yes
3428 for am_i in 1 2; do
3429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } \
3434 && test -f conftest2.$ac_objext; then
3435 : OK
3436 else
3437 am_cv_prog_cc_c_o=no
3438 break
3439 fi
3440 done
3441 rm -f core conftest*
3442 unset am_i
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3446 if test "$am_cv_prog_cc_c_o" != yes; then
3447 # Losing compiler, so override with the script.
3448 # FIXME: It is wrong to rewrite CC.
3449 # But if we don't then we get into trouble of one sort or another.
3450 # A longer-term fix would be to have automake use am__CC in this case,
3451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452 CC="$am_aux_dir/compile $CC"
3453 fi
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
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3471 CPP=
3472 fi
3473 if test -z "$CPP"; then
3474 if ${ac_cv_prog_CPP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479 do
3480 ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496 Syntax error
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499
3500 else
3501 # Broken: fails on valid input.
3502 continue
3503 fi
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3505
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3514 continue
3515 else
3516 # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522 done
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3526 break
3527 fi
3528
3529 done
3530 ac_cv_prog_CPP=$CPP
3531
3532 fi
3533 CPP=$ac_cv_prog_CPP
3534 else
3535 ac_cv_prog_CPP=$CPP
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3541 do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555 Syntax error
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558
3559 else
3560 # Broken: fails on valid input.
3561 continue
3562 fi
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3564
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3570 _ACEOF
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3573 continue
3574 else
3575 # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3585
3586 else
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 fi
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if ${ac_cv_path_GREP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 as_fn_executable_p "$ac_path_GREP" || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3620 *GNU*)
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3622 *)
3623 ac_count=0
3624 $as_echo_n 0123456789 >"conftest.in"
3625 while :
3626 do
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3638 fi
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3641 done
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643 esac
3644
3645 $ac_path_GREP_found && break 3
3646 done
3647 done
3648 done
3649 IFS=$as_save_IFS
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652 fi
3653 else
3654 ac_cv_path_GREP=$GREP
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if ${ac_cv_path_EGREP+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3670 else
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3676 do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 as_fn_executable_p "$ac_path_EGREP" || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3686 *GNU*)
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688 *)
3689 ac_count=0
3690 $as_echo_n 0123456789 >"conftest.in"
3691 while :
3692 do
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3704 fi
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3707 done
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 esac
3710
3711 $ac_path_EGREP_found && break 3
3712 done
3713 done
3714 done
3715 IFS=$as_save_IFS
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3718 fi
3719 else
3720 ac_cv_path_EGREP=$EGREP
3721 fi
3722
3723 fi
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3728
3729
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if ${ac_cv_header_stdc+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <stdlib.h>
3738 #include <stdarg.h>
3739 #include <string.h>
3740 #include <float.h>
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3752 else
3753 ac_cv_header_stdc=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <string.h>
3762
3763 _ACEOF
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3766
3767 else
3768 ac_cv_header_stdc=no
3769 fi
3770 rm -f conftest*
3771
3772 fi
3773
3774 if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778 #include <stdlib.h>
3779
3780 _ACEOF
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3783
3784 else
3785 ac_cv_header_stdc=no
3786 fi
3787 rm -f conftest*
3788
3789 fi
3790
3791 if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3794 :
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ctype.h>
3799 #include <stdlib.h>
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 #else
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #endif
3810
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812 int
3813 main ()
3814 {
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 return 2;
3820 return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_run "$LINENO"; then :
3824
3825 else
3826 ac_cv_header_stdc=no
3827 fi
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3830 fi
3831
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3837
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3839
3840 fi
3841
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3845 do :
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3848 "
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3853
3854 fi
3855
3856 done
3857
3858
3859
3860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3862 MINIX=yes
3863 else
3864 MINIX=
3865 fi
3866
3867
3868 if test "$MINIX" = yes; then
3869
3870 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871
3872
3873 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874
3875
3876 $as_echo "#define _MINIX 1" >>confdefs.h
3877
3878 fi
3879
3880
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 # define __EXTENSIONS__ 1
3890 $ac_includes_default
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_safe_to_define___extensions__=yes
3901 else
3902 ac_cv_safe_to_define___extensions__=no
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908 test $ac_cv_safe_to_define___extensions__ = yes &&
3909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3910
3911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3912
3913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3914
3915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3916
3917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3918
3919
3920
3921 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3923 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3924 # Check whether --enable-vtable-verify was given.
3925 if test "${enable_vtable_verify+set}" = set; then :
3926 enableval=$enable_vtable_verify; case "$enableval" in
3927 yes) enable_vtable_verify=yes ;;
3928 no) enable_vtable_verify=no ;;
3929 *) enable_vtable_verify=no;;
3930 esac
3931 else
3932 enable_vtable_verify=no
3933 fi
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3936 $as_echo "$enable_vtable_verify" >&6; }
3937
3938 # See if supported.
3939 unset VTV_SUPPORTED
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3941 $as_echo_n "checking for host support for vtable verification... " >&6; }
3942 . ${srcdir}/configure.tgt
3943 case ${host} in
3944 *-*-solaris2*)
3945 # libvtv requires init priority support, which depends on the linker
3946 # used on Solaris.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3948 $as_echo_n "checking for init priority support... " >&6; }
3949 if ${libvtv_cv_init_priority+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959 void ip (void) __attribute__ ((constructor (1)));
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 libgcc_cv_init_priority=yes
3966 else
3967 libgcc_cv_init_priority=no
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3972 $as_echo "$libvtv_cv_init_priority" >&6; }
3973 if test x$libvtv_cv_init_priority = xno; then
3974 VTV_SUPPORTED=no
3975 fi
3976 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3977 # configure.tgt restricting to libvtv to Solaris 11+.
3978 ;;
3979 esac
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3981 $as_echo "$VTV_SUPPORTED" >&6; }
3982
3983 # Decide if it's usable.
3984 use_vtable_verify=no
3985 if test "x$VTV_SUPPORTED" = "xyes"; then
3986 if test "x$enable_vtable_verify" = "xyes"; then
3987 use_vtable_verify=yes
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3989 $as_echo "$as_me: using vtable verification" >&6;}
3990 fi
3991 fi
3992 if test $use_vtable_verify = yes; then
3993 ENABLE_VTABLE_VERIFY_TRUE=
3994 ENABLE_VTABLE_VERIFY_FALSE='#'
3995 else
3996 ENABLE_VTABLE_VERIFY_TRUE='#'
3997 ENABLE_VTABLE_VERIFY_FALSE=
3998 fi
3999
4000
4001 am__api_version='1.15'
4002
4003 # Find a good install program. We prefer a C program (faster),
4004 # so one script is as good as another. But avoid the broken or
4005 # incompatible versions:
4006 # SysV /etc/install, /usr/sbin/install
4007 # SunOS /usr/etc/install
4008 # IRIX /sbin/install
4009 # AIX /bin/install
4010 # AmigaOS /C/install, which installs bootblocks on floppy discs
4011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4014 # OS/2's system install, which has a completely different semantic
4015 # ./install, which can be erroneously created by make from ./install.sh.
4016 # Reject install programs that cannot install multiple files.
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4019 if test -z "$INSTALL"; then
4020 if ${ac_cv_path_install+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 # Account for people who put trailing slashes in PATH elements.
4029 case $as_dir/ in #((
4030 ./ | .// | /[cC]/* | \
4031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4033 /usr/ucb/* ) ;;
4034 *)
4035 # OSF1 and SCO ODT 3.0 have their own names for install.
4036 # Don't use installbsd from OSF since it installs stuff as root
4037 # by default.
4038 for ac_prog in ginstall scoinst install; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4041 if test $ac_prog = install &&
4042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # AIX install. It has an incompatible calling convention.
4044 :
4045 elif test $ac_prog = install &&
4046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # program-specific install script used by HP pwplus--don't use.
4048 :
4049 else
4050 rm -rf conftest.one conftest.two conftest.dir
4051 echo one > conftest.one
4052 echo two > conftest.two
4053 mkdir conftest.dir
4054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4055 test -s conftest.one && test -s conftest.two &&
4056 test -s conftest.dir/conftest.one &&
4057 test -s conftest.dir/conftest.two
4058 then
4059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060 break 3
4061 fi
4062 fi
4063 fi
4064 done
4065 done
4066 ;;
4067 esac
4068
4069 done
4070 IFS=$as_save_IFS
4071
4072 rm -rf conftest.one conftest.two conftest.dir
4073
4074 fi
4075 if test "${ac_cv_path_install+set}" = set; then
4076 INSTALL=$ac_cv_path_install
4077 else
4078 # As a last resort, use the slow shell script. Don't cache a
4079 # value for INSTALL within a source directory, because that will
4080 # break other packages using the cache if that directory is
4081 # removed, or if the value is a relative name.
4082 INSTALL=$ac_install_sh
4083 fi
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4086 $as_echo "$INSTALL" >&6; }
4087
4088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4089 # It thinks the first close brace ends the variable substitution.
4090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4091
4092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4093
4094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4097 $as_echo_n "checking whether build environment is sane... " >&6; }
4098 # Reject unsafe characters in $srcdir or the absolute working directory
4099 # name. Accept space and tab only in the latter.
4100 am_lf='
4101 '
4102 case `pwd` in
4103 *[\\\"\#\$\&\'\`$am_lf]*)
4104 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4105 esac
4106 case $srcdir in
4107 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4108 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4109 esac
4110
4111 # Do 'set' in a subshell so we don't clobber the current shell's
4112 # arguments. Must try -L first in case configure is actually a
4113 # symlink; some systems play weird games with the mod time of symlinks
4114 # (eg FreeBSD returns the mod time of the symlink's containing
4115 # directory).
4116 if (
4117 am_has_slept=no
4118 for am_try in 1 2; do
4119 echo "timestamp, slept: $am_has_slept" > conftest.file
4120 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4121 if test "$*" = "X"; then
4122 # -L didn't work.
4123 set X `ls -t "$srcdir/configure" conftest.file`
4124 fi
4125 if test "$*" != "X $srcdir/configure conftest.file" \
4126 && test "$*" != "X conftest.file $srcdir/configure"; then
4127
4128 # If neither matched, then we have a broken ls. This can happen
4129 # if, for instance, CONFIG_SHELL is bash and it inherits a
4130 # broken ls alias from the environment. This has actually
4131 # happened. Such a system could not be considered "sane".
4132 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4133 alias in your environment" "$LINENO" 5
4134 fi
4135 if test "$2" = conftest.file || test $am_try -eq 2; then
4136 break
4137 fi
4138 # Just in case.
4139 sleep 1
4140 am_has_slept=yes
4141 done
4142 test "$2" = conftest.file
4143 )
4144 then
4145 # Ok.
4146 :
4147 else
4148 as_fn_error $? "newly created file is older than distributed files!
4149 Check your system clock" "$LINENO" 5
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4152 $as_echo "yes" >&6; }
4153 # If we didn't sleep, we still need to ensure time stamps of config.status and
4154 # generated files are strictly newer.
4155 am_sleep_pid=
4156 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4157 ( sleep 1 ) &
4158 am_sleep_pid=$!
4159 fi
4160
4161 rm -f conftest.file
4162
4163 test "$program_prefix" != NONE &&
4164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4165 # Use a double $ so make ignores it.
4166 test "$program_suffix" != NONE &&
4167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4168 # Double any \ or $.
4169 # By default was `s,x,x', remove it if useless.
4170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4172
4173 if test x"${MISSING+set}" != xset; then
4174 case $am_aux_dir in
4175 *\ * | *\ *)
4176 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4177 *)
4178 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4179 esac
4180 fi
4181 # Use eval to expand $SHELL
4182 if eval "$MISSING --is-lightweight"; then
4183 am_missing_run="$MISSING "
4184 else
4185 am_missing_run=
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4187 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4188 fi
4189
4190 if test x"${install_sh+set}" != xset; then
4191 case $am_aux_dir in
4192 *\ * | *\ *)
4193 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4194 *)
4195 install_sh="\${SHELL} $am_aux_dir/install-sh"
4196 esac
4197 fi
4198
4199 # Installed binaries are usually stripped using 'strip' when the user
4200 # run "make install-strip". However 'strip' might not be the right
4201 # tool to use in cross-compilation environments, therefore Automake
4202 # will honor the 'STRIP' environment variable to overrule this program.
4203 if test "$cross_compiling" != no; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}strip; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_STRIP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 STRIP=$ac_cv_prog_STRIP
4233 if test -n "$STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4235 $as_echo "$STRIP" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 fi
4243 if test -z "$ac_cv_prog_STRIP"; then
4244 ac_ct_STRIP=$STRIP
4245 # Extract the first word of "strip", so it can be a program name with args.
4246 set dummy strip; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$ac_ct_STRIP"; then
4253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_ac_ct_STRIP="strip"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266 done
4267 done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4273 if test -n "$ac_ct_STRIP"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4275 $as_echo "$ac_ct_STRIP" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281 if test "x$ac_ct_STRIP" = x; then
4282 STRIP=":"
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285 yes:)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 STRIP=$ac_ct_STRIP
4291 fi
4292 else
4293 STRIP="$ac_cv_prog_STRIP"
4294 fi
4295
4296 fi
4297 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4300 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4301 if test -z "$MKDIR_P"; then
4302 if ${ac_cv_path_mkdir+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in mkdir gmkdir; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4313 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4314 'mkdir (GNU coreutils) '* | \
4315 'mkdir (coreutils) '* | \
4316 'mkdir (fileutils) '4.1*)
4317 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4318 break 3;;
4319 esac
4320 done
4321 done
4322 done
4323 IFS=$as_save_IFS
4324
4325 fi
4326
4327 test -d ./--version && rmdir ./--version
4328 if test "${ac_cv_path_mkdir+set}" = set; then
4329 MKDIR_P="$ac_cv_path_mkdir -p"
4330 else
4331 # As a last resort, use the slow shell script. Don't cache a
4332 # value for MKDIR_P within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the value is a relative name.
4335 MKDIR_P="$ac_install_sh -d"
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4339 $as_echo "$MKDIR_P" >&6; }
4340
4341 for ac_prog in gawk mawk nawk awk
4342 do
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_AWK+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$AWK"; then
4351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_AWK="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 AWK=$ac_cv_prog_AWK
4371 if test -n "$AWK"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4373 $as_echo "$AWK" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379
4380 test -n "$AWK" && break
4381 done
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4384 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4385 set x ${MAKE-make}
4386 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4387 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat >conftest.make <<\_ACEOF
4391 SHELL = /bin/sh
4392 all:
4393 @echo '@@@%%%=$(MAKE)=@@@%%%'
4394 _ACEOF
4395 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4396 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4397 *@@@%%%=?*=@@@%%%*)
4398 eval ac_cv_prog_make_${ac_make}_set=yes;;
4399 *)
4400 eval ac_cv_prog_make_${ac_make}_set=no;;
4401 esac
4402 rm -f conftest.make
4403 fi
4404 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406 $as_echo "yes" >&6; }
4407 SET_MAKE=
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 SET_MAKE="MAKE=${MAKE-make}"
4412 fi
4413
4414 rm -rf .tst 2>/dev/null
4415 mkdir .tst 2>/dev/null
4416 if test -d .tst; then
4417 am__leading_dot=.
4418 else
4419 am__leading_dot=_
4420 fi
4421 rmdir .tst 2>/dev/null
4422
4423 DEPDIR="${am__leading_dot}deps"
4424
4425 ac_config_commands="$ac_config_commands depfiles"
4426
4427
4428 am_make=${MAKE-make}
4429 cat > confinc << 'END'
4430 am__doit:
4431 @echo this is the am__doit target
4432 .PHONY: am__doit
4433 END
4434 # If we don't find an include directive, just comment out the code.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4436 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4437 am__include="#"
4438 am__quote=
4439 _am_result=none
4440 # First try GNU make style include.
4441 echo "include confinc" > confmf
4442 # Ignore all kinds of additional output from 'make'.
4443 case `$am_make -s -f confmf 2> /dev/null` in #(
4444 *the\ am__doit\ target*)
4445 am__include=include
4446 am__quote=
4447 _am_result=GNU
4448 ;;
4449 esac
4450 # Now try BSD make style include.
4451 if test "$am__include" = "#"; then
4452 echo '.include "confinc"' > confmf
4453 case `$am_make -s -f confmf 2> /dev/null` in #(
4454 *the\ am__doit\ target*)
4455 am__include=.include
4456 am__quote="\""
4457 _am_result=BSD
4458 ;;
4459 esac
4460 fi
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4464 $as_echo "$_am_result" >&6; }
4465 rm -f confinc confmf
4466
4467 # Check whether --enable-dependency-tracking was given.
4468 if test "${enable_dependency_tracking+set}" = set; then :
4469 enableval=$enable_dependency_tracking;
4470 fi
4471
4472 if test "x$enable_dependency_tracking" != xno; then
4473 am_depcomp="$ac_aux_dir/depcomp"
4474 AMDEPBACKSLASH='\'
4475 am__nodep='_no'
4476 fi
4477 if test "x$enable_dependency_tracking" != xno; then
4478 AMDEP_TRUE=
4479 AMDEP_FALSE='#'
4480 else
4481 AMDEP_TRUE='#'
4482 AMDEP_FALSE=
4483 fi
4484
4485
4486 # Check whether --enable-silent-rules was given.
4487 if test "${enable_silent_rules+set}" = set; then :
4488 enableval=$enable_silent_rules;
4489 fi
4490
4491 case $enable_silent_rules in # (((
4492 yes) AM_DEFAULT_VERBOSITY=0;;
4493 no) AM_DEFAULT_VERBOSITY=1;;
4494 *) AM_DEFAULT_VERBOSITY=1;;
4495 esac
4496 am_make=${MAKE-make}
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4498 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4499 if ${am_cv_make_support_nested_variables+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if $as_echo 'TRUE=$(BAR$(V))
4503 BAR0=false
4504 BAR1=true
4505 V=1
4506 am__doit:
4507 @$(TRUE)
4508 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4509 am_cv_make_support_nested_variables=yes
4510 else
4511 am_cv_make_support_nested_variables=no
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4516 if test $am_cv_make_support_nested_variables = yes; then
4517 AM_V='$(V)'
4518 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4519 else
4520 AM_V=$AM_DEFAULT_VERBOSITY
4521 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4522 fi
4523 AM_BACKSLASH='\'
4524
4525 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4526 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4527 # is not polluted with repeated "-I."
4528 am__isrc=' -I$(srcdir)'
4529 # test to see if srcdir already configured
4530 if test -f $srcdir/config.status; then
4531 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4532 fi
4533 fi
4534
4535 # test whether we have cygpath
4536 if test -z "$CYGPATH_W"; then
4537 if (cygpath --version) >/dev/null 2>/dev/null; then
4538 CYGPATH_W='cygpath -w'
4539 else
4540 CYGPATH_W=echo
4541 fi
4542 fi
4543
4544
4545 # Define the identity of the package.
4546 PACKAGE='libvtv'
4547 VERSION='1.0'
4548
4549
4550 cat >>confdefs.h <<_ACEOF
4551 #define PACKAGE "$PACKAGE"
4552 _ACEOF
4553
4554
4555 cat >>confdefs.h <<_ACEOF
4556 #define VERSION "$VERSION"
4557 _ACEOF
4558
4559 # Some tools Automake needs.
4560
4561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4562
4563
4564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4565
4566
4567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4568
4569
4570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4571
4572
4573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4574
4575 # For better backward compatibility. To be removed once Automake 1.9.x
4576 # dies out for good. For more background, see:
4577 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4578 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4579 mkdir_p='$(MKDIR_P)'
4580
4581 # We need awk for the "check" target (and possibly the TAP driver). The
4582 # system "awk" is bad on some platforms.
4583 # Always define AMTAR for backward compatibility. Yes, it's still used
4584 # in the wild :-( We should find a proper way to deprecate it ...
4585 AMTAR='$${TAR-tar}'
4586
4587
4588 # We'll loop over all known methods to create a tar archive until one works.
4589 _am_tools='gnutar pax cpio none'
4590
4591 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4592
4593
4594
4595
4596
4597 depcc="$CC" am_compiler_list=
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4600 $as_echo_n "checking dependency style of $depcc... " >&6; }
4601 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605 # We make a subdir and do the tests there. Otherwise we can end up
4606 # making bogus files that we don't know about and never remove. For
4607 # instance it was reported that on HP-UX the gcc test will end up
4608 # making a dummy file named 'D' -- because '-MD' means "put the output
4609 # in D".
4610 rm -rf conftest.dir
4611 mkdir conftest.dir
4612 # Copy depcomp to subdir because otherwise we won't find it if we're
4613 # using a relative directory.
4614 cp "$am_depcomp" conftest.dir
4615 cd conftest.dir
4616 # We will build objects and dependencies in a subdirectory because
4617 # it helps to detect inapplicable dependency modes. For instance
4618 # both Tru64's cc and ICC support -MD to output dependencies as a
4619 # side effect of compilation, but ICC will put the dependencies in
4620 # the current directory while Tru64 will put them in the object
4621 # directory.
4622 mkdir sub
4623
4624 am_cv_CC_dependencies_compiler_type=none
4625 if test "$am_compiler_list" = ""; then
4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627 fi
4628 am__universal=false
4629 case " $depcc " in #(
4630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4631 esac
4632
4633 for depmode in $am_compiler_list; do
4634 # Setup a source with many dependencies, because some compilers
4635 # like to wrap large dependency lists on column 80 (with \), and
4636 # we should not choose a depcomp mode which is confused by this.
4637 #
4638 # We need to recreate these files for each test, as the compiler may
4639 # overwrite some of them when testing with obscure command lines.
4640 # This happens at least with the AIX C compiler.
4641 : > sub/conftest.c
4642 for i in 1 2 3 4 5 6; do
4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4645 # Solaris 10 /bin/sh.
4646 echo '/* dummy */' > sub/conftst$i.h
4647 done
4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4649
4650 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4651 # mode. It turns out that the SunPro C++ compiler does not properly
4652 # handle '-M -o', and we need to detect this. Also, some Intel
4653 # versions had trouble with output in subdirs.
4654 am__obj=sub/conftest.${OBJEXT-o}
4655 am__minus_obj="-o $am__obj"
4656 case $depmode in
4657 gcc)
4658 # This depmode causes a compiler race in universal mode.
4659 test "$am__universal" = false || continue
4660 ;;
4661 nosideeffect)
4662 # After this tag, mechanisms are not by side-effect, so they'll
4663 # only be used when explicitly requested.
4664 if test "x$enable_dependency_tracking" = xyes; then
4665 continue
4666 else
4667 break
4668 fi
4669 ;;
4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4671 # This compiler won't grok '-c -o', but also, the minuso test has
4672 # not run yet. These depmodes are late enough in the game, and
4673 # so weak that their functioning should not be impacted.
4674 am__obj=conftest.${OBJEXT-o}
4675 am__minus_obj=
4676 ;;
4677 none) break ;;
4678 esac
4679 if depmode=$depmode \
4680 source=sub/conftest.c object=$am__obj \
4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4683 >/dev/null 2>conftest.err &&
4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4688 # icc doesn't choke on unknown options, it will just issue warnings
4689 # or remarks (even with -Werror). So we grep stderr for any message
4690 # that says an option was ignored or not supported.
4691 # When given -MP, icc 7.0 and 7.1 complain thusly:
4692 # icc: Command line warning: ignoring option '-M'; no argument required
4693 # The diagnosis changed in icc 8.0:
4694 # icc: Command line remark: option '-MP' not supported
4695 if (grep 'ignoring option' conftest.err ||
4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4697 am_cv_CC_dependencies_compiler_type=$depmode
4698 break
4699 fi
4700 fi
4701 done
4702
4703 cd ..
4704 rm -rf conftest.dir
4705 else
4706 am_cv_CC_dependencies_compiler_type=none
4707 fi
4708
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4711 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4713
4714 if
4715 test "x$enable_dependency_tracking" != xno \
4716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4717 am__fastdepCC_TRUE=
4718 am__fastdepCC_FALSE='#'
4719 else
4720 am__fastdepCC_TRUE='#'
4721 am__fastdepCC_FALSE=
4722 fi
4723
4724
4725
4726 # POSIX will say in a future version that running "rm -f" with no argument
4727 # is OK; and we want to be able to make that assumption in our Makefile
4728 # recipes. So use an aggressive probe to check that the usage we want is
4729 # actually supported "in the wild" to an acceptable degree.
4730 # See automake bug#10828.
4731 # To make any issue more visible, cause the running configure to be aborted
4732 # by default if the 'rm' program in use doesn't match our expectations; the
4733 # user can still override this though.
4734 if rm -f && rm -fr && rm -rf; then : OK; else
4735 cat >&2 <<'END'
4736 Oops!
4737
4738 Your 'rm' program seems unable to run without file operands specified
4739 on the command line, even when the '-f' option is present. This is contrary
4740 to the behaviour of most rm programs out there, and not conforming with
4741 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4742
4743 Please tell bug-automake@gnu.org about your system, including the value
4744 of your $PATH and any error possibly output before this message. This
4745 can help us improve future automake versions.
4746
4747 END
4748 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4749 echo 'Configuration will proceed anyway, since you have set the' >&2
4750 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4751 echo >&2
4752 else
4753 cat >&2 <<'END'
4754 Aborting the configuration process, to ensure you take notice of the issue.
4755
4756 You can download and install GNU coreutils to get an 'rm' implementation
4757 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4758
4759 If you want to complete the configuration process using your problematic
4760 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4761 to "yes", and re-run configure.
4762
4763 END
4764 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4765 fi
4766 fi
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4770 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4771 # Check whether --enable-maintainer-mode was given.
4772 if test "${enable_maintainer_mode+set}" = set; then :
4773 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4774 else
4775 USE_MAINTAINER_MODE=no
4776 fi
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4779 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4780 if test $USE_MAINTAINER_MODE = yes; then
4781 MAINTAINER_MODE_TRUE=
4782 MAINTAINER_MODE_FALSE='#'
4783 else
4784 MAINTAINER_MODE_TRUE='#'
4785 MAINTAINER_MODE_FALSE=
4786 fi
4787
4788 MAINT=$MAINTAINER_MODE_TRUE
4789
4790
4791
4792
4793
4794 # These need to be absolute paths, yet at the same time need to
4795 # canonicalize only relative paths, because then amd will not unmount
4796 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4797 libvtv_builddir=`${PWDCMD-pwd}`
4798 case $srcdir in
4799 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4800 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4801 esac
4802 toplevel_builddir=${libvtv_builddir}/..
4803 toplevel_srcdir=${libvtv_srcdir}/..
4804
4805
4806
4807
4808
4809
4810 # Calculate toolexeclibdir
4811 # Also toolexecdir, though it's only used in toolexeclibdir
4812 case ${version_specific_libs} in
4813 yes)
4814 # Need the gcc compiler version to know where to install libraries
4815 # and header files if --enable-version-specific-runtime-libs option
4816 # is selected.
4817 toolexecdir='$(libdir)/gcc/$(target_alias)'
4818 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4819 ;;
4820 no)
4821 if test -n "$with_cross_host" &&
4822 test x"$with_cross_host" != x"no"; then
4823 # Install a library built with a cross compiler in tooldir, not libdir.
4824 toolexecdir='$(exec_prefix)/$(target_alias)'
4825 toolexeclibdir='$(toolexecdir)/lib'
4826 else
4827 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4828 toolexeclibdir='$(libdir)'
4829 fi
4830 multi_os_directory=`$CC -print-multi-os-directory`
4831 case $multi_os_directory in
4832 .) ;; # Avoid trailing /.
4833 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4834 esac
4835 ;;
4836 esac
4837
4838
4839
4840
4841 for ac_func in __secure_getenv
4842 do :
4843 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4844 if test "x$ac_cv_func___secure_getenv" = xyes; then :
4845 cat >>confdefs.h <<_ACEOF
4846 #define HAVE___SECURE_GETENV 1
4847 _ACEOF
4848
4849 fi
4850 done
4851
4852
4853
4854 for ac_func in secure_getenv
4855 do :
4856 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4857 if test "x$ac_cv_func_secure_getenv" = xyes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define HAVE_SECURE_GETENV 1
4860 _ACEOF
4861
4862 fi
4863 done
4864
4865
4866 for ac_func in getexecname __fortify_fail
4867 do :
4868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4871 cat >>confdefs.h <<_ACEOF
4872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873 _ACEOF
4874
4875 fi
4876 done
4877
4878
4879 # Check for programs.
4880
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$CC"; then
4896 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_CC"; then
4927 ac_ct_CC=$CC
4928 # Extract the first word of "gcc", so it can be a program name with args.
4929 set dummy gcc; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_CC"; then
4936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_ac_ct_CC="gcc"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956 if test -n "$ac_ct_CC"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958 $as_echo "$ac_ct_CC" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964 if test "x$ac_ct_CC" = x; then
4965 CC=""
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 CC=$ac_ct_CC
4974 fi
4975 else
4976 CC="$ac_cv_prog_CC"
4977 fi
4978
4979 if test -z "$CC"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}cc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_CC+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_CC="${ac_tool_prefix}cc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 CC=$ac_cv_prog_CC
5009 if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017
5018 fi
5019 fi
5020 if test -z "$CC"; then
5021 # Extract the first word of "cc", so it can be a program name with args.
5022 set dummy cc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_CC+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$CC"; then
5029 ac_cv_prog_CC="$CC" # Let the user override the test.
5030 else
5031 ac_prog_rejected=no
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040 ac_prog_rejected=yes
5041 continue
5042 fi
5043 ac_cv_prog_CC="cc"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051 if test $ac_prog_rejected = yes; then
5052 # We found a bogon in the path, so make sure we never use it.
5053 set dummy $ac_cv_prog_CC
5054 shift
5055 if test $# != 0; then
5056 # We chose a different compiler from the bogus one.
5057 # However, it has the same basename, so the bogon will be chosen
5058 # first if we set CC to just the basename; use the full file name.
5059 shift
5060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5061 fi
5062 fi
5063 fi
5064 fi
5065 CC=$ac_cv_prog_CC
5066 if test -n "$CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068 $as_echo "$CC" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 fi
5076 if test -z "$CC"; then
5077 if test -n "$ac_tool_prefix"; then
5078 for ac_prog in cl.exe
5079 do
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 CC=$ac_cv_prog_CC
5108 if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 $as_echo "$CC" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 test -n "$CC" && break
5118 done
5119 fi
5120 if test -z "$CC"; then
5121 ac_ct_CC=$CC
5122 for ac_prog in cl.exe
5123 do
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_CC"; then
5132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_CC="$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145 done
5146 done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152 if test -n "$ac_ct_CC"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154 $as_echo "$ac_ct_CC" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 test -n "$ac_ct_CC" && break
5162 done
5163
5164 if test "x$ac_ct_CC" = x; then
5165 CC=""
5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168 yes:)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171 ac_tool_warned=yes ;;
5172 esac
5173 CC=$ac_ct_CC
5174 fi
5175 fi
5176
5177 fi
5178
5179
5180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error $? "no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details" "$LINENO" 5; }
5184
5185 # Provide some information about the compiler.
5186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5187 set X $ac_compile
5188 ac_compiler=$2
5189 for ac_option in --version -v -V -qversion; do
5190 { { ac_try="$ac_compiler $ac_option >&5"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196 $as_echo "$ac_try_echo"; } >&5
5197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5198 ac_status=$?
5199 if test -s conftest.err; then
5200 sed '10a\
5201 ... rest of stderr output deleted ...
5202 10q' conftest.err >conftest.er1
5203 cat conftest.er1 >&5
5204 fi
5205 rm -f conftest.er1 conftest.err
5206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207 test $ac_status = 0; }
5208 done
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5212 if ${ac_cv_c_compiler_gnu+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217
5218 int
5219 main ()
5220 {
5221 #ifndef __GNUC__
5222 choke me
5223 #endif
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"; then :
5230 ac_compiler_gnu=yes
5231 else
5232 ac_compiler_gnu=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240 if test $ac_compiler_gnu = yes; then
5241 GCC=yes
5242 else
5243 GCC=
5244 fi
5245 ac_test_CFLAGS=${CFLAGS+set}
5246 ac_save_CFLAGS=$CFLAGS
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5249 if ${ac_cv_prog_cc_g+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 ac_save_c_werror_flag=$ac_c_werror_flag
5253 ac_c_werror_flag=yes
5254 ac_cv_prog_cc_g=no
5255 CFLAGS="-g"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258
5259 int
5260 main ()
5261 {
5262
5263 ;
5264 return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268 ac_cv_prog_cc_g=yes
5269 else
5270 CFLAGS=""
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273
5274 int
5275 main ()
5276 {
5277
5278 ;
5279 return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283
5284 else
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5286 CFLAGS="-g"
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289
5290 int
5291 main ()
5292 {
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299 ac_cv_prog_cc_g=yes
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_c_werror_flag=$ac_save_c_werror_flag
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309 $as_echo "$ac_cv_prog_cc_g" >&6; }
5310 if test "$ac_test_CFLAGS" = set; then
5311 CFLAGS=$ac_save_CFLAGS
5312 elif test $ac_cv_prog_cc_g = yes; then
5313 if test "$GCC" = yes; then
5314 CFLAGS="-g -O2"
5315 else
5316 CFLAGS="-g"
5317 fi
5318 else
5319 if test "$GCC" = yes; then
5320 CFLAGS="-O2"
5321 else
5322 CFLAGS=
5323 fi
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5327 if ${ac_cv_prog_cc_c89+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 ac_cv_prog_cc_c89=no
5331 ac_save_CC=$CC
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <stdarg.h>
5335 #include <stdio.h>
5336 struct stat;
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5341 char **p;
5342 int i;
5343 {
5344 return p[i];
5345 }
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5347 {
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5354 }
5355
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367 #define FOO(x) 'x'
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374 int argc;
5375 char **argv;
5376 int
5377 main ()
5378 {
5379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386 do
5387 CC="$ac_save_CC $ac_arg"
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_prog_cc_c89=$ac_arg
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext
5392 test "x$ac_cv_prog_cc_c89" != "xno" && break
5393 done
5394 rm -f conftest.$ac_ext
5395 CC=$ac_save_CC
5396
5397 fi
5398 # AC_CACHE_VAL
5399 case "x$ac_cv_prog_cc_c89" in
5400 x)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 $as_echo "none needed" >&6; } ;;
5403 xno)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405 $as_echo "unsupported" >&6; } ;;
5406 *)
5407 CC="$CC $ac_cv_prog_cc_c89"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5410 esac
5411 if test "x$ac_cv_prog_cc_c89" != xno; then :
5412
5413 fi
5414
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5427 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5428 if ${am_cv_prog_cc_c_o+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433
5434 int
5435 main ()
5436 {
5437
5438 ;
5439 return 0;
5440 }
5441 _ACEOF
5442 # Make sure it works both with $CC and with simple cc.
5443 # Following AC_PROG_CC_C_O, we do the test twice because some
5444 # compilers refuse to overwrite an existing .o file with -o,
5445 # though they will create one.
5446 am_cv_prog_cc_c_o=yes
5447 for am_i in 1 2; do
5448 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5449 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } \
5453 && test -f conftest2.$ac_objext; then
5454 : OK
5455 else
5456 am_cv_prog_cc_c_o=no
5457 break
5458 fi
5459 done
5460 rm -f core conftest*
5461 unset am_i
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5464 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5465 if test "$am_cv_prog_cc_c_o" != yes; then
5466 # Losing compiler, so override with the script.
5467 # FIXME: It is wrong to rewrite CC.
5468 # But if we don't then we get into trouble of one sort or another.
5469 # A longer-term fix would be to have automake use am__CC in this case,
5470 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5471 CC="$am_aux_dir/compile $CC"
5472 fi
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479
5480 ac_ext=cpp
5481 ac_cpp='$CXXCPP $CPPFLAGS'
5482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485 if test -z "$CXX"; then
5486 if test -n "$CCC"; then
5487 CXX=$CCC
5488 else
5489 if test -n "$ac_tool_prefix"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5491 do
5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_CXX+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$CXX"; then
5500 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 CXX=$ac_cv_prog_CXX
5520 if test -n "$CXX"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5522 $as_echo "$CXX" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 test -n "$CXX" && break
5530 done
5531 fi
5532 if test -z "$CXX"; then
5533 ac_ct_CXX=$CXX
5534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5535 do
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$ac_ct_CXX"; then
5544 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_ac_ct_CXX="$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564 if test -n "$ac_ct_CXX"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5566 $as_echo "$ac_ct_CXX" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 test -n "$ac_ct_CXX" && break
5574 done
5575
5576 if test "x$ac_ct_CXX" = x; then
5577 CXX="g++"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585 CXX=$ac_ct_CXX
5586 fi
5587 fi
5588
5589 fi
5590 fi
5591 # Provide some information about the compiler.
5592 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5593 set X $ac_compile
5594 ac_compiler=$2
5595 for ac_option in --version -v -V -qversion; do
5596 { { ac_try="$ac_compiler $ac_option >&5"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5602 $as_echo "$ac_try_echo"; } >&5
5603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5604 ac_status=$?
5605 if test -s conftest.err; then
5606 sed '10a\
5607 ... rest of stderr output deleted ...
5608 10q' conftest.err >conftest.er1
5609 cat conftest.er1 >&5
5610 fi
5611 rm -f conftest.er1 conftest.err
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }
5614 done
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5617 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5618 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623
5624 int
5625 main ()
5626 {
5627 #ifndef __GNUC__
5628 choke me
5629 #endif
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_cxx_try_compile "$LINENO"; then :
5636 ac_compiler_gnu=yes
5637 else
5638 ac_compiler_gnu=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5642
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5645 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5646 if test $ac_compiler_gnu = yes; then
5647 GXX=yes
5648 else
5649 GXX=
5650 fi
5651 ac_test_CXXFLAGS=${CXXFLAGS+set}
5652 ac_save_CXXFLAGS=$CXXFLAGS
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5654 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5655 if ${ac_cv_prog_cxx_g+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5659 ac_cxx_werror_flag=yes
5660 ac_cv_prog_cxx_g=no
5661 CXXFLAGS="-g"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664
5665 int
5666 main ()
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_cxx_try_compile "$LINENO"; then :
5674 ac_cv_prog_cxx_g=yes
5675 else
5676 CXXFLAGS=""
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679
5680 int
5681 main ()
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_cxx_try_compile "$LINENO"; then :
5689
5690 else
5691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5692 CXXFLAGS="-g"
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695
5696 int
5697 main ()
5698 {
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5705 ac_cv_prog_cxx_g=yes
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5715 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5716 if test "$ac_test_CXXFLAGS" = set; then
5717 CXXFLAGS=$ac_save_CXXFLAGS
5718 elif test $ac_cv_prog_cxx_g = yes; then
5719 if test "$GXX" = yes; then
5720 CXXFLAGS="-g -O2"
5721 else
5722 CXXFLAGS="-g"
5723 fi
5724 else
5725 if test "$GXX" = yes; then
5726 CXXFLAGS="-O2"
5727 else
5728 CXXFLAGS=
5729 fi
5730 fi
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737 depcc="$CXX" am_compiler_list=
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5740 $as_echo_n "checking dependency style of $depcc... " >&6; }
5741 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5745 # We make a subdir and do the tests there. Otherwise we can end up
5746 # making bogus files that we don't know about and never remove. For
5747 # instance it was reported that on HP-UX the gcc test will end up
5748 # making a dummy file named 'D' -- because '-MD' means "put the output
5749 # in D".
5750 rm -rf conftest.dir
5751 mkdir conftest.dir
5752 # Copy depcomp to subdir because otherwise we won't find it if we're
5753 # using a relative directory.
5754 cp "$am_depcomp" conftest.dir
5755 cd conftest.dir
5756 # We will build objects and dependencies in a subdirectory because
5757 # it helps to detect inapplicable dependency modes. For instance
5758 # both Tru64's cc and ICC support -MD to output dependencies as a
5759 # side effect of compilation, but ICC will put the dependencies in
5760 # the current directory while Tru64 will put them in the object
5761 # directory.
5762 mkdir sub
5763
5764 am_cv_CXX_dependencies_compiler_type=none
5765 if test "$am_compiler_list" = ""; then
5766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5767 fi
5768 am__universal=false
5769 case " $depcc " in #(
5770 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5771 esac
5772
5773 for depmode in $am_compiler_list; do
5774 # Setup a source with many dependencies, because some compilers
5775 # like to wrap large dependency lists on column 80 (with \), and
5776 # we should not choose a depcomp mode which is confused by this.
5777 #
5778 # We need to recreate these files for each test, as the compiler may
5779 # overwrite some of them when testing with obscure command lines.
5780 # This happens at least with the AIX C compiler.
5781 : > sub/conftest.c
5782 for i in 1 2 3 4 5 6; do
5783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5784 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5785 # Solaris 10 /bin/sh.
5786 echo '/* dummy */' > sub/conftst$i.h
5787 done
5788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5789
5790 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5791 # mode. It turns out that the SunPro C++ compiler does not properly
5792 # handle '-M -o', and we need to detect this. Also, some Intel
5793 # versions had trouble with output in subdirs.
5794 am__obj=sub/conftest.${OBJEXT-o}
5795 am__minus_obj="-o $am__obj"
5796 case $depmode in
5797 gcc)
5798 # This depmode causes a compiler race in universal mode.
5799 test "$am__universal" = false || continue
5800 ;;
5801 nosideeffect)
5802 # After this tag, mechanisms are not by side-effect, so they'll
5803 # only be used when explicitly requested.
5804 if test "x$enable_dependency_tracking" = xyes; then
5805 continue
5806 else
5807 break
5808 fi
5809 ;;
5810 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5811 # This compiler won't grok '-c -o', but also, the minuso test has
5812 # not run yet. These depmodes are late enough in the game, and
5813 # so weak that their functioning should not be impacted.
5814 am__obj=conftest.${OBJEXT-o}
5815 am__minus_obj=
5816 ;;
5817 none) break ;;
5818 esac
5819 if depmode=$depmode \
5820 source=sub/conftest.c object=$am__obj \
5821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5823 >/dev/null 2>conftest.err &&
5824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5828 # icc doesn't choke on unknown options, it will just issue warnings
5829 # or remarks (even with -Werror). So we grep stderr for any message
5830 # that says an option was ignored or not supported.
5831 # When given -MP, icc 7.0 and 7.1 complain thusly:
5832 # icc: Command line warning: ignoring option '-M'; no argument required
5833 # The diagnosis changed in icc 8.0:
5834 # icc: Command line remark: option '-MP' not supported
5835 if (grep 'ignoring option' conftest.err ||
5836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5837 am_cv_CXX_dependencies_compiler_type=$depmode
5838 break
5839 fi
5840 fi
5841 done
5842
5843 cd ..
5844 rm -rf conftest.dir
5845 else
5846 am_cv_CXX_dependencies_compiler_type=none
5847 fi
5848
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5851 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5852 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5853
5854 if
5855 test "x$enable_dependency_tracking" != xno \
5856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5857 am__fastdepCXX_TRUE=
5858 am__fastdepCXX_FALSE='#'
5859 else
5860 am__fastdepCXX_TRUE='#'
5861 am__fastdepCXX_FALSE=
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 # Newer automakes demand CCAS and CCASFLAGS.
5873 : ${CCAS='$(CC)'}
5874 : ${CCASFLAGS='$(CFLAGS)'}
5875
5876
5877
5878 if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5880 set dummy ${ac_tool_prefix}as; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_AS+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$AS"; then
5887 ac_cv_prog_AS="$AS" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_AS="${ac_tool_prefix}as"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 AS=$ac_cv_prog_AS
5907 if test -n "$AS"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5909 $as_echo "$AS" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916 fi
5917 if test -z "$ac_cv_prog_AS"; then
5918 ac_ct_AS=$AS
5919 # Extract the first word of "as", so it can be a program name with args.
5920 set dummy as; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$ac_ct_AS"; then
5927 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_ac_ct_AS="as"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5947 if test -n "$ac_ct_AS"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5949 $as_echo "$ac_ct_AS" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954
5955 if test "x$ac_ct_AS" = x; then
5956 AS=""
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964 AS=$ac_ct_AS
5965 fi
5966 else
5967 AS="$ac_cv_prog_AS"
5968 fi
5969
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}ar; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_AR+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$AR"; then
5979 ac_cv_prog_AR="$AR" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_AR="${ac_tool_prefix}ar"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992 done
5993 done
5994 IFS=$as_save_IFS
5995
5996 fi
5997 fi
5998 AR=$ac_cv_prog_AR
5999 if test -n "$AR"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6001 $as_echo "$AR" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006
6007
6008 fi
6009 if test -z "$ac_cv_prog_AR"; then
6010 ac_ct_AR=$AR
6011 # Extract the first word of "ar", so it can be a program name with args.
6012 set dummy ar; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_AR"; then
6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_AR="ar"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039 if test -n "$ac_ct_AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6041 $as_echo "$ac_ct_AR" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047 if test "x$ac_ct_AR" = x; then
6048 AR=""
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 AR=$ac_ct_AR
6057 fi
6058 else
6059 AR="$ac_cv_prog_AR"
6060 fi
6061
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_RANLIB+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$RANLIB"; then
6071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 RANLIB=$ac_cv_prog_RANLIB
6091 if test -n "$RANLIB"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6093 $as_echo "$RANLIB" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 fi
6101 if test -z "$ac_cv_prog_RANLIB"; then
6102 ac_ct_RANLIB=$RANLIB
6103 # Extract the first word of "ranlib", so it can be a program name with args.
6104 set dummy ranlib; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_RANLIB"; then
6111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_RANLIB="ranlib"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6131 if test -n "$ac_ct_RANLIB"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6133 $as_echo "$ac_ct_RANLIB" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139 if test "x$ac_ct_RANLIB" = x; then
6140 RANLIB=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 RANLIB=$ac_ct_RANLIB
6149 fi
6150 else
6151 RANLIB="$ac_cv_prog_RANLIB"
6152 fi
6153
6154
6155 # Configure libtool
6156 enable_dlopen=yes
6157
6158
6159
6160 case `pwd` in
6161 *\ * | *\ *)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6163 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6164 esac
6165
6166
6167
6168 macro_version='2.2.7a'
6169 macro_revision='1.3134'
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 ltmain="$ac_aux_dir/ltmain.sh"
6184
6185 # Backslashify metacharacters that are still active within
6186 # double-quoted strings.
6187 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6188
6189 # Same as above, but do not quote variable references.
6190 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6191
6192 # Sed substitution to delay expansion of an escaped shell variable in a
6193 # double_quote_subst'ed string.
6194 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6195
6196 # Sed substitution to delay expansion of an escaped single quote.
6197 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6198
6199 # Sed substitution to avoid accidental globbing in evaled expressions
6200 no_glob_subst='s/\*/\\\*/g'
6201
6202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6203 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6204 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6207 $as_echo_n "checking how to print strings... " >&6; }
6208 # Test print first, because it will be a builtin if present.
6209 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6210 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6211 ECHO='print -r --'
6212 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6213 ECHO='printf %s\n'
6214 else
6215 # Use this function as a fallback that always works.
6216 func_fallback_echo ()
6217 {
6218 eval 'cat <<_LTECHO_EOF
6219 $1
6220 _LTECHO_EOF'
6221 }
6222 ECHO='func_fallback_echo'
6223 fi
6224
6225 # func_echo_all arg...
6226 # Invoke $ECHO with all args, space-separated.
6227 func_echo_all ()
6228 {
6229 $ECHO ""
6230 }
6231
6232 case "$ECHO" in
6233 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6234 $as_echo "printf" >&6; } ;;
6235 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6236 $as_echo "print -r" >&6; } ;;
6237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6238 $as_echo "cat" >&6; } ;;
6239 esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6255 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6256 if ${ac_cv_path_SED+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6260 for ac_i in 1 2 3 4 5 6 7; do
6261 ac_script="$ac_script$as_nl$ac_script"
6262 done
6263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6264 { ac_script=; unset ac_script;}
6265 if test -z "$SED"; then
6266 ac_path_SED_found=false
6267 # Loop through the user's path and test for each of PROGNAME-LIST
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_prog in sed gsed; do
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6276 as_fn_executable_p "$ac_path_SED" || continue
6277 # Check for GNU ac_path_SED and select it if it is found.
6278 # Check for GNU $ac_path_SED
6279 case `"$ac_path_SED" --version 2>&1` in
6280 *GNU*)
6281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6282 *)
6283 ac_count=0
6284 $as_echo_n 0123456789 >"conftest.in"
6285 while :
6286 do
6287 cat "conftest.in" "conftest.in" >"conftest.tmp"
6288 mv "conftest.tmp" "conftest.in"
6289 cp "conftest.in" "conftest.nl"
6290 $as_echo '' >> "conftest.nl"
6291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6293 as_fn_arith $ac_count + 1 && ac_count=$as_val
6294 if test $ac_count -gt ${ac_path_SED_max-0}; then
6295 # Best one so far, save it but keep looking for a better one
6296 ac_cv_path_SED="$ac_path_SED"
6297 ac_path_SED_max=$ac_count
6298 fi
6299 # 10*(2^10) chars as input seems more than enough
6300 test $ac_count -gt 10 && break
6301 done
6302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6303 esac
6304
6305 $ac_path_SED_found && break 3
6306 done
6307 done
6308 done
6309 IFS=$as_save_IFS
6310 if test -z "$ac_cv_path_SED"; then
6311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6312 fi
6313 else
6314 ac_cv_path_SED=$SED
6315 fi
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6319 $as_echo "$ac_cv_path_SED" >&6; }
6320 SED="$ac_cv_path_SED"
6321 rm -f conftest.sed
6322
6323 test -z "$SED" && SED=sed
6324 Xsed="$SED -e 1s/^X//"
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6337 $as_echo_n "checking for fgrep... " >&6; }
6338 if ${ac_cv_path_FGREP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6342 then ac_cv_path_FGREP="$GREP -F"
6343 else
6344 if test -z "$FGREP"; then
6345 ac_path_FGREP_found=false
6346 # Loop through the user's path and test for each of PROGNAME-LIST
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_prog in fgrep; do
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6355 as_fn_executable_p "$ac_path_FGREP" || continue
6356 # Check for GNU ac_path_FGREP and select it if it is found.
6357 # Check for GNU $ac_path_FGREP
6358 case `"$ac_path_FGREP" --version 2>&1` in
6359 *GNU*)
6360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6361 *)
6362 ac_count=0
6363 $as_echo_n 0123456789 >"conftest.in"
6364 while :
6365 do
6366 cat "conftest.in" "conftest.in" >"conftest.tmp"
6367 mv "conftest.tmp" "conftest.in"
6368 cp "conftest.in" "conftest.nl"
6369 $as_echo 'FGREP' >> "conftest.nl"
6370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6372 as_fn_arith $ac_count + 1 && ac_count=$as_val
6373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6374 # Best one so far, save it but keep looking for a better one
6375 ac_cv_path_FGREP="$ac_path_FGREP"
6376 ac_path_FGREP_max=$ac_count
6377 fi
6378 # 10*(2^10) chars as input seems more than enough
6379 test $ac_count -gt 10 && break
6380 done
6381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6382 esac
6383
6384 $ac_path_FGREP_found && break 3
6385 done
6386 done
6387 done
6388 IFS=$as_save_IFS
6389 if test -z "$ac_cv_path_FGREP"; then
6390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6391 fi
6392 else
6393 ac_cv_path_FGREP=$FGREP
6394 fi
6395
6396 fi
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6399 $as_echo "$ac_cv_path_FGREP" >&6; }
6400 FGREP="$ac_cv_path_FGREP"
6401
6402
6403 test -z "$GREP" && GREP=grep
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 # Check whether --with-gnu-ld was given.
6424 if test "${with_gnu_ld+set}" = set; then :
6425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6426 else
6427 with_gnu_ld=no
6428 fi
6429
6430 ac_prog=ld
6431 if test "$GCC" = yes; then
6432 # Check if gcc -print-prog-name=ld gives a path.
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6434 $as_echo_n "checking for ld used by $CC... " >&6; }
6435 case $host in
6436 *-*-mingw*)
6437 # gcc leaves a trailing carriage return which upsets mingw
6438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6439 *)
6440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6441 esac
6442 case $ac_prog in
6443 # Accept absolute paths.
6444 [\\/]* | ?:[\\/]*)
6445 re_direlt='/[^/][^/]*/\.\./'
6446 # Canonicalize the pathname of ld
6447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6450 done
6451 test -z "$LD" && LD="$ac_prog"
6452 ;;
6453 "")
6454 # If it fails, then pretend we aren't using GCC.
6455 ac_prog=ld
6456 ;;
6457 *)
6458 # If it is relative, then search for the first ld in PATH.
6459 with_gnu_ld=unknown
6460 ;;
6461 esac
6462 elif test "$with_gnu_ld" = yes; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6464 $as_echo_n "checking for GNU ld... " >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6467 $as_echo_n "checking for non-GNU ld... " >&6; }
6468 fi
6469 if ${lt_cv_path_LD+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -z "$LD"; then
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 for ac_dir in $PATH; do
6475 IFS="$lt_save_ifs"
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6478 lt_cv_path_LD="$ac_dir/$ac_prog"
6479 # Check to see if the program is GNU ld. I'd rather use --version,
6480 # but apparently some variants of GNU ld only accept -v.
6481 # Break only if it was the GNU/non-GNU ld that we prefer.
6482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6483 *GNU* | *'with BFD'*)
6484 test "$with_gnu_ld" != no && break
6485 ;;
6486 *)
6487 test "$with_gnu_ld" != yes && break
6488 ;;
6489 esac
6490 fi
6491 done
6492 IFS="$lt_save_ifs"
6493 else
6494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6495 fi
6496 fi
6497
6498 LD="$lt_cv_path_LD"
6499 if test -n "$LD"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6501 $as_echo "$LD" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6509 if ${lt_cv_prog_gnu_ld+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6513 case `$LD -v 2>&1 </dev/null` in
6514 *GNU* | *'with BFD'*)
6515 lt_cv_prog_gnu_ld=yes
6516 ;;
6517 *)
6518 lt_cv_prog_gnu_ld=no
6519 ;;
6520 esac
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6523 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6524 with_gnu_ld=$lt_cv_prog_gnu_ld
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6535 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6536 if ${lt_cv_path_NM+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$NM"; then
6540 # Let the user override the test.
6541 lt_cv_path_NM="$NM"
6542 else
6543 lt_nm_to_check="${ac_tool_prefix}nm"
6544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6545 lt_nm_to_check="$lt_nm_to_check nm"
6546 fi
6547 for lt_tmp_nm in $lt_nm_to_check; do
6548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6550 IFS="$lt_save_ifs"
6551 test -z "$ac_dir" && ac_dir=.
6552 tmp_nm="$ac_dir/$lt_tmp_nm"
6553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6554 # Check to see if the nm accepts a BSD-compat flag.
6555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6556 # nm: unknown option "B" ignored
6557 # Tru64's nm complains that /dev/null is an invalid object file
6558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6559 */dev/null* | *'Invalid file or object type'*)
6560 lt_cv_path_NM="$tmp_nm -B"
6561 break
6562 ;;
6563 *)
6564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6565 */dev/null*)
6566 lt_cv_path_NM="$tmp_nm -p"
6567 break
6568 ;;
6569 *)
6570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6571 continue # so that we can try to find one that supports BSD flags
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 fi
6577 done
6578 IFS="$lt_save_ifs"
6579 done
6580 : ${lt_cv_path_NM=no}
6581 fi
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6584 $as_echo "$lt_cv_path_NM" >&6; }
6585 if test "$lt_cv_path_NM" != "no"; then
6586 NM="$lt_cv_path_NM"
6587 else
6588 # Didn't find any BSD compatible name lister, look for dumpbin.
6589 if test -n "$DUMPBIN"; then :
6590 # Let the user override the test.
6591 else
6592 if test -n "$ac_tool_prefix"; then
6593 for ac_prog in dumpbin "link -dump"
6594 do
6595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_DUMPBIN+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$DUMPBIN"; then
6603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 DUMPBIN=$ac_cv_prog_DUMPBIN
6623 if test -n "$DUMPBIN"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6625 $as_echo "$DUMPBIN" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632 test -n "$DUMPBIN" && break
6633 done
6634 fi
6635 if test -z "$DUMPBIN"; then
6636 ac_ct_DUMPBIN=$DUMPBIN
6637 for ac_prog in dumpbin "link -dump"
6638 do
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$ac_ct_DUMPBIN"; then
6647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6667 if test -n "$ac_ct_DUMPBIN"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6669 $as_echo "$ac_ct_DUMPBIN" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 test -n "$ac_ct_DUMPBIN" && break
6677 done
6678
6679 if test "x$ac_ct_DUMPBIN" = x; then
6680 DUMPBIN=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 DUMPBIN=$ac_ct_DUMPBIN
6689 fi
6690 fi
6691
6692 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6693 *COFF*)
6694 DUMPBIN="$DUMPBIN -symbols"
6695 ;;
6696 *)
6697 DUMPBIN=:
6698 ;;
6699 esac
6700 fi
6701
6702 if test "$DUMPBIN" != ":"; then
6703 NM="$DUMPBIN"
6704 fi
6705 fi
6706 test -z "$NM" && NM=nm
6707
6708
6709
6710
6711
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6714 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6715 if ${lt_cv_nm_interface+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 lt_cv_nm_interface="BSD nm"
6719 echo "int some_variable = 0;" > conftest.$ac_ext
6720 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6721 (eval "$ac_compile" 2>conftest.err)
6722 cat conftest.err >&5
6723 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6725 cat conftest.err >&5
6726 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6727 cat conftest.out >&5
6728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6729 lt_cv_nm_interface="MS dumpbin"
6730 fi
6731 rm -f conftest*
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6734 $as_echo "$lt_cv_nm_interface" >&6; }
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6737 $as_echo_n "checking whether ln -s works... " >&6; }
6738 LN_S=$as_ln_s
6739 if test "$LN_S" = "ln -s"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6741 $as_echo "yes" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6744 $as_echo "no, using $LN_S" >&6; }
6745 fi
6746
6747 # find the maximum length of command line arguments
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6749 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6750 if ${lt_cv_sys_max_cmd_len+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 i=0
6754 teststring="ABCD"
6755
6756 case $build_os in
6757 msdosdjgpp*)
6758 # On DJGPP, this test can blow up pretty badly due to problems in libc
6759 # (any single argument exceeding 2000 bytes causes a buffer overrun
6760 # during glob expansion). Even if it were fixed, the result of this
6761 # check would be larger than it should be.
6762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6763 ;;
6764
6765 gnu*)
6766 # Under GNU Hurd, this test is not required because there is
6767 # no limit to the length of command line arguments.
6768 # Libtool will interpret -1 as no limit whatsoever
6769 lt_cv_sys_max_cmd_len=-1;
6770 ;;
6771
6772 cygwin* | mingw* | cegcc*)
6773 # On Win9x/ME, this test blows up -- it succeeds, but takes
6774 # about 5 minutes as the teststring grows exponentially.
6775 # Worse, since 9x/ME are not pre-emptively multitasking,
6776 # you end up with a "frozen" computer, even though with patience
6777 # the test eventually succeeds (with a max line length of 256k).
6778 # Instead, let's just punt: use the minimum linelength reported by
6779 # all of the supported platforms: 8192 (on NT/2K/XP).
6780 lt_cv_sys_max_cmd_len=8192;
6781 ;;
6782
6783 mint*)
6784 # On MiNT this can take a long time and run out of memory.
6785 lt_cv_sys_max_cmd_len=8192;
6786 ;;
6787
6788 amigaos*)
6789 # On AmigaOS with pdksh, this test takes hours, literally.
6790 # So we just punt and use a minimum line length of 8192.
6791 lt_cv_sys_max_cmd_len=8192;
6792 ;;
6793
6794 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6795 # This has been around since 386BSD, at least. Likely further.
6796 if test -x /sbin/sysctl; then
6797 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6798 elif test -x /usr/sbin/sysctl; then
6799 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6800 else
6801 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6802 fi
6803 # And add a safety zone
6804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6806 ;;
6807
6808 interix*)
6809 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6810 lt_cv_sys_max_cmd_len=196608
6811 ;;
6812
6813 osf*)
6814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6816 # nice to cause kernel panics so lets avoid the loop below.
6817 # First set a reasonable default.
6818 lt_cv_sys_max_cmd_len=16384
6819 #
6820 if test -x /sbin/sysconfig; then
6821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6823 esac
6824 fi
6825 ;;
6826 sco3.2v5*)
6827 lt_cv_sys_max_cmd_len=102400
6828 ;;
6829 sysv5* | sco5v6* | sysv4.2uw2*)
6830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6831 if test -n "$kargmax"; then
6832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6833 else
6834 lt_cv_sys_max_cmd_len=32768
6835 fi
6836 ;;
6837 *)
6838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6839 if test -n "$lt_cv_sys_max_cmd_len"; then
6840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6842 else
6843 # Make teststring a little bigger before we do anything with it.
6844 # a 1K string should be a reasonable start.
6845 for i in 1 2 3 4 5 6 7 8 ; do
6846 teststring=$teststring$teststring
6847 done
6848 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6849 # If test is not a shell built-in, we'll probably end up computing a
6850 # maximum length that is only half of the actual maximum length, but
6851 # we can't tell.
6852 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6853 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6854 test $i != 17 # 1/2 MB should be enough
6855 do
6856 i=`expr $i + 1`
6857 teststring=$teststring$teststring
6858 done
6859 # Only check the string length outside the loop.
6860 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6861 teststring=
6862 # Add a significant safety factor because C++ compilers can tack on
6863 # massive amounts of additional arguments before passing them to the
6864 # linker. It appears as though 1/2 is a usable value.
6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6866 fi
6867 ;;
6868 esac
6869
6870 fi
6871
6872 if test -n $lt_cv_sys_max_cmd_len ; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6874 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6877 $as_echo "none" >&6; }
6878 fi
6879 max_cmd_len=$lt_cv_sys_max_cmd_len
6880
6881
6882
6883
6884
6885
6886 : ${CP="cp -f"}
6887 : ${MV="mv -f"}
6888 : ${RM="rm -f"}
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6891 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6892 # Try some XSI features
6893 xsi_shell=no
6894 ( _lt_dummy="a/b/c"
6895 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6896 = c,a/b,, \
6897 && eval 'test $(( 1 + 1 )) -eq 2 \
6898 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6899 && xsi_shell=yes
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6901 $as_echo "$xsi_shell" >&6; }
6902
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6905 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6906 lt_shell_append=no
6907 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6908 >/dev/null 2>&1 \
6909 && lt_shell_append=yes
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6911 $as_echo "$lt_shell_append" >&6; }
6912
6913
6914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6915 lt_unset=unset
6916 else
6917 lt_unset=false
6918 fi
6919
6920
6921
6922
6923
6924 # test EBCDIC or ASCII
6925 case `echo X|tr X '\101'` in
6926 A) # ASCII based system
6927 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6928 lt_SP2NL='tr \040 \012'
6929 lt_NL2SP='tr \015\012 \040\040'
6930 ;;
6931 *) # EBCDIC based system
6932 lt_SP2NL='tr \100 \n'
6933 lt_NL2SP='tr \r\n \100\100'
6934 ;;
6935 esac
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6946 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6947 if ${lt_cv_ld_reload_flag+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 lt_cv_ld_reload_flag='-r'
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6953 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6954 reload_flag=$lt_cv_ld_reload_flag
6955 case $reload_flag in
6956 "" | " "*) ;;
6957 *) reload_flag=" $reload_flag" ;;
6958 esac
6959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6960 case $host_os in
6961 darwin*)
6962 if test "$GCC" = yes; then
6963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6964 else
6965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6966 fi
6967 ;;
6968 esac
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_OBJDUMP+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 OBJDUMP=$ac_cv_prog_OBJDUMP
7007 if test -n "$OBJDUMP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7009 $as_echo "$OBJDUMP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015
7016 fi
7017 if test -z "$ac_cv_prog_OBJDUMP"; then
7018 ac_ct_OBJDUMP=$OBJDUMP
7019 # Extract the first word of "objdump", so it can be a program name with args.
7020 set dummy objdump; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$ac_ct_OBJDUMP"; then
7027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7047 if test -n "$ac_ct_OBJDUMP"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7049 $as_echo "$ac_ct_OBJDUMP" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055 if test "x$ac_ct_OBJDUMP" = x; then
7056 OBJDUMP="false"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 OBJDUMP=$ac_ct_OBJDUMP
7065 fi
7066 else
7067 OBJDUMP="$ac_cv_prog_OBJDUMP"
7068 fi
7069
7070 test -z "$OBJDUMP" && OBJDUMP=objdump
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7081 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7082 if ${lt_cv_deplibs_check_method+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 lt_cv_file_magic_cmd='$MAGIC_CMD'
7086 lt_cv_file_magic_test_file=
7087 lt_cv_deplibs_check_method='unknown'
7088 # Need to set the preceding variable on all platforms that support
7089 # interlibrary dependencies.
7090 # 'none' -- dependencies not supported.
7091 # `unknown' -- same as none, but documents that we really don't know.
7092 # 'pass_all' -- all dependencies passed with no checks.
7093 # 'test_compile' -- check by making test program.
7094 # 'file_magic [[regex]]' -- check by looking for files in library path
7095 # which responds to the $file_magic_cmd with a given extended regex.
7096 # If you have `file' or equivalent on your system and you're not sure
7097 # whether `pass_all' will *always* work, you probably want this one.
7098
7099 case $host_os in
7100 aix[4-9]*)
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104 beos*)
7105 lt_cv_deplibs_check_method=pass_all
7106 ;;
7107
7108 bsdi[45]*)
7109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7110 lt_cv_file_magic_cmd='/usr/bin/file -L'
7111 lt_cv_file_magic_test_file=/shlib/libc.so
7112 ;;
7113
7114 cygwin*)
7115 # func_win32_libid is a shell function defined in ltmain.sh
7116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7117 lt_cv_file_magic_cmd='func_win32_libid'
7118 ;;
7119
7120 mingw* | pw32*)
7121 # Base MSYS/MinGW do not provide the 'file' command needed by
7122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7123 # unless we find 'file', for example because we are cross-compiling.
7124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7127 lt_cv_file_magic_cmd='func_win32_libid'
7128 else
7129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7130 lt_cv_file_magic_cmd='$OBJDUMP -f'
7131 fi
7132 ;;
7133
7134 cegcc*)
7135 # use the weaker test based on 'objdump'. See mingw*.
7136 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7137 lt_cv_file_magic_cmd='$OBJDUMP -f'
7138 ;;
7139
7140 darwin* | rhapsody*)
7141 lt_cv_deplibs_check_method=pass_all
7142 ;;
7143
7144 freebsd* | dragonfly*)
7145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7146 case $host_cpu in
7147 i*86 )
7148 # Not sure whether the presence of OpenBSD here was a mistake.
7149 # Let's accept both of them until this is cleared up.
7150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7151 lt_cv_file_magic_cmd=/usr/bin/file
7152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7153 ;;
7154 esac
7155 else
7156 lt_cv_deplibs_check_method=pass_all
7157 fi
7158 ;;
7159
7160 gnu*)
7161 lt_cv_deplibs_check_method=pass_all
7162 ;;
7163
7164 haiku*)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167
7168 hpux10.20* | hpux11*)
7169 lt_cv_file_magic_cmd=/usr/bin/file
7170 case $host_cpu in
7171 ia64*)
7172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7174 ;;
7175 hppa*64*)
7176 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]'
7177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7178 ;;
7179 *)
7180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7182 ;;
7183 esac
7184 ;;
7185
7186 interix[3-9]*)
7187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7189 ;;
7190
7191 irix5* | irix6* | nonstopux*)
7192 case $LD in
7193 *-32|*"-32 ") libmagic=32-bit;;
7194 *-n32|*"-n32 ") libmagic=N32;;
7195 *-64|*"-64 ") libmagic=64-bit;;
7196 *) libmagic=never-match;;
7197 esac
7198 lt_cv_deplibs_check_method=pass_all
7199 ;;
7200
7201 # This must be Linux ELF.
7202 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7203 lt_cv_deplibs_check_method=pass_all
7204 ;;
7205
7206 netbsd*)
7207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7209 else
7210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7211 fi
7212 ;;
7213
7214 newos6*)
7215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7216 lt_cv_file_magic_cmd=/usr/bin/file
7217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7218 ;;
7219
7220 *nto* | *qnx*)
7221 lt_cv_deplibs_check_method=pass_all
7222 ;;
7223
7224 openbsd*)
7225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7227 else
7228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7229 fi
7230 ;;
7231
7232 osf3* | osf4* | osf5*)
7233 lt_cv_deplibs_check_method=pass_all
7234 ;;
7235
7236 rdos*)
7237 lt_cv_deplibs_check_method=pass_all
7238 ;;
7239
7240 solaris*)
7241 lt_cv_deplibs_check_method=pass_all
7242 ;;
7243
7244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7245 lt_cv_deplibs_check_method=pass_all
7246 ;;
7247
7248 sysv4 | sysv4.3*)
7249 case $host_vendor in
7250 motorola)
7251 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]'
7252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7253 ;;
7254 ncr)
7255 lt_cv_deplibs_check_method=pass_all
7256 ;;
7257 sequent)
7258 lt_cv_file_magic_cmd='/bin/file'
7259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7260 ;;
7261 sni)
7262 lt_cv_file_magic_cmd='/bin/file'
7263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7264 lt_cv_file_magic_test_file=/lib/libc.so
7265 ;;
7266 siemens)
7267 lt_cv_deplibs_check_method=pass_all
7268 ;;
7269 pc)
7270 lt_cv_deplibs_check_method=pass_all
7271 ;;
7272 esac
7273 ;;
7274
7275 tpf*)
7276 lt_cv_deplibs_check_method=pass_all
7277 ;;
7278 esac
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7282 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7283 file_magic_cmd=$lt_cv_file_magic_cmd
7284 deplibs_check_method=$lt_cv_deplibs_check_method
7285 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ar; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_AR+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$AR"; then
7307 ac_cv_prog_AR="$AR" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_AR="${ac_tool_prefix}ar"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 AR=$ac_cv_prog_AR
7327 if test -n "$AR"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7329 $as_echo "$AR" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_AR"; then
7338 ac_ct_AR=$AR
7339 # Extract the first word of "ar", so it can be a program name with args.
7340 set dummy ar; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$ac_ct_AR"; then
7347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_ac_ct_AR="ar"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7367 if test -n "$ac_ct_AR"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7369 $as_echo "$ac_ct_AR" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375 if test "x$ac_ct_AR" = x; then
7376 AR="false"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 AR=$ac_ct_AR
7385 fi
7386 else
7387 AR="$ac_cv_prog_AR"
7388 fi
7389
7390 test -z "$AR" && AR=ar
7391 test -z "$AR_FLAGS" && AR_FLAGS=cru
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}strip; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_STRIP+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$STRIP"; then
7412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 STRIP=$ac_cv_prog_STRIP
7432 if test -n "$STRIP"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7434 $as_echo "$STRIP" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_STRIP"; then
7443 ac_ct_STRIP=$STRIP
7444 # Extract the first word of "strip", so it can be a program name with args.
7445 set dummy strip; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_STRIP"; then
7452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_STRIP="strip"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7472 if test -n "$ac_ct_STRIP"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7474 $as_echo "$ac_ct_STRIP" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480 if test "x$ac_ct_STRIP" = x; then
7481 STRIP=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 STRIP=$ac_ct_STRIP
7490 fi
7491 else
7492 STRIP="$ac_cv_prog_STRIP"
7493 fi
7494
7495 test -z "$STRIP" && STRIP=:
7496
7497
7498
7499
7500
7501
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_RANLIB+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$RANLIB"; then
7511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 RANLIB=$ac_cv_prog_RANLIB
7531 if test -n "$RANLIB"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7533 $as_echo "$RANLIB" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_RANLIB"; then
7542 ac_ct_RANLIB=$RANLIB
7543 # Extract the first word of "ranlib", so it can be a program name with args.
7544 set dummy ranlib; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_RANLIB"; then
7551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_ac_ct_RANLIB="ranlib"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7571 if test -n "$ac_ct_RANLIB"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7573 $as_echo "$ac_ct_RANLIB" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579 if test "x$ac_ct_RANLIB" = x; then
7580 RANLIB=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 RANLIB=$ac_ct_RANLIB
7589 fi
7590 else
7591 RANLIB="$ac_cv_prog_RANLIB"
7592 fi
7593
7594 test -z "$RANLIB" && RANLIB=:
7595
7596
7597
7598
7599
7600
7601 # Determine commands to create old-style static archives.
7602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7603 old_postinstall_cmds='chmod 644 $oldlib'
7604 old_postuninstall_cmds=
7605
7606 if test -n "$RANLIB"; then
7607 case $host_os in
7608 openbsd*)
7609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7610 ;;
7611 *)
7612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7613 ;;
7614 esac
7615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7616 fi
7617
7618 case $host_os in
7619 darwin*)
7620 lock_old_archive_extraction=yes ;;
7621 *)
7622 lock_old_archive_extraction=no ;;
7623 esac
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663 # If no C compiler was specified, use CC.
7664 LTCC=${LTCC-"$CC"}
7665
7666 # If no C compiler flags were specified, use CFLAGS.
7667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669 # Allow CC to be a program name with arguments.
7670 compiler=$CC
7671
7672
7673 # Check for command to grab the raw symbol name followed by C symbol from nm.
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7675 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7676 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679
7680 # These are sane defaults that work on at least a few old systems.
7681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7682
7683 # Character class describing NM global symbol codes.
7684 symcode='[BCDEGRST]'
7685
7686 # Regexp to match symbols that can be accessed directly from C.
7687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7688
7689 # Define system-specific variables.
7690 case $host_os in
7691 aix*)
7692 symcode='[BCDT]'
7693 ;;
7694 cygwin* | mingw* | pw32* | cegcc*)
7695 symcode='[ABCDGISTW]'
7696 ;;
7697 hpux*)
7698 if test "$host_cpu" = ia64; then
7699 symcode='[ABCDEGRST]'
7700 fi
7701 ;;
7702 irix* | nonstopux*)
7703 symcode='[BCDEGRST]'
7704 ;;
7705 osf*)
7706 symcode='[BCDEGQRST]'
7707 ;;
7708 solaris*)
7709 symcode='[BDRT]'
7710 ;;
7711 sco3.2v5*)
7712 symcode='[DT]'
7713 ;;
7714 sysv4.2uw2*)
7715 symcode='[DT]'
7716 ;;
7717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7718 symcode='[ABDT]'
7719 ;;
7720 sysv4)
7721 symcode='[DFNSTU]'
7722 ;;
7723 esac
7724
7725 # If we're using GNU nm, then use its standard symbol codes.
7726 case `$NM -V 2>&1` in
7727 *GNU* | *'with BFD'*)
7728 symcode='[ABCDGIRSTW]' ;;
7729 esac
7730
7731 # Transform an extracted symbol line into a proper C declaration.
7732 # Some systems (esp. on ia64) link data and code symbols differently,
7733 # so use this general approach.
7734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7735
7736 # Transform an extracted symbol line into symbol name and symbol address
7737 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7738 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'"
7739
7740 # Handle CRLF in mingw tool chain
7741 opt_cr=
7742 case $build_os in
7743 mingw*)
7744 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7745 ;;
7746 esac
7747
7748 # Try without a prefix underscore, then with it.
7749 for ac_symprfx in "" "_"; do
7750
7751 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7752 symxfrm="\\1 $ac_symprfx\\2 \\2"
7753
7754 # Write the raw and C identifiers.
7755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7756 # Fake it for dumpbin and say T for any non-static function
7757 # and D for any global variable.
7758 # Also find C++ and __fastcall symbols from MSVC++,
7759 # which start with @ or ?.
7760 lt_cv_sys_global_symbol_pipe="$AWK '"\
7761 " {last_section=section; section=\$ 3};"\
7762 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7763 " \$ 0!~/External *\|/{next};"\
7764 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7765 " {if(hide[section]) next};"\
7766 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7767 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7768 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7769 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7770 " ' prfx=^$ac_symprfx"
7771 else
7772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7773 fi
7774
7775 # Check to see that the pipe works correctly.
7776 pipe_works=no
7777
7778 rm -f conftest*
7779 cat > conftest.$ac_ext <<_LT_EOF
7780 #ifdef __cplusplus
7781 extern "C" {
7782 #endif
7783 char nm_test_var;
7784 void nm_test_func(void);
7785 void nm_test_func(void){}
7786 #ifdef __cplusplus
7787 }
7788 #endif
7789 int main(){nm_test_var='a';nm_test_func();return(0);}
7790 _LT_EOF
7791
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 # Now try to grab the symbols.
7798 nlist=conftest.nm
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7800 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; } && test -s "$nlist"; then
7804 # Try sorting and uniquifying the output.
7805 if sort "$nlist" | uniq > "$nlist"T; then
7806 mv -f "$nlist"T "$nlist"
7807 else
7808 rm -f "$nlist"T
7809 fi
7810
7811 # Make sure that we snagged all the symbols we need.
7812 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7813 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7814 cat <<_LT_EOF > conftest.$ac_ext
7815 #ifdef __cplusplus
7816 extern "C" {
7817 #endif
7818
7819 _LT_EOF
7820 # Now generate the symbol file.
7821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7822
7823 cat <<_LT_EOF >> conftest.$ac_ext
7824
7825 /* The mapping between symbol names and symbols. */
7826 const struct {
7827 const char *name;
7828 void *address;
7829 }
7830 lt__PROGRAM__LTX_preloaded_symbols[] =
7831 {
7832 { "@PROGRAM@", (void *) 0 },
7833 _LT_EOF
7834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7835 cat <<\_LT_EOF >> conftest.$ac_ext
7836 {0, (void *) 0}
7837 };
7838
7839 /* This works around a problem in FreeBSD linker */
7840 #ifdef FREEBSD_WORKAROUND
7841 static const void *lt_preloaded_setup() {
7842 return lt__PROGRAM__LTX_preloaded_symbols;
7843 }
7844 #endif
7845
7846 #ifdef __cplusplus
7847 }
7848 #endif
7849 _LT_EOF
7850 # Now try linking the two files.
7851 mv conftest.$ac_objext conftstm.$ac_objext
7852 lt_save_LIBS="$LIBS"
7853 lt_save_CFLAGS="$CFLAGS"
7854 LIBS="conftstm.$ac_objext"
7855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7857 (eval $ac_link) 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7861 pipe_works=yes
7862 fi
7863 LIBS="$lt_save_LIBS"
7864 CFLAGS="$lt_save_CFLAGS"
7865 else
7866 echo "cannot find nm_test_func in $nlist" >&5
7867 fi
7868 else
7869 echo "cannot find nm_test_var in $nlist" >&5
7870 fi
7871 else
7872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7873 fi
7874 else
7875 echo "$progname: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7877 fi
7878 rm -rf conftest* conftst*
7879
7880 # Do not use the global_symbol_pipe unless it works.
7881 if test "$pipe_works" = yes; then
7882 break
7883 else
7884 lt_cv_sys_global_symbol_pipe=
7885 fi
7886 done
7887
7888 fi
7889
7890 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891 lt_cv_sys_global_symbol_to_cdecl=
7892 fi
7893 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7895 $as_echo "failed" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7898 $as_echo "ok" >&6; }
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 # Check whether --enable-libtool-lock was given.
7923 if test "${enable_libtool_lock+set}" = set; then :
7924 enableval=$enable_libtool_lock;
7925 fi
7926
7927 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7928
7929 # Some flags need to be propagated to the compiler or linker for good
7930 # libtool support.
7931 case $host in
7932 ia64-*-hpux*)
7933 # Find out which ABI we are using.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.$ac_objext` in
7941 *ELF-32*)
7942 HPUX_IA64_MODE="32"
7943 ;;
7944 *ELF-64*)
7945 HPUX_IA64_MODE="64"
7946 ;;
7947 esac
7948 fi
7949 rm -rf conftest*
7950 ;;
7951 *-*-irix6*)
7952 # Find out which ABI we are using.
7953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7959 if test "$lt_cv_prog_gnu_ld" = yes; then
7960 case `/usr/bin/file conftest.$ac_objext` in
7961 *32-bit*)
7962 LD="${LD-ld} -melf32bsmip"
7963 ;;
7964 *N32*)
7965 LD="${LD-ld} -melf32bmipn32"
7966 ;;
7967 *64-bit*)
7968 LD="${LD-ld} -melf64bmip"
7969 ;;
7970 esac
7971 else
7972 case `/usr/bin/file conftest.$ac_objext` in
7973 *32-bit*)
7974 LD="${LD-ld} -32"
7975 ;;
7976 *N32*)
7977 LD="${LD-ld} -n32"
7978 ;;
7979 *64-bit*)
7980 LD="${LD-ld} -64"
7981 ;;
7982 esac
7983 fi
7984 fi
7985 rm -rf conftest*
7986 ;;
7987
7988 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7989 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7990 # Find out which ABI we are using.
7991 echo 'int i;' > conftest.$ac_ext
7992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7993 (eval $ac_compile) 2>&5
7994 ac_status=$?
7995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996 test $ac_status = 0; }; then
7997 case `/usr/bin/file conftest.o` in
7998 *32-bit*)
7999 case $host in
8000 x86_64-*kfreebsd*-gnu)
8001 LD="${LD-ld} -m elf_i386_fbsd"
8002 ;;
8003 x86_64-*linux*)
8004 case `/usr/bin/file conftest.o` in
8005 *x86-64*)
8006 LD="${LD-ld} -m elf32_x86_64"
8007 ;;
8008 *)
8009 LD="${LD-ld} -m elf_i386"
8010 ;;
8011 esac
8012 ;;
8013 powerpc64le-*linux*)
8014 LD="${LD-ld} -m elf32lppclinux"
8015 ;;
8016 powerpc64-*linux*)
8017 LD="${LD-ld} -m elf32ppclinux"
8018 ;;
8019 s390x-*linux*)
8020 LD="${LD-ld} -m elf_s390"
8021 ;;
8022 sparc64-*linux*)
8023 LD="${LD-ld} -m elf32_sparc"
8024 ;;
8025 esac
8026 ;;
8027 *64-bit*)
8028 case $host in
8029 x86_64-*kfreebsd*-gnu)
8030 LD="${LD-ld} -m elf_x86_64_fbsd"
8031 ;;
8032 x86_64-*linux*)
8033 LD="${LD-ld} -m elf_x86_64"
8034 ;;
8035 powerpcle-*linux*)
8036 LD="${LD-ld} -m elf64lppc"
8037 ;;
8038 powerpc-*linux*)
8039 LD="${LD-ld} -m elf64ppc"
8040 ;;
8041 s390*-*linux*|s390*-*tpf*)
8042 LD="${LD-ld} -m elf64_s390"
8043 ;;
8044 sparc*-*linux*)
8045 LD="${LD-ld} -m elf64_sparc"
8046 ;;
8047 esac
8048 ;;
8049 esac
8050 fi
8051 rm -rf conftest*
8052 ;;
8053
8054 *-*-sco3.2v5*)
8055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8056 SAVE_CFLAGS="$CFLAGS"
8057 CFLAGS="$CFLAGS -belf"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8060 if ${lt_cv_cc_needs_belf+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071
8072 int
8073 main ()
8074 {
8075
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_cc_needs_belf=yes
8082 else
8083 lt_cv_cc_needs_belf=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 ac_ext=c
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8095 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8098 CFLAGS="$SAVE_CFLAGS"
8099 fi
8100 ;;
8101 sparc*-*solaris*)
8102 # Find out which ABI we are using.
8103 echo 'int i;' > conftest.$ac_ext
8104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105 (eval $ac_compile) 2>&5
8106 ac_status=$?
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 case `/usr/bin/file conftest.o` in
8110 *64-bit*)
8111 case $lt_cv_prog_gnu_ld in
8112 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8113 *)
8114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8115 LD="${LD-ld} -64"
8116 fi
8117 ;;
8118 esac
8119 ;;
8120 esac
8121 fi
8122 rm -rf conftest*
8123 ;;
8124 esac
8125
8126 need_locks="$enable_libtool_lock"
8127
8128
8129 case $host_os in
8130 rhapsody* | darwin*)
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$DSYMUTIL"; then
8140 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8160 if test -n "$DSYMUTIL"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8162 $as_echo "$DSYMUTIL" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 fi
8170 if test -z "$ac_cv_prog_DSYMUTIL"; then
8171 ac_ct_DSYMUTIL=$DSYMUTIL
8172 # Extract the first word of "dsymutil", so it can be a program name with args.
8173 set dummy dsymutil; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$ac_ct_DSYMUTIL"; then
8180 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193 done
8194 done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8200 if test -n "$ac_ct_DSYMUTIL"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8202 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208 if test "x$ac_ct_DSYMUTIL" = x; then
8209 DSYMUTIL=":"
8210 else
8211 case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8216 esac
8217 DSYMUTIL=$ac_ct_DSYMUTIL
8218 fi
8219 else
8220 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8221 fi
8222
8223 if test -n "$ac_tool_prefix"; then
8224 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8225 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_NMEDIT+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 if test -n "$NMEDIT"; then
8232 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 NMEDIT=$ac_cv_prog_NMEDIT
8252 if test -n "$NMEDIT"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8254 $as_echo "$NMEDIT" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_NMEDIT"; then
8263 ac_ct_NMEDIT=$NMEDIT
8264 # Extract the first word of "nmedit", so it can be a program name with args.
8265 set dummy nmedit; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$ac_ct_NMEDIT"; then
8272 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8292 if test -n "$ac_ct_NMEDIT"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8294 $as_echo "$ac_ct_NMEDIT" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300 if test "x$ac_ct_NMEDIT" = x; then
8301 NMEDIT=":"
8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304 yes:)
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307 ac_tool_warned=yes ;;
8308 esac
8309 NMEDIT=$ac_ct_NMEDIT
8310 fi
8311 else
8312 NMEDIT="$ac_cv_prog_NMEDIT"
8313 fi
8314
8315 if test -n "$ac_tool_prefix"; then
8316 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8317 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_LIPO+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi
8342 fi
8343 LIPO=$ac_cv_prog_LIPO
8344 if test -n "$LIPO"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8346 $as_echo "$LIPO" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352
8353 fi
8354 if test -z "$ac_cv_prog_LIPO"; then
8355 ac_ct_LIPO=$LIPO
8356 # Extract the first word of "lipo", so it can be a program name with args.
8357 set dummy lipo; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 if test -n "$ac_ct_LIPO"; then
8364 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_ac_ct_LIPO="lipo"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8384 if test -n "$ac_ct_LIPO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8386 $as_echo "$ac_ct_LIPO" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392 if test "x$ac_ct_LIPO" = x; then
8393 LIPO=":"
8394 else
8395 case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8400 esac
8401 LIPO=$ac_ct_LIPO
8402 fi
8403 else
8404 LIPO="$ac_cv_prog_LIPO"
8405 fi
8406
8407 if test -n "$ac_tool_prefix"; then
8408 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8409 set dummy ${ac_tool_prefix}otool; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_OTOOL+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$OTOOL"; then
8416 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429 done
8430 done
8431 IFS=$as_save_IFS
8432
8433 fi
8434 fi
8435 OTOOL=$ac_cv_prog_OTOOL
8436 if test -n "$OTOOL"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8438 $as_echo "$OTOOL" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444
8445 fi
8446 if test -z "$ac_cv_prog_OTOOL"; then
8447 ac_ct_OTOOL=$OTOOL
8448 # Extract the first word of "otool", so it can be a program name with args.
8449 set dummy otool; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$ac_ct_OTOOL"; then
8456 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_ac_ct_OTOOL="otool"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8476 if test -n "$ac_ct_OTOOL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8478 $as_echo "$ac_ct_OTOOL" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484 if test "x$ac_ct_OTOOL" = x; then
8485 OTOOL=":"
8486 else
8487 case $cross_compiling:$ac_tool_warned in
8488 yes:)
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491 ac_tool_warned=yes ;;
8492 esac
8493 OTOOL=$ac_ct_OTOOL
8494 fi
8495 else
8496 OTOOL="$ac_cv_prog_OTOOL"
8497 fi
8498
8499 if test -n "$ac_tool_prefix"; then
8500 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8501 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_OTOOL64+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test -n "$OTOOL64"; then
8508 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 OTOOL64=$ac_cv_prog_OTOOL64
8528 if test -n "$OTOOL64"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8530 $as_echo "$OTOOL64" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536
8537 fi
8538 if test -z "$ac_cv_prog_OTOOL64"; then
8539 ac_ct_OTOOL64=$OTOOL64
8540 # Extract the first word of "otool64", so it can be a program name with args.
8541 set dummy otool64; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$ac_ct_OTOOL64"; then
8548 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_ac_ct_OTOOL64="otool64"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi
8566 fi
8567 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8568 if test -n "$ac_ct_OTOOL64"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8570 $as_echo "$ac_ct_OTOOL64" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576 if test "x$ac_ct_OTOOL64" = x; then
8577 OTOOL64=":"
8578 else
8579 case $cross_compiling:$ac_tool_warned in
8580 yes:)
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583 ac_tool_warned=yes ;;
8584 esac
8585 OTOOL64=$ac_ct_OTOOL64
8586 fi
8587 else
8588 OTOOL64="$ac_cv_prog_OTOOL64"
8589 fi
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8618 $as_echo_n "checking for -single_module linker flag... " >&6; }
8619 if ${lt_cv_apple_cc_single_mod+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_apple_cc_single_mod=no
8623 if test -z "${LT_MULTI_MODULE}"; then
8624 # By default we will add the -single_module flag. You can override
8625 # by either setting the environment variable LT_MULTI_MODULE
8626 # non-empty at configure time, or by adding -multi_module to the
8627 # link flags.
8628 rm -rf libconftest.dylib*
8629 echo "int foo(void){return 1;}" > conftest.c
8630 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8631 -dynamiclib -Wl,-single_module conftest.c" >&5
8632 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8633 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8634 _lt_result=$?
8635 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8636 lt_cv_apple_cc_single_mod=yes
8637 else
8638 cat conftest.err >&5
8639 fi
8640 rm -rf libconftest.dylib*
8641 rm -f conftest.*
8642 fi
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8647 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8648 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 lt_cv_ld_exported_symbols_list=no
8652 save_LDFLAGS=$LDFLAGS
8653 echo "_main" > conftest.sym
8654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657
8658 int
8659 main ()
8660 {
8661
8662 ;
8663 return 0;
8664 }
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"; then :
8667 lt_cv_ld_exported_symbols_list=yes
8668 else
8669 lt_cv_ld_exported_symbols_list=no
8670 fi
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LDFLAGS="$save_LDFLAGS"
8674
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8677 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8679 $as_echo_n "checking for -force_load linker flag... " >&6; }
8680 if ${lt_cv_ld_force_load+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 lt_cv_ld_force_load=no
8684 cat > conftest.c << _LT_EOF
8685 int forced_loaded() { return 2;}
8686 _LT_EOF
8687 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8688 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8689 echo "$AR cru libconftest.a conftest.o" >&5
8690 $AR cru libconftest.a conftest.o 2>&5
8691 cat > conftest.c << _LT_EOF
8692 int main() { return 0;}
8693 _LT_EOF
8694 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8695 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8696 _lt_result=$?
8697 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8698 lt_cv_ld_force_load=yes
8699 else
8700 cat conftest.err >&5
8701 fi
8702 rm -f conftest.err libconftest.a conftest conftest.c
8703 rm -rf conftest.dSYM
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8707 $as_echo "$lt_cv_ld_force_load" >&6; }
8708 case $host_os in
8709 rhapsody* | darwin1.[012])
8710 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8711 darwin1.*)
8712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8713 darwin*) # darwin 5.x on
8714 # if running on 10.5 or later, the deployment target defaults
8715 # to the OS version, if on x86, and 10.4, the deployment
8716 # target defaults to 10.4. Don't you love it?
8717 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8718 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8720 10.[012][,.]*)
8721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8722 10.*)
8723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8724 esac
8725 ;;
8726 esac
8727 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8728 _lt_dar_single_mod='$single_module'
8729 fi
8730 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8731 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8732 else
8733 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8734 fi
8735 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8736 _lt_dsymutil='~$DSYMUTIL $lib || :'
8737 else
8738 _lt_dsymutil=
8739 fi
8740 ;;
8741 esac
8742
8743 for ac_header in dlfcn.h
8744 do :
8745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8746 "
8747 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_DLFCN_H 1
8750 _ACEOF
8751
8752 fi
8753
8754 done
8755
8756
8757
8758
8759
8760
8761 # Set options
8762
8763
8764
8765
8766 enable_win32_dll=no
8767
8768
8769 # Check whether --enable-shared was given.
8770 if test "${enable_shared+set}" = set; then :
8771 enableval=$enable_shared; p=${PACKAGE-default}
8772 case $enableval in
8773 yes) enable_shared=yes ;;
8774 no) enable_shared=no ;;
8775 *)
8776 enable_shared=no
8777 # Look at the argument we got. We use all the common list separators.
8778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8779 for pkg in $enableval; do
8780 IFS="$lt_save_ifs"
8781 if test "X$pkg" = "X$p"; then
8782 enable_shared=yes
8783 fi
8784 done
8785 IFS="$lt_save_ifs"
8786 ;;
8787 esac
8788 else
8789 enable_shared=yes
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 # Check whether --enable-static was given.
8801 if test "${enable_static+set}" = set; then :
8802 enableval=$enable_static; p=${PACKAGE-default}
8803 case $enableval in
8804 yes) enable_static=yes ;;
8805 no) enable_static=no ;;
8806 *)
8807 enable_static=no
8808 # Look at the argument we got. We use all the common list separators.
8809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8810 for pkg in $enableval; do
8811 IFS="$lt_save_ifs"
8812 if test "X$pkg" = "X$p"; then
8813 enable_static=yes
8814 fi
8815 done
8816 IFS="$lt_save_ifs"
8817 ;;
8818 esac
8819 else
8820 enable_static=yes
8821 fi
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832 # Check whether --with-pic was given.
8833 if test "${with_pic+set}" = set; then :
8834 withval=$with_pic; pic_mode="$withval"
8835 else
8836 pic_mode=default
8837 fi
8838
8839
8840 test -z "$pic_mode" && pic_mode=default
8841
8842
8843
8844
8845
8846
8847
8848 # Check whether --enable-fast-install was given.
8849 if test "${enable_fast_install+set}" = set; then :
8850 enableval=$enable_fast_install; p=${PACKAGE-default}
8851 case $enableval in
8852 yes) enable_fast_install=yes ;;
8853 no) enable_fast_install=no ;;
8854 *)
8855 enable_fast_install=no
8856 # Look at the argument we got. We use all the common list separators.
8857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8858 for pkg in $enableval; do
8859 IFS="$lt_save_ifs"
8860 if test "X$pkg" = "X$p"; then
8861 enable_fast_install=yes
8862 fi
8863 done
8864 IFS="$lt_save_ifs"
8865 ;;
8866 esac
8867 else
8868 enable_fast_install=yes
8869 fi
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881 # This can be used to rebuild libtool when needed
8882 LIBTOOL_DEPS="$ltmain"
8883
8884 # Always use our own libtool.
8885 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 test -z "$LN_S" && LN_S="ln -s"
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 if test -n "${ZSH_VERSION+set}" ; then
8928 setopt NO_GLOB_SUBST
8929 fi
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8932 $as_echo_n "checking for objdir... " >&6; }
8933 if ${lt_cv_objdir+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 rm -f .libs 2>/dev/null
8937 mkdir .libs 2>/dev/null
8938 if test -d .libs; then
8939 lt_cv_objdir=.libs
8940 else
8941 # MS-DOS does not allow filenames that begin with a dot.
8942 lt_cv_objdir=_libs
8943 fi
8944 rmdir .libs 2>/dev/null
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8947 $as_echo "$lt_cv_objdir" >&6; }
8948 objdir=$lt_cv_objdir
8949
8950
8951
8952
8953
8954 cat >>confdefs.h <<_ACEOF
8955 #define LT_OBJDIR "$lt_cv_objdir/"
8956 _ACEOF
8957
8958
8959
8960
8961 case $host_os in
8962 aix3*)
8963 # AIX sometimes has problems with the GCC collect2 program. For some
8964 # reason, if we set the COLLECT_NAMES environment variable, the problems
8965 # vanish in a puff of smoke.
8966 if test "X${COLLECT_NAMES+set}" != Xset; then
8967 COLLECT_NAMES=
8968 export COLLECT_NAMES
8969 fi
8970 ;;
8971 esac
8972
8973 # Global variables:
8974 ofile=libtool
8975 can_build_shared=yes
8976
8977 # All known linkers require a `.a' archive for static linking (except MSVC,
8978 # which needs '.lib').
8979 libext=a
8980
8981 with_gnu_ld="$lt_cv_prog_gnu_ld"
8982
8983 old_CC="$CC"
8984 old_CFLAGS="$CFLAGS"
8985
8986 # Set sane defaults for various variables
8987 test -z "$CC" && CC=cc
8988 test -z "$LTCC" && LTCC=$CC
8989 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8990 test -z "$LD" && LD=ld
8991 test -z "$ac_objext" && ac_objext=o
8992
8993 for cc_temp in $compiler""; do
8994 case $cc_temp in
8995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8997 \-*) ;;
8998 *) break;;
8999 esac
9000 done
9001 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9002
9003
9004 # Only perform the check for file, if the check method requires it
9005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9006 case $deplibs_check_method in
9007 file_magic*)
9008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9010 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9011 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 case $MAGIC_CMD in
9015 [\\/*] | ?:[\\/]*)
9016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9017 ;;
9018 *)
9019 lt_save_MAGIC_CMD="$MAGIC_CMD"
9020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9022 for ac_dir in $ac_dummy; do
9023 IFS="$lt_save_ifs"
9024 test -z "$ac_dir" && ac_dir=.
9025 if test -f $ac_dir/${ac_tool_prefix}file; then
9026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9027 if test -n "$file_magic_test_file"; then
9028 case $deplibs_check_method in
9029 "file_magic "*)
9030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9033 $EGREP "$file_magic_regex" > /dev/null; then
9034 :
9035 else
9036 cat <<_LT_EOF 1>&2
9037
9038 *** Warning: the command libtool uses to detect shared libraries,
9039 *** $file_magic_cmd, produces output that libtool cannot recognize.
9040 *** The result is that libtool may fail to recognize shared libraries
9041 *** as such. This will affect the creation of libtool libraries that
9042 *** depend on shared libraries, but programs linked with such libtool
9043 *** libraries will work regardless of this problem. Nevertheless, you
9044 *** may want to report the problem to your system manager and/or to
9045 *** bug-libtool@gnu.org
9046
9047 _LT_EOF
9048 fi ;;
9049 esac
9050 fi
9051 break
9052 fi
9053 done
9054 IFS="$lt_save_ifs"
9055 MAGIC_CMD="$lt_save_MAGIC_CMD"
9056 ;;
9057 esac
9058 fi
9059
9060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061 if test -n "$MAGIC_CMD"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9063 $as_echo "$MAGIC_CMD" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 fi
9068
9069
9070
9071
9072
9073 if test -z "$lt_cv_path_MAGIC_CMD"; then
9074 if test -n "$ac_tool_prefix"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9076 $as_echo_n "checking for file... " >&6; }
9077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 case $MAGIC_CMD in
9081 [\\/*] | ?:[\\/]*)
9082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 lt_save_MAGIC_CMD="$MAGIC_CMD"
9086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088 for ac_dir in $ac_dummy; do
9089 IFS="$lt_save_ifs"
9090 test -z "$ac_dir" && ac_dir=.
9091 if test -f $ac_dir/file; then
9092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9093 if test -n "$file_magic_test_file"; then
9094 case $deplibs_check_method in
9095 "file_magic "*)
9096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099 $EGREP "$file_magic_regex" > /dev/null; then
9100 :
9101 else
9102 cat <<_LT_EOF 1>&2
9103
9104 *** Warning: the command libtool uses to detect shared libraries,
9105 *** $file_magic_cmd, produces output that libtool cannot recognize.
9106 *** The result is that libtool may fail to recognize shared libraries
9107 *** as such. This will affect the creation of libtool libraries that
9108 *** depend on shared libraries, but programs linked with such libtool
9109 *** libraries will work regardless of this problem. Nevertheless, you
9110 *** may want to report the problem to your system manager and/or to
9111 *** bug-libtool@gnu.org
9112
9113 _LT_EOF
9114 fi ;;
9115 esac
9116 fi
9117 break
9118 fi
9119 done
9120 IFS="$lt_save_ifs"
9121 MAGIC_CMD="$lt_save_MAGIC_CMD"
9122 ;;
9123 esac
9124 fi
9125
9126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9127 if test -n "$MAGIC_CMD"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129 $as_echo "$MAGIC_CMD" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135
9136 else
9137 MAGIC_CMD=:
9138 fi
9139 fi
9140
9141 fi
9142 ;;
9143 esac
9144
9145 # Use C for the default configuration in the libtool script
9146
9147 lt_save_CC="$CC"
9148 ac_ext=c
9149 ac_cpp='$CPP $CPPFLAGS'
9150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9153
9154
9155 # Source file extension for C test sources.
9156 ac_ext=c
9157
9158 # Object file extension for compiled C test sources.
9159 objext=o
9160 objext=$objext
9161
9162 # Code to be used in simple compile tests
9163 lt_simple_compile_test_code="int some_variable = 0;"
9164
9165 # Code to be used in simple link tests
9166 lt_simple_link_test_code='int main(){return(0);}'
9167
9168
9169
9170
9171
9172
9173
9174 # If no C compiler was specified, use CC.
9175 LTCC=${LTCC-"$CC"}
9176
9177 # If no C compiler flags were specified, use CFLAGS.
9178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9179
9180 # Allow CC to be a program name with arguments.
9181 compiler=$CC
9182
9183 # Save the default compiler, since it gets overwritten when the other
9184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9185 compiler_DEFAULT=$CC
9186
9187 # save warnings/boilerplate of simple test code
9188 ac_outfile=conftest.$ac_objext
9189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9191 _lt_compiler_boilerplate=`cat conftest.err`
9192 $RM conftest*
9193
9194 ac_outfile=conftest.$ac_objext
9195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9197 _lt_linker_boilerplate=`cat conftest.err`
9198 $RM -r conftest*
9199
9200
9201 ## CAVEAT EMPTOR:
9202 ## There is no encapsulation within the following macros, do not change
9203 ## the running order or otherwise move them around unless you know exactly
9204 ## what you are doing...
9205 if test -n "$compiler"; then
9206
9207 lt_prog_compiler_no_builtin_flag=
9208
9209 if test "$GCC" = yes; then
9210 case $cc_basename in
9211 nvcc*)
9212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9213 *)
9214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9215 esac
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9218 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9219 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 lt_cv_prog_compiler_rtti_exceptions=no
9223 ac_outfile=conftest.$ac_objext
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 lt_compiler_flag="-fno-rtti -fno-exceptions"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 # The option is referenced via a variable to avoid confusing sed.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>conftest.err)
9237 ac_status=$?
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s "$ac_outfile"; then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings other than the usual output.
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_rtti_exceptions=yes
9247 fi
9248 fi
9249 $RM conftest*
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9253 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9254
9255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9256 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9257 else
9258 :
9259 fi
9260
9261 fi
9262
9263
9264
9265
9266
9267
9268 lt_prog_compiler_wl=
9269 lt_prog_compiler_pic=
9270 lt_prog_compiler_static=
9271
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9273 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9274
9275 if test "$GCC" = yes; then
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_static='-static'
9278
9279 case $host_os in
9280 aix*)
9281 # All AIX code is PIC.
9282 if test "$host_cpu" = ia64; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9285 fi
9286 lt_prog_compiler_pic='-fPIC'
9287 ;;
9288
9289 amigaos*)
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 lt_prog_compiler_pic='-fPIC'
9294 ;;
9295 m68k)
9296 # FIXME: we need at least 68020 code to build shared libraries, but
9297 # adding the `-m68020' flag to GCC prevents building anything better,
9298 # like `-m68040'.
9299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9300 ;;
9301 esac
9302 ;;
9303
9304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9305 # PIC is the default for these OSes.
9306 ;;
9307
9308 mingw* | cygwin* | pw32* | os2* | cegcc*)
9309 # This hack is so that the source file can tell whether it is being
9310 # built for inclusion in a dll (and should export symbols for example).
9311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9312 # (--disable-auto-import) libraries
9313 lt_prog_compiler_pic='-DDLL_EXPORT'
9314 ;;
9315
9316 darwin* | rhapsody*)
9317 # PIC is the default on this platform
9318 # Common symbols not allowed in MH_DYLIB files
9319 lt_prog_compiler_pic='-fno-common'
9320 ;;
9321
9322 haiku*)
9323 # PIC is the default for Haiku.
9324 # The "-static" flag exists, but is broken.
9325 lt_prog_compiler_static=
9326 ;;
9327
9328 hpux*)
9329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9331 # sets the default TLS model and affects inlining.
9332 case $host_cpu in
9333 hppa*64*)
9334 # +Z the default
9335 ;;
9336 *)
9337 lt_prog_compiler_pic='-fPIC'
9338 ;;
9339 esac
9340 ;;
9341
9342 interix[3-9]*)
9343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9344 # Instead, we relocate shared libraries at runtime.
9345 ;;
9346
9347 msdosdjgpp*)
9348 # Just because we use GCC doesn't mean we suddenly get shared libraries
9349 # on systems that don't support them.
9350 lt_prog_compiler_can_build_shared=no
9351 enable_shared=no
9352 ;;
9353
9354 *nto* | *qnx*)
9355 # QNX uses GNU C++, but need to define -shared option too, otherwise
9356 # it will coredump.
9357 lt_prog_compiler_pic='-fPIC -shared'
9358 ;;
9359
9360 sysv4*MP*)
9361 if test -d /usr/nec; then
9362 lt_prog_compiler_pic=-Kconform_pic
9363 fi
9364 ;;
9365
9366 *)
9367 lt_prog_compiler_pic='-fPIC'
9368 ;;
9369 esac
9370
9371 case $cc_basename in
9372 nvcc*) # Cuda Compiler Driver 2.2
9373 lt_prog_compiler_wl='-Xlinker '
9374 lt_prog_compiler_pic='-Xcompiler -fPIC'
9375 ;;
9376 esac
9377 else
9378 # PORTME Check for flag to pass linker flags through the system compiler.
9379 case $host_os in
9380 aix*)
9381 lt_prog_compiler_wl='-Wl,'
9382 if test "$host_cpu" = ia64; then
9383 # AIX 5 now supports IA64 processor
9384 lt_prog_compiler_static='-Bstatic'
9385 else
9386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9387 fi
9388 ;;
9389
9390 mingw* | cygwin* | pw32* | os2* | cegcc*)
9391 # This hack is so that the source file can tell whether it is being
9392 # built for inclusion in a dll (and should export symbols for example).
9393 lt_prog_compiler_pic='-DDLL_EXPORT'
9394 ;;
9395
9396 hpux9* | hpux10* | hpux11*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9399 # not for PA HP-UX.
9400 case $host_cpu in
9401 hppa*64*|ia64*)
9402 # +Z the default
9403 ;;
9404 *)
9405 lt_prog_compiler_pic='+Z'
9406 ;;
9407 esac
9408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9409 lt_prog_compiler_static='${wl}-a ${wl}archive'
9410 ;;
9411
9412 irix5* | irix6* | nonstopux*)
9413 lt_prog_compiler_wl='-Wl,'
9414 # PIC (with -KPIC) is the default.
9415 lt_prog_compiler_static='-non_shared'
9416 ;;
9417
9418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9419 case $cc_basename in
9420 # old Intel for x86_64 which still supported -KPIC.
9421 ecc*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-static'
9425 ;;
9426 # icc used to be incompatible with GCC.
9427 # ICC 10 doesn't accept -KPIC any more.
9428 icc* | ifort*)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9432 ;;
9433 # Lahey Fortran 8.1.
9434 lf95*)
9435 lt_prog_compiler_wl='-Wl,'
9436 lt_prog_compiler_pic='--shared'
9437 lt_prog_compiler_static='--static'
9438 ;;
9439 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9440 # Portland Group compilers (*not* the Pentium gcc compiler,
9441 # which looks to be a dead project)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_pic='-fpic'
9444 lt_prog_compiler_static='-Bstatic'
9445 ;;
9446 ccc*)
9447 lt_prog_compiler_wl='-Wl,'
9448 # All Alpha code is PIC.
9449 lt_prog_compiler_static='-non_shared'
9450 ;;
9451 xl* | bgxl* | bgf* | mpixl*)
9452 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_pic='-qpic'
9455 lt_prog_compiler_static='-qstaticlink'
9456 ;;
9457 *)
9458 case `$CC -V 2>&1 | sed 5q` in
9459 *Sun\ F* | *Sun*Fortran*)
9460 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 lt_prog_compiler_wl=''
9464 ;;
9465 *Sun\ C*)
9466 # Sun C 5.9
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-Bstatic'
9469 lt_prog_compiler_wl='-Wl,'
9470 ;;
9471 esac
9472 ;;
9473 esac
9474 ;;
9475
9476 newsos6)
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-Bstatic'
9479 ;;
9480
9481 *nto* | *qnx*)
9482 # QNX uses GNU C++, but need to define -shared option too, otherwise
9483 # it will coredump.
9484 lt_prog_compiler_pic='-fPIC -shared'
9485 ;;
9486
9487 osf3* | osf4* | osf5*)
9488 lt_prog_compiler_wl='-Wl,'
9489 # All OSF/1 code is PIC.
9490 lt_prog_compiler_static='-non_shared'
9491 ;;
9492
9493 rdos*)
9494 lt_prog_compiler_static='-non_shared'
9495 ;;
9496
9497 solaris*)
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 case $cc_basename in
9501 f77* | f90* | f95*)
9502 lt_prog_compiler_wl='-Qoption ld ';;
9503 *)
9504 lt_prog_compiler_wl='-Wl,';;
9505 esac
9506 ;;
9507
9508 sunos4*)
9509 lt_prog_compiler_wl='-Qoption ld '
9510 lt_prog_compiler_pic='-PIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 ;;
9513
9514 sysv4 | sysv4.2uw2* | sysv4.3*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-KPIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9519
9520 sysv4*MP*)
9521 if test -d /usr/nec ;then
9522 lt_prog_compiler_pic='-Kconform_pic'
9523 lt_prog_compiler_static='-Bstatic'
9524 fi
9525 ;;
9526
9527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-KPIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 ;;
9532
9533 unicos*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_can_build_shared=no
9536 ;;
9537
9538 uts4*)
9539 lt_prog_compiler_pic='-pic'
9540 lt_prog_compiler_static='-Bstatic'
9541 ;;
9542
9543 *)
9544 lt_prog_compiler_can_build_shared=no
9545 ;;
9546 esac
9547 fi
9548
9549 case $host_os in
9550 # For platforms which do not support PIC, -DPIC is meaningless:
9551 *djgpp*)
9552 lt_prog_compiler_pic=
9553 ;;
9554 *)
9555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9556 ;;
9557 esac
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9559 $as_echo "$lt_prog_compiler_pic" >&6; }
9560
9561
9562
9563
9564
9565
9566 #
9567 # Check to make sure the PIC flag actually works.
9568 #
9569 if test -n "$lt_prog_compiler_pic"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9571 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9572 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 lt_cv_prog_compiler_pic_works=no
9576 ac_outfile=conftest.$ac_objext
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 # The option is referenced via a variable to avoid confusing sed.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>conftest.err)
9590 ac_status=$?
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s "$ac_outfile"; then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings other than the usual output.
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_pic_works=yes
9600 fi
9601 fi
9602 $RM conftest*
9603
9604 fi
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9606 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9607
9608 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9609 case $lt_prog_compiler_pic in
9610 "" | " "*) ;;
9611 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9612 esac
9613 else
9614 lt_prog_compiler_pic=
9615 lt_prog_compiler_can_build_shared=no
9616 fi
9617
9618 fi
9619
9620
9621
9622
9623
9624
9625 #
9626 # Check to make sure the static flag actually works.
9627 #
9628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9631 if ${lt_cv_prog_compiler_static_works+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 lt_cv_prog_compiler_static_works=no
9635 save_LDFLAGS="$LDFLAGS"
9636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9639 # The linker can only warn and ignore the option if not recognized
9640 # So say no if there are warnings
9641 if test -s conftest.err; then
9642 # Append any errors to the config.log.
9643 cat conftest.err 1>&5
9644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9646 if diff conftest.exp conftest.er2 >/dev/null; then
9647 lt_cv_prog_compiler_static_works=yes
9648 fi
9649 else
9650 lt_cv_prog_compiler_static_works=yes
9651 fi
9652 fi
9653 $RM -r conftest*
9654 LDFLAGS="$save_LDFLAGS"
9655
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9658 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9659
9660 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9661 :
9662 else
9663 lt_prog_compiler_static=
9664 fi
9665
9666
9667
9668
9669
9670
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9674 if ${lt_cv_prog_compiler_c_o+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 lt_cv_prog_compiler_c_o=no
9678 $RM -r conftest 2>/dev/null
9679 mkdir conftest
9680 cd conftest
9681 mkdir out
9682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683
9684 lt_compiler_flag="-o out/conftest2.$ac_objext"
9685 # Insert the option either (1) after the last *FLAGS variable, or
9686 # (2) before a word containing "conftest.", or (3) at the end.
9687 # Note that $ac_compile itself does not contain backslashes and begins
9688 # with a dollar sign (not a hyphen), so the echo should work correctly.
9689 lt_compile=`echo "$ac_compile" | $SED \
9690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692 -e 's:$: $lt_compiler_flag:'`
9693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694 (eval "$lt_compile" 2>out/conftest.err)
9695 ac_status=$?
9696 cat out/conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9699 then
9700 # The compiler can only warn and ignore the option if not recognized
9701 # So say no if there are warnings
9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9705 lt_cv_prog_compiler_c_o=yes
9706 fi
9707 fi
9708 chmod u+w . 2>&5
9709 $RM conftest*
9710 # SGI C++ compiler will create directory out/ii_files/ for
9711 # template instantiation
9712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9713 $RM out/* && rmdir out
9714 cd ..
9715 $RM -r conftest
9716 $RM conftest*
9717
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9721
9722
9723
9724
9725
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9729 if ${lt_cv_prog_compiler_c_o+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 lt_cv_prog_compiler_c_o=no
9733 $RM -r conftest 2>/dev/null
9734 mkdir conftest
9735 cd conftest
9736 mkdir out
9737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9738
9739 lt_compiler_flag="-o out/conftest2.$ac_objext"
9740 # Insert the option either (1) after the last *FLAGS variable, or
9741 # (2) before a word containing "conftest.", or (3) at the end.
9742 # Note that $ac_compile itself does not contain backslashes and begins
9743 # with a dollar sign (not a hyphen), so the echo should work correctly.
9744 lt_compile=`echo "$ac_compile" | $SED \
9745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747 -e 's:$: $lt_compiler_flag:'`
9748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749 (eval "$lt_compile" 2>out/conftest.err)
9750 ac_status=$?
9751 cat out/conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9754 then
9755 # The compiler can only warn and ignore the option if not recognized
9756 # So say no if there are warnings
9757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler_c_o=yes
9761 fi
9762 fi
9763 chmod u+w . 2>&5
9764 $RM conftest*
9765 # SGI C++ compiler will create directory out/ii_files/ for
9766 # template instantiation
9767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9768 $RM out/* && rmdir out
9769 cd ..
9770 $RM -r conftest
9771 $RM conftest*
9772
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9776
9777
9778
9779
9780 hard_links="nottested"
9781 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9782 # do not overwrite the value of need_locks provided by the user
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9784 $as_echo_n "checking if we can lock with hard links... " >&6; }
9785 hard_links=yes
9786 $RM conftest*
9787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788 touch conftest.a
9789 ln conftest.a conftest.b 2>&5 || hard_links=no
9790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9792 $as_echo "$hard_links" >&6; }
9793 if test "$hard_links" = no; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9795 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9796 need_locks=warn
9797 fi
9798 else
9799 need_locks=no
9800 fi
9801
9802
9803
9804
9805
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9808 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9809
9810 runpath_var=
9811 allow_undefined_flag=
9812 always_export_symbols=no
9813 archive_cmds=
9814 archive_expsym_cmds=
9815 compiler_needs_object=no
9816 enable_shared_with_static_runtimes=no
9817 export_dynamic_flag_spec=
9818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9819 hardcode_automatic=no
9820 hardcode_direct=no
9821 hardcode_direct_absolute=no
9822 hardcode_libdir_flag_spec=
9823 hardcode_libdir_flag_spec_ld=
9824 hardcode_libdir_separator=
9825 hardcode_minus_L=no
9826 hardcode_shlibpath_var=unsupported
9827 inherit_rpath=no
9828 link_all_deplibs=unknown
9829 module_cmds=
9830 module_expsym_cmds=
9831 old_archive_from_new_cmds=
9832 old_archive_from_expsyms_cmds=
9833 thread_safe_flag_spec=
9834 whole_archive_flag_spec=
9835 # include_expsyms should be a list of space-separated symbols to be *always*
9836 # included in the symbol list
9837 include_expsyms=
9838 # exclude_expsyms can be an extended regexp of symbols to exclude
9839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9841 # as well as any symbol that contains `d'.
9842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9844 # platforms (ab)use it in PIC code, but their linkers get confused if
9845 # the symbol is explicitly referenced. Since portable code cannot
9846 # rely on this symbol name, it's probably fine to never include it in
9847 # preloaded symbol tables.
9848 # Exclude shared library initialization/finalization symbols.
9849 extract_expsyms_cmds=
9850
9851 case $host_os in
9852 cygwin* | mingw* | pw32* | cegcc*)
9853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9854 # When not using gcc, we currently assume that we are using
9855 # Microsoft Visual C++.
9856 if test "$GCC" != yes; then
9857 with_gnu_ld=no
9858 fi
9859 ;;
9860 interix*)
9861 # we just hope/assume this is gcc and not c89 (= MSVC++)
9862 with_gnu_ld=yes
9863 ;;
9864 openbsd*)
9865 with_gnu_ld=no
9866 ;;
9867 esac
9868
9869 ld_shlibs=yes
9870
9871 # On some targets, GNU ld is compatible enough with the native linker
9872 # that we're better off using the native interface for both.
9873 lt_use_gnu_ld_interface=no
9874 if test "$with_gnu_ld" = yes; then
9875 case $host_os in
9876 aix*)
9877 # The AIX port of GNU ld has always aspired to compatibility
9878 # with the native linker. However, as the warning in the GNU ld
9879 # block says, versions before 2.19.5* couldn't really create working
9880 # shared libraries, regardless of the interface used.
9881 case `$LD -v 2>&1` in
9882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9885 *)
9886 lt_use_gnu_ld_interface=yes
9887 ;;
9888 esac
9889 ;;
9890 *)
9891 lt_use_gnu_ld_interface=yes
9892 ;;
9893 esac
9894 fi
9895
9896 if test "$lt_use_gnu_ld_interface" = yes; then
9897 # If archive_cmds runs LD, not CC, wlarc should be empty
9898 wlarc='${wl}'
9899
9900 # Set some defaults for GNU ld with shared library support. These
9901 # are reset later if shared libraries are not supported. Putting them
9902 # here allows them to be overridden if necessary.
9903 runpath_var=LD_RUN_PATH
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 export_dynamic_flag_spec='${wl}--export-dynamic'
9906 # ancient GNU ld didn't support --whole-archive et. al.
9907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9909 else
9910 whole_archive_flag_spec=
9911 fi
9912 supports_anon_versioning=no
9913 case `$LD -v 2>&1` in
9914 *GNU\ gold*) supports_anon_versioning=yes ;;
9915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9918 *\ 2.11.*) ;; # other 2.11 versions
9919 *) supports_anon_versioning=yes ;;
9920 esac
9921
9922 # See if GNU ld supports shared libraries.
9923 case $host_os in
9924 aix[3-9]*)
9925 # On AIX/PPC, the GNU linker is very broken
9926 if test "$host_cpu" != ia64; then
9927 ld_shlibs=no
9928 cat <<_LT_EOF 1>&2
9929
9930 *** Warning: the GNU linker, at least up to release 2.19, is reported
9931 *** to be unable to reliably create shared libraries on AIX.
9932 *** Therefore, libtool is disabling shared libraries support. If you
9933 *** really care for shared libraries, you may want to install binutils
9934 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9935 *** You will then need to restart the configuration process.
9936
9937 _LT_EOF
9938 fi
9939 ;;
9940
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # see comment about AmigaOS4 .so support
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 archive_expsym_cmds=''
9947 ;;
9948 m68k)
9949 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)'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9952 ;;
9953 esac
9954 ;;
9955
9956 beos*)
9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 allow_undefined_flag=unsupported
9959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9960 # support --undefined. This deserves some investigation. FIXME
9961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 else
9963 ld_shlibs=no
9964 fi
9965 ;;
9966
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9969 # as there is no search path for DLLs.
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 export_dynamic_flag_spec='${wl}--export-all-symbols'
9972 allow_undefined_flag=unsupported
9973 always_export_symbols=no
9974 enable_shared_with_static_runtimes=yes
9975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9976
9977 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9979 # If the export-symbols file already is a .def file (1st line
9980 # is EXPORTS), use it as is; otherwise, prepend...
9981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9982 cp $export_symbols $output_objdir/$soname.def;
9983 else
9984 echo EXPORTS > $output_objdir/$soname.def;
9985 cat $export_symbols >> $output_objdir/$soname.def;
9986 fi~
9987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988 else
9989 ld_shlibs=no
9990 fi
9991 ;;
9992
9993 haiku*)
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 link_all_deplibs=yes
9996 ;;
9997
9998 interix[3-9]*)
9999 hardcode_direct=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002 export_dynamic_flag_spec='${wl}-E'
10003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10004 # Instead, shared libraries are loaded at an image base (0x10000000 by
10005 # default) and relocated if they conflict, which is a slow very memory
10006 # consuming and fragmenting process. To avoid this, we pick a random,
10007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10010 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'
10011 ;;
10012
10013 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10014 tmp_diet=no
10015 if test "$host_os" = linux-dietlibc; then
10016 case $cc_basename in
10017 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10018 esac
10019 fi
10020 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10021 && test "$tmp_diet" = no
10022 then
10023 tmp_addflag=' $pic_flag'
10024 tmp_sharedflag='-shared'
10025 case $cc_basename,$host_cpu in
10026 pgcc*) # Portland Group C compiler
10027 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'
10028 tmp_addflag=' $pic_flag'
10029 ;;
10030 pgf77* | pgf90* | pgf95* | pgfortran*)
10031 # Portland Group f77 and f90 compilers
10032 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'
10033 tmp_addflag=' $pic_flag -Mnomain' ;;
10034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10035 tmp_addflag=' -i_dynamic' ;;
10036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10037 tmp_addflag=' -i_dynamic -nofor_main' ;;
10038 ifc* | ifort*) # Intel Fortran compiler
10039 tmp_addflag=' -nofor_main' ;;
10040 lf95*) # Lahey Fortran 8.1
10041 whole_archive_flag_spec=
10042 tmp_sharedflag='--shared' ;;
10043 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10044 tmp_sharedflag='-qmkshrobj'
10045 tmp_addflag= ;;
10046 nvcc*) # Cuda Compiler Driver 2.2
10047 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'
10048 compiler_needs_object=yes
10049 ;;
10050 esac
10051 case `$CC -V 2>&1 | sed 5q` in
10052 *Sun\ C*) # Sun C 5.9
10053 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'
10054 compiler_needs_object=yes
10055 tmp_sharedflag='-G' ;;
10056 *Sun\ F*) # Sun Fortran 8.3
10057 tmp_sharedflag='-G' ;;
10058 esac
10059 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060
10061 if test "x$supports_anon_versioning" = xyes; then
10062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10064 echo "local: *; };" >> $output_objdir/$libname.ver~
10065 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10066 fi
10067
10068 case $cc_basename in
10069 xlf* | bgf* | bgxlf* | mpixlf*)
10070 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10071 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10072 hardcode_libdir_flag_spec=
10073 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10074 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10075 if test "x$supports_anon_versioning" = xyes; then
10076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10078 echo "local: *; };" >> $output_objdir/$libname.ver~
10079 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10080 fi
10081 ;;
10082 esac
10083 else
10084 ld_shlibs=no
10085 fi
10086 ;;
10087
10088 netbsd*)
10089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10091 wlarc=
10092 else
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10095 fi
10096 ;;
10097
10098 solaris*)
10099 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10100 ld_shlibs=no
10101 cat <<_LT_EOF 1>&2
10102
10103 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10104 *** create shared libraries on Solaris systems. Therefore, libtool
10105 *** is disabling shared libraries support. We urge you to upgrade GNU
10106 *** binutils to release 2.9.1 or newer. Another option is to modify
10107 *** your PATH or compiler configuration so that the native linker is
10108 *** used, and then restart.
10109
10110 _LT_EOF
10111 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114 else
10115 ld_shlibs=no
10116 fi
10117 ;;
10118
10119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10120 case `$LD -v 2>&1` in
10121 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10122 ld_shlibs=no
10123 cat <<_LT_EOF 1>&2
10124
10125 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10126 *** reliably create shared libraries on SCO systems. Therefore, libtool
10127 *** is disabling shared libraries support. We urge you to upgrade GNU
10128 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10129 *** your PATH or compiler configuration so that the native linker is
10130 *** used, and then restart.
10131
10132 _LT_EOF
10133 ;;
10134 *)
10135 # For security reasons, it is highly recommended that you always
10136 # use absolute paths for naming shared libraries, and exclude the
10137 # DT_RUNPATH tag from executables and libraries. But doing so
10138 # requires that you compile everything twice, which is a pain.
10139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 else
10144 ld_shlibs=no
10145 fi
10146 ;;
10147 esac
10148 ;;
10149
10150 sunos4*)
10151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10152 wlarc=
10153 hardcode_direct=yes
10154 hardcode_shlibpath_var=no
10155 ;;
10156
10157 *)
10158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 else
10162 ld_shlibs=no
10163 fi
10164 ;;
10165 esac
10166
10167 if test "$ld_shlibs" = no; then
10168 runpath_var=
10169 hardcode_libdir_flag_spec=
10170 export_dynamic_flag_spec=
10171 whole_archive_flag_spec=
10172 fi
10173 else
10174 # PORTME fill in a description of your system's linker (not GNU ld)
10175 case $host_os in
10176 aix3*)
10177 allow_undefined_flag=unsupported
10178 always_export_symbols=yes
10179 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'
10180 # Note: this linker hardcodes the directories in LIBPATH if there
10181 # are no directories specified by -L.
10182 hardcode_minus_L=yes
10183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10184 # Neither direct hardcoding nor static linking is supported with a
10185 # broken collect2.
10186 hardcode_direct=unsupported
10187 fi
10188 ;;
10189
10190 aix[4-9]*)
10191 if test "$host_cpu" = ia64; then
10192 # On IA64, the linker does run time linking by default, so we don't
10193 # have to do anything special.
10194 aix_use_runtimelinking=no
10195 exp_sym_flag='-Bexport'
10196 no_entry_flag=""
10197 else
10198 # If we're using GNU nm, then we don't want the "-C" option.
10199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10200 # Also, AIX nm treats weak defined symbols like other global
10201 # defined symbols, whereas GNU nm marks them as "W".
10202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10203 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'
10204 else
10205 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'
10206 fi
10207 aix_use_runtimelinking=no
10208
10209 # Test if we are trying to use run time linking or normal
10210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10211 # need to do runtime linking.
10212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10213 for ld_flag in $LDFLAGS; do
10214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10215 aix_use_runtimelinking=yes
10216 break
10217 fi
10218 done
10219 ;;
10220 esac
10221
10222 exp_sym_flag='-bexport'
10223 no_entry_flag='-bnoentry'
10224 fi
10225
10226 # When large executables or shared objects are built, AIX ld can
10227 # have problems creating the table of contents. If linking a library
10228 # or program results in "error TOC overflow" add -mminimal-toc to
10229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10231
10232 archive_cmds=''
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 hardcode_libdir_separator=':'
10236 link_all_deplibs=yes
10237 file_list_spec='${wl}-f,'
10238
10239 if test "$GCC" = yes; then
10240 case $host_os in aix4.[012]|aix4.[012].*)
10241 # We only want to do this on AIX 4.2 and lower, the check
10242 # below for broken collect2 doesn't work under 4.3+
10243 collect2name=`${CC} -print-prog-name=collect2`
10244 if test -f "$collect2name" &&
10245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10246 then
10247 # We have reworked collect2
10248 :
10249 else
10250 # We have old collect2
10251 hardcode_direct=unsupported
10252 # It fails to find uninstalled libraries when the uninstalled
10253 # path is not listed in the libpath. Setting hardcode_minus_L
10254 # to unsupported forces relinking
10255 hardcode_minus_L=yes
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_libdir_separator=
10258 fi
10259 ;;
10260 esac
10261 shared_flag='-shared'
10262 if test "$aix_use_runtimelinking" = yes; then
10263 shared_flag="$shared_flag "'${wl}-G'
10264 fi
10265 else
10266 # not using gcc
10267 if test "$host_cpu" = ia64; then
10268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10269 # chokes on -Wl,-G. The following line is correct:
10270 shared_flag='-G'
10271 else
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag='${wl}-G'
10274 else
10275 shared_flag='${wl}-bM:SRE'
10276 fi
10277 fi
10278 fi
10279
10280 export_dynamic_flag_spec='${wl}-bexpall'
10281 # It seems that -bexpall does not export symbols beginning with
10282 # underscore (_), so it is better to generate a list of symbols to export.
10283 always_export_symbols=yes
10284 if test "$aix_use_runtimelinking" = yes; then
10285 # Warning - without using the other runtime loading flags (-brtl),
10286 # -berok will link without error, but may produce a broken library.
10287 allow_undefined_flag='-berok'
10288 # Determine the default libpath from the value encoded in an
10289 # empty executable.
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292
10293 int
10294 main ()
10295 {
10296
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302
10303 lt_aix_libpath_sed='
10304 /Import File Strings/,/^$/ {
10305 /^0/ {
10306 s/^0 *\(.*\)$/\1/
10307 p
10308 }
10309 }'
10310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10311 # Check for a 64-bit object if we didn't find anything.
10312 if test -z "$aix_libpath"; then
10313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314 fi
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10319
10320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10321 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"
10322 else
10323 if test "$host_cpu" = ia64; then
10324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10325 allow_undefined_flag="-z nodefs"
10326 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"
10327 else
10328 # Determine the default libpath from the value encoded in an
10329 # empty executable.
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332
10333 int
10334 main ()
10335 {
10336
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342
10343 lt_aix_libpath_sed='
10344 /Import File Strings/,/^$/ {
10345 /^0/ {
10346 s/^0 *\(.*\)$/\1/
10347 p
10348 }
10349 }'
10350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351 # Check for a 64-bit object if we didn't find anything.
10352 if test -z "$aix_libpath"; then
10353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354 fi
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10359
10360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10361 # Warning - without using the other run time loading flags,
10362 # -berok will link without error, but may produce a broken library.
10363 no_undefined_flag=' ${wl}-bernotok'
10364 allow_undefined_flag=' ${wl}-berok'
10365 if test "$with_gnu_ld" = yes; then
10366 # We only use this code for GNU lds that support --whole-archive.
10367 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10368 else
10369 # Exported symbols can be pulled into shared objects from archives
10370 whole_archive_flag_spec='$convenience'
10371 fi
10372 archive_cmds_need_lc=yes
10373 # This is similar to how AIX traditionally builds its shared libraries.
10374 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'
10375 fi
10376 fi
10377 ;;
10378
10379 amigaos*)
10380 case $host_cpu in
10381 powerpc)
10382 # see comment about AmigaOS4 .so support
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 archive_expsym_cmds=''
10385 ;;
10386 m68k)
10387 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)'
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 hardcode_minus_L=yes
10390 ;;
10391 esac
10392 ;;
10393
10394 bsdi[45]*)
10395 export_dynamic_flag_spec=-rdynamic
10396 ;;
10397
10398 cygwin* | mingw* | pw32* | cegcc*)
10399 # When not using gcc, we currently assume that we are using
10400 # Microsoft Visual C++.
10401 # hardcode_libdir_flag_spec is actually meaningless, as there is
10402 # no search path for DLLs.
10403 hardcode_libdir_flag_spec=' '
10404 allow_undefined_flag=unsupported
10405 # Tell ltmain to make .lib files, not .a files.
10406 libext=lib
10407 # Tell ltmain to make .dll files, not .so files.
10408 shrext_cmds=".dll"
10409 # FIXME: Setting linknames here is a bad hack.
10410 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10411 # The linker will automatically build a .lib file if we build a DLL.
10412 old_archive_from_new_cmds='true'
10413 # FIXME: Should let the user specify the lib program.
10414 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10415 fix_srcfile_path='`cygpath -w "$srcfile"`'
10416 enable_shared_with_static_runtimes=yes
10417 ;;
10418
10419 darwin* | rhapsody*)
10420
10421
10422 archive_cmds_need_lc=no
10423 hardcode_direct=no
10424 hardcode_automatic=yes
10425 hardcode_shlibpath_var=unsupported
10426 if test "$lt_cv_ld_force_load" = "yes"; then
10427 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\"`'
10428 else
10429 whole_archive_flag_spec=''
10430 fi
10431 link_all_deplibs=yes
10432 allow_undefined_flag="$_lt_dar_allow_undefined"
10433 case $cc_basename in
10434 ifort*) _lt_dar_can_shared=yes ;;
10435 *) _lt_dar_can_shared=$GCC ;;
10436 esac
10437 if test "$_lt_dar_can_shared" = "yes"; then
10438 output_verbose_link_cmd=func_echo_all
10439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10441 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}"
10442 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}"
10443
10444 else
10445 ld_shlibs=no
10446 fi
10447
10448 ;;
10449
10450 dgux*)
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_libdir_flag_spec='-L$libdir'
10453 hardcode_shlibpath_var=no
10454 ;;
10455
10456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10457 # support. Future versions do this automatically, but an explicit c++rt0.o
10458 # does not break anything, and helps significantly (at the cost of a little
10459 # extra space).
10460 freebsd2.2*)
10461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_direct=yes
10464 hardcode_shlibpath_var=no
10465 ;;
10466
10467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10468 freebsd2.*)
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes
10471 hardcode_minus_L=yes
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10476 freebsd* | dragonfly*)
10477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10478 hardcode_libdir_flag_spec='-R$libdir'
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10481 ;;
10482
10483 hpux9*)
10484 if test "$GCC" = yes; then
10485 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'
10486 else
10487 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'
10488 fi
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 hardcode_direct=yes
10492
10493 # hardcode_minus_L: Not really in the search PATH,
10494 # but as the default location of the library.
10495 hardcode_minus_L=yes
10496 export_dynamic_flag_spec='${wl}-E'
10497 ;;
10498
10499 hpux10*)
10500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10502 else
10503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10504 fi
10505 if test "$with_gnu_ld" = no; then
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_flag_spec_ld='+b $libdir'
10508 hardcode_libdir_separator=:
10509 hardcode_direct=yes
10510 hardcode_direct_absolute=yes
10511 export_dynamic_flag_spec='${wl}-E'
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L=yes
10515 fi
10516 ;;
10517
10518 hpux11*)
10519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10520 case $host_cpu in
10521 hppa*64*)
10522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10523 ;;
10524 ia64*)
10525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10526 ;;
10527 *)
10528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10529 ;;
10530 esac
10531 else
10532 case $host_cpu in
10533 hppa*64*)
10534 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 ;;
10536 ia64*)
10537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10538 ;;
10539 *)
10540
10541 # Older versions of the 11.00 compiler do not understand -b yet
10542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10544 $as_echo_n "checking if $CC understands -b... " >&6; }
10545 if ${lt_cv_prog_compiler__b+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 lt_cv_prog_compiler__b=no
10549 save_LDFLAGS="$LDFLAGS"
10550 LDFLAGS="$LDFLAGS -b"
10551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10553 # The linker can only warn and ignore the option if not recognized
10554 # So say no if there are warnings
10555 if test -s conftest.err; then
10556 # Append any errors to the config.log.
10557 cat conftest.err 1>&5
10558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10560 if diff conftest.exp conftest.er2 >/dev/null; then
10561 lt_cv_prog_compiler__b=yes
10562 fi
10563 else
10564 lt_cv_prog_compiler__b=yes
10565 fi
10566 fi
10567 $RM -r conftest*
10568 LDFLAGS="$save_LDFLAGS"
10569
10570 fi
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10572 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10573
10574 if test x"$lt_cv_prog_compiler__b" = xyes; then
10575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10576 else
10577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10578 fi
10579
10580 ;;
10581 esac
10582 fi
10583 if test "$with_gnu_ld" = no; then
10584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10585 hardcode_libdir_separator=:
10586
10587 case $host_cpu in
10588 hppa*64*|ia64*)
10589 hardcode_direct=no
10590 hardcode_shlibpath_var=no
10591 ;;
10592 *)
10593 hardcode_direct=yes
10594 hardcode_direct_absolute=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10600 ;;
10601 esac
10602 fi
10603 ;;
10604
10605 irix5* | irix6* | nonstopux*)
10606 if test "$GCC" = yes; then
10607 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'
10608 # Try to use the -exported_symbol ld option, if it does not
10609 # work, assume that -exports_file does not work either and
10610 # implicitly export all symbols.
10611 save_LDFLAGS="$LDFLAGS"
10612 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int foo(void) {}
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 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'
10619
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LDFLAGS="$save_LDFLAGS"
10624 else
10625 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'
10626 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'
10627 fi
10628 archive_cmds_need_lc='no'
10629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_separator=:
10631 inherit_rpath=yes
10632 link_all_deplibs=yes
10633 ;;
10634
10635 netbsd*)
10636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10638 else
10639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10640 fi
10641 hardcode_libdir_flag_spec='-R$libdir'
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 newsos6)
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_direct=yes
10649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator=:
10651 hardcode_shlibpath_var=no
10652 ;;
10653
10654 *nto* | *qnx*)
10655 ;;
10656
10657 openbsd*)
10658 if test -f /usr/libexec/ld.so; then
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10661 hardcode_direct_absolute=yes
10662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10666 export_dynamic_flag_spec='${wl}-E'
10667 else
10668 case $host_os in
10669 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_libdir_flag_spec='-R$libdir'
10672 ;;
10673 *)
10674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10676 ;;
10677 esac
10678 fi
10679 else
10680 ld_shlibs=no
10681 fi
10682 ;;
10683
10684 os2*)
10685 hardcode_libdir_flag_spec='-L$libdir'
10686 hardcode_minus_L=yes
10687 allow_undefined_flag=unsupported
10688 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'
10689 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10690 ;;
10691
10692 osf3*)
10693 if test "$GCC" = yes; then
10694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10695 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'
10696 else
10697 allow_undefined_flag=' -expect_unresolved \*'
10698 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'
10699 fi
10700 archive_cmds_need_lc='no'
10701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10702 hardcode_libdir_separator=:
10703 ;;
10704
10705 osf4* | osf5*) # as osf3* with the addition of -msym flag
10706 if test "$GCC" = yes; then
10707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10708 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'
10709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10710 else
10711 allow_undefined_flag=' -expect_unresolved \*'
10712 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'
10713 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~
10714 $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'
10715
10716 # Both c and cxx compiler support -rpath directly
10717 hardcode_libdir_flag_spec='-rpath $libdir'
10718 fi
10719 archive_cmds_need_lc='no'
10720 hardcode_libdir_separator=:
10721 ;;
10722
10723 solaris*)
10724 no_undefined_flag=' -z defs'
10725 if test "$GCC" = yes; then
10726 wlarc='${wl}'
10727 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10729 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10730 else
10731 case `$CC -V 2>&1` in
10732 *"Compilers 5.0"*)
10733 wlarc=''
10734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10737 ;;
10738 *)
10739 wlarc='${wl}'
10740 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10742 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10743 ;;
10744 esac
10745 fi
10746 hardcode_libdir_flag_spec='-R$libdir'
10747 hardcode_shlibpath_var=no
10748 case $host_os in
10749 solaris2.[0-5] | solaris2.[0-5].*) ;;
10750 *)
10751 # The compiler driver will combine and reorder linker options,
10752 # but understands `-z linker_flag'. GCC discards it without `$wl',
10753 # but is careful enough not to reorder.
10754 # Supported since Solaris 2.6 (maybe 2.5.1?)
10755 if test "$GCC" = yes; then
10756 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10757 else
10758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10759 fi
10760 ;;
10761 esac
10762 link_all_deplibs=yes
10763 ;;
10764
10765 sunos4*)
10766 if test "x$host_vendor" = xsequent; then
10767 # Use $CC to link under sequent, because it throws in some extra .o
10768 # files that make .init and .fini sections work.
10769 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10772 fi
10773 hardcode_libdir_flag_spec='-L$libdir'
10774 hardcode_direct=yes
10775 hardcode_minus_L=yes
10776 hardcode_shlibpath_var=no
10777 ;;
10778
10779 sysv4)
10780 case $host_vendor in
10781 sni)
10782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_direct=yes # is this really true???
10784 ;;
10785 siemens)
10786 ## LD is ld it makes a PLAMLIB
10787 ## CC just makes a GrossModule.
10788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10789 reload_cmds='$CC -r -o $output$reload_objs'
10790 hardcode_direct=no
10791 ;;
10792 motorola)
10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10795 ;;
10796 esac
10797 runpath_var='LD_RUN_PATH'
10798 hardcode_shlibpath_var=no
10799 ;;
10800
10801 sysv4.3*)
10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_shlibpath_var=no
10804 export_dynamic_flag_spec='-Bexport'
10805 ;;
10806
10807 sysv4*MP*)
10808 if test -d /usr/nec; then
10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_shlibpath_var=no
10811 runpath_var=LD_RUN_PATH
10812 hardcode_runpath_var=yes
10813 ld_shlibs=yes
10814 fi
10815 ;;
10816
10817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10818 no_undefined_flag='${wl}-z,text'
10819 archive_cmds_need_lc=no
10820 hardcode_shlibpath_var=no
10821 runpath_var='LD_RUN_PATH'
10822
10823 if test "$GCC" = yes; then
10824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 else
10827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 fi
10830 ;;
10831
10832 sysv5* | sco3.2v5* | sco5v6*)
10833 # Note: We can NOT use -z defs as we might desire, because we do not
10834 # link with -lc, and that would cause any symbols used from libc to
10835 # always be unresolved, which means just about no library would
10836 # ever link correctly. If we're not using GNU ld we use -z text
10837 # though, which does catch some bad symbols but isn't as heavy-handed
10838 # as -z defs.
10839 no_undefined_flag='${wl}-z,text'
10840 allow_undefined_flag='${wl}-z,nodefs'
10841 archive_cmds_need_lc=no
10842 hardcode_shlibpath_var=no
10843 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10844 hardcode_libdir_separator=':'
10845 link_all_deplibs=yes
10846 export_dynamic_flag_spec='${wl}-Bexport'
10847 runpath_var='LD_RUN_PATH'
10848
10849 if test "$GCC" = yes; then
10850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 else
10853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 fi
10856 ;;
10857
10858 uts4*)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_shlibpath_var=no
10862 ;;
10863
10864 *)
10865 ld_shlibs=no
10866 ;;
10867 esac
10868
10869 if test x$host_vendor = xsni; then
10870 case $host in
10871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10872 export_dynamic_flag_spec='${wl}-Blargedynsym'
10873 ;;
10874 esac
10875 fi
10876 fi
10877
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10879 $as_echo "$ld_shlibs" >&6; }
10880 test "$ld_shlibs" = no && can_build_shared=no
10881
10882 with_gnu_ld=$with_gnu_ld
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898 #
10899 # Do we need to explicitly link libc?
10900 #
10901 case "x$archive_cmds_need_lc" in
10902 x|xyes)
10903 # Assume -lc should be added
10904 archive_cmds_need_lc=yes
10905
10906 if test "$enable_shared" = yes && test "$GCC" = yes; then
10907 case $archive_cmds in
10908 *'~'*)
10909 # FIXME: we may have to deal with multi-command sequences.
10910 ;;
10911 '$CC '*)
10912 # Test whether the compiler implicitly links with -lc since on some
10913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10914 # to ld, don't add -lc before -lgcc.
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10917 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 $RM conftest*
10921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10922
10923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10924 (eval $ac_compile) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927 test $ac_status = 0; } 2>conftest.err; then
10928 soname=conftest
10929 lib=conftest
10930 libobjs=conftest.$ac_objext
10931 deplibs=
10932 wl=$lt_prog_compiler_wl
10933 pic_flag=$lt_prog_compiler_pic
10934 compiler_flags=-v
10935 linker_flags=-v
10936 verstring=
10937 output_objdir=.
10938 libname=conftest
10939 lt_save_allow_undefined_flag=$allow_undefined_flag
10940 allow_undefined_flag=
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10942 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; }
10946 then
10947 lt_cv_archive_cmds_need_lc=no
10948 else
10949 lt_cv_archive_cmds_need_lc=yes
10950 fi
10951 allow_undefined_flag=$lt_save_allow_undefined_flag
10952 else
10953 cat conftest.err 1>&5
10954 fi
10955 $RM conftest*
10956
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10959 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10960 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10961 ;;
10962 esac
10963 fi
10964 ;;
10965 esac
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11125
11126 if test "$GCC" = yes; then
11127 case $host_os in
11128 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11129 *) lt_awk_arg="/^libraries:/" ;;
11130 esac
11131 case $host_os in
11132 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11133 *) lt_sed_strip_eq="s,=/,/,g" ;;
11134 esac
11135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11136 case $lt_search_path_spec in
11137 *\;*)
11138 # if the path contains ";" then we assume it to be the separator
11139 # otherwise default to the standard path separator (i.e. ":") - it is
11140 # assumed that no part of a normal pathname contains ";" but that should
11141 # okay in the real world where ";" in dirpaths is itself problematic.
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11143 ;;
11144 *)
11145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11146 ;;
11147 esac
11148 # Ok, now we have the path, separated by spaces, we can step through it
11149 # and add multilib dir if necessary.
11150 lt_tmp_lt_search_path_spec=
11151 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11152 for lt_sys_path in $lt_search_path_spec; do
11153 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11155 else
11156 test -d "$lt_sys_path" && \
11157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11158 fi
11159 done
11160 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11161 BEGIN {RS=" "; FS="/|\n";} {
11162 lt_foo="";
11163 lt_count=0;
11164 for (lt_i = NF; lt_i > 0; lt_i--) {
11165 if ($lt_i != "" && $lt_i != ".") {
11166 if ($lt_i == "..") {
11167 lt_count++;
11168 } else {
11169 if (lt_count == 0) {
11170 lt_foo="/" $lt_i lt_foo;
11171 } else {
11172 lt_count--;
11173 }
11174 }
11175 }
11176 }
11177 if (lt_foo != "") { lt_freq[lt_foo]++; }
11178 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11179 }'`
11180 # AWK program above erroneously prepends '/' to C:/dos/paths
11181 # for these hosts.
11182 case $host_os in
11183 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11184 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11185 esac
11186 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11187 else
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11189 fi
11190 library_names_spec=
11191 libname_spec='lib$name'
11192 soname_spec=
11193 shrext_cmds=".so"
11194 postinstall_cmds=
11195 postuninstall_cmds=
11196 finish_cmds=
11197 finish_eval=
11198 shlibpath_var=
11199 shlibpath_overrides_runpath=unknown
11200 version_type=none
11201 dynamic_linker="$host_os ld.so"
11202 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11203 need_lib_prefix=unknown
11204 hardcode_into_libs=no
11205
11206 # when you set need_version to no, make sure it does not cause -set_version
11207 # flags to be left without arguments
11208 need_version=unknown
11209
11210 case $host_os in
11211 aix3*)
11212 version_type=linux
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11214 shlibpath_var=LIBPATH
11215
11216 # AIX 3 has no versioning support, so we append a major version to the name.
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 ;;
11219
11220 aix[4-9]*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
11224 hardcode_into_libs=yes
11225 if test "$host_cpu" = ia64; then
11226 # AIX 5 supports IA64
11227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 else
11230 # With GCC up to 2.95.x, collect2 would create an import file
11231 # for dependence libraries. The import file would start with
11232 # the line `#! .'. This would cause the generated library to
11233 # depend on `.', always an invalid library. This was fixed in
11234 # development snapshots of GCC prior to 3.0.
11235 case $host_os in
11236 aix4 | aix4.[01] | aix4.[01].*)
11237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11238 echo ' yes '
11239 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11240 :
11241 else
11242 can_build_shared=no
11243 fi
11244 ;;
11245 esac
11246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11247 # soname into executable. Probably we can add versioning support to
11248 # collect2, so additional links can be useful in future.
11249 if test "$aix_use_runtimelinking" = yes; then
11250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11251 # instead of lib<name>.a to let people know that these are not
11252 # typical AIX shared libraries.
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 else
11255 # We preserve .a as extension for shared libraries through AIX4.2
11256 # and later when we are not doing run time linking.
11257 library_names_spec='${libname}${release}.a $libname.a'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 fi
11260 shlibpath_var=LIBPATH
11261 fi
11262 ;;
11263
11264 amigaos*)
11265 case $host_cpu in
11266 powerpc)
11267 # Since July 2007 AmigaOS4 officially supports .so libraries.
11268 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 ;;
11271 m68k)
11272 library_names_spec='$libname.ixlibrary $libname.a'
11273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11274 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'
11275 ;;
11276 esac
11277 ;;
11278
11279 beos*)
11280 library_names_spec='${libname}${shared_ext}'
11281 dynamic_linker="$host_os ld.so"
11282 shlibpath_var=LIBRARY_PATH
11283 ;;
11284
11285 bsdi[45]*)
11286 version_type=linux
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11294 # the default ld.so.conf also contains /usr/contrib/lib and
11295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11296 # libtool to hard-code these into programs
11297 ;;
11298
11299 cygwin* | mingw* | pw32* | cegcc*)
11300 version_type=windows
11301 shrext_cmds=".dll"
11302 need_version=no
11303 need_lib_prefix=no
11304
11305 case $GCC,$host_os in
11306 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11307 library_names_spec='$libname.dll.a'
11308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309 postinstall_cmds='base_file=`basename \${file}`~
11310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11311 dldir=$destdir/`dirname \$dlpath`~
11312 test -d \$dldir || mkdir -p \$dldir~
11313 $install_prog $dir/$dlname \$dldir/$dlname~
11314 chmod a+x \$dldir/$dlname~
11315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11317 fi'
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11322
11323 case $host_os in
11324 cygwin*)
11325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11327
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11329 ;;
11330 mingw* | cegcc*)
11331 # MinGW DLLs use traditional 'lib' prefix
11332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11333 ;;
11334 pw32*)
11335 # pw32 DLLs use 'pw' prefix rather than 'lib'
11336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11337 ;;
11338 esac
11339 ;;
11340
11341 *)
11342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11343 ;;
11344 esac
11345 dynamic_linker='Win32 ld.exe'
11346 # FIXME: first we should search . and the directory the executable is in
11347 shlibpath_var=PATH
11348 ;;
11349
11350 darwin* | rhapsody*)
11351 dynamic_linker="$host_os dyld"
11352 version_type=darwin
11353 need_lib_prefix=no
11354 need_version=no
11355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11356 soname_spec='${libname}${release}${major}$shared_ext'
11357 shlibpath_overrides_runpath=yes
11358 shlibpath_var=DYLD_LIBRARY_PATH
11359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11360
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11363 ;;
11364
11365 dgux*)
11366 version_type=linux
11367 need_lib_prefix=no
11368 need_version=no
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 ;;
11373
11374 freebsd* | dragonfly*)
11375 # DragonFly does not have aout. When/if they implement a new
11376 # versioning mechanism, adjust this.
11377 if test -x /usr/bin/objformat; then
11378 objformat=`/usr/bin/objformat`
11379 else
11380 case $host_os in
11381 freebsd[23].*) objformat=aout ;;
11382 *) objformat=elf ;;
11383 esac
11384 fi
11385 version_type=freebsd-$objformat
11386 case $version_type in
11387 freebsd-elf*)
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11389 need_version=no
11390 need_lib_prefix=no
11391 ;;
11392 freebsd-*)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11394 need_version=yes
11395 ;;
11396 esac
11397 shlibpath_var=LD_LIBRARY_PATH
11398 case $host_os in
11399 freebsd2.*)
11400 shlibpath_overrides_runpath=yes
11401 ;;
11402 freebsd3.[01]* | freebsdelf3.[01]*)
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11405 ;;
11406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11408 shlibpath_overrides_runpath=no
11409 hardcode_into_libs=yes
11410 ;;
11411 *) # from 4.6 on, and DragonFly
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11414 ;;
11415 esac
11416 ;;
11417
11418 gnu*)
11419 version_type=linux
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 hardcode_into_libs=yes
11426 ;;
11427
11428 haiku*)
11429 version_type=linux
11430 need_lib_prefix=no
11431 need_version=no
11432 dynamic_linker="$host_os runtime_loader"
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11438 hardcode_into_libs=yes
11439 ;;
11440
11441 hpux9* | hpux10* | hpux11*)
11442 # Give a soname corresponding to the major version so that dld.sl refuses to
11443 # link against other versions.
11444 version_type=sunos
11445 need_lib_prefix=no
11446 need_version=no
11447 case $host_cpu in
11448 ia64*)
11449 shrext_cmds='.so'
11450 hardcode_into_libs=yes
11451 dynamic_linker="$host_os dld.so"
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 if test "X$HPUX_IA64_MODE" = X32; then
11457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11458 else
11459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11460 fi
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462 ;;
11463 hppa*64*)
11464 shrext_cmds='.sl'
11465 hardcode_into_libs=yes
11466 dynamic_linker="$host_os dld.sl"
11467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11473 ;;
11474 *)
11475 shrext_cmds='.sl'
11476 dynamic_linker="$host_os dld.sl"
11477 shlibpath_var=SHLIB_PATH
11478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 ;;
11482 esac
11483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11484 postinstall_cmds='chmod 555 $lib'
11485 # or fails outright, so override atomically:
11486 install_override_mode=555
11487 ;;
11488
11489 interix[3-9]*)
11490 version_type=linux
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 ;;
11500
11501 irix5* | irix6* | nonstopux*)
11502 case $host_os in
11503 nonstopux*) version_type=nonstopux ;;
11504 *)
11505 if test "$lt_cv_prog_gnu_ld" = yes; then
11506 version_type=linux
11507 else
11508 version_type=irix
11509 fi ;;
11510 esac
11511 need_lib_prefix=no
11512 need_version=no
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11515 case $host_os in
11516 irix5* | nonstopux*)
11517 libsuff= shlibsuff=
11518 ;;
11519 *)
11520 case $LD in # libtool.m4 will add one of these switches to LD
11521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11522 libsuff= shlibsuff= libmagic=32-bit;;
11523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11524 libsuff=32 shlibsuff=N32 libmagic=N32;;
11525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11527 *) libsuff= shlibsuff= libmagic=never-match;;
11528 esac
11529 ;;
11530 esac
11531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11532 shlibpath_overrides_runpath=no
11533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11535 hardcode_into_libs=yes
11536 ;;
11537
11538 # No shared lib support for Linux oldld, aout, or coff.
11539 linux*oldld* | linux*aout* | linux*coff*)
11540 dynamic_linker=no
11541 ;;
11542
11543 # This must be Linux ELF.
11544
11545 # uclinux* changes (here and below) have been submitted to the libtool
11546 # project, but have not yet been accepted: they are GCC-local changes
11547 # for the time being. (See
11548 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11549 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11550 version_type=linux
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=no
11558
11559 # Some binutils ld are patched to set DT_RUNPATH
11560 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 lt_cv_shlibpath_overrides_runpath=no
11564 save_LDFLAGS=$LDFLAGS
11565 save_libdir=$libdir
11566 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11567 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 int
11572 main ()
11573 {
11574
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11581 lt_cv_shlibpath_overrides_runpath=yes
11582 fi
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LDFLAGS=$save_LDFLAGS
11587 libdir=$save_libdir
11588
11589 fi
11590
11591 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11592
11593 # This implies no fast_install, which is unacceptable.
11594 # Some rework will be needed to allow for fast_install
11595 # before this can be enabled.
11596 hardcode_into_libs=yes
11597
11598 # Append ld.so.conf contents to the search path
11599 if test -f /etc/ld.so.conf; then
11600 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' ' '`
11601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11602 fi
11603
11604 # We used to test for /lib/ld.so.1 and disable shared libraries on
11605 # powerpc, because MkLinux only supported shared libraries with the
11606 # GNU dynamic linker. Since this was broken with cross compilers,
11607 # most powerpc-linux boxes support dynamic linking these days and
11608 # people can always --disable-shared, the test was removed, and we
11609 # assume the GNU/Linux dynamic linker is in use.
11610 dynamic_linker='GNU/Linux ld.so'
11611 ;;
11612
11613 netbsd*)
11614 version_type=sunos
11615 need_lib_prefix=no
11616 need_version=no
11617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11620 dynamic_linker='NetBSD (a.out) ld.so'
11621 else
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 dynamic_linker='NetBSD ld.elf_so'
11625 fi
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=yes
11628 hardcode_into_libs=yes
11629 ;;
11630
11631 newsos6)
11632 version_type=linux
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=yes
11636 ;;
11637
11638 *nto* | *qnx*)
11639 version_type=qnx
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 dynamic_linker='ldqnx.so'
11648 ;;
11649
11650 openbsd*)
11651 version_type=sunos
11652 sys_lib_dlsearch_path_spec="/usr/lib"
11653 need_lib_prefix=no
11654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11655 case $host_os in
11656 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11657 *) need_version=no ;;
11658 esac
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11663 case $host_os in
11664 openbsd2.[89] | openbsd2.[89].*)
11665 shlibpath_overrides_runpath=no
11666 ;;
11667 *)
11668 shlibpath_overrides_runpath=yes
11669 ;;
11670 esac
11671 else
11672 shlibpath_overrides_runpath=yes
11673 fi
11674 ;;
11675
11676 os2*)
11677 libname_spec='$name'
11678 shrext_cmds=".dll"
11679 need_lib_prefix=no
11680 library_names_spec='$libname${shared_ext} $libname.a'
11681 dynamic_linker='OS/2 ld.exe'
11682 shlibpath_var=LIBPATH
11683 ;;
11684
11685 osf3* | osf4* | osf5*)
11686 version_type=osf
11687 need_lib_prefix=no
11688 need_version=no
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11694 ;;
11695
11696 rdos*)
11697 dynamic_linker=no
11698 ;;
11699
11700 solaris*)
11701 version_type=linux
11702 need_lib_prefix=no
11703 need_version=no
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708 hardcode_into_libs=yes
11709 # ldd complains unless libraries are executable
11710 postinstall_cmds='chmod +x $lib'
11711 ;;
11712
11713 sunos4*)
11714 version_type=sunos
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 if test "$with_gnu_ld" = yes; then
11720 need_lib_prefix=no
11721 fi
11722 need_version=yes
11723 ;;
11724
11725 sysv4 | sysv4.3*)
11726 version_type=linux
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 case $host_vendor in
11731 sni)
11732 shlibpath_overrides_runpath=no
11733 need_lib_prefix=no
11734 runpath_var=LD_RUN_PATH
11735 ;;
11736 siemens)
11737 need_lib_prefix=no
11738 ;;
11739 motorola)
11740 need_lib_prefix=no
11741 need_version=no
11742 shlibpath_overrides_runpath=no
11743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11744 ;;
11745 esac
11746 ;;
11747
11748 sysv4*MP*)
11749 if test -d /usr/nec ;then
11750 version_type=linux
11751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11752 soname_spec='$libname${shared_ext}.$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 fi
11755 ;;
11756
11757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11758 version_type=freebsd-elf
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11765 hardcode_into_libs=yes
11766 if test "$with_gnu_ld" = yes; then
11767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11768 else
11769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11770 case $host_os in
11771 sco3.2v5*)
11772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11773 ;;
11774 esac
11775 fi
11776 sys_lib_dlsearch_path_spec='/usr/lib'
11777 ;;
11778
11779 tpf*)
11780 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11781 version_type=linux
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=no
11787 hardcode_into_libs=yes
11788 ;;
11789
11790 uts4*)
11791 version_type=linux
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 ;;
11796
11797 *)
11798 dynamic_linker=no
11799 ;;
11800 esac
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11802 $as_echo "$dynamic_linker" >&6; }
11803 test "$dynamic_linker" = no && can_build_shared=no
11804
11805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11806 if test "$GCC" = yes; then
11807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11808 fi
11809
11810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11812 fi
11813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11814 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11815 fi
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11909 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11910 hardcode_action=
11911 if test -n "$hardcode_libdir_flag_spec" ||
11912 test -n "$runpath_var" ||
11913 test "X$hardcode_automatic" = "Xyes" ; then
11914
11915 # We can hardcode non-existent directories.
11916 if test "$hardcode_direct" != no &&
11917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11918 # have to relink, otherwise we might link with an installed library
11919 # when we should be linking with a yet-to-be-installed one
11920 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11921 test "$hardcode_minus_L" != no; then
11922 # Linking always hardcodes the temporary library directory.
11923 hardcode_action=relink
11924 else
11925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11926 hardcode_action=immediate
11927 fi
11928 else
11929 # We cannot hardcode anything, or else we can only hardcode existing
11930 # directories.
11931 hardcode_action=unsupported
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11934 $as_echo "$hardcode_action" >&6; }
11935
11936 if test "$hardcode_action" = relink ||
11937 test "$inherit_rpath" = yes; then
11938 # Fast installation is not supported
11939 enable_fast_install=no
11940 elif test "$shlibpath_overrides_runpath" = yes ||
11941 test "$enable_shared" = no; then
11942 # Fast installation is not necessary
11943 enable_fast_install=needless
11944 fi
11945
11946
11947
11948
11949
11950
11951 if test "x$enable_dlopen" != xyes; then
11952 enable_dlopen=unknown
11953 enable_dlopen_self=unknown
11954 enable_dlopen_self_static=unknown
11955 else
11956 lt_cv_dlopen=no
11957 lt_cv_dlopen_libs=
11958
11959 case $host_os in
11960 beos*)
11961 lt_cv_dlopen="load_add_on"
11962 lt_cv_dlopen_libs=
11963 lt_cv_dlopen_self=yes
11964 ;;
11965
11966 mingw* | pw32* | cegcc*)
11967 lt_cv_dlopen="LoadLibrary"
11968 lt_cv_dlopen_libs=
11969 ;;
11970
11971 cygwin*)
11972 lt_cv_dlopen="dlopen"
11973 lt_cv_dlopen_libs=
11974 ;;
11975
11976 darwin*)
11977 # if libdl is installed we need to link against it
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11980 if ${ac_cv_lib_dl_dlopen+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 ac_check_lib_save_LIBS=$LIBS
11984 LIBS="-ldl $LIBS"
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char dlopen ();
11995 int
11996 main ()
11997 {
11998 return dlopen ();
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_link "$LINENO"; then :
12004 ac_cv_lib_dl_dlopen=yes
12005 else
12006 ac_cv_lib_dl_dlopen=no
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12014 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12016 else
12017
12018 lt_cv_dlopen="dyld"
12019 lt_cv_dlopen_libs=
12020 lt_cv_dlopen_self=yes
12021
12022 fi
12023
12024 ;;
12025
12026 *)
12027 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12028 if test "x$ac_cv_func_shl_load" = xyes; then :
12029 lt_cv_dlopen="shl_load"
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12032 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12033 if ${ac_cv_lib_dld_shl_load+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-ldld $LIBS"
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char shl_load ();
12048 int
12049 main ()
12050 {
12051 return shl_load ();
12052 ;
12053 return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 ac_cv_lib_dld_shl_load=yes
12058 else
12059 ac_cv_lib_dld_shl_load=no
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12066 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12067 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12068 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12069 else
12070 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12071 if test "x$ac_cv_func_dlopen" = xyes; then :
12072 lt_cv_dlopen="dlopen"
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12075 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12076 if ${ac_cv_lib_dl_dlopen+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-ldl $LIBS"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char dlopen ();
12091 int
12092 main ()
12093 {
12094 return dlopen ();
12095 ;
12096 return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_dl_dlopen=yes
12101 else
12102 ac_cv_lib_dl_dlopen=no
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12109 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12110 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12114 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12115 if ${ac_cv_lib_svld_dlopen+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 ac_check_lib_save_LIBS=$LIBS
12119 LIBS="-lsvld $LIBS"
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char dlopen ();
12130 int
12131 main ()
12132 {
12133 return dlopen ();
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_svld_dlopen=yes
12140 else
12141 ac_cv_lib_svld_dlopen=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12148 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12149 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12153 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12154 if ${ac_cv_lib_dld_dld_link+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 ac_check_lib_save_LIBS=$LIBS
12158 LIBS="-ldld $LIBS"
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char dld_link ();
12169 int
12170 main ()
12171 {
12172 return dld_link ();
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_dld_dld_link=yes
12179 else
12180 ac_cv_lib_dld_dld_link=no
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12187 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12188 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12189 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204
12205 fi
12206
12207 ;;
12208 esac
12209
12210 if test "x$lt_cv_dlopen" != xno; then
12211 enable_dlopen=yes
12212 else
12213 enable_dlopen=no
12214 fi
12215
12216 case $lt_cv_dlopen in
12217 dlopen)
12218 save_CPPFLAGS="$CPPFLAGS"
12219 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12220
12221 save_LDFLAGS="$LDFLAGS"
12222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12223
12224 save_LIBS="$LIBS"
12225 LIBS="$lt_cv_dlopen_libs $LIBS"
12226
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12228 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12229 if ${lt_cv_dlopen_self+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 if test "$cross_compiling" = yes; then :
12233 lt_cv_dlopen_self=cross
12234 else
12235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12236 lt_status=$lt_dlunknown
12237 cat > conftest.$ac_ext <<_LT_EOF
12238 #line 12238 "configure"
12239 #include "confdefs.h"
12240
12241 #if HAVE_DLFCN_H
12242 #include <dlfcn.h>
12243 #endif
12244
12245 #include <stdio.h>
12246
12247 #ifdef RTLD_GLOBAL
12248 # define LT_DLGLOBAL RTLD_GLOBAL
12249 #else
12250 # ifdef DL_GLOBAL
12251 # define LT_DLGLOBAL DL_GLOBAL
12252 # else
12253 # define LT_DLGLOBAL 0
12254 # endif
12255 #endif
12256
12257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12258 find out it does not work in some platform. */
12259 #ifndef LT_DLLAZY_OR_NOW
12260 # ifdef RTLD_LAZY
12261 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12262 # else
12263 # ifdef DL_LAZY
12264 # define LT_DLLAZY_OR_NOW DL_LAZY
12265 # else
12266 # ifdef RTLD_NOW
12267 # define LT_DLLAZY_OR_NOW RTLD_NOW
12268 # else
12269 # ifdef DL_NOW
12270 # define LT_DLLAZY_OR_NOW DL_NOW
12271 # else
12272 # define LT_DLLAZY_OR_NOW 0
12273 # endif
12274 # endif
12275 # endif
12276 # endif
12277 #endif
12278
12279 /* When -fvisbility=hidden is used, assume the code has been annotated
12280 correspondingly for the symbols needed. */
12281 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12282 void fnord () __attribute__((visibility("default")));
12283 #endif
12284
12285 void fnord () { int i=42; }
12286 int main ()
12287 {
12288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12289 int status = $lt_dlunknown;
12290
12291 if (self)
12292 {
12293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12294 else
12295 {
12296 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12297 else puts (dlerror ());
12298 }
12299 /* dlclose (self); */
12300 }
12301 else
12302 puts (dlerror ());
12303
12304 return status;
12305 }
12306 _LT_EOF
12307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12308 (eval $ac_link) 2>&5
12309 ac_status=$?
12310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12312 (./conftest; exit; ) >&5 2>/dev/null
12313 lt_status=$?
12314 case x$lt_status in
12315 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12316 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12317 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12318 esac
12319 else :
12320 # compilation failed
12321 lt_cv_dlopen_self=no
12322 fi
12323 fi
12324 rm -fr conftest*
12325
12326
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12329 $as_echo "$lt_cv_dlopen_self" >&6; }
12330
12331 if test "x$lt_cv_dlopen_self" = xyes; then
12332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12334 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12335 if ${lt_cv_dlopen_self_static+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test "$cross_compiling" = yes; then :
12339 lt_cv_dlopen_self_static=cross
12340 else
12341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12342 lt_status=$lt_dlunknown
12343 cat > conftest.$ac_ext <<_LT_EOF
12344 #line 12344 "configure"
12345 #include "confdefs.h"
12346
12347 #if HAVE_DLFCN_H
12348 #include <dlfcn.h>
12349 #endif
12350
12351 #include <stdio.h>
12352
12353 #ifdef RTLD_GLOBAL
12354 # define LT_DLGLOBAL RTLD_GLOBAL
12355 #else
12356 # ifdef DL_GLOBAL
12357 # define LT_DLGLOBAL DL_GLOBAL
12358 # else
12359 # define LT_DLGLOBAL 0
12360 # endif
12361 #endif
12362
12363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12364 find out it does not work in some platform. */
12365 #ifndef LT_DLLAZY_OR_NOW
12366 # ifdef RTLD_LAZY
12367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12368 # else
12369 # ifdef DL_LAZY
12370 # define LT_DLLAZY_OR_NOW DL_LAZY
12371 # else
12372 # ifdef RTLD_NOW
12373 # define LT_DLLAZY_OR_NOW RTLD_NOW
12374 # else
12375 # ifdef DL_NOW
12376 # define LT_DLLAZY_OR_NOW DL_NOW
12377 # else
12378 # define LT_DLLAZY_OR_NOW 0
12379 # endif
12380 # endif
12381 # endif
12382 # endif
12383 #endif
12384
12385 /* When -fvisbility=hidden is used, assume the code has been annotated
12386 correspondingly for the symbols needed. */
12387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12388 void fnord () __attribute__((visibility("default")));
12389 #endif
12390
12391 void fnord () { int i=42; }
12392 int main ()
12393 {
12394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12395 int status = $lt_dlunknown;
12396
12397 if (self)
12398 {
12399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12400 else
12401 {
12402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12403 else puts (dlerror ());
12404 }
12405 /* dlclose (self); */
12406 }
12407 else
12408 puts (dlerror ());
12409
12410 return status;
12411 }
12412 _LT_EOF
12413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12414 (eval $ac_link) 2>&5
12415 ac_status=$?
12416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12418 (./conftest; exit; ) >&5 2>/dev/null
12419 lt_status=$?
12420 case x$lt_status in
12421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12423 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12424 esac
12425 else :
12426 # compilation failed
12427 lt_cv_dlopen_self_static=no
12428 fi
12429 fi
12430 rm -fr conftest*
12431
12432
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12435 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12436 fi
12437
12438 CPPFLAGS="$save_CPPFLAGS"
12439 LDFLAGS="$save_LDFLAGS"
12440 LIBS="$save_LIBS"
12441 ;;
12442 esac
12443
12444 case $lt_cv_dlopen_self in
12445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12446 *) enable_dlopen_self=unknown ;;
12447 esac
12448
12449 case $lt_cv_dlopen_self_static in
12450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12451 *) enable_dlopen_self_static=unknown ;;
12452 esac
12453 fi
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471 striplib=
12472 old_striplib=
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12474 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12477 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479 $as_echo "yes" >&6; }
12480 else
12481 # FIXME - insert some real tests, host_os isn't really good enough
12482 case $host_os in
12483 darwin*)
12484 if test -n "$STRIP" ; then
12485 striplib="$STRIP -x"
12486 old_striplib="$STRIP -S"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12488 $as_echo "yes" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12492 fi
12493 ;;
12494 *)
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 ;;
12498 esac
12499 fi
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512 # Report which library types will actually be built
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12514 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12516 $as_echo "$can_build_shared" >&6; }
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12519 $as_echo_n "checking whether to build shared libraries... " >&6; }
12520 test "$can_build_shared" = "no" && enable_shared=no
12521
12522 # On AIX, shared libraries and static libraries use the same namespace, and
12523 # are all built from PIC.
12524 case $host_os in
12525 aix3*)
12526 test "$enable_shared" = yes && enable_static=no
12527 if test -n "$RANLIB"; then
12528 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12529 postinstall_cmds='$RANLIB $lib'
12530 fi
12531 ;;
12532
12533 aix[4-9]*)
12534 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12535 test "$enable_shared" = yes && enable_static=no
12536 fi
12537 ;;
12538 esac
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12540 $as_echo "$enable_shared" >&6; }
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12543 $as_echo_n "checking whether to build static libraries... " >&6; }
12544 # Make sure either enable_shared or enable_static is yes.
12545 test "$enable_shared" = yes || enable_static=yes
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12547 $as_echo "$enable_static" >&6; }
12548
12549
12550
12551
12552 fi
12553 ac_ext=c
12554 ac_cpp='$CPP $CPPFLAGS'
12555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12558
12559 CC="$lt_save_CC"
12560
12561 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12562 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12563 (test "X$CXX" != "Xg++"))) ; then
12564 ac_ext=cpp
12565 ac_cpp='$CXXCPP $CPPFLAGS'
12566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12570 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12571 if test -z "$CXXCPP"; then
12572 if ${ac_cv_prog_CXXCPP+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 # Double quotes because CXXCPP needs to be expanded
12576 for CXXCPP in "$CXX -E" "/lib/cpp"
12577 do
12578 ac_preproc_ok=false
12579 for ac_cxx_preproc_warn_flag in '' yes
12580 do
12581 # Use a header file that comes with gcc, so configuring glibc
12582 # with a fresh cross-compiler works.
12583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 # <limits.h> exists even on freestanding compilers.
12585 # On the NeXT, cc -E runs the code through the compiler's parser,
12586 # not just through cpp. "Syntax error" is here to catch this case.
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #ifdef __STDC__
12590 # include <limits.h>
12591 #else
12592 # include <assert.h>
12593 #endif
12594 Syntax error
12595 _ACEOF
12596 if ac_fn_cxx_try_cpp "$LINENO"; then :
12597
12598 else
12599 # Broken: fails on valid input.
12600 continue
12601 fi
12602 rm -f conftest.err conftest.i conftest.$ac_ext
12603
12604 # OK, works on sane cases. Now check whether nonexistent headers
12605 # can be detected and how.
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include <ac_nonexistent.h>
12609 _ACEOF
12610 if ac_fn_cxx_try_cpp "$LINENO"; then :
12611 # Broken: success on invalid input.
12612 continue
12613 else
12614 # Passes both tests.
12615 ac_preproc_ok=:
12616 break
12617 fi
12618 rm -f conftest.err conftest.i conftest.$ac_ext
12619
12620 done
12621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12622 rm -f conftest.i conftest.err conftest.$ac_ext
12623 if $ac_preproc_ok; then :
12624 break
12625 fi
12626
12627 done
12628 ac_cv_prog_CXXCPP=$CXXCPP
12629
12630 fi
12631 CXXCPP=$ac_cv_prog_CXXCPP
12632 else
12633 ac_cv_prog_CXXCPP=$CXXCPP
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12636 $as_echo "$CXXCPP" >&6; }
12637 ac_preproc_ok=false
12638 for ac_cxx_preproc_warn_flag in '' yes
12639 do
12640 # Use a header file that comes with gcc, so configuring glibc
12641 # with a fresh cross-compiler works.
12642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12643 # <limits.h> exists even on freestanding compilers.
12644 # On the NeXT, cc -E runs the code through the compiler's parser,
12645 # not just through cpp. "Syntax error" is here to catch this case.
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648 #ifdef __STDC__
12649 # include <limits.h>
12650 #else
12651 # include <assert.h>
12652 #endif
12653 Syntax error
12654 _ACEOF
12655 if ac_fn_cxx_try_cpp "$LINENO"; then :
12656
12657 else
12658 # Broken: fails on valid input.
12659 continue
12660 fi
12661 rm -f conftest.err conftest.i conftest.$ac_ext
12662
12663 # OK, works on sane cases. Now check whether nonexistent headers
12664 # can be detected and how.
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <ac_nonexistent.h>
12668 _ACEOF
12669 if ac_fn_cxx_try_cpp "$LINENO"; then :
12670 # Broken: success on invalid input.
12671 continue
12672 else
12673 # Passes both tests.
12674 ac_preproc_ok=:
12675 break
12676 fi
12677 rm -f conftest.err conftest.i conftest.$ac_ext
12678
12679 done
12680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12681 rm -f conftest.i conftest.err conftest.$ac_ext
12682 if $ac_preproc_ok; then :
12683
12684 else
12685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12687 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12688 See \`config.log' for more details" "$LINENO" 5; }
12689 fi
12690
12691 ac_ext=c
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697 else
12698 _lt_caught_CXX_error=yes
12699 fi
12700
12701 ac_ext=cpp
12702 ac_cpp='$CXXCPP $CPPFLAGS'
12703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706
12707 archive_cmds_need_lc_CXX=no
12708 allow_undefined_flag_CXX=
12709 always_export_symbols_CXX=no
12710 archive_expsym_cmds_CXX=
12711 compiler_needs_object_CXX=no
12712 export_dynamic_flag_spec_CXX=
12713 hardcode_direct_CXX=no
12714 hardcode_direct_absolute_CXX=no
12715 hardcode_libdir_flag_spec_CXX=
12716 hardcode_libdir_flag_spec_ld_CXX=
12717 hardcode_libdir_separator_CXX=
12718 hardcode_minus_L_CXX=no
12719 hardcode_shlibpath_var_CXX=unsupported
12720 hardcode_automatic_CXX=no
12721 inherit_rpath_CXX=no
12722 module_cmds_CXX=
12723 module_expsym_cmds_CXX=
12724 link_all_deplibs_CXX=unknown
12725 old_archive_cmds_CXX=$old_archive_cmds
12726 reload_flag_CXX=$reload_flag
12727 reload_cmds_CXX=$reload_cmds
12728 no_undefined_flag_CXX=
12729 whole_archive_flag_spec_CXX=
12730 enable_shared_with_static_runtimes_CXX=no
12731
12732 # Source file extension for C++ test sources.
12733 ac_ext=cpp
12734
12735 # Object file extension for compiled C++ test sources.
12736 objext=o
12737 objext_CXX=$objext
12738
12739 # No sense in running all these tests if we already determined that
12740 # the CXX compiler isn't working. Some variables (like enable_shared)
12741 # are currently assumed to apply to all compilers on this platform,
12742 # and will be corrupted by setting them based on a non-working compiler.
12743 if test "$_lt_caught_CXX_error" != yes; then
12744 # Code to be used in simple compile tests
12745 lt_simple_compile_test_code="int some_variable = 0;"
12746
12747 # Code to be used in simple link tests
12748 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12749
12750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12751
12752
12753
12754
12755
12756
12757 # If no C compiler was specified, use CC.
12758 LTCC=${LTCC-"$CC"}
12759
12760 # If no C compiler flags were specified, use CFLAGS.
12761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12762
12763 # Allow CC to be a program name with arguments.
12764 compiler=$CC
12765
12766
12767 # save warnings/boilerplate of simple test code
12768 ac_outfile=conftest.$ac_objext
12769 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12771 _lt_compiler_boilerplate=`cat conftest.err`
12772 $RM conftest*
12773
12774 ac_outfile=conftest.$ac_objext
12775 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12777 _lt_linker_boilerplate=`cat conftest.err`
12778 $RM -r conftest*
12779
12780
12781 # Allow CC to be a program name with arguments.
12782 lt_save_CC=$CC
12783 lt_save_LD=$LD
12784 lt_save_GCC=$GCC
12785 GCC=$GXX
12786 lt_save_with_gnu_ld=$with_gnu_ld
12787 lt_save_path_LD=$lt_cv_path_LD
12788 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12789 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12790 else
12791 $as_unset lt_cv_prog_gnu_ld
12792 fi
12793 if test -n "${lt_cv_path_LDCXX+set}"; then
12794 lt_cv_path_LD=$lt_cv_path_LDCXX
12795 else
12796 $as_unset lt_cv_path_LD
12797 fi
12798 test -z "${LDCXX+set}" || LD=$LDCXX
12799 CC=${CXX-"c++"}
12800 compiler=$CC
12801 compiler_CXX=$CC
12802 for cc_temp in $compiler""; do
12803 case $cc_temp in
12804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12806 \-*) ;;
12807 *) break;;
12808 esac
12809 done
12810 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12811
12812
12813 if test -n "$compiler"; then
12814 # We don't want -fno-exception when compiling C++ code, so set the
12815 # no_builtin_flag separately
12816 if test "$GXX" = yes; then
12817 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12818 else
12819 lt_prog_compiler_no_builtin_flag_CXX=
12820 fi
12821
12822 if test "$GXX" = yes; then
12823 # Set up default GNU C++ configuration
12824
12825
12826
12827 # Check whether --with-gnu-ld was given.
12828 if test "${with_gnu_ld+set}" = set; then :
12829 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12830 else
12831 with_gnu_ld=no
12832 fi
12833
12834 ac_prog=ld
12835 if test "$GCC" = yes; then
12836 # Check if gcc -print-prog-name=ld gives a path.
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12838 $as_echo_n "checking for ld used by $CC... " >&6; }
12839 case $host in
12840 *-*-mingw*)
12841 # gcc leaves a trailing carriage return which upsets mingw
12842 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12843 *)
12844 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12845 esac
12846 case $ac_prog in
12847 # Accept absolute paths.
12848 [\\/]* | ?:[\\/]*)
12849 re_direlt='/[^/][^/]*/\.\./'
12850 # Canonicalize the pathname of ld
12851 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12852 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12853 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12854 done
12855 test -z "$LD" && LD="$ac_prog"
12856 ;;
12857 "")
12858 # If it fails, then pretend we aren't using GCC.
12859 ac_prog=ld
12860 ;;
12861 *)
12862 # If it is relative, then search for the first ld in PATH.
12863 with_gnu_ld=unknown
12864 ;;
12865 esac
12866 elif test "$with_gnu_ld" = yes; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12868 $as_echo_n "checking for GNU ld... " >&6; }
12869 else
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12871 $as_echo_n "checking for non-GNU ld... " >&6; }
12872 fi
12873 if ${lt_cv_path_LD+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -z "$LD"; then
12877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12878 for ac_dir in $PATH; do
12879 IFS="$lt_save_ifs"
12880 test -z "$ac_dir" && ac_dir=.
12881 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12882 lt_cv_path_LD="$ac_dir/$ac_prog"
12883 # Check to see if the program is GNU ld. I'd rather use --version,
12884 # but apparently some variants of GNU ld only accept -v.
12885 # Break only if it was the GNU/non-GNU ld that we prefer.
12886 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12887 *GNU* | *'with BFD'*)
12888 test "$with_gnu_ld" != no && break
12889 ;;
12890 *)
12891 test "$with_gnu_ld" != yes && break
12892 ;;
12893 esac
12894 fi
12895 done
12896 IFS="$lt_save_ifs"
12897 else
12898 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12899 fi
12900 fi
12901
12902 LD="$lt_cv_path_LD"
12903 if test -n "$LD"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12905 $as_echo "$LD" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12912 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12913 if ${lt_cv_prog_gnu_ld+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12917 case `$LD -v 2>&1 </dev/null` in
12918 *GNU* | *'with BFD'*)
12919 lt_cv_prog_gnu_ld=yes
12920 ;;
12921 *)
12922 lt_cv_prog_gnu_ld=no
12923 ;;
12924 esac
12925 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12927 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12928 with_gnu_ld=$lt_cv_prog_gnu_ld
12929
12930
12931
12932
12933
12934
12935
12936 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12937 # archiving commands below assume that GNU ld is being used.
12938 if test "$with_gnu_ld" = yes; then
12939 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 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'
12941
12942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12943 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12944
12945 # If archive_cmds runs LD, not CC, wlarc should be empty
12946 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12947 # investigate it a little bit more. (MM)
12948 wlarc='${wl}'
12949
12950 # ancient GNU ld didn't support --whole-archive et. al.
12951 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12952 $GREP 'no-whole-archive' > /dev/null; then
12953 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12954 else
12955 whole_archive_flag_spec_CXX=
12956 fi
12957 else
12958 with_gnu_ld=no
12959 wlarc=
12960
12961 # A generic and very simple default shared library creation
12962 # command for GNU C++ for the case where it uses the native
12963 # linker, instead of GNU ld. If possible, this setting should
12964 # overridden to take advantage of the native linker features on
12965 # the platform it is being used on.
12966 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12967 fi
12968
12969 # Commands to make compiler produce verbose output that lists
12970 # what "hidden" libraries, object files and flags are used when
12971 # linking a shared library.
12972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12973
12974 else
12975 GXX=no
12976 with_gnu_ld=no
12977 wlarc=
12978 fi
12979
12980 # PORTME: fill in a description of your system's C++ link characteristics
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12982 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12983 ld_shlibs_CXX=yes
12984 case $host_os in
12985 aix3*)
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 ;;
12989 aix[4-9]*)
12990 if test "$host_cpu" = ia64; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking=no
12994 exp_sym_flag='-Bexport'
12995 no_entry_flag=""
12996 else
12997 aix_use_runtimelinking=no
12998
12999 # Test if we are trying to use run time linking or normal
13000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13001 # need to do runtime linking.
13002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13003 for ld_flag in $LDFLAGS; do
13004 case $ld_flag in
13005 *-brtl*)
13006 aix_use_runtimelinking=yes
13007 break
13008 ;;
13009 esac
13010 done
13011 ;;
13012 esac
13013
13014 exp_sym_flag='-bexport'
13015 no_entry_flag='-bnoentry'
13016 fi
13017
13018 # When large executables or shared objects are built, AIX ld can
13019 # have problems creating the table of contents. If linking a library
13020 # or program results in "error TOC overflow" add -mminimal-toc to
13021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13023
13024 archive_cmds_CXX=''
13025 hardcode_direct_CXX=yes
13026 hardcode_direct_absolute_CXX=yes
13027 hardcode_libdir_separator_CXX=':'
13028 link_all_deplibs_CXX=yes
13029 file_list_spec_CXX='${wl}-f,'
13030
13031 if test "$GXX" = yes; then
13032 case $host_os in aix4.[012]|aix4.[012].*)
13033 # We only want to do this on AIX 4.2 and lower, the check
13034 # below for broken collect2 doesn't work under 4.3+
13035 collect2name=`${CC} -print-prog-name=collect2`
13036 if test -f "$collect2name" &&
13037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13038 then
13039 # We have reworked collect2
13040 :
13041 else
13042 # We have old collect2
13043 hardcode_direct_CXX=unsupported
13044 # It fails to find uninstalled libraries when the uninstalled
13045 # path is not listed in the libpath. Setting hardcode_minus_L
13046 # to unsupported forces relinking
13047 hardcode_minus_L_CXX=yes
13048 hardcode_libdir_flag_spec_CXX='-L$libdir'
13049 hardcode_libdir_separator_CXX=
13050 fi
13051 esac
13052 shared_flag='-shared'
13053 if test "$aix_use_runtimelinking" = yes; then
13054 shared_flag="$shared_flag "'${wl}-G'
13055 fi
13056 else
13057 # not using gcc
13058 if test "$host_cpu" = ia64; then
13059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13060 # chokes on -Wl,-G. The following line is correct:
13061 shared_flag='-G'
13062 else
13063 if test "$aix_use_runtimelinking" = yes; then
13064 shared_flag='${wl}-G'
13065 else
13066 shared_flag='${wl}-bM:SRE'
13067 fi
13068 fi
13069 fi
13070
13071 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13072 # It seems that -bexpall does not export symbols beginning with
13073 # underscore (_), so it is better to generate a list of symbols to
13074 # export.
13075 always_export_symbols_CXX=yes
13076 if test "$aix_use_runtimelinking" = yes; then
13077 # Warning - without using the other runtime loading flags (-brtl),
13078 # -berok will link without error, but may produce a broken library.
13079 allow_undefined_flag_CXX='-berok'
13080 # Determine the default libpath from the value encoded in an empty
13081 # executable.
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084
13085 int
13086 main ()
13087 {
13088
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_cxx_try_link "$LINENO"; then :
13094
13095 lt_aix_libpath_sed='
13096 /Import File Strings/,/^$/ {
13097 /^0/ {
13098 s/^0 *\(.*\)$/\1/
13099 p
13100 }
13101 }'
13102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103 # Check for a 64-bit object if we didn't find anything.
13104 if test -z "$aix_libpath"; then
13105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13106 fi
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13111
13112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13113
13114 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"
13115 else
13116 if test "$host_cpu" = ia64; then
13117 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13118 allow_undefined_flag_CXX="-z nodefs"
13119 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"
13120 else
13121 # Determine the default libpath from the value encoded in an
13122 # empty executable.
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125
13126 int
13127 main ()
13128 {
13129
13130 ;
13131 return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_cxx_try_link "$LINENO"; then :
13135
13136 lt_aix_libpath_sed='
13137 /Import File Strings/,/^$/ {
13138 /^0/ {
13139 s/^0 *\(.*\)$/\1/
13140 p
13141 }
13142 }'
13143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 # Check for a 64-bit object if we didn't find anything.
13145 if test -z "$aix_libpath"; then
13146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13147 fi
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13152
13153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13154 # Warning - without using the other run time loading flags,
13155 # -berok will link without error, but may produce a broken library.
13156 no_undefined_flag_CXX=' ${wl}-bernotok'
13157 allow_undefined_flag_CXX=' ${wl}-berok'
13158 if test "$with_gnu_ld" = yes; then
13159 # We only use this code for GNU lds that support --whole-archive.
13160 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13161 else
13162 # Exported symbols can be pulled into shared objects from archives
13163 whole_archive_flag_spec_CXX='$convenience'
13164 fi
13165 archive_cmds_need_lc_CXX=yes
13166 # This is similar to how AIX traditionally builds its shared
13167 # libraries.
13168 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'
13169 fi
13170 fi
13171 ;;
13172
13173 beos*)
13174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13175 allow_undefined_flag_CXX=unsupported
13176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13177 # support --undefined. This deserves some investigation. FIXME
13178 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 else
13180 ld_shlibs_CXX=no
13181 fi
13182 ;;
13183
13184 chorus*)
13185 case $cc_basename in
13186 *)
13187 # FIXME: insert proper C++ library support
13188 ld_shlibs_CXX=no
13189 ;;
13190 esac
13191 ;;
13192
13193 cygwin* | mingw* | pw32* | cegcc*)
13194 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13195 # as there is no search path for DLLs.
13196 hardcode_libdir_flag_spec_CXX='-L$libdir'
13197 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13198 allow_undefined_flag_CXX=unsupported
13199 always_export_symbols_CXX=no
13200 enable_shared_with_static_runtimes_CXX=yes
13201
13202 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13203 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'
13204 # If the export-symbols file already is a .def file (1st line
13205 # is EXPORTS), use it as is; otherwise, prepend...
13206 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13207 cp $export_symbols $output_objdir/$soname.def;
13208 else
13209 echo EXPORTS > $output_objdir/$soname.def;
13210 cat $export_symbols >> $output_objdir/$soname.def;
13211 fi~
13212 $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'
13213 else
13214 ld_shlibs_CXX=no
13215 fi
13216 ;;
13217 darwin* | rhapsody*)
13218
13219
13220 archive_cmds_need_lc_CXX=no
13221 hardcode_direct_CXX=no
13222 hardcode_automatic_CXX=yes
13223 hardcode_shlibpath_var_CXX=unsupported
13224 if test "$lt_cv_ld_force_load" = "yes"; then
13225 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\"`'
13226 else
13227 whole_archive_flag_spec_CXX=''
13228 fi
13229 link_all_deplibs_CXX=yes
13230 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13231 case $cc_basename in
13232 ifort*) _lt_dar_can_shared=yes ;;
13233 *) _lt_dar_can_shared=$GCC ;;
13234 esac
13235 if test "$_lt_dar_can_shared" = "yes"; then
13236 output_verbose_link_cmd=func_echo_all
13237 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}"
13238 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13239 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}"
13240 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}"
13241 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13242 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}"
13243 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}"
13244 fi
13245
13246 else
13247 ld_shlibs_CXX=no
13248 fi
13249
13250 ;;
13251
13252 dgux*)
13253 case $cc_basename in
13254 ec++*)
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 ;;
13258 ghcx*)
13259 # Green Hills C++ Compiler
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13262 ;;
13263 *)
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13266 ;;
13267 esac
13268 ;;
13269
13270 freebsd2.*)
13271 # C++ shared libraries reported to be fairly broken before
13272 # switch to ELF
13273 ld_shlibs_CXX=no
13274 ;;
13275
13276 freebsd-elf*)
13277 archive_cmds_need_lc_CXX=no
13278 ;;
13279
13280 freebsd* | dragonfly*)
13281 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13282 # conventions
13283 ld_shlibs_CXX=yes
13284 ;;
13285
13286 gnu*)
13287 ;;
13288
13289 haiku*)
13290 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 link_all_deplibs_CXX=yes
13292 ;;
13293
13294 hpux9*)
13295 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13296 hardcode_libdir_separator_CXX=:
13297 export_dynamic_flag_spec_CXX='${wl}-E'
13298 hardcode_direct_CXX=yes
13299 hardcode_minus_L_CXX=yes # Not in the search PATH,
13300 # but as the default
13301 # location of the library.
13302
13303 case $cc_basename in
13304 CC*)
13305 # FIXME: insert proper C++ library support
13306 ld_shlibs_CXX=no
13307 ;;
13308 aCC*)
13309 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'
13310 # Commands to make compiler produce verbose output that lists
13311 # what "hidden" libraries, object files and flags are used when
13312 # linking a shared library.
13313 #
13314 # There doesn't appear to be a way to prevent this compiler from
13315 # explicitly linking system object files so we need to strip them
13316 # from the output so that they don't get included in the library
13317 # dependencies.
13318 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"'
13319 ;;
13320 *)
13321 if test "$GXX" = yes; then
13322 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'
13323 else
13324 # FIXME: insert proper C++ library support
13325 ld_shlibs_CXX=no
13326 fi
13327 ;;
13328 esac
13329 ;;
13330
13331 hpux10*|hpux11*)
13332 if test $with_gnu_ld = no; then
13333 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13334 hardcode_libdir_separator_CXX=:
13335
13336 case $host_cpu in
13337 hppa*64*|ia64*)
13338 ;;
13339 *)
13340 export_dynamic_flag_spec_CXX='${wl}-E'
13341 ;;
13342 esac
13343 fi
13344 case $host_cpu in
13345 hppa*64*|ia64*)
13346 hardcode_direct_CXX=no
13347 hardcode_shlibpath_var_CXX=no
13348 ;;
13349 *)
13350 hardcode_direct_CXX=yes
13351 hardcode_direct_absolute_CXX=yes
13352 hardcode_minus_L_CXX=yes # Not in the search PATH,
13353 # but as the default
13354 # location of the library.
13355 ;;
13356 esac
13357
13358 case $cc_basename in
13359 CC*)
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 ;;
13363 aCC*)
13364 case $host_cpu in
13365 hppa*64*)
13366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13367 ;;
13368 ia64*)
13369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13370 ;;
13371 *)
13372 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13373 ;;
13374 esac
13375 # Commands to make compiler produce verbose output that lists
13376 # what "hidden" libraries, object files and flags are used when
13377 # linking a shared library.
13378 #
13379 # There doesn't appear to be a way to prevent this compiler from
13380 # explicitly linking system object files so we need to strip them
13381 # from the output so that they don't get included in the library
13382 # dependencies.
13383 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"'
13384 ;;
13385 *)
13386 if test "$GXX" = yes; then
13387 if test $with_gnu_ld = no; then
13388 case $host_cpu in
13389 hppa*64*)
13390 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13391 ;;
13392 ia64*)
13393 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13394 ;;
13395 *)
13396 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'
13397 ;;
13398 esac
13399 fi
13400 else
13401 # FIXME: insert proper C++ library support
13402 ld_shlibs_CXX=no
13403 fi
13404 ;;
13405 esac
13406 ;;
13407
13408 interix[3-9]*)
13409 hardcode_direct_CXX=no
13410 hardcode_shlibpath_var_CXX=no
13411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13412 export_dynamic_flag_spec_CXX='${wl}-E'
13413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13414 # Instead, shared libraries are loaded at an image base (0x10000000 by
13415 # default) and relocated if they conflict, which is a slow very memory
13416 # consuming and fragmenting process. To avoid this, we pick a random,
13417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13419 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'
13420 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'
13421 ;;
13422 irix5* | irix6*)
13423 case $cc_basename in
13424 CC*)
13425 # SGI C++
13426 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'
13427
13428 # Archives containing C++ object files must be created using
13429 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13430 # necessary to make sure instantiated templates are included
13431 # in the archive.
13432 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13433 ;;
13434 *)
13435 if test "$GXX" = yes; then
13436 if test "$with_gnu_ld" = no; then
13437 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'
13438 else
13439 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'
13440 fi
13441 fi
13442 link_all_deplibs_CXX=yes
13443 ;;
13444 esac
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446 hardcode_libdir_separator_CXX=:
13447 inherit_rpath_CXX=yes
13448 ;;
13449
13450 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13451 case $cc_basename in
13452 KCC*)
13453 # Kuck and Associates, Inc. (KAI) C++ Compiler
13454
13455 # KCC will only create a shared library if the output file
13456 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13457 # to its proper name (with version) after linking.
13458 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'
13459 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'
13460 # Commands to make compiler produce verbose output that lists
13461 # what "hidden" libraries, object files and flags are used when
13462 # linking a shared library.
13463 #
13464 # There doesn't appear to be a way to prevent this compiler from
13465 # explicitly linking system object files so we need to strip them
13466 # from the output so that they don't get included in the library
13467 # dependencies.
13468 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"'
13469
13470 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13472
13473 # Archives containing C++ object files must be created using
13474 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13475 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13476 ;;
13477 icpc* | ecpc* )
13478 # Intel C++
13479 with_gnu_ld=yes
13480 # version 8.0 and above of icpc choke on multiply defined symbols
13481 # if we add $predep_objects and $postdep_objects, however 7.1 and
13482 # earlier do not add the objects themselves.
13483 case `$CC -V 2>&1` in
13484 *"Version 7."*)
13485 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13486 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'
13487 ;;
13488 *) # Version 8.0 or newer
13489 tmp_idyn=
13490 case $host_cpu in
13491 ia64*) tmp_idyn=' -i_dynamic';;
13492 esac
13493 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 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'
13495 ;;
13496 esac
13497 archive_cmds_need_lc_CXX=no
13498 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13500 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13501 ;;
13502 pgCC* | pgcpp*)
13503 # Portland Group C++ compiler
13504 case `$CC -V` in
13505 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13506 prelink_cmds_CXX='tpldir=Template.dir~
13507 rm -rf $tpldir~
13508 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13509 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13510 old_archive_cmds_CXX='tpldir=Template.dir~
13511 rm -rf $tpldir~
13512 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13513 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13514 $RANLIB $oldlib'
13515 archive_cmds_CXX='tpldir=Template.dir~
13516 rm -rf $tpldir~
13517 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13518 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13519 archive_expsym_cmds_CXX='tpldir=Template.dir~
13520 rm -rf $tpldir~
13521 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13522 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13523 ;;
13524 *) # Version 6 and above use weak symbols
13525 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13526 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'
13527 ;;
13528 esac
13529
13530 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13532 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'
13533 ;;
13534 cxx*)
13535 # Compaq C++
13536 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537 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'
13538
13539 runpath_var=LD_RUN_PATH
13540 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13541 hardcode_libdir_separator_CXX=:
13542
13543 # Commands to make compiler produce verbose output that lists
13544 # what "hidden" libraries, object files and flags are used when
13545 # linking a shared library.
13546 #
13547 # There doesn't appear to be a way to prevent this compiler from
13548 # explicitly linking system object files so we need to strip them
13549 # from the output so that they don't get included in the library
13550 # dependencies.
13551 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'
13552 ;;
13553 xl* | mpixl* | bgxl*)
13554 # IBM XL 8.0 on PPC, with GNU ld
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13557 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13558 if test "x$supports_anon_versioning" = xyes; then
13559 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13561 echo "local: *; };" >> $output_objdir/$libname.ver~
13562 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13563 fi
13564 ;;
13565 *)
13566 case `$CC -V 2>&1 | sed 5q` in
13567 *Sun\ C*)
13568 # Sun C++ 5.9
13569 no_undefined_flag_CXX=' -zdefs'
13570 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13571 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'
13572 hardcode_libdir_flag_spec_CXX='-R$libdir'
13573 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'
13574 compiler_needs_object_CXX=yes
13575
13576 # Not sure whether something based on
13577 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13578 # would be better.
13579 output_verbose_link_cmd='func_echo_all'
13580
13581 # Archives containing C++ object files must be created using
13582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13583 # necessary to make sure instantiated templates are included
13584 # in the archive.
13585 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13586 ;;
13587 esac
13588 ;;
13589 esac
13590 ;;
13591
13592 lynxos*)
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13595 ;;
13596
13597 m88k*)
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13600 ;;
13601
13602 mvs*)
13603 case $cc_basename in
13604 cxx*)
13605 # FIXME: insert proper C++ library support
13606 ld_shlibs_CXX=no
13607 ;;
13608 *)
13609 # FIXME: insert proper C++ library support
13610 ld_shlibs_CXX=no
13611 ;;
13612 esac
13613 ;;
13614
13615 netbsd*)
13616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13617 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13618 wlarc=
13619 hardcode_libdir_flag_spec_CXX='-R$libdir'
13620 hardcode_direct_CXX=yes
13621 hardcode_shlibpath_var_CXX=no
13622 fi
13623 # Workaround some broken pre-1.5 toolchains
13624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13625 ;;
13626
13627 *nto* | *qnx*)
13628 ld_shlibs_CXX=yes
13629 ;;
13630
13631 openbsd2*)
13632 # C++ shared libraries are fairly broken
13633 ld_shlibs_CXX=no
13634 ;;
13635
13636 openbsd*)
13637 if test -f /usr/libexec/ld.so; then
13638 hardcode_direct_CXX=yes
13639 hardcode_shlibpath_var_CXX=no
13640 hardcode_direct_absolute_CXX=yes
13641 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13644 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13645 export_dynamic_flag_spec_CXX='${wl}-E'
13646 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13647 fi
13648 output_verbose_link_cmd=func_echo_all
13649 else
13650 ld_shlibs_CXX=no
13651 fi
13652 ;;
13653
13654 osf3* | osf4* | osf5*)
13655 case $cc_basename in
13656 KCC*)
13657 # Kuck and Associates, Inc. (KAI) C++ Compiler
13658
13659 # KCC will only create a shared library if the output file
13660 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13661 # to its proper name (with version) after linking.
13662 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'
13663
13664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13665 hardcode_libdir_separator_CXX=:
13666
13667 # Archives containing C++ object files must be created using
13668 # the KAI C++ compiler.
13669 case $host in
13670 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13671 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13672 esac
13673 ;;
13674 RCC*)
13675 # Rational C++ 2.4.1
13676 # FIXME: insert proper C++ library support
13677 ld_shlibs_CXX=no
13678 ;;
13679 cxx*)
13680 case $host in
13681 osf3*)
13682 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13683 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'
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13685 ;;
13686 *)
13687 allow_undefined_flag_CXX=' -expect_unresolved \*'
13688 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'
13689 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13690 echo "-hidden">> $lib.exp~
13691 $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~
13692 $RM $lib.exp'
13693 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13694 ;;
13695 esac
13696
13697 hardcode_libdir_separator_CXX=:
13698
13699 # Commands to make compiler produce verbose output that lists
13700 # what "hidden" libraries, object files and flags are used when
13701 # linking a shared library.
13702 #
13703 # There doesn't appear to be a way to prevent this compiler from
13704 # explicitly linking system object files so we need to strip them
13705 # from the output so that they don't get included in the library
13706 # dependencies.
13707 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"'
13708 ;;
13709 *)
13710 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13711 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13712 case $host in
13713 osf3*)
13714 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'
13715 ;;
13716 *)
13717 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'
13718 ;;
13719 esac
13720
13721 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13722 hardcode_libdir_separator_CXX=:
13723
13724 # Commands to make compiler produce verbose output that lists
13725 # what "hidden" libraries, object files and flags are used when
13726 # linking a shared library.
13727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13728
13729 else
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 fi
13733 ;;
13734 esac
13735 ;;
13736
13737 psos*)
13738 # FIXME: insert proper C++ library support
13739 ld_shlibs_CXX=no
13740 ;;
13741
13742 sunos4*)
13743 case $cc_basename in
13744 CC*)
13745 # Sun C++ 4.x
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 lcc*)
13750 # Lucid
13751 # FIXME: insert proper C++ library support
13752 ld_shlibs_CXX=no
13753 ;;
13754 *)
13755 # FIXME: insert proper C++ library support
13756 ld_shlibs_CXX=no
13757 ;;
13758 esac
13759 ;;
13760
13761 solaris*)
13762 case $cc_basename in
13763 CC*)
13764 # Sun C++ 4.2, 5.x and Centerline C++
13765 archive_cmds_need_lc_CXX=yes
13766 no_undefined_flag_CXX=' -zdefs'
13767 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13768 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13769 $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'
13770
13771 hardcode_libdir_flag_spec_CXX='-R$libdir'
13772 hardcode_shlibpath_var_CXX=no
13773 case $host_os in
13774 solaris2.[0-5] | solaris2.[0-5].*) ;;
13775 *)
13776 # The compiler driver will combine and reorder linker options,
13777 # but understands `-z linker_flag'.
13778 # Supported since Solaris 2.6 (maybe 2.5.1?)
13779 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13780 ;;
13781 esac
13782 link_all_deplibs_CXX=yes
13783
13784 output_verbose_link_cmd='func_echo_all'
13785
13786 # Archives containing C++ object files must be created using
13787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13788 # necessary to make sure instantiated templates are included
13789 # in the archive.
13790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13791 ;;
13792 gcx*)
13793 # Green Hills C++ Compiler
13794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13795
13796 # The C++ compiler must be used to create the archive.
13797 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13798 ;;
13799 *)
13800 # GNU C++ compiler with Solaris linker
13801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13802 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13803 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13804 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13805 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13806 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13807
13808 # Commands to make compiler produce verbose output that lists
13809 # what "hidden" libraries, object files and flags are used when
13810 # linking a shared library.
13811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13812 else
13813 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13814 # platform.
13815 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13817 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13818
13819 # Commands to make compiler produce verbose output that lists
13820 # what "hidden" libraries, object files and flags are used when
13821 # linking a shared library.
13822 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13823 fi
13824
13825 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13826 case $host_os in
13827 solaris2.[0-5] | solaris2.[0-5].*) ;;
13828 *)
13829 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13830 ;;
13831 esac
13832 fi
13833 ;;
13834 esac
13835 ;;
13836
13837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13838 no_undefined_flag_CXX='${wl}-z,text'
13839 archive_cmds_need_lc_CXX=no
13840 hardcode_shlibpath_var_CXX=no
13841 runpath_var='LD_RUN_PATH'
13842
13843 case $cc_basename in
13844 CC*)
13845 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847 ;;
13848 *)
13849 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 ;;
13852 esac
13853 ;;
13854
13855 sysv5* | sco3.2v5* | sco5v6*)
13856 # Note: We can NOT use -z defs as we might desire, because we do not
13857 # link with -lc, and that would cause any symbols used from libc to
13858 # always be unresolved, which means just about no library would
13859 # ever link correctly. If we're not using GNU ld we use -z text
13860 # though, which does catch some bad symbols but isn't as heavy-handed
13861 # as -z defs.
13862 no_undefined_flag_CXX='${wl}-z,text'
13863 allow_undefined_flag_CXX='${wl}-z,nodefs'
13864 archive_cmds_need_lc_CXX=no
13865 hardcode_shlibpath_var_CXX=no
13866 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13867 hardcode_libdir_separator_CXX=':'
13868 link_all_deplibs_CXX=yes
13869 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13870 runpath_var='LD_RUN_PATH'
13871
13872 case $cc_basename in
13873 CC*)
13874 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13877 '"$old_archive_cmds_CXX"
13878 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13879 '"$reload_cmds_CXX"
13880 ;;
13881 *)
13882 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13884 ;;
13885 esac
13886 ;;
13887
13888 tandem*)
13889 case $cc_basename in
13890 NCC*)
13891 # NonStop-UX NCC 3.20
13892 # FIXME: insert proper C++ library support
13893 ld_shlibs_CXX=no
13894 ;;
13895 *)
13896 # FIXME: insert proper C++ library support
13897 ld_shlibs_CXX=no
13898 ;;
13899 esac
13900 ;;
13901
13902 vxworks*)
13903 # FIXME: insert proper C++ library support
13904 ld_shlibs_CXX=no
13905 ;;
13906
13907 *)
13908 # FIXME: insert proper C++ library support
13909 ld_shlibs_CXX=no
13910 ;;
13911 esac
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13914 $as_echo "$ld_shlibs_CXX" >&6; }
13915 test "$ld_shlibs_CXX" = no && can_build_shared=no
13916
13917 GCC_CXX="$GXX"
13918 LD_CXX="$LD"
13919
13920 ## CAVEAT EMPTOR:
13921 ## There is no encapsulation within the following macros, do not change
13922 ## the running order or otherwise move them around unless you know exactly
13923 ## what you are doing...
13924 # Dependencies to place before and after the object being linked:
13925 predep_objects_CXX=
13926 postdep_objects_CXX=
13927 predeps_CXX=
13928 postdeps_CXX=
13929 compiler_lib_search_path_CXX=
13930
13931 cat > conftest.$ac_ext <<_LT_EOF
13932 class Foo
13933 {
13934 public:
13935 Foo (void) { a = 0; }
13936 private:
13937 int a;
13938 };
13939 _LT_EOF
13940
13941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13942 (eval $ac_compile) 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; then
13946 # Parse the compiler output and extract the necessary
13947 # objects, libraries and library flags.
13948
13949 # Sentinel used to keep track of whether or not we are before
13950 # the conftest object file.
13951 pre_test_object_deps_done=no
13952
13953 for p in `eval "$output_verbose_link_cmd"`; do
13954 case $p in
13955
13956 -L* | -R* | -l*)
13957 # Some compilers place space between "-{L,R}" and the path.
13958 # Remove the space.
13959 if test $p = "-L" ||
13960 test $p = "-R"; then
13961 prev=$p
13962 continue
13963 else
13964 prev=
13965 fi
13966
13967 if test "$pre_test_object_deps_done" = no; then
13968 case $p in
13969 -L* | -R*)
13970 # Internal compiler library paths should come after those
13971 # provided the user. The postdeps already come after the
13972 # user supplied libs so there is no need to process them.
13973 if test -z "$compiler_lib_search_path_CXX"; then
13974 compiler_lib_search_path_CXX="${prev}${p}"
13975 else
13976 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13977 fi
13978 ;;
13979 # The "-l" case would never come before the object being
13980 # linked, so don't bother handling this case.
13981 esac
13982 else
13983 if test -z "$postdeps_CXX"; then
13984 postdeps_CXX="${prev}${p}"
13985 else
13986 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13987 fi
13988 fi
13989 ;;
13990
13991 *.$objext)
13992 # This assumes that the test object file only shows up
13993 # once in the compiler output.
13994 if test "$p" = "conftest.$objext"; then
13995 pre_test_object_deps_done=yes
13996 continue
13997 fi
13998
13999 if test "$pre_test_object_deps_done" = no; then
14000 if test -z "$predep_objects_CXX"; then
14001 predep_objects_CXX="$p"
14002 else
14003 predep_objects_CXX="$predep_objects_CXX $p"
14004 fi
14005 else
14006 if test -z "$postdep_objects_CXX"; then
14007 postdep_objects_CXX="$p"
14008 else
14009 postdep_objects_CXX="$postdep_objects_CXX $p"
14010 fi
14011 fi
14012 ;;
14013
14014 *) ;; # Ignore the rest.
14015
14016 esac
14017 done
14018
14019 # Clean up.
14020 rm -f a.out a.exe
14021 else
14022 echo "libtool.m4: error: problem compiling CXX test program"
14023 fi
14024
14025 $RM -f confest.$objext
14026
14027 # PORTME: override above test on systems where it is broken
14028 case $host_os in
14029 interix[3-9]*)
14030 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14031 # hack all around it, let's just trust "g++" to DTRT.
14032 predep_objects_CXX=
14033 postdep_objects_CXX=
14034 postdeps_CXX=
14035 ;;
14036
14037 linux*)
14038 case `$CC -V 2>&1 | sed 5q` in
14039 *Sun\ C*)
14040 # Sun C++ 5.9
14041
14042 # The more standards-conforming stlport4 library is
14043 # incompatible with the Cstd library. Avoid specifying
14044 # it if it's in CXXFLAGS. Ignore libCrun as
14045 # -library=stlport4 depends on it.
14046 case " $CXX $CXXFLAGS " in
14047 *" -library=stlport4 "*)
14048 solaris_use_stlport4=yes
14049 ;;
14050 esac
14051
14052 if test "$solaris_use_stlport4" != yes; then
14053 postdeps_CXX='-library=Cstd -library=Crun'
14054 fi
14055 ;;
14056 esac
14057 ;;
14058
14059 solaris*)
14060 case $cc_basename in
14061 CC*)
14062 # The more standards-conforming stlport4 library is
14063 # incompatible with the Cstd library. Avoid specifying
14064 # it if it's in CXXFLAGS. Ignore libCrun as
14065 # -library=stlport4 depends on it.
14066 case " $CXX $CXXFLAGS " in
14067 *" -library=stlport4 "*)
14068 solaris_use_stlport4=yes
14069 ;;
14070 esac
14071
14072 # Adding this requires a known-good setup of shared libraries for
14073 # Sun compiler versions before 5.6, else PIC objects from an old
14074 # archive will be linked into the output, leading to subtle bugs.
14075 if test "$solaris_use_stlport4" != yes; then
14076 postdeps_CXX='-library=Cstd -library=Crun'
14077 fi
14078 ;;
14079 esac
14080 ;;
14081 esac
14082
14083
14084 case " $postdeps_CXX " in
14085 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14086 esac
14087 compiler_lib_search_dirs_CXX=
14088 if test -n "${compiler_lib_search_path_CXX}"; then
14089 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14090 fi
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122 lt_prog_compiler_wl_CXX=
14123 lt_prog_compiler_pic_CXX=
14124 lt_prog_compiler_static_CXX=
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14127 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14128
14129 # C++ specific cases for pic, static, wl, etc.
14130 if test "$GXX" = yes; then
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_static_CXX='-static'
14133
14134 case $host_os in
14135 aix*)
14136 # All AIX code is PIC.
14137 if test "$host_cpu" = ia64; then
14138 # AIX 5 now supports IA64 processor
14139 lt_prog_compiler_static_CXX='-Bstatic'
14140 fi
14141 lt_prog_compiler_pic_CXX='-fPIC'
14142 ;;
14143
14144 amigaos*)
14145 case $host_cpu in
14146 powerpc)
14147 # see comment about AmigaOS4 .so support
14148 lt_prog_compiler_pic_CXX='-fPIC'
14149 ;;
14150 m68k)
14151 # FIXME: we need at least 68020 code to build shared libraries, but
14152 # adding the `-m68020' flag to GCC prevents building anything better,
14153 # like `-m68040'.
14154 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14155 ;;
14156 esac
14157 ;;
14158
14159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14160 # PIC is the default for these OSes.
14161 ;;
14162 mingw* | cygwin* | os2* | pw32* | cegcc*)
14163 # This hack is so that the source file can tell whether it is being
14164 # built for inclusion in a dll (and should export symbols for example).
14165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14166 # (--disable-auto-import) libraries
14167 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14168 ;;
14169 darwin* | rhapsody*)
14170 # PIC is the default on this platform
14171 # Common symbols not allowed in MH_DYLIB files
14172 lt_prog_compiler_pic_CXX='-fno-common'
14173 ;;
14174 *djgpp*)
14175 # DJGPP does not support shared libraries at all
14176 lt_prog_compiler_pic_CXX=
14177 ;;
14178 haiku*)
14179 # PIC is the default for Haiku.
14180 # The "-static" flag exists, but is broken.
14181 lt_prog_compiler_static_CXX=
14182 ;;
14183 interix[3-9]*)
14184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14185 # Instead, we relocate shared libraries at runtime.
14186 ;;
14187 sysv4*MP*)
14188 if test -d /usr/nec; then
14189 lt_prog_compiler_pic_CXX=-Kconform_pic
14190 fi
14191 ;;
14192 hpux*)
14193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14195 # sets the default TLS model and affects inlining.
14196 case $host_cpu in
14197 hppa*64*)
14198 ;;
14199 *)
14200 lt_prog_compiler_pic_CXX='-fPIC'
14201 ;;
14202 esac
14203 ;;
14204 *qnx* | *nto*)
14205 # QNX uses GNU C++, but need to define -shared option too, otherwise
14206 # it will coredump.
14207 lt_prog_compiler_pic_CXX='-fPIC -shared'
14208 ;;
14209 *)
14210 lt_prog_compiler_pic_CXX='-fPIC'
14211 ;;
14212 esac
14213 else
14214 case $host_os in
14215 aix[4-9]*)
14216 # All AIX code is PIC.
14217 if test "$host_cpu" = ia64; then
14218 # AIX 5 now supports IA64 processor
14219 lt_prog_compiler_static_CXX='-Bstatic'
14220 else
14221 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14222 fi
14223 ;;
14224 chorus*)
14225 case $cc_basename in
14226 cxch68*)
14227 # Green Hills C++ Compiler
14228 # _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"
14229 ;;
14230 esac
14231 ;;
14232 dgux*)
14233 case $cc_basename in
14234 ec++*)
14235 lt_prog_compiler_pic_CXX='-KPIC'
14236 ;;
14237 ghcx*)
14238 # Green Hills C++ Compiler
14239 lt_prog_compiler_pic_CXX='-pic'
14240 ;;
14241 *)
14242 ;;
14243 esac
14244 ;;
14245 freebsd* | dragonfly*)
14246 # FreeBSD uses GNU C++
14247 ;;
14248 hpux9* | hpux10* | hpux11*)
14249 case $cc_basename in
14250 CC*)
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14253 if test "$host_cpu" != ia64; then
14254 lt_prog_compiler_pic_CXX='+Z'
14255 fi
14256 ;;
14257 aCC*)
14258 lt_prog_compiler_wl_CXX='-Wl,'
14259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14260 case $host_cpu in
14261 hppa*64*|ia64*)
14262 # +Z the default
14263 ;;
14264 *)
14265 lt_prog_compiler_pic_CXX='+Z'
14266 ;;
14267 esac
14268 ;;
14269 *)
14270 ;;
14271 esac
14272 ;;
14273 interix*)
14274 # This is c89, which is MS Visual C++ (no shared libs)
14275 # Anyone wants to do a port?
14276 ;;
14277 irix5* | irix6* | nonstopux*)
14278 case $cc_basename in
14279 CC*)
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 lt_prog_compiler_static_CXX='-non_shared'
14282 # CC pic flag -KPIC is the default.
14283 ;;
14284 *)
14285 ;;
14286 esac
14287 ;;
14288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14289 case $cc_basename in
14290 KCC*)
14291 # KAI C++ Compiler
14292 lt_prog_compiler_wl_CXX='--backend -Wl,'
14293 lt_prog_compiler_pic_CXX='-fPIC'
14294 ;;
14295 ecpc* )
14296 # old Intel C++ for x86_64 which still supported -KPIC.
14297 lt_prog_compiler_wl_CXX='-Wl,'
14298 lt_prog_compiler_pic_CXX='-KPIC'
14299 lt_prog_compiler_static_CXX='-static'
14300 ;;
14301 icpc* )
14302 # Intel C++, used to be incompatible with GCC.
14303 # ICC 10 doesn't accept -KPIC any more.
14304 lt_prog_compiler_wl_CXX='-Wl,'
14305 lt_prog_compiler_pic_CXX='-fPIC'
14306 lt_prog_compiler_static_CXX='-static'
14307 ;;
14308 pgCC* | pgcpp*)
14309 # Portland Group C++ compiler
14310 lt_prog_compiler_wl_CXX='-Wl,'
14311 lt_prog_compiler_pic_CXX='-fpic'
14312 lt_prog_compiler_static_CXX='-Bstatic'
14313 ;;
14314 cxx*)
14315 # Compaq C++
14316 # Make sure the PIC flag is empty. It appears that all Alpha
14317 # Linux and Compaq Tru64 Unix objects are PIC.
14318 lt_prog_compiler_pic_CXX=
14319 lt_prog_compiler_static_CXX='-non_shared'
14320 ;;
14321 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14322 # IBM XL 8.0, 9.0 on PPC and BlueGene
14323 lt_prog_compiler_wl_CXX='-Wl,'
14324 lt_prog_compiler_pic_CXX='-qpic'
14325 lt_prog_compiler_static_CXX='-qstaticlink'
14326 ;;
14327 *)
14328 case `$CC -V 2>&1 | sed 5q` in
14329 *Sun\ C*)
14330 # Sun C++ 5.9
14331 lt_prog_compiler_pic_CXX='-KPIC'
14332 lt_prog_compiler_static_CXX='-Bstatic'
14333 lt_prog_compiler_wl_CXX='-Qoption ld '
14334 ;;
14335 esac
14336 ;;
14337 esac
14338 ;;
14339 lynxos*)
14340 ;;
14341 m88k*)
14342 ;;
14343 mvs*)
14344 case $cc_basename in
14345 cxx*)
14346 lt_prog_compiler_pic_CXX='-W c,exportall'
14347 ;;
14348 *)
14349 ;;
14350 esac
14351 ;;
14352 netbsd*)
14353 ;;
14354 *qnx* | *nto*)
14355 # QNX uses GNU C++, but need to define -shared option too, otherwise
14356 # it will coredump.
14357 lt_prog_compiler_pic_CXX='-fPIC -shared'
14358 ;;
14359 osf3* | osf4* | osf5*)
14360 case $cc_basename in
14361 KCC*)
14362 lt_prog_compiler_wl_CXX='--backend -Wl,'
14363 ;;
14364 RCC*)
14365 # Rational C++ 2.4.1
14366 lt_prog_compiler_pic_CXX='-pic'
14367 ;;
14368 cxx*)
14369 # Digital/Compaq C++
14370 lt_prog_compiler_wl_CXX='-Wl,'
14371 # Make sure the PIC flag is empty. It appears that all Alpha
14372 # Linux and Compaq Tru64 Unix objects are PIC.
14373 lt_prog_compiler_pic_CXX=
14374 lt_prog_compiler_static_CXX='-non_shared'
14375 ;;
14376 *)
14377 ;;
14378 esac
14379 ;;
14380 psos*)
14381 ;;
14382 solaris*)
14383 case $cc_basename in
14384 CC*)
14385 # Sun C++ 4.2, 5.x and Centerline C++
14386 lt_prog_compiler_pic_CXX='-KPIC'
14387 lt_prog_compiler_static_CXX='-Bstatic'
14388 lt_prog_compiler_wl_CXX='-Qoption ld '
14389 ;;
14390 gcx*)
14391 # Green Hills C++ Compiler
14392 lt_prog_compiler_pic_CXX='-PIC'
14393 ;;
14394 *)
14395 ;;
14396 esac
14397 ;;
14398 sunos4*)
14399 case $cc_basename in
14400 CC*)
14401 # Sun C++ 4.x
14402 lt_prog_compiler_pic_CXX='-pic'
14403 lt_prog_compiler_static_CXX='-Bstatic'
14404 ;;
14405 lcc*)
14406 # Lucid
14407 lt_prog_compiler_pic_CXX='-pic'
14408 ;;
14409 *)
14410 ;;
14411 esac
14412 ;;
14413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14414 case $cc_basename in
14415 CC*)
14416 lt_prog_compiler_wl_CXX='-Wl,'
14417 lt_prog_compiler_pic_CXX='-KPIC'
14418 lt_prog_compiler_static_CXX='-Bstatic'
14419 ;;
14420 esac
14421 ;;
14422 tandem*)
14423 case $cc_basename in
14424 NCC*)
14425 # NonStop-UX NCC 3.20
14426 lt_prog_compiler_pic_CXX='-KPIC'
14427 ;;
14428 *)
14429 ;;
14430 esac
14431 ;;
14432 vxworks*)
14433 ;;
14434 *)
14435 lt_prog_compiler_can_build_shared_CXX=no
14436 ;;
14437 esac
14438 fi
14439
14440 case $host_os in
14441 # For platforms which do not support PIC, -DPIC is meaningless:
14442 *djgpp*)
14443 lt_prog_compiler_pic_CXX=
14444 ;;
14445 *)
14446 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14447 ;;
14448 esac
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14450 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14451
14452
14453
14454 #
14455 # Check to make sure the PIC flag actually works.
14456 #
14457 if test -n "$lt_prog_compiler_pic_CXX"; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14460 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 lt_cv_prog_compiler_pic_works_CXX=no
14464 ac_outfile=conftest.$ac_objext
14465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 # The option is referenced via a variable to avoid confusing sed.
14472 lt_compile=`echo "$ac_compile" | $SED \
14473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
14476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14477 (eval "$lt_compile" 2>conftest.err)
14478 ac_status=$?
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 if (exit $ac_status) && test -s "$ac_outfile"; then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings other than the usual output.
14484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_pic_works_CXX=yes
14488 fi
14489 fi
14490 $RM conftest*
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14494 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14495
14496 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14497 case $lt_prog_compiler_pic_CXX in
14498 "" | " "*) ;;
14499 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14500 esac
14501 else
14502 lt_prog_compiler_pic_CXX=
14503 lt_prog_compiler_can_build_shared_CXX=no
14504 fi
14505
14506 fi
14507
14508
14509
14510 #
14511 # Check to make sure the static flag actually works.
14512 #
14513 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14515 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14516 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14517 $as_echo_n "(cached) " >&6
14518 else
14519 lt_cv_prog_compiler_static_works_CXX=no
14520 save_LDFLAGS="$LDFLAGS"
14521 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14522 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14524 # The linker can only warn and ignore the option if not recognized
14525 # So say no if there are warnings
14526 if test -s conftest.err; then
14527 # Append any errors to the config.log.
14528 cat conftest.err 1>&5
14529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14531 if diff conftest.exp conftest.er2 >/dev/null; then
14532 lt_cv_prog_compiler_static_works_CXX=yes
14533 fi
14534 else
14535 lt_cv_prog_compiler_static_works_CXX=yes
14536 fi
14537 fi
14538 $RM -r conftest*
14539 LDFLAGS="$save_LDFLAGS"
14540
14541 fi
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14543 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14544
14545 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14546 :
14547 else
14548 lt_prog_compiler_static_CXX=
14549 fi
14550
14551
14552
14553
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14556 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 lt_cv_prog_compiler_c_o_CXX=no
14560 $RM -r conftest 2>/dev/null
14561 mkdir conftest
14562 cd conftest
14563 mkdir out
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565
14566 lt_compiler_flag="-o out/conftest2.$ac_objext"
14567 # Insert the option either (1) after the last *FLAGS variable, or
14568 # (2) before a word containing "conftest.", or (3) at the end.
14569 # Note that $ac_compile itself does not contain backslashes and begins
14570 # with a dollar sign (not a hyphen), so the echo should work correctly.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
14575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14576 (eval "$lt_compile" 2>out/conftest.err)
14577 ac_status=$?
14578 cat out/conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14581 then
14582 # The compiler can only warn and ignore the option if not recognized
14583 # So say no if there are warnings
14584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_c_o_CXX=yes
14588 fi
14589 fi
14590 chmod u+w . 2>&5
14591 $RM conftest*
14592 # SGI C++ compiler will create directory out/ii_files/ for
14593 # template instantiation
14594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14595 $RM out/* && rmdir out
14596 cd ..
14597 $RM -r conftest
14598 $RM conftest*
14599
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14603
14604
14605
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14608 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 lt_cv_prog_compiler_c_o_CXX=no
14612 $RM -r conftest 2>/dev/null
14613 mkdir conftest
14614 cd conftest
14615 mkdir out
14616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14617
14618 lt_compiler_flag="-o out/conftest2.$ac_objext"
14619 # Insert the option either (1) after the last *FLAGS variable, or
14620 # (2) before a word containing "conftest.", or (3) at the end.
14621 # Note that $ac_compile itself does not contain backslashes and begins
14622 # with a dollar sign (not a hyphen), so the echo should work correctly.
14623 lt_compile=`echo "$ac_compile" | $SED \
14624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14626 -e 's:$: $lt_compiler_flag:'`
14627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14628 (eval "$lt_compile" 2>out/conftest.err)
14629 ac_status=$?
14630 cat out/conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14633 then
14634 # The compiler can only warn and ignore the option if not recognized
14635 # So say no if there are warnings
14636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14639 lt_cv_prog_compiler_c_o_CXX=yes
14640 fi
14641 fi
14642 chmod u+w . 2>&5
14643 $RM conftest*
14644 # SGI C++ compiler will create directory out/ii_files/ for
14645 # template instantiation
14646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14647 $RM out/* && rmdir out
14648 cd ..
14649 $RM -r conftest
14650 $RM conftest*
14651
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14654 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14655
14656
14657
14658
14659 hard_links="nottested"
14660 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14661 # do not overwrite the value of need_locks provided by the user
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14663 $as_echo_n "checking if we can lock with hard links... " >&6; }
14664 hard_links=yes
14665 $RM conftest*
14666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14667 touch conftest.a
14668 ln conftest.a conftest.b 2>&5 || hard_links=no
14669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14671 $as_echo "$hard_links" >&6; }
14672 if test "$hard_links" = no; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14675 need_locks=warn
14676 fi
14677 else
14678 need_locks=no
14679 fi
14680
14681
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14685
14686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14687 case $host_os in
14688 aix[4-9]*)
14689 # If we're using GNU nm, then we don't want the "-C" option.
14690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14691 # Also, AIX nm treats weak defined symbols like other global defined
14692 # symbols, whereas GNU nm marks them as "W".
14693 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14694 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'
14695 else
14696 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'
14697 fi
14698 ;;
14699 pw32*)
14700 export_symbols_cmds_CXX="$ltdll_cmds"
14701 ;;
14702 cygwin* | mingw* | cegcc*)
14703 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'
14704 ;;
14705 *)
14706 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14707 ;;
14708 esac
14709 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14712 $as_echo "$ld_shlibs_CXX" >&6; }
14713 test "$ld_shlibs_CXX" = no && can_build_shared=no
14714
14715 with_gnu_ld_CXX=$with_gnu_ld
14716
14717
14718
14719
14720
14721
14722 #
14723 # Do we need to explicitly link libc?
14724 #
14725 case "x$archive_cmds_need_lc_CXX" in
14726 x|xyes)
14727 # Assume -lc should be added
14728 archive_cmds_need_lc_CXX=yes
14729
14730 if test "$enable_shared" = yes && test "$GCC" = yes; then
14731 case $archive_cmds_CXX in
14732 *'~'*)
14733 # FIXME: we may have to deal with multi-command sequences.
14734 ;;
14735 '$CC '*)
14736 # Test whether the compiler implicitly links with -lc since on some
14737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14738 # to ld, don't add -lc before -lgcc.
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14740 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14741 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 $RM conftest*
14745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14746
14747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14748 (eval $ac_compile) 2>&5
14749 ac_status=$?
14750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 test $ac_status = 0; } 2>conftest.err; then
14752 soname=conftest
14753 lib=conftest
14754 libobjs=conftest.$ac_objext
14755 deplibs=
14756 wl=$lt_prog_compiler_wl_CXX
14757 pic_flag=$lt_prog_compiler_pic_CXX
14758 compiler_flags=-v
14759 linker_flags=-v
14760 verstring=
14761 output_objdir=.
14762 libname=conftest
14763 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14764 allow_undefined_flag_CXX=
14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14766 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }
14770 then
14771 lt_cv_archive_cmds_need_lc_CXX=no
14772 else
14773 lt_cv_archive_cmds_need_lc_CXX=yes
14774 fi
14775 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14776 else
14777 cat conftest.err 1>&5
14778 fi
14779 $RM conftest*
14780
14781 fi
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14783 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14784 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14785 ;;
14786 esac
14787 fi
14788 ;;
14789 esac
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14855 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14856
14857 library_names_spec=
14858 libname_spec='lib$name'
14859 soname_spec=
14860 shrext_cmds=".so"
14861 postinstall_cmds=
14862 postuninstall_cmds=
14863 finish_cmds=
14864 finish_eval=
14865 shlibpath_var=
14866 shlibpath_overrides_runpath=unknown
14867 version_type=none
14868 dynamic_linker="$host_os ld.so"
14869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14870 need_lib_prefix=unknown
14871 hardcode_into_libs=no
14872
14873 # when you set need_version to no, make sure it does not cause -set_version
14874 # flags to be left without arguments
14875 need_version=unknown
14876
14877 case $host_os in
14878 aix3*)
14879 version_type=linux
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14881 shlibpath_var=LIBPATH
14882
14883 # AIX 3 has no versioning support, so we append a major version to the name.
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 ;;
14886
14887 aix[4-9]*)
14888 version_type=linux
14889 need_lib_prefix=no
14890 need_version=no
14891 hardcode_into_libs=yes
14892 if test "$host_cpu" = ia64; then
14893 # AIX 5 supports IA64
14894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 else
14897 # With GCC up to 2.95.x, collect2 would create an import file
14898 # for dependence libraries. The import file would start with
14899 # the line `#! .'. This would cause the generated library to
14900 # depend on `.', always an invalid library. This was fixed in
14901 # development snapshots of GCC prior to 3.0.
14902 case $host_os in
14903 aix4 | aix4.[01] | aix4.[01].*)
14904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14905 echo ' yes '
14906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14907 :
14908 else
14909 can_build_shared=no
14910 fi
14911 ;;
14912 esac
14913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14914 # soname into executable. Probably we can add versioning support to
14915 # collect2, so additional links can be useful in future.
14916 if test "$aix_use_runtimelinking" = yes; then
14917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14918 # instead of lib<name>.a to let people know that these are not
14919 # typical AIX shared libraries.
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 else
14922 # We preserve .a as extension for shared libraries through AIX4.2
14923 # and later when we are not doing run time linking.
14924 library_names_spec='${libname}${release}.a $libname.a'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 fi
14927 shlibpath_var=LIBPATH
14928 fi
14929 ;;
14930
14931 amigaos*)
14932 case $host_cpu in
14933 powerpc)
14934 # Since July 2007 AmigaOS4 officially supports .so libraries.
14935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 ;;
14938 m68k)
14939 library_names_spec='$libname.ixlibrary $libname.a'
14940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14941 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'
14942 ;;
14943 esac
14944 ;;
14945
14946 beos*)
14947 library_names_spec='${libname}${shared_ext}'
14948 dynamic_linker="$host_os ld.so"
14949 shlibpath_var=LIBRARY_PATH
14950 ;;
14951
14952 bsdi[45]*)
14953 version_type=linux
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14961 # the default ld.so.conf also contains /usr/contrib/lib and
14962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14963 # libtool to hard-code these into programs
14964 ;;
14965
14966 cygwin* | mingw* | pw32* | cegcc*)
14967 version_type=windows
14968 shrext_cmds=".dll"
14969 need_version=no
14970 need_lib_prefix=no
14971
14972 case $GCC,$host_os in
14973 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14974 library_names_spec='$libname.dll.a'
14975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14976 postinstall_cmds='base_file=`basename \${file}`~
14977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14978 dldir=$destdir/`dirname \$dlpath`~
14979 test -d \$dldir || mkdir -p \$dldir~
14980 $install_prog $dir/$dlname \$dldir/$dlname~
14981 chmod a+x \$dldir/$dlname~
14982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14984 fi'
14985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14986 dlpath=$dir/\$dldll~
14987 $RM \$dlpath'
14988 shlibpath_overrides_runpath=yes
14989
14990 case $host_os in
14991 cygwin*)
14992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994
14995 ;;
14996 mingw* | cegcc*)
14997 # MinGW DLLs use traditional 'lib' prefix
14998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14999 ;;
15000 pw32*)
15001 # pw32 DLLs use 'pw' prefix rather than 'lib'
15002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003 ;;
15004 esac
15005 ;;
15006
15007 *)
15008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15009 ;;
15010 esac
15011 dynamic_linker='Win32 ld.exe'
15012 # FIXME: first we should search . and the directory the executable is in
15013 shlibpath_var=PATH
15014 ;;
15015
15016 darwin* | rhapsody*)
15017 dynamic_linker="$host_os dyld"
15018 version_type=darwin
15019 need_lib_prefix=no
15020 need_version=no
15021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15022 soname_spec='${libname}${release}${major}$shared_ext'
15023 shlibpath_overrides_runpath=yes
15024 shlibpath_var=DYLD_LIBRARY_PATH
15025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15026
15027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15028 ;;
15029
15030 dgux*)
15031 version_type=linux
15032 need_lib_prefix=no
15033 need_version=no
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 ;;
15038
15039 freebsd* | dragonfly*)
15040 # DragonFly does not have aout. When/if they implement a new
15041 # versioning mechanism, adjust this.
15042 if test -x /usr/bin/objformat; then
15043 objformat=`/usr/bin/objformat`
15044 else
15045 case $host_os in
15046 freebsd[23].*) objformat=aout ;;
15047 *) objformat=elf ;;
15048 esac
15049 fi
15050 version_type=freebsd-$objformat
15051 case $version_type in
15052 freebsd-elf*)
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15054 need_version=no
15055 need_lib_prefix=no
15056 ;;
15057 freebsd-*)
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15059 need_version=yes
15060 ;;
15061 esac
15062 shlibpath_var=LD_LIBRARY_PATH
15063 case $host_os in
15064 freebsd2.*)
15065 shlibpath_overrides_runpath=yes
15066 ;;
15067 freebsd3.[01]* | freebsdelf3.[01]*)
15068 shlibpath_overrides_runpath=yes
15069 hardcode_into_libs=yes
15070 ;;
15071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15073 shlibpath_overrides_runpath=no
15074 hardcode_into_libs=yes
15075 ;;
15076 *) # from 4.6 on, and DragonFly
15077 shlibpath_overrides_runpath=yes
15078 hardcode_into_libs=yes
15079 ;;
15080 esac
15081 ;;
15082
15083 gnu*)
15084 version_type=linux
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 hardcode_into_libs=yes
15091 ;;
15092
15093 haiku*)
15094 version_type=linux
15095 need_lib_prefix=no
15096 need_version=no
15097 dynamic_linker="$host_os runtime_loader"
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15103 hardcode_into_libs=yes
15104 ;;
15105
15106 hpux9* | hpux10* | hpux11*)
15107 # Give a soname corresponding to the major version so that dld.sl refuses to
15108 # link against other versions.
15109 version_type=sunos
15110 need_lib_prefix=no
15111 need_version=no
15112 case $host_cpu in
15113 ia64*)
15114 shrext_cmds='.so'
15115 hardcode_into_libs=yes
15116 dynamic_linker="$host_os dld.so"
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 if test "X$HPUX_IA64_MODE" = X32; then
15122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15123 else
15124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15125 fi
15126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15127 ;;
15128 hppa*64*)
15129 shrext_cmds='.sl'
15130 hardcode_into_libs=yes
15131 dynamic_linker="$host_os dld.sl"
15132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15138 ;;
15139 *)
15140 shrext_cmds='.sl'
15141 dynamic_linker="$host_os dld.sl"
15142 shlibpath_var=SHLIB_PATH
15143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 ;;
15147 esac
15148 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15149 postinstall_cmds='chmod 555 $lib'
15150 # or fails outright, so override atomically:
15151 install_override_mode=555
15152 ;;
15153
15154 interix[3-9]*)
15155 version_type=linux
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=no
15163 hardcode_into_libs=yes
15164 ;;
15165
15166 irix5* | irix6* | nonstopux*)
15167 case $host_os in
15168 nonstopux*) version_type=nonstopux ;;
15169 *)
15170 if test "$lt_cv_prog_gnu_ld" = yes; then
15171 version_type=linux
15172 else
15173 version_type=irix
15174 fi ;;
15175 esac
15176 need_lib_prefix=no
15177 need_version=no
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15180 case $host_os in
15181 irix5* | nonstopux*)
15182 libsuff= shlibsuff=
15183 ;;
15184 *)
15185 case $LD in # libtool.m4 will add one of these switches to LD
15186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15187 libsuff= shlibsuff= libmagic=32-bit;;
15188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15189 libsuff=32 shlibsuff=N32 libmagic=N32;;
15190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15192 *) libsuff= shlibsuff= libmagic=never-match;;
15193 esac
15194 ;;
15195 esac
15196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15197 shlibpath_overrides_runpath=no
15198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15200 hardcode_into_libs=yes
15201 ;;
15202
15203 # No shared lib support for Linux oldld, aout, or coff.
15204 linux*oldld* | linux*aout* | linux*coff*)
15205 dynamic_linker=no
15206 ;;
15207
15208 # This must be Linux ELF.
15209
15210 # uclinux* changes (here and below) have been submitted to the libtool
15211 # project, but have not yet been accepted: they are GCC-local changes
15212 # for the time being. (See
15213 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15214 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=no
15223
15224 # Some binutils ld are patched to set DT_RUNPATH
15225 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 lt_cv_shlibpath_overrides_runpath=no
15229 save_LDFLAGS=$LDFLAGS
15230 save_libdir=$libdir
15231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235
15236 int
15237 main ()
15238 {
15239
15240 ;
15241 return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_cxx_try_link "$LINENO"; then :
15245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15246 lt_cv_shlibpath_overrides_runpath=yes
15247 fi
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251 LDFLAGS=$save_LDFLAGS
15252 libdir=$save_libdir
15253
15254 fi
15255
15256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15257
15258 # This implies no fast_install, which is unacceptable.
15259 # Some rework will be needed to allow for fast_install
15260 # before this can be enabled.
15261 hardcode_into_libs=yes
15262
15263 # Append ld.so.conf contents to the search path
15264 if test -f /etc/ld.so.conf; then
15265 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' ' '`
15266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15267 fi
15268
15269 # We used to test for /lib/ld.so.1 and disable shared libraries on
15270 # powerpc, because MkLinux only supported shared libraries with the
15271 # GNU dynamic linker. Since this was broken with cross compilers,
15272 # most powerpc-linux boxes support dynamic linking these days and
15273 # people can always --disable-shared, the test was removed, and we
15274 # assume the GNU/Linux dynamic linker is in use.
15275 dynamic_linker='GNU/Linux ld.so'
15276 ;;
15277
15278 netbsd*)
15279 version_type=sunos
15280 need_lib_prefix=no
15281 need_version=no
15282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15285 dynamic_linker='NetBSD (a.out) ld.so'
15286 else
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 dynamic_linker='NetBSD ld.elf_so'
15290 fi
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes
15293 hardcode_into_libs=yes
15294 ;;
15295
15296 newsos6)
15297 version_type=linux
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=yes
15301 ;;
15302
15303 *nto* | *qnx*)
15304 version_type=qnx
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=no
15311 hardcode_into_libs=yes
15312 dynamic_linker='ldqnx.so'
15313 ;;
15314
15315 openbsd*)
15316 version_type=sunos
15317 sys_lib_dlsearch_path_spec="/usr/lib"
15318 need_lib_prefix=no
15319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15320 case $host_os in
15321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15322 *) need_version=no ;;
15323 esac
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15328 case $host_os in
15329 openbsd2.[89] | openbsd2.[89].*)
15330 shlibpath_overrides_runpath=no
15331 ;;
15332 *)
15333 shlibpath_overrides_runpath=yes
15334 ;;
15335 esac
15336 else
15337 shlibpath_overrides_runpath=yes
15338 fi
15339 ;;
15340
15341 os2*)
15342 libname_spec='$name'
15343 shrext_cmds=".dll"
15344 need_lib_prefix=no
15345 library_names_spec='$libname${shared_ext} $libname.a'
15346 dynamic_linker='OS/2 ld.exe'
15347 shlibpath_var=LIBPATH
15348 ;;
15349
15350 osf3* | osf4* | osf5*)
15351 version_type=osf
15352 need_lib_prefix=no
15353 need_version=no
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15359 ;;
15360
15361 rdos*)
15362 dynamic_linker=no
15363 ;;
15364
15365 solaris*)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=yes
15373 hardcode_into_libs=yes
15374 # ldd complains unless libraries are executable
15375 postinstall_cmds='chmod +x $lib'
15376 ;;
15377
15378 sunos4*)
15379 version_type=sunos
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 shlibpath_overrides_runpath=yes
15384 if test "$with_gnu_ld" = yes; then
15385 need_lib_prefix=no
15386 fi
15387 need_version=yes
15388 ;;
15389
15390 sysv4 | sysv4.3*)
15391 version_type=linux
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 case $host_vendor in
15396 sni)
15397 shlibpath_overrides_runpath=no
15398 need_lib_prefix=no
15399 runpath_var=LD_RUN_PATH
15400 ;;
15401 siemens)
15402 need_lib_prefix=no
15403 ;;
15404 motorola)
15405 need_lib_prefix=no
15406 need_version=no
15407 shlibpath_overrides_runpath=no
15408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15409 ;;
15410 esac
15411 ;;
15412
15413 sysv4*MP*)
15414 if test -d /usr/nec ;then
15415 version_type=linux
15416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15417 soname_spec='$libname${shared_ext}.$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 fi
15420 ;;
15421
15422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15423 version_type=freebsd-elf
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 hardcode_into_libs=yes
15431 if test "$with_gnu_ld" = yes; then
15432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15433 else
15434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15435 case $host_os in
15436 sco3.2v5*)
15437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15438 ;;
15439 esac
15440 fi
15441 sys_lib_dlsearch_path_spec='/usr/lib'
15442 ;;
15443
15444 tpf*)
15445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15446 version_type=linux
15447 need_lib_prefix=no
15448 need_version=no
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=no
15452 hardcode_into_libs=yes
15453 ;;
15454
15455 uts4*)
15456 version_type=linux
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 ;;
15461
15462 *)
15463 dynamic_linker=no
15464 ;;
15465 esac
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15467 $as_echo "$dynamic_linker" >&6; }
15468 test "$dynamic_linker" = no && can_build_shared=no
15469
15470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15471 if test "$GCC" = yes; then
15472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15473 fi
15474
15475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15477 fi
15478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15480 fi
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15520 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15521 hardcode_action_CXX=
15522 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15523 test -n "$runpath_var_CXX" ||
15524 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15525
15526 # We can hardcode non-existent directories.
15527 if test "$hardcode_direct_CXX" != no &&
15528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15529 # have to relink, otherwise we might link with an installed library
15530 # when we should be linking with a yet-to-be-installed one
15531 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15532 test "$hardcode_minus_L_CXX" != no; then
15533 # Linking always hardcodes the temporary library directory.
15534 hardcode_action_CXX=relink
15535 else
15536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15537 hardcode_action_CXX=immediate
15538 fi
15539 else
15540 # We cannot hardcode anything, or else we can only hardcode existing
15541 # directories.
15542 hardcode_action_CXX=unsupported
15543 fi
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15545 $as_echo "$hardcode_action_CXX" >&6; }
15546
15547 if test "$hardcode_action_CXX" = relink ||
15548 test "$inherit_rpath_CXX" = yes; then
15549 # Fast installation is not supported
15550 enable_fast_install=no
15551 elif test "$shlibpath_overrides_runpath" = yes ||
15552 test "$enable_shared" = no; then
15553 # Fast installation is not necessary
15554 enable_fast_install=needless
15555 fi
15556
15557
15558
15559
15560
15561
15562
15563 fi # test -n "$compiler"
15564
15565 CC=$lt_save_CC
15566 LDCXX=$LD
15567 LD=$lt_save_LD
15568 GCC=$lt_save_GCC
15569 with_gnu_ld=$lt_save_with_gnu_ld
15570 lt_cv_path_LDCXX=$lt_cv_path_LD
15571 lt_cv_path_LD=$lt_save_path_LD
15572 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15573 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15574 fi # test "$_lt_caught_CXX_error" != yes
15575
15576 ac_ext=c
15577 ac_cpp='$CPP $CPPFLAGS'
15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594 ac_config_commands="$ac_config_commands libtool"
15595
15596
15597
15598
15599 # Only expand once:
15600
15601
15602
15603
15604
15605 case $host in
15606 *-cygwin* | *-mingw*)
15607 # 'host' will be top-level target in the case of a target lib,
15608 # we must compare to with_cross_host to decide if this is a native
15609 # or cross-compiler and select where to install dlls appropriately.
15610 if test -n "$with_cross_host" &&
15611 test x"$with_cross_host" != x"no"; then
15612 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15613 else
15614 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15615 fi
15616 ;;
15617 *)
15618 lt_host_flags=
15619 ;;
15620 esac
15621
15622
15623
15624
15625
15626
15627 # For libtool versioning info, format is CURRENT:REVISION:AGE
15628 libtool_VERSION=1:0:0
15629
15630
15631 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15632
15633 # Add CET specific flags if Intel CET is enabled.
15634 # Check whether --enable-cet was given.
15635 if test "${enable_cet+set}" = set; then :
15636 enableval=$enable_cet;
15637 case "$enableval" in
15638 yes|no|auto) ;;
15639 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15640 esac
15641
15642 else
15643 enable_cet=no
15644 fi
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15648 $as_echo_n "checking for CET support... " >&6; }
15649
15650 case "$host" in
15651 i[34567]86-*-linux* | x86_64-*-linux*)
15652 case "$enable_cet" in
15653 auto)
15654 # Check if target supports multi-byte NOPs
15655 # and if assembler supports CET insn.
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658
15659 int
15660 main ()
15661 {
15662
15663 #if !defined(__SSE2__)
15664 #error target does not support multi-byte NOPs
15665 #else
15666 asm ("setssbsy");
15667 #endif
15668
15669 ;
15670 return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_compile "$LINENO"; then :
15674 enable_cet=yes
15675 else
15676 enable_cet=no
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 ;;
15680 yes)
15681 # Check if assembler supports CET.
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684
15685 int
15686 main ()
15687 {
15688 asm ("setssbsy");
15689 ;
15690 return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_compile "$LINENO"; then :
15694
15695 else
15696 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
15697 fi
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 ;;
15700 esac
15701 ;;
15702 *)
15703 enable_cet=no
15704 ;;
15705 esac
15706 if test x$enable_cet = xyes; then
15707 CET_FLAGS="-fcf-protection -mshstk"
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15709 $as_echo "yes" >&6; }
15710 else
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15713 fi
15714
15715 XCFLAGS="$XCFLAGS $CET_FLAGS"
15716
15717
15718
15719 if test "${multilib}" = "yes"; then
15720 multilib_arg="--enable-multilib"
15721 else
15722 multilib_arg=
15723 fi
15724
15725 ac_config_files="$ac_config_files Makefile"
15726
15727
15728 if test "x$VTV_SUPPORTED" = "xyes"; then
15729 ac_config_files="$ac_config_files testsuite/Makefile"
15730
15731 fi
15732
15733 case "$target_os" in
15734 cygwin*|mingw32*)
15735 vtv_cygmin="yes"
15736 ;;
15737 *)
15738 vtv_cygmin="no"
15739 ;;
15740 esac
15741
15742 if test $vtv_cygmin = yes; then
15743 VTV_CYGMIN_TRUE=
15744 VTV_CYGMIN_FALSE='#'
15745 else
15746 VTV_CYGMIN_TRUE='#'
15747 VTV_CYGMIN_FALSE=
15748 fi
15749
15750
15751 for ac_func in _obstack_begin
15752 do :
15753 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15754 if test "x$ac_cv_func__obstack_begin" = xyes; then :
15755 cat >>confdefs.h <<_ACEOF
15756 #define HAVE__OBSTACK_BEGIN 1
15757 _ACEOF
15758
15759 fi
15760 done
15761
15762 if test $ac_cv_func__obstack_begin = no; then
15763 VTV_NO_OBSTACK_TRUE=
15764 VTV_NO_OBSTACK_FALSE='#'
15765 else
15766 VTV_NO_OBSTACK_TRUE='#'
15767 VTV_NO_OBSTACK_FALSE=
15768 fi
15769
15770
15771 # Determine what GCC version number to use in filesystem paths.
15772
15773 get_gcc_base_ver="cat"
15774
15775 # Check whether --with-gcc-major-version-only was given.
15776 if test "${with_gcc_major_version_only+set}" = set; then :
15777 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15778 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15779 fi
15780
15781 fi
15782
15783
15784
15785
15786 cat >confcache <<\_ACEOF
15787 # This file is a shell script that caches the results of configure
15788 # tests run on this system so they can be shared between configure
15789 # scripts and configure runs, see configure's option --config-cache.
15790 # It is not useful on other systems. If it contains results you don't
15791 # want to keep, you may remove or edit it.
15792 #
15793 # config.status only pays attention to the cache file if you give it
15794 # the --recheck option to rerun configure.
15795 #
15796 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15797 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15798 # following values.
15799
15800 _ACEOF
15801
15802 # The following way of writing the cache mishandles newlines in values,
15803 # but we know of no workaround that is simple, portable, and efficient.
15804 # So, we kill variables containing newlines.
15805 # Ultrix sh set writes to stderr and can't be redirected directly,
15806 # and sets the high bit in the cache file unless we assign to the vars.
15807 (
15808 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15809 eval ac_val=\$$ac_var
15810 case $ac_val in #(
15811 *${as_nl}*)
15812 case $ac_var in #(
15813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15815 esac
15816 case $ac_var in #(
15817 _ | IFS | as_nl) ;; #(
15818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15819 *) { eval $ac_var=; unset $ac_var;} ;;
15820 esac ;;
15821 esac
15822 done
15823
15824 (set) 2>&1 |
15825 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15826 *${as_nl}ac_space=\ *)
15827 # `set' does not quote correctly, so add quotes: double-quote
15828 # substitution turns \\\\ into \\, and sed turns \\ into \.
15829 sed -n \
15830 "s/'/'\\\\''/g;
15831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15832 ;; #(
15833 *)
15834 # `set' quotes correctly as required by POSIX, so do not add quotes.
15835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15836 ;;
15837 esac |
15838 sort
15839 ) |
15840 sed '
15841 /^ac_cv_env_/b end
15842 t clear
15843 :clear
15844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15845 t end
15846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15847 :end' >>confcache
15848 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15849 if test -w "$cache_file"; then
15850 if test "x$cache_file" != "x/dev/null"; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15852 $as_echo "$as_me: updating cache $cache_file" >&6;}
15853 if test ! -f "$cache_file" || test -h "$cache_file"; then
15854 cat confcache >"$cache_file"
15855 else
15856 case $cache_file in #(
15857 */* | ?:*)
15858 mv -f confcache "$cache_file"$$ &&
15859 mv -f "$cache_file"$$ "$cache_file" ;; #(
15860 *)
15861 mv -f confcache "$cache_file" ;;
15862 esac
15863 fi
15864 fi
15865 else
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15867 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15868 fi
15869 fi
15870 rm -f confcache
15871
15872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15873 # Let make expand exec_prefix.
15874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15875
15876 # Transform confdefs.h into DEFS.
15877 # Protect against shell expansion while executing Makefile rules.
15878 # Protect against Makefile macro expansion.
15879 #
15880 # If the first sed substitution is executed (which looks for macros that
15881 # take arguments), then branch to the quote section. Otherwise,
15882 # look for a macro that doesn't take arguments.
15883 ac_script='
15884 :mline
15885 /\\$/{
15886 N
15887 s,\\\n,,
15888 b mline
15889 }
15890 t clear
15891 :clear
15892 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15893 t quote
15894 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15895 t quote
15896 b any
15897 :quote
15898 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15899 s/\[/\\&/g
15900 s/\]/\\&/g
15901 s/\$/$$/g
15902 H
15903 :any
15904 ${
15905 g
15906 s/^\n//
15907 s/\n/ /g
15908 p
15909 }
15910 '
15911 DEFS=`sed -n "$ac_script" confdefs.h`
15912
15913
15914 ac_libobjs=
15915 ac_ltlibobjs=
15916 U=
15917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15918 # 1. Remove the extension, and $U if already installed.
15919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15922 # will be set to the directory where LIBOBJS objects are built.
15923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15925 done
15926 LIBOBJS=$ac_libobjs
15927
15928 LTLIBOBJS=$ac_ltlibobjs
15929
15930
15931 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15932 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15936 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15937 if test -n "$am_sleep_pid"; then
15938 # Hide warnings about reused PIDs.
15939 wait $am_sleep_pid 2>/dev/null
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15942 $as_echo "done" >&6; }
15943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15944 as_fn_error $? "conditional \"AMDEP\" was never defined.
15945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15946 fi
15947 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15950 fi
15951 if test -n "$EXEEXT"; then
15952 am__EXEEXT_TRUE=
15953 am__EXEEXT_FALSE='#'
15954 else
15955 am__EXEEXT_TRUE='#'
15956 am__EXEEXT_FALSE=
15957 fi
15958
15959 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15960 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15962 fi
15963 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15964 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15966 fi
15967 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15968 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
15969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15970 fi
15971 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15972 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
15973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15974 fi
15975
15976 : "${CONFIG_STATUS=./config.status}"
15977 ac_write_fail=0
15978 ac_clean_files_save=$ac_clean_files
15979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15982 as_write_fail=0
15983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15984 #! $SHELL
15985 # Generated by $as_me.
15986 # Run this file to recreate the current configuration.
15987 # Compiler output produced by configure, useful for debugging
15988 # configure, is in config.log if it exists.
15989
15990 debug=false
15991 ac_cs_recheck=false
15992 ac_cs_silent=false
15993
15994 SHELL=\${CONFIG_SHELL-$SHELL}
15995 export SHELL
15996 _ASEOF
15997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15998 ## -------------------- ##
15999 ## M4sh Initialization. ##
16000 ## -------------------- ##
16001
16002 # Be more Bourne compatible
16003 DUALCASE=1; export DUALCASE # for MKS sh
16004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16005 emulate sh
16006 NULLCMD=:
16007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16008 # is contrary to our usage. Disable this feature.
16009 alias -g '${1+"$@"}'='"$@"'
16010 setopt NO_GLOB_SUBST
16011 else
16012 case `(set -o) 2>/dev/null` in #(
16013 *posix*) :
16014 set -o posix ;; #(
16015 *) :
16016 ;;
16017 esac
16018 fi
16019
16020
16021 as_nl='
16022 '
16023 export as_nl
16024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16028 # Prefer a ksh shell builtin over an external printf program on Solaris,
16029 # but without wasting forks for bash or zsh.
16030 if test -z "$BASH_VERSION$ZSH_VERSION" \
16031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16032 as_echo='print -r --'
16033 as_echo_n='print -rn --'
16034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16035 as_echo='printf %s\n'
16036 as_echo_n='printf %s'
16037 else
16038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16040 as_echo_n='/usr/ucb/echo -n'
16041 else
16042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16043 as_echo_n_body='eval
16044 arg=$1;
16045 case $arg in #(
16046 *"$as_nl"*)
16047 expr "X$arg" : "X\\(.*\\)$as_nl";
16048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16049 esac;
16050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16051 '
16052 export as_echo_n_body
16053 as_echo_n='sh -c $as_echo_n_body as_echo'
16054 fi
16055 export as_echo_body
16056 as_echo='sh -c $as_echo_body as_echo'
16057 fi
16058
16059 # The user is always right.
16060 if test "${PATH_SEPARATOR+set}" != set; then
16061 PATH_SEPARATOR=:
16062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16064 PATH_SEPARATOR=';'
16065 }
16066 fi
16067
16068
16069 # IFS
16070 # We need space, tab and new line, in precisely that order. Quoting is
16071 # there to prevent editors from complaining about space-tab.
16072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16073 # splitting by setting IFS to empty value.)
16074 IFS=" "" $as_nl"
16075
16076 # Find who we are. Look in the path if we contain no directory separator.
16077 as_myself=
16078 case $0 in #((
16079 *[\\/]* ) as_myself=$0 ;;
16080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081 for as_dir in $PATH
16082 do
16083 IFS=$as_save_IFS
16084 test -z "$as_dir" && as_dir=.
16085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16086 done
16087 IFS=$as_save_IFS
16088
16089 ;;
16090 esac
16091 # We did not find ourselves, most probably we were run as `sh COMMAND'
16092 # in which case we are not to be found in the path.
16093 if test "x$as_myself" = x; then
16094 as_myself=$0
16095 fi
16096 if test ! -f "$as_myself"; then
16097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16098 exit 1
16099 fi
16100
16101 # Unset variables that we do not need and which cause bugs (e.g. in
16102 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16103 # suppresses any "Segmentation fault" message there. '((' could
16104 # trigger a bug in pdksh 5.2.14.
16105 for as_var in BASH_ENV ENV MAIL MAILPATH
16106 do eval test x\${$as_var+set} = xset \
16107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16108 done
16109 PS1='$ '
16110 PS2='> '
16111 PS4='+ '
16112
16113 # NLS nuisances.
16114 LC_ALL=C
16115 export LC_ALL
16116 LANGUAGE=C
16117 export LANGUAGE
16118
16119 # CDPATH.
16120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16121
16122
16123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16124 # ----------------------------------------
16125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16127 # script with STATUS, using 1 if that was 0.
16128 as_fn_error ()
16129 {
16130 as_status=$1; test $as_status -eq 0 && as_status=1
16131 if test "$4"; then
16132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16134 fi
16135 $as_echo "$as_me: error: $2" >&2
16136 as_fn_exit $as_status
16137 } # as_fn_error
16138
16139
16140 # as_fn_set_status STATUS
16141 # -----------------------
16142 # Set $? to STATUS, without forking.
16143 as_fn_set_status ()
16144 {
16145 return $1
16146 } # as_fn_set_status
16147
16148 # as_fn_exit STATUS
16149 # -----------------
16150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16151 as_fn_exit ()
16152 {
16153 set +e
16154 as_fn_set_status $1
16155 exit $1
16156 } # as_fn_exit
16157
16158 # as_fn_unset VAR
16159 # ---------------
16160 # Portably unset VAR.
16161 as_fn_unset ()
16162 {
16163 { eval $1=; unset $1;}
16164 }
16165 as_unset=as_fn_unset
16166 # as_fn_append VAR VALUE
16167 # ----------------------
16168 # Append the text in VALUE to the end of the definition contained in VAR. Take
16169 # advantage of any shell optimizations that allow amortized linear growth over
16170 # repeated appends, instead of the typical quadratic growth present in naive
16171 # implementations.
16172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16173 eval 'as_fn_append ()
16174 {
16175 eval $1+=\$2
16176 }'
16177 else
16178 as_fn_append ()
16179 {
16180 eval $1=\$$1\$2
16181 }
16182 fi # as_fn_append
16183
16184 # as_fn_arith ARG...
16185 # ------------------
16186 # Perform arithmetic evaluation on the ARGs, and store the result in the
16187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16188 # must be portable across $(()) and expr.
16189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16190 eval 'as_fn_arith ()
16191 {
16192 as_val=$(( $* ))
16193 }'
16194 else
16195 as_fn_arith ()
16196 {
16197 as_val=`expr "$@" || test $? -eq 1`
16198 }
16199 fi # as_fn_arith
16200
16201
16202 if expr a : '\(a\)' >/dev/null 2>&1 &&
16203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16204 as_expr=expr
16205 else
16206 as_expr=false
16207 fi
16208
16209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16210 as_basename=basename
16211 else
16212 as_basename=false
16213 fi
16214
16215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16216 as_dirname=dirname
16217 else
16218 as_dirname=false
16219 fi
16220
16221 as_me=`$as_basename -- "$0" ||
16222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16223 X"$0" : 'X\(//\)$' \| \
16224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16225 $as_echo X/"$0" |
16226 sed '/^.*\/\([^/][^/]*\)\/*$/{
16227 s//\1/
16228 q
16229 }
16230 /^X\/\(\/\/\)$/{
16231 s//\1/
16232 q
16233 }
16234 /^X\/\(\/\).*/{
16235 s//\1/
16236 q
16237 }
16238 s/.*/./; q'`
16239
16240 # Avoid depending upon Character Ranges.
16241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16244 as_cr_digits='0123456789'
16245 as_cr_alnum=$as_cr_Letters$as_cr_digits
16246
16247 ECHO_C= ECHO_N= ECHO_T=
16248 case `echo -n x` in #(((((
16249 -n*)
16250 case `echo 'xy\c'` in
16251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16252 xy) ECHO_C='\c';;
16253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16254 ECHO_T=' ';;
16255 esac;;
16256 *)
16257 ECHO_N='-n';;
16258 esac
16259
16260 rm -f conf$$ conf$$.exe conf$$.file
16261 if test -d conf$$.dir; then
16262 rm -f conf$$.dir/conf$$.file
16263 else
16264 rm -f conf$$.dir
16265 mkdir conf$$.dir 2>/dev/null
16266 fi
16267 if (echo >conf$$.file) 2>/dev/null; then
16268 if ln -s conf$$.file conf$$ 2>/dev/null; then
16269 as_ln_s='ln -s'
16270 # ... but there are two gotchas:
16271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16273 # In both cases, we have to default to `cp -pR'.
16274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16275 as_ln_s='cp -pR'
16276 elif ln conf$$.file conf$$ 2>/dev/null; then
16277 as_ln_s=ln
16278 else
16279 as_ln_s='cp -pR'
16280 fi
16281 else
16282 as_ln_s='cp -pR'
16283 fi
16284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16285 rmdir conf$$.dir 2>/dev/null
16286
16287
16288 # as_fn_mkdir_p
16289 # -------------
16290 # Create "$as_dir" as a directory, including parents if necessary.
16291 as_fn_mkdir_p ()
16292 {
16293
16294 case $as_dir in #(
16295 -*) as_dir=./$as_dir;;
16296 esac
16297 test -d "$as_dir" || eval $as_mkdir_p || {
16298 as_dirs=
16299 while :; do
16300 case $as_dir in #(
16301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16302 *) as_qdir=$as_dir;;
16303 esac
16304 as_dirs="'$as_qdir' $as_dirs"
16305 as_dir=`$as_dirname -- "$as_dir" ||
16306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16307 X"$as_dir" : 'X\(//\)[^/]' \| \
16308 X"$as_dir" : 'X\(//\)$' \| \
16309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16310 $as_echo X"$as_dir" |
16311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16312 s//\1/
16313 q
16314 }
16315 /^X\(\/\/\)[^/].*/{
16316 s//\1/
16317 q
16318 }
16319 /^X\(\/\/\)$/{
16320 s//\1/
16321 q
16322 }
16323 /^X\(\/\).*/{
16324 s//\1/
16325 q
16326 }
16327 s/.*/./; q'`
16328 test -d "$as_dir" && break
16329 done
16330 test -z "$as_dirs" || eval "mkdir $as_dirs"
16331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16332
16333
16334 } # as_fn_mkdir_p
16335 if mkdir -p . 2>/dev/null; then
16336 as_mkdir_p='mkdir -p "$as_dir"'
16337 else
16338 test -d ./-p && rmdir ./-p
16339 as_mkdir_p=false
16340 fi
16341
16342
16343 # as_fn_executable_p FILE
16344 # -----------------------
16345 # Test if FILE is an executable regular file.
16346 as_fn_executable_p ()
16347 {
16348 test -f "$1" && test -x "$1"
16349 } # as_fn_executable_p
16350 as_test_x='test -x'
16351 as_executable_p=as_fn_executable_p
16352
16353 # Sed expression to map a string onto a valid CPP name.
16354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16355
16356 # Sed expression to map a string onto a valid variable name.
16357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16358
16359
16360 exec 6>&1
16361 ## ----------------------------------- ##
16362 ## Main body of $CONFIG_STATUS script. ##
16363 ## ----------------------------------- ##
16364 _ASEOF
16365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16366
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16368 # Save the log message, to keep $0 and so on meaningful, and to
16369 # report actual input values of CONFIG_FILES etc. instead of their
16370 # values after options handling.
16371 ac_log="
16372 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16373 generated by GNU Autoconf 2.69. Invocation command line was
16374
16375 CONFIG_FILES = $CONFIG_FILES
16376 CONFIG_HEADERS = $CONFIG_HEADERS
16377 CONFIG_LINKS = $CONFIG_LINKS
16378 CONFIG_COMMANDS = $CONFIG_COMMANDS
16379 $ $0 $@
16380
16381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16382 "
16383
16384 _ACEOF
16385
16386 case $ac_config_files in *"
16387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16388 esac
16389
16390
16391
16392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393 # Files that config.status was made for.
16394 config_files="$ac_config_files"
16395 config_commands="$ac_config_commands"
16396
16397 _ACEOF
16398
16399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16400 ac_cs_usage="\
16401 \`$as_me' instantiates files and other configuration actions
16402 from templates according to the current configuration. Unless the files
16403 and actions are specified as TAGs, all are instantiated by default.
16404
16405 Usage: $0 [OPTION]... [TAG]...
16406
16407 -h, --help print this help, then exit
16408 -V, --version print version number and configuration settings, then exit
16409 --config print configuration, then exit
16410 -q, --quiet, --silent
16411 do not print progress messages
16412 -d, --debug don't remove temporary files
16413 --recheck update $as_me by reconfiguring in the same conditions
16414 --file=FILE[:TEMPLATE]
16415 instantiate the configuration file FILE
16416
16417 Configuration files:
16418 $config_files
16419
16420 Configuration commands:
16421 $config_commands
16422
16423 Report bugs to the package provider.
16424 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16425 General help using GNU software: <http://www.gnu.org/gethelp/>."
16426
16427 _ACEOF
16428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16429 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16430 ac_cs_version="\\
16431 GNU Vtable Verification Runtime Library config.status 1.0
16432 configured by $0, generated by GNU Autoconf 2.69,
16433 with options \\"\$ac_cs_config\\"
16434
16435 Copyright (C) 2012 Free Software Foundation, Inc.
16436 This config.status script is free software; the Free Software Foundation
16437 gives unlimited permission to copy, distribute and modify it."
16438
16439 ac_pwd='$ac_pwd'
16440 srcdir='$srcdir'
16441 INSTALL='$INSTALL'
16442 MKDIR_P='$MKDIR_P'
16443 AWK='$AWK'
16444 test -n "\$AWK" || AWK=awk
16445 _ACEOF
16446
16447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448 # The default lists apply if the user does not specify any file.
16449 ac_need_defaults=:
16450 while test $# != 0
16451 do
16452 case $1 in
16453 --*=?*)
16454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16456 ac_shift=:
16457 ;;
16458 --*=)
16459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16460 ac_optarg=
16461 ac_shift=:
16462 ;;
16463 *)
16464 ac_option=$1
16465 ac_optarg=$2
16466 ac_shift=shift
16467 ;;
16468 esac
16469
16470 case $ac_option in
16471 # Handling of the options.
16472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16473 ac_cs_recheck=: ;;
16474 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16475 $as_echo "$ac_cs_version"; exit ;;
16476 --config | --confi | --conf | --con | --co | --c )
16477 $as_echo "$ac_cs_config"; exit ;;
16478 --debug | --debu | --deb | --de | --d | -d )
16479 debug=: ;;
16480 --file | --fil | --fi | --f )
16481 $ac_shift
16482 case $ac_optarg in
16483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16484 '') as_fn_error $? "missing file argument" ;;
16485 esac
16486 as_fn_append CONFIG_FILES " '$ac_optarg'"
16487 ac_need_defaults=false;;
16488 --he | --h | --help | --hel | -h )
16489 $as_echo "$ac_cs_usage"; exit ;;
16490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16492 ac_cs_silent=: ;;
16493
16494 # This is an error.
16495 -*) as_fn_error $? "unrecognized option: \`$1'
16496 Try \`$0 --help' for more information." ;;
16497
16498 *) as_fn_append ac_config_targets " $1"
16499 ac_need_defaults=false ;;
16500
16501 esac
16502 shift
16503 done
16504
16505 ac_configure_extra_args=
16506
16507 if $ac_cs_silent; then
16508 exec 6>/dev/null
16509 ac_configure_extra_args="$ac_configure_extra_args --silent"
16510 fi
16511
16512 _ACEOF
16513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 if \$ac_cs_recheck; then
16515 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16516 shift
16517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16518 CONFIG_SHELL='$SHELL'
16519 export CONFIG_SHELL
16520 exec "\$@"
16521 fi
16522
16523 _ACEOF
16524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16525 exec 5>>config.log
16526 {
16527 echo
16528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16529 ## Running $as_me. ##
16530 _ASBOX
16531 $as_echo "$ac_log"
16532 } >&5
16533
16534 _ACEOF
16535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16536 #
16537 # INIT-COMMANDS
16538 #
16539
16540 srcdir="$srcdir"
16541 host="$host"
16542 target="$target"
16543 with_multisubdir="$with_multisubdir"
16544 with_multisrctop="$with_multisrctop"
16545 with_target_subdir="$with_target_subdir"
16546 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16547 multi_basedir="$multi_basedir"
16548 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16549 CC="$CC"
16550 CXX="$CXX"
16551 GFORTRAN="$GFORTRAN"
16552 GDC="$GDC"
16553 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16554
16555
16556 # The HP-UX ksh and POSIX shell print the target directory to stdout
16557 # if CDPATH is set.
16558 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16559
16560 sed_quote_subst='$sed_quote_subst'
16561 double_quote_subst='$double_quote_subst'
16562 delay_variable_subst='$delay_variable_subst'
16563 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16564 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16565 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16566 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16567 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16568 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16569 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16570 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16571 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16572 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16573 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16574 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16575 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16576 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16577 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16578 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16579 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16580 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16581 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16582 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16583 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16584 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16585 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16586 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16587 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16588 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16589 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16590 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16591 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16592 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16593 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16594 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16595 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16596 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16597 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16598 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16599 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16600 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16601 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16602 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16603 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16604 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16605 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16606 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16607 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16608 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16609 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16610 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16611 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"`'
16612 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16613 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16614 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16615 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16616 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16617 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16618 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16619 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16620 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16621 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16622 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16623 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16624 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16625 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16626 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16627 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16628 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16629 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16630 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16631 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16632 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16633 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16634 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16635 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16636 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16637 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16638 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16639 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16640 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16641 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16642 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16643 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16644 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16645 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16646 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16647 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16648 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16649 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16650 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16651 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16652 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16653 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16654 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16655 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16656 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16657 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16658 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16659 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16660 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16661 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16662 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16663 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16664 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16665 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16666 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16667 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16668 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16669 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16670 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16671 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16672 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16673 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16674 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16675 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16676 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16677 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16678 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16679 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16680 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16681 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16682 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16683 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16684 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16685 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16686 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16687 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16688 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16689 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16690 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16691 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16692 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16693 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16694 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16695 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16696 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16697 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16698 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16699 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16700 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16701 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16702 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16703 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16704 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16705 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16706 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16707 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16708 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16709 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16710 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16711 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16712 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16713 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16714 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16715 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16716 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16717 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16718 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16719 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16720 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16721 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16722 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16723 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16724 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16725 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16726 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16727 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16728 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16729 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16730 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16731 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16732 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16733 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16734 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16735 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16736 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16737 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16738
16739 LTCC='$LTCC'
16740 LTCFLAGS='$LTCFLAGS'
16741 compiler='$compiler_DEFAULT'
16742
16743 # A function that is used when there is no print builtin or printf.
16744 func_fallback_echo ()
16745 {
16746 eval 'cat <<_LTECHO_EOF
16747 \$1
16748 _LTECHO_EOF'
16749 }
16750
16751 # Quote evaled strings.
16752 for var in SHELL \
16753 ECHO \
16754 SED \
16755 GREP \
16756 EGREP \
16757 FGREP \
16758 LD \
16759 NM \
16760 LN_S \
16761 lt_SP2NL \
16762 lt_NL2SP \
16763 reload_flag \
16764 OBJDUMP \
16765 deplibs_check_method \
16766 file_magic_cmd \
16767 AR \
16768 AR_FLAGS \
16769 STRIP \
16770 RANLIB \
16771 CC \
16772 CFLAGS \
16773 compiler \
16774 lt_cv_sys_global_symbol_pipe \
16775 lt_cv_sys_global_symbol_to_cdecl \
16776 lt_cv_sys_global_symbol_to_c_name_address \
16777 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16778 lt_prog_compiler_no_builtin_flag \
16779 lt_prog_compiler_wl \
16780 lt_prog_compiler_pic \
16781 lt_prog_compiler_static \
16782 lt_cv_prog_compiler_c_o \
16783 need_locks \
16784 DSYMUTIL \
16785 NMEDIT \
16786 LIPO \
16787 OTOOL \
16788 OTOOL64 \
16789 shrext_cmds \
16790 export_dynamic_flag_spec \
16791 whole_archive_flag_spec \
16792 compiler_needs_object \
16793 with_gnu_ld \
16794 allow_undefined_flag \
16795 no_undefined_flag \
16796 hardcode_libdir_flag_spec \
16797 hardcode_libdir_flag_spec_ld \
16798 hardcode_libdir_separator \
16799 fix_srcfile_path \
16800 exclude_expsyms \
16801 include_expsyms \
16802 file_list_spec \
16803 variables_saved_for_relink \
16804 libname_spec \
16805 library_names_spec \
16806 soname_spec \
16807 install_override_mode \
16808 finish_eval \
16809 old_striplib \
16810 striplib \
16811 compiler_lib_search_dirs \
16812 predep_objects \
16813 postdep_objects \
16814 predeps \
16815 postdeps \
16816 compiler_lib_search_path \
16817 LD_CXX \
16818 reload_flag_CXX \
16819 compiler_CXX \
16820 lt_prog_compiler_no_builtin_flag_CXX \
16821 lt_prog_compiler_wl_CXX \
16822 lt_prog_compiler_pic_CXX \
16823 lt_prog_compiler_static_CXX \
16824 lt_cv_prog_compiler_c_o_CXX \
16825 export_dynamic_flag_spec_CXX \
16826 whole_archive_flag_spec_CXX \
16827 compiler_needs_object_CXX \
16828 with_gnu_ld_CXX \
16829 allow_undefined_flag_CXX \
16830 no_undefined_flag_CXX \
16831 hardcode_libdir_flag_spec_CXX \
16832 hardcode_libdir_flag_spec_ld_CXX \
16833 hardcode_libdir_separator_CXX \
16834 fix_srcfile_path_CXX \
16835 exclude_expsyms_CXX \
16836 include_expsyms_CXX \
16837 file_list_spec_CXX \
16838 compiler_lib_search_dirs_CXX \
16839 predep_objects_CXX \
16840 postdep_objects_CXX \
16841 predeps_CXX \
16842 postdeps_CXX \
16843 compiler_lib_search_path_CXX; do
16844 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16845 *[\\\\\\\`\\"\\\$]*)
16846 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16847 ;;
16848 *)
16849 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16850 ;;
16851 esac
16852 done
16853
16854 # Double-quote double-evaled strings.
16855 for var in reload_cmds \
16856 old_postinstall_cmds \
16857 old_postuninstall_cmds \
16858 old_archive_cmds \
16859 extract_expsyms_cmds \
16860 old_archive_from_new_cmds \
16861 old_archive_from_expsyms_cmds \
16862 archive_cmds \
16863 archive_expsym_cmds \
16864 module_cmds \
16865 module_expsym_cmds \
16866 export_symbols_cmds \
16867 prelink_cmds \
16868 postinstall_cmds \
16869 postuninstall_cmds \
16870 finish_cmds \
16871 sys_lib_search_path_spec \
16872 sys_lib_dlsearch_path_spec \
16873 reload_cmds_CXX \
16874 old_archive_cmds_CXX \
16875 old_archive_from_new_cmds_CXX \
16876 old_archive_from_expsyms_cmds_CXX \
16877 archive_cmds_CXX \
16878 archive_expsym_cmds_CXX \
16879 module_cmds_CXX \
16880 module_expsym_cmds_CXX \
16881 export_symbols_cmds_CXX \
16882 prelink_cmds_CXX; do
16883 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16884 *[\\\\\\\`\\"\\\$]*)
16885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16886 ;;
16887 *)
16888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16889 ;;
16890 esac
16891 done
16892
16893 ac_aux_dir='$ac_aux_dir'
16894 xsi_shell='$xsi_shell'
16895 lt_shell_append='$lt_shell_append'
16896
16897 # See if we are running on zsh, and set the options which allow our
16898 # commands through without removal of \ escapes INIT.
16899 if test -n "\${ZSH_VERSION+set}" ; then
16900 setopt NO_GLOB_SUBST
16901 fi
16902
16903
16904 PACKAGE='$PACKAGE'
16905 VERSION='$VERSION'
16906 TIMESTAMP='$TIMESTAMP'
16907 RM='$RM'
16908 ofile='$ofile'
16909
16910
16911
16912
16913
16914
16915 _ACEOF
16916
16917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16918
16919 # Handling of arguments.
16920 for ac_config_target in $ac_config_targets
16921 do
16922 case $ac_config_target in
16923 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16927 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16928
16929 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16930 esac
16931 done
16932
16933
16934 # If the user did not use the arguments to specify the items to instantiate,
16935 # then the envvar interface is used. Set only those that are not.
16936 # We use the long form for the default assignment because of an extremely
16937 # bizarre bug on SunOS 4.1.3.
16938 if $ac_need_defaults; then
16939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16941 fi
16942
16943 # Have a temporary directory for convenience. Make it in the build tree
16944 # simply because there is no reason against having it here, and in addition,
16945 # creating and moving files from /tmp can sometimes cause problems.
16946 # Hook for its removal unless debugging.
16947 # Note that there is a small window in which the directory will not be cleaned:
16948 # after its creation but before its name has been assigned to `$tmp'.
16949 $debug ||
16950 {
16951 tmp= ac_tmp=
16952 trap 'exit_status=$?
16953 : "${ac_tmp:=$tmp}"
16954 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16955 ' 0
16956 trap 'as_fn_exit 1' 1 2 13 15
16957 }
16958 # Create a (secure) tmp directory for tmp files.
16959
16960 {
16961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16962 test -d "$tmp"
16963 } ||
16964 {
16965 tmp=./conf$$-$RANDOM
16966 (umask 077 && mkdir "$tmp")
16967 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16968 ac_tmp=$tmp
16969
16970 # Set up the scripts for CONFIG_FILES section.
16971 # No need to generate them if there are no CONFIG_FILES.
16972 # This happens for instance with `./config.status config.h'.
16973 if test -n "$CONFIG_FILES"; then
16974
16975
16976 ac_cr=`echo X | tr X '\015'`
16977 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16978 # But we know of no other shell where ac_cr would be empty at this
16979 # point, so we can use a bashism as a fallback.
16980 if test "x$ac_cr" = x; then
16981 eval ac_cr=\$\'\\r\'
16982 fi
16983 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16984 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16985 ac_cs_awk_cr='\\r'
16986 else
16987 ac_cs_awk_cr=$ac_cr
16988 fi
16989
16990 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16991 _ACEOF
16992
16993
16994 {
16995 echo "cat >conf$$subs.awk <<_ACEOF" &&
16996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16997 echo "_ACEOF"
16998 } >conf$$subs.sh ||
16999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17000 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17001 ac_delim='%!_!# '
17002 for ac_last_try in false false false false false :; do
17003 . ./conf$$subs.sh ||
17004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17005
17006 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17007 if test $ac_delim_n = $ac_delim_num; then
17008 break
17009 elif $ac_last_try; then
17010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17011 else
17012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17013 fi
17014 done
17015 rm -f conf$$subs.sh
17016
17017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17018 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17019 _ACEOF
17020 sed -n '
17021 h
17022 s/^/S["/; s/!.*/"]=/
17023 p
17024 g
17025 s/^[^!]*!//
17026 :repl
17027 t repl
17028 s/'"$ac_delim"'$//
17029 t delim
17030 :nl
17031 h
17032 s/\(.\{148\}\)..*/\1/
17033 t more1
17034 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17035 p
17036 n
17037 b repl
17038 :more1
17039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17040 p
17041 g
17042 s/.\{148\}//
17043 t nl
17044 :delim
17045 h
17046 s/\(.\{148\}\)..*/\1/
17047 t more2
17048 s/["\\]/\\&/g; s/^/"/; s/$/"/
17049 p
17050 b
17051 :more2
17052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17053 p
17054 g
17055 s/.\{148\}//
17056 t delim
17057 ' <conf$$subs.awk | sed '
17058 /^[^""]/{
17059 N
17060 s/\n//
17061 }
17062 ' >>$CONFIG_STATUS || ac_write_fail=1
17063 rm -f conf$$subs.awk
17064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17065 _ACAWK
17066 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17067 for (key in S) S_is_set[key] = 1
17068 FS = "\a"
17069
17070 }
17071 {
17072 line = $ 0
17073 nfields = split(line, field, "@")
17074 substed = 0
17075 len = length(field[1])
17076 for (i = 2; i < nfields; i++) {
17077 key = field[i]
17078 keylen = length(key)
17079 if (S_is_set[key]) {
17080 value = S[key]
17081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17082 len += length(value) + length(field[++i])
17083 substed = 1
17084 } else
17085 len += 1 + keylen
17086 }
17087
17088 print line
17089 }
17090
17091 _ACAWK
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17094 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17096 else
17097 cat
17098 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17099 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17100 _ACEOF
17101
17102 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17103 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17104 # trailing colons and then remove the whole line if VPATH becomes empty
17105 # (actually we leave an empty line to preserve line numbers).
17106 if test "x$srcdir" = x.; then
17107 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17108 h
17109 s///
17110 s/^/:/
17111 s/[ ]*$/:/
17112 s/:\$(srcdir):/:/g
17113 s/:\${srcdir}:/:/g
17114 s/:@srcdir@:/:/g
17115 s/^:*//
17116 s/:*$//
17117 x
17118 s/\(=[ ]*\).*/\1/
17119 G
17120 s/\n//
17121 s/^[^=]*=[ ]*$//
17122 }'
17123 fi
17124
17125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17126 fi # test -n "$CONFIG_FILES"
17127
17128
17129 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17130 shift
17131 for ac_tag
17132 do
17133 case $ac_tag in
17134 :[FHLC]) ac_mode=$ac_tag; continue;;
17135 esac
17136 case $ac_mode$ac_tag in
17137 :[FHL]*:*);;
17138 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17139 :[FH]-) ac_tag=-:-;;
17140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17141 esac
17142 ac_save_IFS=$IFS
17143 IFS=:
17144 set x $ac_tag
17145 IFS=$ac_save_IFS
17146 shift
17147 ac_file=$1
17148 shift
17149
17150 case $ac_mode in
17151 :L) ac_source=$1;;
17152 :[FH])
17153 ac_file_inputs=
17154 for ac_f
17155 do
17156 case $ac_f in
17157 -) ac_f="$ac_tmp/stdin";;
17158 *) # Look for the file first in the build tree, then in the source tree
17159 # (if the path is not absolute). The absolute path cannot be DOS-style,
17160 # because $ac_f cannot contain `:'.
17161 test -f "$ac_f" ||
17162 case $ac_f in
17163 [\\/$]*) false;;
17164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17165 esac ||
17166 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17167 esac
17168 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17169 as_fn_append ac_file_inputs " '$ac_f'"
17170 done
17171
17172 # Let's still pretend it is `configure' which instantiates (i.e., don't
17173 # use $as_me), people would be surprised to read:
17174 # /* config.h. Generated by config.status. */
17175 configure_input='Generated from '`
17176 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17177 `' by configure.'
17178 if test x"$ac_file" != x-; then
17179 configure_input="$ac_file. $configure_input"
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17181 $as_echo "$as_me: creating $ac_file" >&6;}
17182 fi
17183 # Neutralize special characters interpreted by sed in replacement strings.
17184 case $configure_input in #(
17185 *\&* | *\|* | *\\* )
17186 ac_sed_conf_input=`$as_echo "$configure_input" |
17187 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17188 *) ac_sed_conf_input=$configure_input;;
17189 esac
17190
17191 case $ac_tag in
17192 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17194 esac
17195 ;;
17196 esac
17197
17198 ac_dir=`$as_dirname -- "$ac_file" ||
17199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17200 X"$ac_file" : 'X\(//\)[^/]' \| \
17201 X"$ac_file" : 'X\(//\)$' \| \
17202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17203 $as_echo X"$ac_file" |
17204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17205 s//\1/
17206 q
17207 }
17208 /^X\(\/\/\)[^/].*/{
17209 s//\1/
17210 q
17211 }
17212 /^X\(\/\/\)$/{
17213 s//\1/
17214 q
17215 }
17216 /^X\(\/\).*/{
17217 s//\1/
17218 q
17219 }
17220 s/.*/./; q'`
17221 as_dir="$ac_dir"; as_fn_mkdir_p
17222 ac_builddir=.
17223
17224 case "$ac_dir" in
17225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17226 *)
17227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17228 # A ".." for each directory in $ac_dir_suffix.
17229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17230 case $ac_top_builddir_sub in
17231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17233 esac ;;
17234 esac
17235 ac_abs_top_builddir=$ac_pwd
17236 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17237 # for backward compatibility:
17238 ac_top_builddir=$ac_top_build_prefix
17239
17240 case $srcdir in
17241 .) # We are building in place.
17242 ac_srcdir=.
17243 ac_top_srcdir=$ac_top_builddir_sub
17244 ac_abs_top_srcdir=$ac_pwd ;;
17245 [\\/]* | ?:[\\/]* ) # Absolute name.
17246 ac_srcdir=$srcdir$ac_dir_suffix;
17247 ac_top_srcdir=$srcdir
17248 ac_abs_top_srcdir=$srcdir ;;
17249 *) # Relative name.
17250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17251 ac_top_srcdir=$ac_top_build_prefix$srcdir
17252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17253 esac
17254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17255
17256
17257 case $ac_mode in
17258 :F)
17259 #
17260 # CONFIG_FILE
17261 #
17262
17263 case $INSTALL in
17264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17266 esac
17267 ac_MKDIR_P=$MKDIR_P
17268 case $MKDIR_P in
17269 [\\/$]* | ?:[\\/]* ) ;;
17270 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17271 esac
17272 _ACEOF
17273
17274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17275 # If the template does not know about datarootdir, expand it.
17276 # FIXME: This hack should be removed a few years after 2.60.
17277 ac_datarootdir_hack=; ac_datarootdir_seen=
17278 ac_sed_dataroot='
17279 /datarootdir/ {
17280 p
17281 q
17282 }
17283 /@datadir@/p
17284 /@docdir@/p
17285 /@infodir@/p
17286 /@localedir@/p
17287 /@mandir@/p'
17288 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17289 *datarootdir*) ac_datarootdir_seen=yes;;
17290 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17292 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17293 _ACEOF
17294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17295 ac_datarootdir_hack='
17296 s&@datadir@&$datadir&g
17297 s&@docdir@&$docdir&g
17298 s&@infodir@&$infodir&g
17299 s&@localedir@&$localedir&g
17300 s&@mandir@&$mandir&g
17301 s&\\\${datarootdir}&$datarootdir&g' ;;
17302 esac
17303 _ACEOF
17304
17305 # Neutralize VPATH when `$srcdir' = `.'.
17306 # Shell code in configure.ac might set extrasub.
17307 # FIXME: do we really want to maintain this feature?
17308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17309 ac_sed_extra="$ac_vpsub
17310 $extrasub
17311 _ACEOF
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 :t
17314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17315 s|@configure_input@|$ac_sed_conf_input|;t t
17316 s&@top_builddir@&$ac_top_builddir_sub&;t t
17317 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17318 s&@srcdir@&$ac_srcdir&;t t
17319 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17320 s&@top_srcdir@&$ac_top_srcdir&;t t
17321 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17322 s&@builddir@&$ac_builddir&;t t
17323 s&@abs_builddir@&$ac_abs_builddir&;t t
17324 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17325 s&@INSTALL@&$ac_INSTALL&;t t
17326 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17327 $ac_datarootdir_hack
17328 "
17329 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17331
17332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17335 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17337 which seems to be undefined. Please make sure it is defined" >&5
17338 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17339 which seems to be undefined. Please make sure it is defined" >&2;}
17340
17341 rm -f "$ac_tmp/stdin"
17342 case $ac_file in
17343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17345 esac \
17346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17347 ;;
17348
17349
17350 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17351 $as_echo "$as_me: executing $ac_file commands" >&6;}
17352 ;;
17353 esac
17354
17355
17356 case $ac_file$ac_mode in
17357 "default-1":C)
17358 # Only add multilib support code if we just rebuilt the top-level
17359 # Makefile.
17360 case " $CONFIG_FILES " in
17361 *" Makefile "*)
17362 ac_file=Makefile . ${multi_basedir}/config-ml.in
17363 ;;
17364 esac ;;
17365 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17366 # Older Autoconf quotes --file arguments for eval, but not when files
17367 # are listed without --file. Let's play safe and only enable the eval
17368 # if we detect the quoting.
17369 case $CONFIG_FILES in
17370 *\'*) eval set x "$CONFIG_FILES" ;;
17371 *) set x $CONFIG_FILES ;;
17372 esac
17373 shift
17374 for mf
17375 do
17376 # Strip MF so we end up with the name of the file.
17377 mf=`echo "$mf" | sed -e 's/:.*$//'`
17378 # Check whether this is an Automake generated Makefile or not.
17379 # We used to match only the files named 'Makefile.in', but
17380 # some people rename them; so instead we look at the file content.
17381 # Grep'ing the first line is not enough: some people post-process
17382 # each Makefile.in and add a new line on top of each file to say so.
17383 # Grep'ing the whole file is not good either: AIX grep has a line
17384 # limit of 2048, but all sed's we know have understand at least 4000.
17385 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17386 dirpart=`$as_dirname -- "$mf" ||
17387 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17388 X"$mf" : 'X\(//\)[^/]' \| \
17389 X"$mf" : 'X\(//\)$' \| \
17390 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17391 $as_echo X"$mf" |
17392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17393 s//\1/
17394 q
17395 }
17396 /^X\(\/\/\)[^/].*/{
17397 s//\1/
17398 q
17399 }
17400 /^X\(\/\/\)$/{
17401 s//\1/
17402 q
17403 }
17404 /^X\(\/\).*/{
17405 s//\1/
17406 q
17407 }
17408 s/.*/./; q'`
17409 else
17410 continue
17411 fi
17412 # Extract the definition of DEPDIR, am__include, and am__quote
17413 # from the Makefile without running 'make'.
17414 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17415 test -z "$DEPDIR" && continue
17416 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17417 test -z "$am__include" && continue
17418 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17419 # Find all dependency output files, they are included files with
17420 # $(DEPDIR) in their names. We invoke sed twice because it is the
17421 # simplest approach to changing $(DEPDIR) to its actual value in the
17422 # expansion.
17423 for file in `sed -n "
17424 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17425 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17426 # Make sure the directory exists.
17427 test -f "$dirpart/$file" && continue
17428 fdir=`$as_dirname -- "$file" ||
17429 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17430 X"$file" : 'X\(//\)[^/]' \| \
17431 X"$file" : 'X\(//\)$' \| \
17432 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17433 $as_echo X"$file" |
17434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17435 s//\1/
17436 q
17437 }
17438 /^X\(\/\/\)[^/].*/{
17439 s//\1/
17440 q
17441 }
17442 /^X\(\/\/\)$/{
17443 s//\1/
17444 q
17445 }
17446 /^X\(\/\).*/{
17447 s//\1/
17448 q
17449 }
17450 s/.*/./; q'`
17451 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17452 # echo "creating $dirpart/$file"
17453 echo '# dummy' > "$dirpart/$file"
17454 done
17455 done
17456 }
17457 ;;
17458 "libtool":C)
17459
17460 # See if we are running on zsh, and set the options which allow our
17461 # commands through without removal of \ escapes.
17462 if test -n "${ZSH_VERSION+set}" ; then
17463 setopt NO_GLOB_SUBST
17464 fi
17465
17466 cfgfile="${ofile}T"
17467 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17468 $RM "$cfgfile"
17469
17470 cat <<_LT_EOF >> "$cfgfile"
17471 #! $SHELL
17472
17473 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17474 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17475 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17477 #
17478 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17479 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17480 # Written by Gordon Matzigkeit, 1996
17481 #
17482 # This file is part of GNU Libtool.
17483 #
17484 # GNU Libtool is free software; you can redistribute it and/or
17485 # modify it under the terms of the GNU General Public License as
17486 # published by the Free Software Foundation; either version 2 of
17487 # the License, or (at your option) any later version.
17488 #
17489 # As a special exception to the GNU General Public License,
17490 # if you distribute this file as part of a program or library that
17491 # is built using GNU Libtool, you may include this file under the
17492 # same distribution terms that you use for the rest of that program.
17493 #
17494 # GNU Libtool is distributed in the hope that it will be useful,
17495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17497 # GNU General Public License for more details.
17498 #
17499 # You should have received a copy of the GNU General Public License
17500 # along with GNU Libtool; see the file COPYING. If not, a copy
17501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17502 # obtained by writing to the Free Software Foundation, Inc.,
17503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17504
17505
17506 # The names of the tagged configurations supported by this script.
17507 available_tags="CXX "
17508
17509 # ### BEGIN LIBTOOL CONFIG
17510
17511 # Which release of libtool.m4 was used?
17512 macro_version=$macro_version
17513 macro_revision=$macro_revision
17514
17515 # Whether or not to build shared libraries.
17516 build_libtool_libs=$enable_shared
17517
17518 # Whether or not to build static libraries.
17519 build_old_libs=$enable_static
17520
17521 # What type of objects to build.
17522 pic_mode=$pic_mode
17523
17524 # Whether or not to optimize for fast installation.
17525 fast_install=$enable_fast_install
17526
17527 # Shell to use when invoking shell scripts.
17528 SHELL=$lt_SHELL
17529
17530 # An echo program that protects backslashes.
17531 ECHO=$lt_ECHO
17532
17533 # The host system.
17534 host_alias=$host_alias
17535 host=$host
17536 host_os=$host_os
17537
17538 # The build system.
17539 build_alias=$build_alias
17540 build=$build
17541 build_os=$build_os
17542
17543 # A sed program that does not truncate output.
17544 SED=$lt_SED
17545
17546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17547 Xsed="\$SED -e 1s/^X//"
17548
17549 # A grep program that handles long lines.
17550 GREP=$lt_GREP
17551
17552 # An ERE matcher.
17553 EGREP=$lt_EGREP
17554
17555 # A literal string matcher.
17556 FGREP=$lt_FGREP
17557
17558 # A BSD- or MS-compatible name lister.
17559 NM=$lt_NM
17560
17561 # Whether we need soft or hard links.
17562 LN_S=$lt_LN_S
17563
17564 # What is the maximum length of a command?
17565 max_cmd_len=$max_cmd_len
17566
17567 # Object file suffix (normally "o").
17568 objext=$ac_objext
17569
17570 # Executable file suffix (normally "").
17571 exeext=$exeext
17572
17573 # whether the shell understands "unset".
17574 lt_unset=$lt_unset
17575
17576 # turn spaces into newlines.
17577 SP2NL=$lt_lt_SP2NL
17578
17579 # turn newlines into spaces.
17580 NL2SP=$lt_lt_NL2SP
17581
17582 # An object symbol dumper.
17583 OBJDUMP=$lt_OBJDUMP
17584
17585 # Method to check whether dependent libraries are shared objects.
17586 deplibs_check_method=$lt_deplibs_check_method
17587
17588 # Command to use when deplibs_check_method == "file_magic".
17589 file_magic_cmd=$lt_file_magic_cmd
17590
17591 # The archiver.
17592 AR=$lt_AR
17593 AR_FLAGS=$lt_AR_FLAGS
17594
17595 # A symbol stripping program.
17596 STRIP=$lt_STRIP
17597
17598 # Commands used to install an old-style archive.
17599 RANLIB=$lt_RANLIB
17600 old_postinstall_cmds=$lt_old_postinstall_cmds
17601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17602
17603 # Whether to use a lock for old archive extraction.
17604 lock_old_archive_extraction=$lock_old_archive_extraction
17605
17606 # A C compiler.
17607 LTCC=$lt_CC
17608
17609 # LTCC compiler flags.
17610 LTCFLAGS=$lt_CFLAGS
17611
17612 # Take the output of nm and produce a listing of raw symbols and C names.
17613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17614
17615 # Transform the output of nm in a proper C declaration.
17616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17617
17618 # Transform the output of nm in a C name address pair.
17619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17620
17621 # Transform the output of nm in a C name address pair when lib prefix is needed.
17622 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17623
17624 # The name of the directory that contains temporary libtool files.
17625 objdir=$objdir
17626
17627 # Used to examine libraries when file_magic_cmd begins with "file".
17628 MAGIC_CMD=$MAGIC_CMD
17629
17630 # Must we lock files when doing compilation?
17631 need_locks=$lt_need_locks
17632
17633 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17634 DSYMUTIL=$lt_DSYMUTIL
17635
17636 # Tool to change global to local symbols on Mac OS X.
17637 NMEDIT=$lt_NMEDIT
17638
17639 # Tool to manipulate fat objects and archives on Mac OS X.
17640 LIPO=$lt_LIPO
17641
17642 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17643 OTOOL=$lt_OTOOL
17644
17645 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17646 OTOOL64=$lt_OTOOL64
17647
17648 # Old archive suffix (normally "a").
17649 libext=$libext
17650
17651 # Shared library suffix (normally ".so").
17652 shrext_cmds=$lt_shrext_cmds
17653
17654 # The commands to extract the exported symbol list from a shared archive.
17655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17656
17657 # Variables whose values should be saved in libtool wrapper scripts and
17658 # restored at link time.
17659 variables_saved_for_relink=$lt_variables_saved_for_relink
17660
17661 # Do we need the "lib" prefix for modules?
17662 need_lib_prefix=$need_lib_prefix
17663
17664 # Do we need a version for libraries?
17665 need_version=$need_version
17666
17667 # Library versioning type.
17668 version_type=$version_type
17669
17670 # Shared library runtime path variable.
17671 runpath_var=$runpath_var
17672
17673 # Shared library path variable.
17674 shlibpath_var=$shlibpath_var
17675
17676 # Is shlibpath searched before the hard-coded library search path?
17677 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17678
17679 # Format of library name prefix.
17680 libname_spec=$lt_libname_spec
17681
17682 # List of archive names. First name is the real one, the rest are links.
17683 # The last name is the one that the linker finds with -lNAME
17684 library_names_spec=$lt_library_names_spec
17685
17686 # The coded name of the library, if different from the real name.
17687 soname_spec=$lt_soname_spec
17688
17689 # Permission mode override for installation of shared libraries.
17690 install_override_mode=$lt_install_override_mode
17691
17692 # Command to use after installation of a shared archive.
17693 postinstall_cmds=$lt_postinstall_cmds
17694
17695 # Command to use after uninstallation of a shared archive.
17696 postuninstall_cmds=$lt_postuninstall_cmds
17697
17698 # Commands used to finish a libtool library installation in a directory.
17699 finish_cmds=$lt_finish_cmds
17700
17701 # As "finish_cmds", except a single script fragment to be evaled but
17702 # not shown.
17703 finish_eval=$lt_finish_eval
17704
17705 # Whether we should hardcode library paths into libraries.
17706 hardcode_into_libs=$hardcode_into_libs
17707
17708 # Compile-time system search path for libraries.
17709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17710
17711 # Run-time system search path for libraries.
17712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17713
17714 # Whether dlopen is supported.
17715 dlopen_support=$enable_dlopen
17716
17717 # Whether dlopen of programs is supported.
17718 dlopen_self=$enable_dlopen_self
17719
17720 # Whether dlopen of statically linked programs is supported.
17721 dlopen_self_static=$enable_dlopen_self_static
17722
17723 # Commands to strip libraries.
17724 old_striplib=$lt_old_striplib
17725 striplib=$lt_striplib
17726
17727
17728 # The linker used to build libraries.
17729 LD=$lt_LD
17730
17731 # How to create reloadable object files.
17732 reload_flag=$lt_reload_flag
17733 reload_cmds=$lt_reload_cmds
17734
17735 # Commands used to build an old-style archive.
17736 old_archive_cmds=$lt_old_archive_cmds
17737
17738 # A language specific compiler.
17739 CC=$lt_compiler
17740
17741 # Is the compiler the GNU compiler?
17742 with_gcc=$GCC
17743
17744 # Compiler flag to turn off builtin functions.
17745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17746
17747 # How to pass a linker flag through the compiler.
17748 wl=$lt_lt_prog_compiler_wl
17749
17750 # Additional compiler flags for building library objects.
17751 pic_flag=$lt_lt_prog_compiler_pic
17752
17753 # Compiler flag to prevent dynamic linking.
17754 link_static_flag=$lt_lt_prog_compiler_static
17755
17756 # Does compiler simultaneously support -c and -o options?
17757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17758
17759 # Whether or not to add -lc for building shared libraries.
17760 build_libtool_need_lc=$archive_cmds_need_lc
17761
17762 # Whether or not to disallow shared libs when runtime libs are static.
17763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17764
17765 # Compiler flag to allow reflexive dlopens.
17766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17767
17768 # Compiler flag to generate shared objects directly from archives.
17769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17770
17771 # Whether the compiler copes with passing no objects directly.
17772 compiler_needs_object=$lt_compiler_needs_object
17773
17774 # Create an old-style archive from a shared archive.
17775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17776
17777 # Create a temporary old-style archive to link instead of a shared archive.
17778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17779
17780 # Commands used to build a shared archive.
17781 archive_cmds=$lt_archive_cmds
17782 archive_expsym_cmds=$lt_archive_expsym_cmds
17783
17784 # Commands used to build a loadable module if different from building
17785 # a shared archive.
17786 module_cmds=$lt_module_cmds
17787 module_expsym_cmds=$lt_module_expsym_cmds
17788
17789 # Whether we are building with GNU ld or not.
17790 with_gnu_ld=$lt_with_gnu_ld
17791
17792 # Flag that allows shared libraries with undefined symbols to be built.
17793 allow_undefined_flag=$lt_allow_undefined_flag
17794
17795 # Flag that enforces no undefined symbols.
17796 no_undefined_flag=$lt_no_undefined_flag
17797
17798 # Flag to hardcode \$libdir into a binary during linking.
17799 # This must work even if \$libdir does not exist
17800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17801
17802 # If ld is used when linking, flag to hardcode \$libdir into a binary
17803 # during linking. This must work even if \$libdir does not exist.
17804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17805
17806 # Whether we need a single "-rpath" flag with a separated argument.
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17808
17809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17810 # DIR into the resulting binary.
17811 hardcode_direct=$hardcode_direct
17812
17813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17814 # DIR into the resulting binary and the resulting library dependency is
17815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17816 # library is relocated.
17817 hardcode_direct_absolute=$hardcode_direct_absolute
17818
17819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17820 # into the resulting binary.
17821 hardcode_minus_L=$hardcode_minus_L
17822
17823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17824 # into the resulting binary.
17825 hardcode_shlibpath_var=$hardcode_shlibpath_var
17826
17827 # Set to "yes" if building a shared library automatically hardcodes DIR
17828 # into the library and all subsequent libraries and executables linked
17829 # against it.
17830 hardcode_automatic=$hardcode_automatic
17831
17832 # Set to yes if linker adds runtime paths of dependent libraries
17833 # to runtime path list.
17834 inherit_rpath=$inherit_rpath
17835
17836 # Whether libtool must link a program against all its dependency libraries.
17837 link_all_deplibs=$link_all_deplibs
17838
17839 # Fix the shell variable \$srcfile for the compiler.
17840 fix_srcfile_path=$lt_fix_srcfile_path
17841
17842 # Set to "yes" if exported symbols are required.
17843 always_export_symbols=$always_export_symbols
17844
17845 # The commands to list exported symbols.
17846 export_symbols_cmds=$lt_export_symbols_cmds
17847
17848 # Symbols that should not be listed in the preloaded symbols.
17849 exclude_expsyms=$lt_exclude_expsyms
17850
17851 # Symbols that must always be exported.
17852 include_expsyms=$lt_include_expsyms
17853
17854 # Commands necessary for linking programs (against libraries) with templates.
17855 prelink_cmds=$lt_prelink_cmds
17856
17857 # Specify filename containing input files.
17858 file_list_spec=$lt_file_list_spec
17859
17860 # How to hardcode a shared library path into an executable.
17861 hardcode_action=$hardcode_action
17862
17863 # The directories searched by this compiler when creating a shared library.
17864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17865
17866 # Dependencies to place before and after the objects being linked to
17867 # create a shared library.
17868 predep_objects=$lt_predep_objects
17869 postdep_objects=$lt_postdep_objects
17870 predeps=$lt_predeps
17871 postdeps=$lt_postdeps
17872
17873 # The library search path used internally by the compiler when linking
17874 # a shared library.
17875 compiler_lib_search_path=$lt_compiler_lib_search_path
17876
17877 # ### END LIBTOOL CONFIG
17878
17879 _LT_EOF
17880
17881 case $host_os in
17882 aix3*)
17883 cat <<\_LT_EOF >> "$cfgfile"
17884 # AIX sometimes has problems with the GCC collect2 program. For some
17885 # reason, if we set the COLLECT_NAMES environment variable, the problems
17886 # vanish in a puff of smoke.
17887 if test "X${COLLECT_NAMES+set}" != Xset; then
17888 COLLECT_NAMES=
17889 export COLLECT_NAMES
17890 fi
17891 _LT_EOF
17892 ;;
17893 esac
17894
17895
17896 ltmain="$ac_aux_dir/ltmain.sh"
17897
17898
17899 # We use sed instead of cat because bash on DJGPP gets confused if
17900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17901 # text mode, it properly converts lines to CR/LF. This bash problem
17902 # is reportedly fixed, but why not run on old versions too?
17903 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17904 || (rm -f "$cfgfile"; exit 1)
17905
17906 case $xsi_shell in
17907 yes)
17908 cat << \_LT_EOF >> "$cfgfile"
17909
17910 # func_dirname file append nondir_replacement
17911 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17912 # otherwise set result to NONDIR_REPLACEMENT.
17913 func_dirname ()
17914 {
17915 case ${1} in
17916 */*) func_dirname_result="${1%/*}${2}" ;;
17917 * ) func_dirname_result="${3}" ;;
17918 esac
17919 }
17920
17921 # func_basename file
17922 func_basename ()
17923 {
17924 func_basename_result="${1##*/}"
17925 }
17926
17927 # func_dirname_and_basename file append nondir_replacement
17928 # perform func_basename and func_dirname in a single function
17929 # call:
17930 # dirname: Compute the dirname of FILE. If nonempty,
17931 # add APPEND to the result, otherwise set result
17932 # to NONDIR_REPLACEMENT.
17933 # value returned in "$func_dirname_result"
17934 # basename: Compute filename of FILE.
17935 # value retuned in "$func_basename_result"
17936 # Implementation must be kept synchronized with func_dirname
17937 # and func_basename. For efficiency, we do not delegate to
17938 # those functions but instead duplicate the functionality here.
17939 func_dirname_and_basename ()
17940 {
17941 case ${1} in
17942 */*) func_dirname_result="${1%/*}${2}" ;;
17943 * ) func_dirname_result="${3}" ;;
17944 esac
17945 func_basename_result="${1##*/}"
17946 }
17947
17948 # func_stripname prefix suffix name
17949 # strip PREFIX and SUFFIX off of NAME.
17950 # PREFIX and SUFFIX must not contain globbing or regex special
17951 # characters, hashes, percent signs, but SUFFIX may contain a leading
17952 # dot (in which case that matches only a dot).
17953 func_stripname ()
17954 {
17955 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17956 # positional parameters, so assign one to ordinary parameter first.
17957 func_stripname_result=${3}
17958 func_stripname_result=${func_stripname_result#"${1}"}
17959 func_stripname_result=${func_stripname_result%"${2}"}
17960 }
17961
17962 # func_opt_split
17963 func_opt_split ()
17964 {
17965 func_opt_split_opt=${1%%=*}
17966 func_opt_split_arg=${1#*=}
17967 }
17968
17969 # func_lo2o object
17970 func_lo2o ()
17971 {
17972 case ${1} in
17973 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17974 *) func_lo2o_result=${1} ;;
17975 esac
17976 }
17977
17978 # func_xform libobj-or-source
17979 func_xform ()
17980 {
17981 func_xform_result=${1%.*}.lo
17982 }
17983
17984 # func_arith arithmetic-term...
17985 func_arith ()
17986 {
17987 func_arith_result=$(( $* ))
17988 }
17989
17990 # func_len string
17991 # STRING may not start with a hyphen.
17992 func_len ()
17993 {
17994 func_len_result=${#1}
17995 }
17996
17997 _LT_EOF
17998 ;;
17999 *) # Bourne compatible functions.
18000 cat << \_LT_EOF >> "$cfgfile"
18001
18002 # func_dirname file append nondir_replacement
18003 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18004 # otherwise set result to NONDIR_REPLACEMENT.
18005 func_dirname ()
18006 {
18007 # Extract subdirectory from the argument.
18008 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18009 if test "X$func_dirname_result" = "X${1}"; then
18010 func_dirname_result="${3}"
18011 else
18012 func_dirname_result="$func_dirname_result${2}"
18013 fi
18014 }
18015
18016 # func_basename file
18017 func_basename ()
18018 {
18019 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18020 }
18021
18022
18023 # func_stripname prefix suffix name
18024 # strip PREFIX and SUFFIX off of NAME.
18025 # PREFIX and SUFFIX must not contain globbing or regex special
18026 # characters, hashes, percent signs, but SUFFIX may contain a leading
18027 # dot (in which case that matches only a dot).
18028 # func_strip_suffix prefix name
18029 func_stripname ()
18030 {
18031 case ${2} in
18032 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18033 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18034 esac
18035 }
18036
18037 # sed scripts:
18038 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18039 my_sed_long_arg='1s/^-[^=]*=//'
18040
18041 # func_opt_split
18042 func_opt_split ()
18043 {
18044 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18045 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18046 }
18047
18048 # func_lo2o object
18049 func_lo2o ()
18050 {
18051 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18052 }
18053
18054 # func_xform libobj-or-source
18055 func_xform ()
18056 {
18057 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18058 }
18059
18060 # func_arith arithmetic-term...
18061 func_arith ()
18062 {
18063 func_arith_result=`expr "$@"`
18064 }
18065
18066 # func_len string
18067 # STRING may not start with a hyphen.
18068 func_len ()
18069 {
18070 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18071 }
18072
18073 _LT_EOF
18074 esac
18075
18076 case $lt_shell_append in
18077 yes)
18078 cat << \_LT_EOF >> "$cfgfile"
18079
18080 # func_append var value
18081 # Append VALUE to the end of shell variable VAR.
18082 func_append ()
18083 {
18084 eval "$1+=\$2"
18085 }
18086 _LT_EOF
18087 ;;
18088 *)
18089 cat << \_LT_EOF >> "$cfgfile"
18090
18091 # func_append var value
18092 # Append VALUE to the end of shell variable VAR.
18093 func_append ()
18094 {
18095 eval "$1=\$$1\$2"
18096 }
18097
18098 _LT_EOF
18099 ;;
18100 esac
18101
18102
18103 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18104 || (rm -f "$cfgfile"; exit 1)
18105
18106 mv -f "$cfgfile" "$ofile" ||
18107 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18108 chmod +x "$ofile"
18109
18110
18111 cat <<_LT_EOF >> "$ofile"
18112
18113 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18114
18115 # The linker used to build libraries.
18116 LD=$lt_LD_CXX
18117
18118 # How to create reloadable object files.
18119 reload_flag=$lt_reload_flag_CXX
18120 reload_cmds=$lt_reload_cmds_CXX
18121
18122 # Commands used to build an old-style archive.
18123 old_archive_cmds=$lt_old_archive_cmds_CXX
18124
18125 # A language specific compiler.
18126 CC=$lt_compiler_CXX
18127
18128 # Is the compiler the GNU compiler?
18129 with_gcc=$GCC_CXX
18130
18131 # Compiler flag to turn off builtin functions.
18132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18133
18134 # How to pass a linker flag through the compiler.
18135 wl=$lt_lt_prog_compiler_wl_CXX
18136
18137 # Additional compiler flags for building library objects.
18138 pic_flag=$lt_lt_prog_compiler_pic_CXX
18139
18140 # Compiler flag to prevent dynamic linking.
18141 link_static_flag=$lt_lt_prog_compiler_static_CXX
18142
18143 # Does compiler simultaneously support -c and -o options?
18144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18145
18146 # Whether or not to add -lc for building shared libraries.
18147 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18148
18149 # Whether or not to disallow shared libs when runtime libs are static.
18150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18151
18152 # Compiler flag to allow reflexive dlopens.
18153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18154
18155 # Compiler flag to generate shared objects directly from archives.
18156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18157
18158 # Whether the compiler copes with passing no objects directly.
18159 compiler_needs_object=$lt_compiler_needs_object_CXX
18160
18161 # Create an old-style archive from a shared archive.
18162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18163
18164 # Create a temporary old-style archive to link instead of a shared archive.
18165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18166
18167 # Commands used to build a shared archive.
18168 archive_cmds=$lt_archive_cmds_CXX
18169 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18170
18171 # Commands used to build a loadable module if different from building
18172 # a shared archive.
18173 module_cmds=$lt_module_cmds_CXX
18174 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18175
18176 # Whether we are building with GNU ld or not.
18177 with_gnu_ld=$lt_with_gnu_ld_CXX
18178
18179 # Flag that allows shared libraries with undefined symbols to be built.
18180 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18181
18182 # Flag that enforces no undefined symbols.
18183 no_undefined_flag=$lt_no_undefined_flag_CXX
18184
18185 # Flag to hardcode \$libdir into a binary during linking.
18186 # This must work even if \$libdir does not exist
18187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18188
18189 # If ld is used when linking, flag to hardcode \$libdir into a binary
18190 # during linking. This must work even if \$libdir does not exist.
18191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18192
18193 # Whether we need a single "-rpath" flag with a separated argument.
18194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18195
18196 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18197 # DIR into the resulting binary.
18198 hardcode_direct=$hardcode_direct_CXX
18199
18200 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18201 # DIR into the resulting binary and the resulting library dependency is
18202 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18203 # library is relocated.
18204 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18205
18206 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18207 # into the resulting binary.
18208 hardcode_minus_L=$hardcode_minus_L_CXX
18209
18210 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18211 # into the resulting binary.
18212 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18213
18214 # Set to "yes" if building a shared library automatically hardcodes DIR
18215 # into the library and all subsequent libraries and executables linked
18216 # against it.
18217 hardcode_automatic=$hardcode_automatic_CXX
18218
18219 # Set to yes if linker adds runtime paths of dependent libraries
18220 # to runtime path list.
18221 inherit_rpath=$inherit_rpath_CXX
18222
18223 # Whether libtool must link a program against all its dependency libraries.
18224 link_all_deplibs=$link_all_deplibs_CXX
18225
18226 # Fix the shell variable \$srcfile for the compiler.
18227 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18228
18229 # Set to "yes" if exported symbols are required.
18230 always_export_symbols=$always_export_symbols_CXX
18231
18232 # The commands to list exported symbols.
18233 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18234
18235 # Symbols that should not be listed in the preloaded symbols.
18236 exclude_expsyms=$lt_exclude_expsyms_CXX
18237
18238 # Symbols that must always be exported.
18239 include_expsyms=$lt_include_expsyms_CXX
18240
18241 # Commands necessary for linking programs (against libraries) with templates.
18242 prelink_cmds=$lt_prelink_cmds_CXX
18243
18244 # Specify filename containing input files.
18245 file_list_spec=$lt_file_list_spec_CXX
18246
18247 # How to hardcode a shared library path into an executable.
18248 hardcode_action=$hardcode_action_CXX
18249
18250 # The directories searched by this compiler when creating a shared library.
18251 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18252
18253 # Dependencies to place before and after the objects being linked to
18254 # create a shared library.
18255 predep_objects=$lt_predep_objects_CXX
18256 postdep_objects=$lt_postdep_objects_CXX
18257 predeps=$lt_predeps_CXX
18258 postdeps=$lt_postdeps_CXX
18259
18260 # The library search path used internally by the compiler when linking
18261 # a shared library.
18262 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18263
18264 # ### END LIBTOOL TAG CONFIG: CXX
18265 _LT_EOF
18266
18267 ;;
18268 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18269 s!`test -f '$<' || echo '$(srcdir)/'`!!
18270 _EOF
18271 sed -f vpsed$$ $ac_file > tmp$$
18272 mv tmp$$ $ac_file
18273 rm vpsed$$
18274 echo 'MULTISUBDIR =' >> $ac_file
18275 ml_norecursion=yes
18276 . ${multi_basedir}/config-ml.in
18277 { ml_norecursion=; unset ml_norecursion;}
18278 ;;
18279
18280 esac
18281 done # for ac_tag
18282
18283
18284 as_fn_exit 0
18285 _ACEOF
18286 ac_clean_files=$ac_clean_files_save
18287
18288 test $ac_write_fail = 0 ||
18289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18290
18291
18292 # configure is writing to config.log, and then calls config.status.
18293 # config.status does its own redirection, appending to config.log.
18294 # Unfortunately, on DOS this fails, as config.log is still kept open
18295 # by configure, so config.status won't be able to write to it; its
18296 # output is simply discarded. So we exec the FD to /dev/null,
18297 # effectively closing config.log, so it can be properly (re)opened and
18298 # appended to by config.status. When coming back to configure, we
18299 # need to make the FD available again.
18300 if test "$no_create" != yes; then
18301 ac_cs_success=:
18302 ac_config_status_args=
18303 test "$silent" = yes &&
18304 ac_config_status_args="$ac_config_status_args --quiet"
18305 exec 5>/dev/null
18306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18307 exec 5>>config.log
18308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18309 # would make configure fail if this is the last instruction.
18310 $ac_cs_success || as_fn_exit 1
18311 fi
18312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18315 fi
18316