]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
gcov: rename 2 options.
[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 with_toolexeclibdir
794 enable_shared
795 enable_static
796 with_pic
797 enable_fast_install
798 with_gnu_ld
799 enable_libtool_lock
800 enable_cet
801 with_gcc_major_version_only
802 '
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
811 CPP
812 CXXCPP'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-multilib build many library versions (default)
1433 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1434 --enable-vtable-verify Enable vtable verification feature
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-cet enable Intel CET in target libraries [default=auto]
1450
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-toolexeclibdir=DIR
1455 install libraries built with a cross compiler within
1456 DIR
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-gcc-major-version-only
1461 use only GCC major number in filesystem paths
1462
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1474 CXXCPP C++ preprocessor
1475
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to the package provider.
1480 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1481 General help using GNU software: <http://www.gnu.org/gethelp/>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 GNU Vtable Verification Runtime Library configure 1.0
1545 generated by GNU Autoconf 2.69
1546
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1637 # accordingly.
1638 ac_fn_c_check_header_mongrel ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 else
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661 else
1662 ac_header_compiler=no
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1667
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677 else
1678 ac_header_preproc=no
1679 fi
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1683
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 eval "$3=\$ac_header_compiler"
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_mongrel
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755 fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1855
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1860
1861 #ifdef __STDC__
1862 # include <limits.h>
1863 #else
1864 # include <assert.h>
1865 #endif
1866
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main ()
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_func
1905
1906 # ac_fn_cxx_try_compile LINENO
1907 # ----------------------------
1908 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_cxx_try_compile ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext
1913 if { { ac_try="$ac_compile"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_compile") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest.$ac_objext; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=1
1938 fi
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1941
1942 } # ac_fn_cxx_try_compile
1943
1944 # ac_fn_cxx_try_cpp LINENO
1945 # ------------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_cpp ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } > conftest.i && {
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975 fi
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_cxx_try_cpp
1980
1981 # ac_fn_cxx_try_link LINENO
1982 # -------------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_link ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 test -x conftest$ac_exeext
2009 }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016 fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2024
2025 } # ac_fn_cxx_try_link
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2029
2030 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
2031 generated by GNU Autoconf 2.69. Invocation command line was
2032
2033 $ $0 $@
2034
2035 _ACEOF
2036 exec 5>>config.log
2037 {
2038 cat <<_ASUNAME
2039 ## --------- ##
2040 ## Platform. ##
2041 ## --------- ##
2042
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060 _ASUNAME
2061
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2068 done
2069 IFS=$as_save_IFS
2070
2071 } >&5
2072
2073 cat >&5 <<_ACEOF
2074
2075
2076 ## ----------- ##
2077 ## Core tests. ##
2078 ## ----------- ##
2079
2080 _ACEOF
2081
2082
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2088 ac_configure_args=
2089 ac_configure_args0=
2090 ac_configure_args1=
2091 ac_must_keep_next=false
2092 for ac_pass in 1 2
2093 do
2094 for ac_arg
2095 do
2096 case $ac_arg in
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2100 continue ;;
2101 *\'*)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 esac
2104 case $ac_pass in
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106 2)
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2110 else
2111 case $ac_arg in
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 esac
2119 ;;
2120 -* ) ac_must_keep_next=true ;;
2121 esac
2122 fi
2123 as_fn_append ac_configure_args " '$ac_arg'"
2124 ;;
2125 esac
2126 done
2127 done
2128 { ac_configure_args0=; unset ac_configure_args0;}
2129 { ac_configure_args1=; unset ac_configure_args1;}
2130
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2138 {
2139 echo
2140
2141 $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2144 echo
2145 # The following way of writing the cache mishandles newlines in values,
2146 (
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in #(
2150 *${as_nl}*)
2151 case $ac_var in #(
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 esac
2155 case $ac_var in #(
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2159 esac ;;
2160 esac
2161 done
2162 (set) 2>&1 |
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2165 sed -n \
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
2169 *)
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171 ;;
2172 esac |
2173 sort
2174 )
2175 echo
2176
2177 $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2180 echo
2181 for ac_var in $ac_subst_vars
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2195 echo
2196 for ac_var in $ac_subst_files
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205 fi
2206
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##"
2211 echo
2212 cat confdefs.h
2213 echo
2214 fi
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2222 ' 0
2223 for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225 done
2226 ac_signal=0
2227
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2230
2231 $as_echo "/* confdefs.h */" > confdefs.h
2232
2233 # Predefined preprocessor variables.
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2257 _ACEOF
2258
2259
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2262 ac_site_file1=NONE
2263 ac_site_file2=NONE
2264 if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2270 esac
2271 elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2274 else
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2277 fi
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279 do
2280 test "x$ac_site_file" = xNONE && continue
2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2285 . "$ac_site_file" \
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2290 fi
2291 done
2292
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308 fi
2309
2310 # Check that the precious variables saved in the cache have kept the same
2311 # value.
2312 ac_cache_corrupted=false
2313 for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2319 set,)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,set)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,);;
2328 *)
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 fi;;
2347 esac
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2350 case $ac_new_val in
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2353 esac
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 esac
2358 fi
2359 done
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 fi
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2370
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381 #AC_INIT(package-unused, version-unused, libvtv)
2382
2383
2384 # Default to --enable-multilib
2385 # Check whether --enable-multilib was given.
2386 if test "${enable_multilib+set}" = set; then :
2387 enableval=$enable_multilib; case "$enableval" in
2388 yes) multilib=yes ;;
2389 no) multilib=no ;;
2390 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2391 esac
2392 else
2393 multilib=yes
2394 fi
2395
2396
2397 # We may get other options which we leave undocumented:
2398 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2399 # See config-ml.in if you want the gory details.
2400
2401 if test "$srcdir" = "."; then
2402 if test "$with_target_subdir" != "."; then
2403 multi_basedir="$srcdir/$with_multisrctop../.."
2404 else
2405 multi_basedir="$srcdir/$with_multisrctop.."
2406 fi
2407 else
2408 multi_basedir="$srcdir/.."
2409 fi
2410
2411
2412 # Even if the default multilib is not a cross compilation,
2413 # it may be that some of the other multilibs are.
2414 if test $cross_compiling = no && test $multilib = yes \
2415 && test "x${with_multisubdir}" != x ; then
2416 cross_compiling=maybe
2417 fi
2418
2419 ac_config_commands="$ac_config_commands default-1"
2420
2421
2422 # -------
2423 # Options
2424 # -------
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2426 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2427 # Check whether --enable-version-specific-runtime-libs was given.
2428 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2429 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2430 yes) version_specific_libs=yes ;;
2431 no) version_specific_libs=no ;;
2432 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2433 esac
2434 else
2435 version_specific_libs=no
2436 fi
2437
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2439 $as_echo "$version_specific_libs" >&6; }
2440
2441 # Do not delete or change the following two lines. For why, see
2442 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2443 ac_aux_dir=
2444 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2445 if 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/install.sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install.sh -c"
2452 break
2453 elif test -f "$ac_dir/shtool"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/shtool install -c"
2456 break
2457 fi
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 fi
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
2472 # Make sure we can run config.sub.
2473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2474 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477 $as_echo_n "checking build system type... " >&6; }
2478 if ${ac_cv_build+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_build_alias=$build_alias
2482 test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484 test "x$ac_build_alias" = x &&
2485 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2488
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491 $as_echo "$ac_cv_build" >&6; }
2492 case $ac_cv_build in
2493 *-*-*) ;;
2494 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2495 esac
2496 build=$ac_cv_build
2497 ac_save_IFS=$IFS; IFS='-'
2498 set x $ac_cv_build
2499 shift
2500 build_cpu=$1
2501 build_vendor=$2
2502 shift; shift
2503 # Remember, the first character of IFS is used to create $*,
2504 # except with old shells:
2505 build_os=$*
2506 IFS=$ac_save_IFS
2507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2508
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511 $as_echo_n "checking host system type... " >&6; }
2512 if ${ac_cv_host+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
2517 else
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520 fi
2521
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524 $as_echo "$ac_cv_host" >&6; }
2525 case $ac_cv_host in
2526 *-*-*) ;;
2527 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2528 esac
2529 host=$ac_cv_host
2530 ac_save_IFS=$IFS; IFS='-'
2531 set x $ac_cv_host
2532 shift
2533 host_cpu=$1
2534 host_vendor=$2
2535 shift; shift
2536 # Remember, the first character of IFS is used to create $*,
2537 # except with old shells:
2538 host_os=$*
2539 IFS=$ac_save_IFS
2540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2541
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544 $as_echo_n "checking target system type... " >&6; }
2545 if ${ac_cv_target+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550 else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553 fi
2554
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557 $as_echo "$ac_cv_target" >&6; }
2558 case $ac_cv_target in
2559 *-*-*) ;;
2560 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2561 esac
2562 target=$ac_cv_target
2563 ac_save_IFS=$IFS; IFS='-'
2564 set x $ac_cv_target
2565 shift
2566 target_cpu=$1
2567 target_vendor=$2
2568 shift; shift
2569 # Remember, the first character of IFS is used to create $*,
2570 # except with old shells:
2571 target_os=$*
2572 IFS=$ac_save_IFS
2573 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2574
2575
2576 # The aliases save the names the user supplied, while $host etc.
2577 # will get canonicalized.
2578 test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582
2583 target_alias=${target_alias-$host_alias}
2584
2585 case ${build_alias} in
2586 "") build_noncanonical=${build} ;;
2587 *) build_noncanonical=${build_alias} ;;
2588 esac
2589
2590 case ${host_alias} in
2591 "") host_noncanonical=${build_noncanonical} ;;
2592 *) host_noncanonical=${host_alias} ;;
2593 esac
2594
2595 case ${target_alias} in
2596 "") target_noncanonical=${host_noncanonical} ;;
2597 *) target_noncanonical=${target_alias} ;;
2598 esac
2599
2600
2601
2602
2603
2604 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2605 -I\$(top_builddir)/../libstdc++-v3/include \
2606 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2607 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2608 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2609 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2610
2611
2612
2613
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_CC+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 fi
2661 if test -z "$ac_cv_prog_CC"; then
2662 ac_ct_CC=$CC
2663 # Extract the first word of "gcc", so it can be a program name with args.
2664 set dummy gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_ac_ct_CC="gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 CC=$ac_ct_CC
2709 fi
2710 else
2711 CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 fi
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2777 fi
2778 ac_cv_prog_CC="cc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2789 shift
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2794 shift
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 fi
2797 fi
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2814 do
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 test -n "$CC" && break
2853 done
2854 fi
2855 if test -z "$CC"; then
2856 ac_ct_CC=$CC
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2889 $as_echo "$ac_ct_CC" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 test -n "$ac_ct_CC" && break
2897 done
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908 CC=$ac_ct_CC
2909 fi
2910 fi
2911
2912 fi
2913
2914
2915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $? "no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details" "$LINENO" 5; }
2919
2920 # Provide some information about the compiler.
2921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2922 set X $ac_compile
2923 ac_compiler=$2
2924 for ac_option in --version -v -V -qversion; do
2925 { { ac_try="$ac_compiler $ac_option >&5"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933 ac_status=$?
2934 if test -s conftest.err; then
2935 sed '10a\
2936 ... rest of stderr output deleted ...
2937 10q' conftest.err >conftest.er1
2938 cat conftest.er1 >&5
2939 fi
2940 rm -f conftest.er1 conftest.err
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }
2943 done
2944
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2947
2948 int
2949 main ()
2950 {
2951
2952 ;
2953 return 0;
2954 }
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2962 $as_echo_n "checking whether the C compiler works... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2967
2968 ac_rmfiles=
2969 for ac_file in $ac_files
2970 do
2971 case $ac_file in
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 esac
2975 done
2976 rm -f $ac_rmfiles
2977
2978 if { { ac_try="$ac_link_default"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2993 # Autoconf.
2994 for ac_file in $ac_files ''
2995 do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2999 ;;
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 fi
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3015 * )
3016 break;;
3017 esac
3018 done
3019 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020
3021 else
3022 ac_file=''
3023 fi
3024 if test -z "$ac_file"; then :
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error 77 "C compiler cannot create executables
3033 See \`config.log' for more details" "$LINENO" 5; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036 $as_echo "yes" >&6; }
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3039 $as_echo_n "checking for C compiler default output file name... " >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041 $as_echo "$ac_file" >&6; }
3042 ac_exeext=$ac_cv_exeext
3043
3044 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3047 $as_echo_n "checking for suffix of executables... " >&6; }
3048 if { { ac_try="$ac_link"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3061 # work properly (i.e., refer to `conftest.exe'), while it won't with
3062 # `rm'.
3063 for ac_file in conftest.exe conftest conftest.*; do
3064 test -f "$ac_file" || continue
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 break;;
3069 * ) break;;
3070 esac
3071 done
3072 else
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details" "$LINENO" 5; }
3077 fi
3078 rm -f conftest conftest$ac_cv_exeext
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3080 $as_echo "$ac_cv_exeext" >&6; }
3081
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3084 ac_exeext=$EXEEXT
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087 #include <stdio.h>
3088 int
3089 main ()
3090 {
3091 FILE *f = fopen ("conftest.out", "w");
3092 return ferror (f) || fclose (f) != 0;
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files="$ac_clean_files conftest.out"
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102 $as_echo_n "checking whether we are cross compiling... " >&6; }
3103 if test "$cross_compiling" != yes; then
3104 { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3115 if { ac_try='./conftest$ac_cv_exeext'
3116 { { case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; }; then
3126 cross_compiling=no
3127 else
3128 if test "$cross_compiling" = maybe; then
3129 cross_compiling=yes
3130 else
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details" "$LINENO" 5; }
3136 fi
3137 fi
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3140 $as_echo "$cross_compiling" >&6; }
3141
3142 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145 $as_echo_n "checking for suffix of object files... " >&6; }
3146 if ${ac_cv_objext+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3151
3152 int
3153 main ()
3154 {
3155
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.o conftest.obj
3161 if { { ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compile") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 for ac_file in conftest.o conftest.obj conftest.*; do
3173 test -f "$ac_file" || continue;
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 break;;
3178 esac
3179 done
3180 else
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "cannot compute suffix of object files: cannot compile
3187 See \`config.log' for more details" "$LINENO" 5; }
3188 fi
3189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192 $as_echo "$ac_cv_objext" >&6; }
3193 OBJEXT=$ac_cv_objext
3194 ac_objext=$OBJEXT
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3197 if ${ac_cv_c_compiler_gnu+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206 #ifndef __GNUC__
3207 choke me
3208 #endif
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_compiler_gnu=yes
3216 else
3217 ac_compiler_gnu=no
3218 fi
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225 if test $ac_compiler_gnu = yes; then
3226 GCC=yes
3227 else
3228 GCC=
3229 fi
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3234 if ${ac_cv_prog_cc_g+:} false; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254 else
3255 CFLAGS=""
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 if ac_fn_c_try_compile "$LINENO"; then :
3268
3269 else
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271 CFLAGS="-g"
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274
3275 int
3276 main ()
3277 {
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_g=yes
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294 $as_echo "$ac_cv_prog_cc_g" >&6; }
3295 if test "$ac_test_CFLAGS" = set; then
3296 CFLAGS=$ac_save_CFLAGS
3297 elif test $ac_cv_prog_cc_g = yes; then
3298 if test "$GCC" = yes; then
3299 CFLAGS="-g -O2"
3300 else
3301 CFLAGS="-g"
3302 fi
3303 else
3304 if test "$GCC" = yes; then
3305 CFLAGS="-O2"
3306 else
3307 CFLAGS=
3308 fi
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3312 if ${ac_cv_prog_cc_c89+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 ac_cv_prog_cc_c89=no
3316 ac_save_CC=$CC
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 struct stat;
3322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3323 struct buf { int x; };
3324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325 static char *e (p, i)
3326 char **p;
3327 int i;
3328 {
3329 return p[i];
3330 }
3331 static char *f (char * (*g) (char **, int), char **p, ...)
3332 {
3333 char *s;
3334 va_list v;
3335 va_start (v,p);
3336 s = g (p, va_arg (v,int));
3337 va_end (v);
3338 return s;
3339 }
3340
3341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3342 function prototypes and stuff, but not '\xHH' hex character constants.
3343 These don't provoke an error unfortunately, instead are silently treated
3344 as 'x'. The following induces an error, until -std is added to get
3345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3346 array size at least. It's necessary to write '\x00'==0 to get something
3347 that's true only with -std. */
3348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349
3350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351 inside strings and character constants. */
3352 #define FOO(x) 'x'
3353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 int argc;
3360 char **argv;
3361 int
3362 main ()
3363 {
3364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 do
3372 CC="$ac_save_CC $ac_arg"
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_c89=$ac_arg
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 done
3379 rm -f conftest.$ac_ext
3380 CC=$ac_save_CC
3381
3382 fi
3383 # AC_CACHE_VAL
3384 case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387 $as_echo "none needed" >&6; } ;;
3388 xno)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3390 $as_echo "unsupported" >&6; } ;;
3391 *)
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395 esac
3396 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397
3398 fi
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3412 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3413 if ${am_cv_prog_cc_c_o+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 # Make sure it works both with $CC and with simple cc.
3428 # Following AC_PROG_CC_C_O, we do the test twice because some
3429 # compilers refuse to overwrite an existing .o file with -o,
3430 # though they will create one.
3431 am_cv_prog_cc_c_o=yes
3432 for am_i in 1 2; do
3433 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3434 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } \
3438 && test -f conftest2.$ac_objext; then
3439 : OK
3440 else
3441 am_cv_prog_cc_c_o=no
3442 break
3443 fi
3444 done
3445 rm -f core conftest*
3446 unset am_i
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3449 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3450 if test "$am_cv_prog_cc_c_o" != yes; then
3451 # Losing compiler, so override with the script.
3452 # FIXME: It is wrong to rewrite CC.
3453 # But if we don't then we get into trouble of one sort or another.
3454 # A longer-term fix would be to have automake use am__CC in this case,
3455 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3456 CC="$am_aux_dir/compile $CC"
3457 fi
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3473 # On Suns, sometimes $CPP names a directory.
3474 if test -n "$CPP" && test -d "$CPP"; then
3475 CPP=
3476 fi
3477 if test -z "$CPP"; then
3478 if ${ac_cv_prog_CPP+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 # Double quotes because CPP needs to be expanded
3482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 do
3484 ac_preproc_ok=false
3485 for ac_c_preproc_warn_flag in '' yes
3486 do
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500 Syntax error
3501 _ACEOF
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3503
3504 else
3505 # Broken: fails on valid input.
3506 continue
3507 fi
3508 rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: success on invalid input.
3518 continue
3519 else
3520 # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3523 fi
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.i conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then :
3530 break
3531 fi
3532
3533 done
3534 ac_cv_prog_CPP=$CPP
3535
3536 fi
3537 CPP=$ac_cv_prog_CPP
3538 else
3539 ac_cv_prog_CPP=$CPP
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542 $as_echo "$CPP" >&6; }
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #ifdef __STDC__
3555 # include <limits.h>
3556 #else
3557 # include <assert.h>
3558 #endif
3559 Syntax error
3560 _ACEOF
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563 else
3564 # Broken: fails on valid input.
3565 continue
3566 fi
3567 rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: success on invalid input.
3577 continue
3578 else
3579 # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.i conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then :
3589
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606 if ${ac_cv_path_GREP+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in grep ggrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620 as_fn_executable_p "$ac_path_GREP" || continue
3621 # Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623 case `"$ac_path_GREP" --version 2>&1` in
3624 *GNU*)
3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626 *)
3627 ac_count=0
3628 $as_echo_n 0123456789 >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP="$ac_path_GREP"
3641 ac_path_GREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647 esac
3648
3649 $ac_path_GREP_found && break 3
3650 done
3651 done
3652 done
3653 IFS=$as_save_IFS
3654 if test -z "$ac_cv_path_GREP"; then
3655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656 fi
3657 else
3658 ac_cv_path_GREP=$GREP
3659 fi
3660
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663 $as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3665
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668 $as_echo_n "checking for egrep... " >&6; }
3669 if ${ac_cv_path_EGREP+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3674 else
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in egrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_EGREP" || continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3690 *GNU*)
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692 *)
3693 ac_count=0
3694 $as_echo_n 0123456789 >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3708 fi
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3711 done
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715 $ac_path_EGREP_found && break 3
3716 done
3717 done
3718 done
3719 IFS=$as_save_IFS
3720 if test -z "$ac_cv_path_EGREP"; then
3721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722 fi
3723 else
3724 ac_cv_path_EGREP=$EGREP
3725 fi
3726
3727 fi
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730 $as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3732
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735 $as_echo_n "checking for ANSI C header files... " >&6; }
3736 if ${ac_cv_header_stdc+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdlib.h>
3742 #include <stdarg.h>
3743 #include <string.h>
3744 #include <float.h>
3745
3746 int
3747 main ()
3748 {
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_header_stdc=yes
3756 else
3757 ac_cv_header_stdc=no
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761 if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <string.h>
3766
3767 _ACEOF
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then :
3770
3771 else
3772 ac_cv_header_stdc=no
3773 fi
3774 rm -f conftest*
3775
3776 fi
3777
3778 if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 #include <stdlib.h>
3783
3784 _ACEOF
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "free" >/dev/null 2>&1; then :
3787
3788 else
3789 ac_cv_header_stdc=no
3790 fi
3791 rm -f conftest*
3792
3793 fi
3794
3795 if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3798 :
3799 else
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <ctype.h>
3803 #include <stdlib.h>
3804 #if ((' ' & 0x0FF) == 0x020)
3805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807 #else
3808 # define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813 #endif
3814
3815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 int
3817 main ()
3818 {
3819 int i;
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3823 return 2;
3824 return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_run "$LINENO"; then :
3828
3829 else
3830 ac_cv_header_stdc=no
3831 fi
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 fi
3835
3836 fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839 $as_echo "$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3841
3842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3843
3844 fi
3845
3846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3849 do :
3850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852 "
3853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854 cat >>confdefs.h <<_ACEOF
3855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856 _ACEOF
3857
3858 fi
3859
3860 done
3861
3862
3863
3864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3866 MINIX=yes
3867 else
3868 MINIX=
3869 fi
3870
3871
3872 if test "$MINIX" = yes; then
3873
3874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880 $as_echo "#define _MINIX 1" >>confdefs.h
3881
3882 fi
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 # define __EXTENSIONS__ 1
3894 $ac_includes_default
3895 int
3896 main ()
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_safe_to_define___extensions__=yes
3905 else
3906 ac_cv_safe_to_define___extensions__=no
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912 test $ac_cv_safe_to_define___extensions__ = yes &&
3913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914
3915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916
3917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918
3919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920
3921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3922
3923
3924
3925 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3927 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3928 # Check whether --enable-vtable-verify was given.
3929 if test "${enable_vtable_verify+set}" = set; then :
3930 enableval=$enable_vtable_verify; case "$enableval" in
3931 yes) enable_vtable_verify=yes ;;
3932 no) enable_vtable_verify=no ;;
3933 *) enable_vtable_verify=no;;
3934 esac
3935 else
3936 enable_vtable_verify=no
3937 fi
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3940 $as_echo "$enable_vtable_verify" >&6; }
3941
3942 # See if supported.
3943 unset VTV_SUPPORTED
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3945 $as_echo_n "checking for host support for vtable verification... " >&6; }
3946 . ${srcdir}/configure.tgt
3947 case ${host} in
3948 *-*-solaris2*)
3949 # libvtv requires init priority support, which depends on the linker
3950 # used on Solaris.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3952 $as_echo_n "checking for init priority support... " >&6; }
3953 if ${libvtv_cv_init_priority+:} false; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959
3960 int
3961 main ()
3962 {
3963 void ip (void) __attribute__ ((constructor (1)));
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 libgcc_cv_init_priority=yes
3970 else
3971 libgcc_cv_init_priority=no
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3976 $as_echo "$libvtv_cv_init_priority" >&6; }
3977 if test x$libvtv_cv_init_priority = xno; then
3978 VTV_SUPPORTED=no
3979 fi
3980 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3981 # configure.tgt restricting to libvtv to Solaris 11+.
3982 ;;
3983 esac
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3985 $as_echo "$VTV_SUPPORTED" >&6; }
3986
3987 # Decide if it's usable.
3988 use_vtable_verify=no
3989 if test "x$VTV_SUPPORTED" = "xyes"; then
3990 if test "x$enable_vtable_verify" = "xyes"; then
3991 use_vtable_verify=yes
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3993 $as_echo "$as_me: using vtable verification" >&6;}
3994 fi
3995 fi
3996 if test $use_vtable_verify = yes; then
3997 ENABLE_VTABLE_VERIFY_TRUE=
3998 ENABLE_VTABLE_VERIFY_FALSE='#'
3999 else
4000 ENABLE_VTABLE_VERIFY_TRUE='#'
4001 ENABLE_VTABLE_VERIFY_FALSE=
4002 fi
4003
4004
4005 am__api_version='1.15'
4006
4007 # Find a good install program. We prefer a C program (faster),
4008 # so one script is as good as another. But avoid the broken or
4009 # incompatible versions:
4010 # SysV /etc/install, /usr/sbin/install
4011 # SunOS /usr/etc/install
4012 # IRIX /sbin/install
4013 # AIX /bin/install
4014 # AmigaOS /C/install, which installs bootblocks on floppy discs
4015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4018 # OS/2's system install, which has a completely different semantic
4019 # ./install, which can be erroneously created by make from ./install.sh.
4020 # Reject install programs that cannot install multiple files.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4022 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4023 if test -z "$INSTALL"; then
4024 if ${ac_cv_path_install+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 # Account for people who put trailing slashes in PATH elements.
4033 case $as_dir/ in #((
4034 ./ | .// | /[cC]/* | \
4035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4036 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4037 /usr/ucb/* ) ;;
4038 *)
4039 # OSF1 and SCO ODT 3.0 have their own names for install.
4040 # Don't use installbsd from OSF since it installs stuff as root
4041 # by default.
4042 for ac_prog in ginstall scoinst install; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4045 if test $ac_prog = install &&
4046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # AIX install. It has an incompatible calling convention.
4048 :
4049 elif test $ac_prog = install &&
4050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4051 # program-specific install script used by HP pwplus--don't use.
4052 :
4053 else
4054 rm -rf conftest.one conftest.two conftest.dir
4055 echo one > conftest.one
4056 echo two > conftest.two
4057 mkdir conftest.dir
4058 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4059 test -s conftest.one && test -s conftest.two &&
4060 test -s conftest.dir/conftest.one &&
4061 test -s conftest.dir/conftest.two
4062 then
4063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4064 break 3
4065 fi
4066 fi
4067 fi
4068 done
4069 done
4070 ;;
4071 esac
4072
4073 done
4074 IFS=$as_save_IFS
4075
4076 rm -rf conftest.one conftest.two conftest.dir
4077
4078 fi
4079 if test "${ac_cv_path_install+set}" = set; then
4080 INSTALL=$ac_cv_path_install
4081 else
4082 # As a last resort, use the slow shell script. Don't cache a
4083 # value for INSTALL within a source directory, because that will
4084 # break other packages using the cache if that directory is
4085 # removed, or if the value is a relative name.
4086 INSTALL=$ac_install_sh
4087 fi
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4090 $as_echo "$INSTALL" >&6; }
4091
4092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4093 # It thinks the first close brace ends the variable substitution.
4094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4095
4096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4097
4098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4101 $as_echo_n "checking whether build environment is sane... " >&6; }
4102 # Reject unsafe characters in $srcdir or the absolute working directory
4103 # name. Accept space and tab only in the latter.
4104 am_lf='
4105 '
4106 case `pwd` in
4107 *[\\\"\#\$\&\'\`$am_lf]*)
4108 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4109 esac
4110 case $srcdir in
4111 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4112 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4113 esac
4114
4115 # Do 'set' in a subshell so we don't clobber the current shell's
4116 # arguments. Must try -L first in case configure is actually a
4117 # symlink; some systems play weird games with the mod time of symlinks
4118 # (eg FreeBSD returns the mod time of the symlink's containing
4119 # directory).
4120 if (
4121 am_has_slept=no
4122 for am_try in 1 2; do
4123 echo "timestamp, slept: $am_has_slept" > conftest.file
4124 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4125 if test "$*" = "X"; then
4126 # -L didn't work.
4127 set X `ls -t "$srcdir/configure" conftest.file`
4128 fi
4129 if test "$*" != "X $srcdir/configure conftest.file" \
4130 && test "$*" != "X conftest.file $srcdir/configure"; then
4131
4132 # If neither matched, then we have a broken ls. This can happen
4133 # if, for instance, CONFIG_SHELL is bash and it inherits a
4134 # broken ls alias from the environment. This has actually
4135 # happened. Such a system could not be considered "sane".
4136 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4137 alias in your environment" "$LINENO" 5
4138 fi
4139 if test "$2" = conftest.file || test $am_try -eq 2; then
4140 break
4141 fi
4142 # Just in case.
4143 sleep 1
4144 am_has_slept=yes
4145 done
4146 test "$2" = conftest.file
4147 )
4148 then
4149 # Ok.
4150 :
4151 else
4152 as_fn_error $? "newly created file is older than distributed files!
4153 Check your system clock" "$LINENO" 5
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4156 $as_echo "yes" >&6; }
4157 # If we didn't sleep, we still need to ensure time stamps of config.status and
4158 # generated files are strictly newer.
4159 am_sleep_pid=
4160 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4161 ( sleep 1 ) &
4162 am_sleep_pid=$!
4163 fi
4164
4165 rm -f conftest.file
4166
4167 test "$program_prefix" != NONE &&
4168 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4169 # Use a double $ so make ignores it.
4170 test "$program_suffix" != NONE &&
4171 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4172 # Double any \ or $.
4173 # By default was `s,x,x', remove it if useless.
4174 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4175 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4176
4177 if test x"${MISSING+set}" != xset; then
4178 case $am_aux_dir in
4179 *\ * | *\ *)
4180 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4181 *)
4182 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4183 esac
4184 fi
4185 # Use eval to expand $SHELL
4186 if eval "$MISSING --is-lightweight"; then
4187 am_missing_run="$MISSING "
4188 else
4189 am_missing_run=
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4191 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4192 fi
4193
4194 if test x"${install_sh+set}" != xset; then
4195 case $am_aux_dir in
4196 *\ * | *\ *)
4197 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4198 *)
4199 install_sh="\${SHELL} $am_aux_dir/install-sh"
4200 esac
4201 fi
4202
4203 # Installed binaries are usually stripped using 'strip' when the user
4204 # run "make install-strip". However 'strip' might not be the right
4205 # tool to use in cross-compilation environments, therefore Automake
4206 # will honor the 'STRIP' environment variable to overrule this program.
4207 if test "$cross_compiling" != no; then
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}strip; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_STRIP+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$STRIP"; then
4217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 STRIP=$ac_cv_prog_STRIP
4237 if test -n "$STRIP"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4239 $as_echo "$STRIP" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 fi
4247 if test -z "$ac_cv_prog_STRIP"; then
4248 ac_ct_STRIP=$STRIP
4249 # Extract the first word of "strip", so it can be a program name with args.
4250 set dummy strip; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$ac_ct_STRIP"; then
4257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_STRIP="strip"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi
4275 fi
4276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4277 if test -n "$ac_ct_STRIP"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4279 $as_echo "$ac_ct_STRIP" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285 if test "x$ac_ct_STRIP" = x; then
4286 STRIP=":"
4287 else
4288 case $cross_compiling:$ac_tool_warned in
4289 yes:)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292 ac_tool_warned=yes ;;
4293 esac
4294 STRIP=$ac_ct_STRIP
4295 fi
4296 else
4297 STRIP="$ac_cv_prog_STRIP"
4298 fi
4299
4300 fi
4301 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4304 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4305 if test -z "$MKDIR_P"; then
4306 if ${ac_cv_path_mkdir+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in mkdir gmkdir; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4317 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4318 'mkdir (GNU coreutils) '* | \
4319 'mkdir (coreutils) '* | \
4320 'mkdir (fileutils) '4.1*)
4321 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4322 break 3;;
4323 esac
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 fi
4330
4331 test -d ./--version && rmdir ./--version
4332 if test "${ac_cv_path_mkdir+set}" = set; then
4333 MKDIR_P="$ac_cv_path_mkdir -p"
4334 else
4335 # As a last resort, use the slow shell script. Don't cache a
4336 # value for MKDIR_P within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the value is a relative name.
4339 MKDIR_P="$ac_install_sh -d"
4340 fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4343 $as_echo "$MKDIR_P" >&6; }
4344
4345 for ac_prog in gawk mawk nawk awk
4346 do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348 set dummy $ac_prog; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_prog_AWK+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$AWK"; then
4355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_AWK="$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372 fi
4373 fi
4374 AWK=$ac_cv_prog_AWK
4375 if test -n "$AWK"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4377 $as_echo "$AWK" >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383
4384 test -n "$AWK" && break
4385 done
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4389 set x ${MAKE-make}
4390 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4391 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat >conftest.make <<\_ACEOF
4395 SHELL = /bin/sh
4396 all:
4397 @echo '@@@%%%=$(MAKE)=@@@%%%'
4398 _ACEOF
4399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4401 *@@@%%%=?*=@@@%%%*)
4402 eval ac_cv_prog_make_${ac_make}_set=yes;;
4403 *)
4404 eval ac_cv_prog_make_${ac_make}_set=no;;
4405 esac
4406 rm -f conftest.make
4407 fi
4408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410 $as_echo "yes" >&6; }
4411 SET_MAKE=
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 SET_MAKE="MAKE=${MAKE-make}"
4416 fi
4417
4418 rm -rf .tst 2>/dev/null
4419 mkdir .tst 2>/dev/null
4420 if test -d .tst; then
4421 am__leading_dot=.
4422 else
4423 am__leading_dot=_
4424 fi
4425 rmdir .tst 2>/dev/null
4426
4427 DEPDIR="${am__leading_dot}deps"
4428
4429 ac_config_commands="$ac_config_commands depfiles"
4430
4431
4432 am_make=${MAKE-make}
4433 cat > confinc << 'END'
4434 am__doit:
4435 @echo this is the am__doit target
4436 .PHONY: am__doit
4437 END
4438 # If we don't find an include directive, just comment out the code.
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4440 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4441 am__include="#"
4442 am__quote=
4443 _am_result=none
4444 # First try GNU make style include.
4445 echo "include confinc" > confmf
4446 # Ignore all kinds of additional output from 'make'.
4447 case `$am_make -s -f confmf 2> /dev/null` in #(
4448 *the\ am__doit\ target*)
4449 am__include=include
4450 am__quote=
4451 _am_result=GNU
4452 ;;
4453 esac
4454 # Now try BSD make style include.
4455 if test "$am__include" = "#"; then
4456 echo '.include "confinc"' > confmf
4457 case `$am_make -s -f confmf 2> /dev/null` in #(
4458 *the\ am__doit\ target*)
4459 am__include=.include
4460 am__quote="\""
4461 _am_result=BSD
4462 ;;
4463 esac
4464 fi
4465
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4468 $as_echo "$_am_result" >&6; }
4469 rm -f confinc confmf
4470
4471 # Check whether --enable-dependency-tracking was given.
4472 if test "${enable_dependency_tracking+set}" = set; then :
4473 enableval=$enable_dependency_tracking;
4474 fi
4475
4476 if test "x$enable_dependency_tracking" != xno; then
4477 am_depcomp="$ac_aux_dir/depcomp"
4478 AMDEPBACKSLASH='\'
4479 am__nodep='_no'
4480 fi
4481 if test "x$enable_dependency_tracking" != xno; then
4482 AMDEP_TRUE=
4483 AMDEP_FALSE='#'
4484 else
4485 AMDEP_TRUE='#'
4486 AMDEP_FALSE=
4487 fi
4488
4489
4490 # Check whether --enable-silent-rules was given.
4491 if test "${enable_silent_rules+set}" = set; then :
4492 enableval=$enable_silent_rules;
4493 fi
4494
4495 case $enable_silent_rules in # (((
4496 yes) AM_DEFAULT_VERBOSITY=0;;
4497 no) AM_DEFAULT_VERBOSITY=1;;
4498 *) AM_DEFAULT_VERBOSITY=1;;
4499 esac
4500 am_make=${MAKE-make}
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4502 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4503 if ${am_cv_make_support_nested_variables+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if $as_echo 'TRUE=$(BAR$(V))
4507 BAR0=false
4508 BAR1=true
4509 V=1
4510 am__doit:
4511 @$(TRUE)
4512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4513 am_cv_make_support_nested_variables=yes
4514 else
4515 am_cv_make_support_nested_variables=no
4516 fi
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4519 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4520 if test $am_cv_make_support_nested_variables = yes; then
4521 AM_V='$(V)'
4522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4523 else
4524 AM_V=$AM_DEFAULT_VERBOSITY
4525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4526 fi
4527 AM_BACKSLASH='\'
4528
4529 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4530 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4531 # is not polluted with repeated "-I."
4532 am__isrc=' -I$(srcdir)'
4533 # test to see if srcdir already configured
4534 if test -f $srcdir/config.status; then
4535 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4536 fi
4537 fi
4538
4539 # test whether we have cygpath
4540 if test -z "$CYGPATH_W"; then
4541 if (cygpath --version) >/dev/null 2>/dev/null; then
4542 CYGPATH_W='cygpath -w'
4543 else
4544 CYGPATH_W=echo
4545 fi
4546 fi
4547
4548
4549 # Define the identity of the package.
4550 PACKAGE='libvtv'
4551 VERSION='1.0'
4552
4553
4554 cat >>confdefs.h <<_ACEOF
4555 #define PACKAGE "$PACKAGE"
4556 _ACEOF
4557
4558
4559 cat >>confdefs.h <<_ACEOF
4560 #define VERSION "$VERSION"
4561 _ACEOF
4562
4563 # Some tools Automake needs.
4564
4565 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4566
4567
4568 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4569
4570
4571 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4572
4573
4574 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4575
4576
4577 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4578
4579 # For better backward compatibility. To be removed once Automake 1.9.x
4580 # dies out for good. For more background, see:
4581 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4582 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4583 mkdir_p='$(MKDIR_P)'
4584
4585 # We need awk for the "check" target (and possibly the TAP driver). The
4586 # system "awk" is bad on some platforms.
4587 # Always define AMTAR for backward compatibility. Yes, it's still used
4588 # in the wild :-( We should find a proper way to deprecate it ...
4589 AMTAR='$${TAR-tar}'
4590
4591
4592 # We'll loop over all known methods to create a tar archive until one works.
4593 _am_tools='gnutar pax cpio none'
4594
4595 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4596
4597
4598
4599
4600
4601 depcc="$CC" am_compiler_list=
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4604 $as_echo_n "checking dependency style of $depcc... " >&6; }
4605 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4609 # We make a subdir and do the tests there. Otherwise we can end up
4610 # making bogus files that we don't know about and never remove. For
4611 # instance it was reported that on HP-UX the gcc test will end up
4612 # making a dummy file named 'D' -- because '-MD' means "put the output
4613 # in D".
4614 rm -rf conftest.dir
4615 mkdir conftest.dir
4616 # Copy depcomp to subdir because otherwise we won't find it if we're
4617 # using a relative directory.
4618 cp "$am_depcomp" conftest.dir
4619 cd conftest.dir
4620 # We will build objects and dependencies in a subdirectory because
4621 # it helps to detect inapplicable dependency modes. For instance
4622 # both Tru64's cc and ICC support -MD to output dependencies as a
4623 # side effect of compilation, but ICC will put the dependencies in
4624 # the current directory while Tru64 will put them in the object
4625 # directory.
4626 mkdir sub
4627
4628 am_cv_CC_dependencies_compiler_type=none
4629 if test "$am_compiler_list" = ""; then
4630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4631 fi
4632 am__universal=false
4633 case " $depcc " in #(
4634 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4635 esac
4636
4637 for depmode in $am_compiler_list; do
4638 # Setup a source with many dependencies, because some compilers
4639 # like to wrap large dependency lists on column 80 (with \), and
4640 # we should not choose a depcomp mode which is confused by this.
4641 #
4642 # We need to recreate these files for each test, as the compiler may
4643 # overwrite some of them when testing with obscure command lines.
4644 # This happens at least with the AIX C compiler.
4645 : > sub/conftest.c
4646 for i in 1 2 3 4 5 6; do
4647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4648 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4649 # Solaris 10 /bin/sh.
4650 echo '/* dummy */' > sub/conftst$i.h
4651 done
4652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4653
4654 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4655 # mode. It turns out that the SunPro C++ compiler does not properly
4656 # handle '-M -o', and we need to detect this. Also, some Intel
4657 # versions had trouble with output in subdirs.
4658 am__obj=sub/conftest.${OBJEXT-o}
4659 am__minus_obj="-o $am__obj"
4660 case $depmode in
4661 gcc)
4662 # This depmode causes a compiler race in universal mode.
4663 test "$am__universal" = false || continue
4664 ;;
4665 nosideeffect)
4666 # After this tag, mechanisms are not by side-effect, so they'll
4667 # only be used when explicitly requested.
4668 if test "x$enable_dependency_tracking" = xyes; then
4669 continue
4670 else
4671 break
4672 fi
4673 ;;
4674 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4675 # This compiler won't grok '-c -o', but also, the minuso test has
4676 # not run yet. These depmodes are late enough in the game, and
4677 # so weak that their functioning should not be impacted.
4678 am__obj=conftest.${OBJEXT-o}
4679 am__minus_obj=
4680 ;;
4681 none) break ;;
4682 esac
4683 if depmode=$depmode \
4684 source=sub/conftest.c object=$am__obj \
4685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4686 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4687 >/dev/null 2>conftest.err &&
4688 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4690 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4692 # icc doesn't choke on unknown options, it will just issue warnings
4693 # or remarks (even with -Werror). So we grep stderr for any message
4694 # that says an option was ignored or not supported.
4695 # When given -MP, icc 7.0 and 7.1 complain thusly:
4696 # icc: Command line warning: ignoring option '-M'; no argument required
4697 # The diagnosis changed in icc 8.0:
4698 # icc: Command line remark: option '-MP' not supported
4699 if (grep 'ignoring option' conftest.err ||
4700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4701 am_cv_CC_dependencies_compiler_type=$depmode
4702 break
4703 fi
4704 fi
4705 done
4706
4707 cd ..
4708 rm -rf conftest.dir
4709 else
4710 am_cv_CC_dependencies_compiler_type=none
4711 fi
4712
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4715 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4717
4718 if
4719 test "x$enable_dependency_tracking" != xno \
4720 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCC_TRUE=
4722 am__fastdepCC_FALSE='#'
4723 else
4724 am__fastdepCC_TRUE='#'
4725 am__fastdepCC_FALSE=
4726 fi
4727
4728
4729
4730 # POSIX will say in a future version that running "rm -f" with no argument
4731 # is OK; and we want to be able to make that assumption in our Makefile
4732 # recipes. So use an aggressive probe to check that the usage we want is
4733 # actually supported "in the wild" to an acceptable degree.
4734 # See automake bug#10828.
4735 # To make any issue more visible, cause the running configure to be aborted
4736 # by default if the 'rm' program in use doesn't match our expectations; the
4737 # user can still override this though.
4738 if rm -f && rm -fr && rm -rf; then : OK; else
4739 cat >&2 <<'END'
4740 Oops!
4741
4742 Your 'rm' program seems unable to run without file operands specified
4743 on the command line, even when the '-f' option is present. This is contrary
4744 to the behaviour of most rm programs out there, and not conforming with
4745 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4746
4747 Please tell bug-automake@gnu.org about your system, including the value
4748 of your $PATH and any error possibly output before this message. This
4749 can help us improve future automake versions.
4750
4751 END
4752 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4753 echo 'Configuration will proceed anyway, since you have set the' >&2
4754 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4755 echo >&2
4756 else
4757 cat >&2 <<'END'
4758 Aborting the configuration process, to ensure you take notice of the issue.
4759
4760 You can download and install GNU coreutils to get an 'rm' implementation
4761 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4762
4763 If you want to complete the configuration process using your problematic
4764 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4765 to "yes", and re-run configure.
4766
4767 END
4768 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4769 fi
4770 fi
4771
4772
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4774 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4775 # Check whether --enable-maintainer-mode was given.
4776 if test "${enable_maintainer_mode+set}" = set; then :
4777 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4778 else
4779 USE_MAINTAINER_MODE=no
4780 fi
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4783 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4784 if test $USE_MAINTAINER_MODE = yes; then
4785 MAINTAINER_MODE_TRUE=
4786 MAINTAINER_MODE_FALSE='#'
4787 else
4788 MAINTAINER_MODE_TRUE='#'
4789 MAINTAINER_MODE_FALSE=
4790 fi
4791
4792 MAINT=$MAINTAINER_MODE_TRUE
4793
4794
4795
4796
4797
4798 # These need to be absolute paths, yet at the same time need to
4799 # canonicalize only relative paths, because then amd will not unmount
4800 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4801 libvtv_builddir=`${PWDCMD-pwd}`
4802 case $srcdir in
4803 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4804 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4805 esac
4806 toplevel_builddir=${libvtv_builddir}/..
4807 toplevel_srcdir=${libvtv_srcdir}/..
4808
4809
4810
4811
4812
4813
4814
4815 # Check whether --with-toolexeclibdir was given.
4816 if test "${with_toolexeclibdir+set}" = set; then :
4817 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
4818 /)
4819 ;;
4820 */)
4821 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
4822 ;;
4823 esac
4824 else
4825 with_toolexeclibdir=no
4826 fi
4827
4828
4829
4830 # Calculate toolexeclibdir
4831 # Also toolexecdir, though it's only used in toolexeclibdir
4832 case ${version_specific_libs} in
4833 yes)
4834 # Need the gcc compiler version to know where to install libraries
4835 # and header files if --enable-version-specific-runtime-libs option
4836 # is selected.
4837 toolexecdir='$(libdir)/gcc/$(target_alias)'
4838 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4839 ;;
4840 no)
4841 if test -n "$with_cross_host" &&
4842 test x"$with_cross_host" != x"no"; then
4843 # Install a library built with a cross compiler in tooldir, not libdir.
4844 toolexecdir='$(exec_prefix)/$(target_alias)'
4845 case ${with_toolexeclibdir} in
4846 no)
4847 toolexeclibdir='$(toolexecdir)/lib'
4848 ;;
4849 *)
4850 toolexeclibdir=${with_toolexeclibdir}
4851 ;;
4852 esac
4853 else
4854 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4855 toolexeclibdir='$(libdir)'
4856 fi
4857 multi_os_directory=`$CC -print-multi-os-directory`
4858 case $multi_os_directory in
4859 .) ;; # Avoid trailing /.
4860 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4861 esac
4862 ;;
4863 esac
4864
4865
4866
4867
4868 for ac_func in __secure_getenv
4869 do :
4870 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4871 if test "x$ac_cv_func___secure_getenv" = xyes; then :
4872 cat >>confdefs.h <<_ACEOF
4873 #define HAVE___SECURE_GETENV 1
4874 _ACEOF
4875
4876 fi
4877 done
4878
4879
4880
4881 for ac_func in secure_getenv
4882 do :
4883 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4884 if test "x$ac_cv_func_secure_getenv" = xyes; then :
4885 cat >>confdefs.h <<_ACEOF
4886 #define HAVE_SECURE_GETENV 1
4887 _ACEOF
4888
4889 fi
4890 done
4891
4892
4893 for ac_func in getexecname __fortify_fail
4894 do :
4895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4898 cat >>confdefs.h <<_ACEOF
4899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4900 _ACEOF
4901
4902 fi
4903 done
4904
4905
4906 # Check for programs.
4907
4908
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_CC+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945 $as_echo "$CC" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952 fi
4953 if test -z "$ac_cv_prog_CC"; then
4954 ac_ct_CC=$CC
4955 # Extract the first word of "gcc", so it can be a program name with args.
4956 set dummy gcc; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$ac_ct_CC"; then
4963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_CC="gcc"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976 done
4977 done
4978 IFS=$as_save_IFS
4979
4980 fi
4981 fi
4982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4983 if test -n "$ac_ct_CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4985 $as_echo "$ac_ct_CC" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4989 fi
4990
4991 if test "x$ac_ct_CC" = x; then
4992 CC=""
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995 yes:)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
4999 esac
5000 CC=$ac_ct_CC
5001 fi
5002 else
5003 CC="$ac_cv_prog_CC"
5004 fi
5005
5006 if test -z "$CC"; then
5007 if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5009 set dummy ${ac_tool_prefix}cc; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_CC+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$CC"; then
5016 ac_cv_prog_CC="$CC" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_CC="${ac_tool_prefix}cc"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 CC=$ac_cv_prog_CC
5036 if test -n "$CC"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5038 $as_echo "$CC" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 fi
5046 fi
5047 if test -z "$CC"; then
5048 # Extract the first word of "cc", so it can be a program name with args.
5049 set dummy cc; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_CC+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$CC"; then
5056 ac_cv_prog_CC="$CC" # Let the user override the test.
5057 else
5058 ac_prog_rejected=no
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5067 ac_prog_rejected=yes
5068 continue
5069 fi
5070 ac_cv_prog_CC="cc"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074 done
5075 done
5076 IFS=$as_save_IFS
5077
5078 if test $ac_prog_rejected = yes; then
5079 # We found a bogon in the path, so make sure we never use it.
5080 set dummy $ac_cv_prog_CC
5081 shift
5082 if test $# != 0; then
5083 # We chose a different compiler from the bogus one.
5084 # However, it has the same basename, so the bogon will be chosen
5085 # first if we set CC to just the basename; use the full file name.
5086 shift
5087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5088 fi
5089 fi
5090 fi
5091 fi
5092 CC=$ac_cv_prog_CC
5093 if test -n "$CC"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095 $as_echo "$CC" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102 fi
5103 if test -z "$CC"; then
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in cl.exe
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_CC+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 test -n "$CC" && break
5145 done
5146 fi
5147 if test -z "$CC"; then
5148 ac_ct_CC=$CC
5149 for ac_prog in cl.exe
5150 do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_CC"; then
5159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_ac_ct_CC="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5179 if test -n "$ac_ct_CC"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5181 $as_echo "$ac_ct_CC" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 test -n "$ac_ct_CC" && break
5189 done
5190
5191 if test "x$ac_ct_CC" = x; then
5192 CC=""
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200 CC=$ac_ct_CC
5201 fi
5202 fi
5203
5204 fi
5205
5206
5207 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error $? "no acceptable C compiler found in \$PATH
5210 See \`config.log' for more details" "$LINENO" 5; }
5211
5212 # Provide some information about the compiler.
5213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5214 set X $ac_compile
5215 ac_compiler=$2
5216 for ac_option in --version -v -V -qversion; do
5217 { { ac_try="$ac_compiler $ac_option >&5"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 ac_status=$?
5226 if test -s conftest.err; then
5227 sed '10a\
5228 ... rest of stderr output deleted ...
5229 10q' conftest.err >conftest.er1
5230 cat conftest.er1 >&5
5231 fi
5232 rm -f conftest.er1 conftest.err
5233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234 test $ac_status = 0; }
5235 done
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5238 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5239 if ${ac_cv_c_compiler_gnu+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244
5245 int
5246 main ()
5247 {
5248 #ifndef __GNUC__
5249 choke me
5250 #endif
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_compiler_gnu=yes
5258 else
5259 ac_compiler_gnu=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5263
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5266 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5267 if test $ac_compiler_gnu = yes; then
5268 GCC=yes
5269 else
5270 GCC=
5271 fi
5272 ac_test_CFLAGS=${CFLAGS+set}
5273 ac_save_CFLAGS=$CFLAGS
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5275 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5276 if ${ac_cv_prog_cc_g+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 ac_save_c_werror_flag=$ac_c_werror_flag
5280 ac_c_werror_flag=yes
5281 ac_cv_prog_cc_g=no
5282 CFLAGS="-g"
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285
5286 int
5287 main ()
5288 {
5289
5290 ;
5291 return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_prog_cc_g=yes
5296 else
5297 CFLAGS=""
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300
5301 int
5302 main ()
5303 {
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310
5311 else
5312 ac_c_werror_flag=$ac_save_c_werror_flag
5313 CFLAGS="-g"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316
5317 int
5318 main ()
5319 {
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 ac_cv_prog_cc_g=yes
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_c_werror_flag=$ac_save_c_werror_flag
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5336 $as_echo "$ac_cv_prog_cc_g" >&6; }
5337 if test "$ac_test_CFLAGS" = set; then
5338 CFLAGS=$ac_save_CFLAGS
5339 elif test $ac_cv_prog_cc_g = yes; then
5340 if test "$GCC" = yes; then
5341 CFLAGS="-g -O2"
5342 else
5343 CFLAGS="-g"
5344 fi
5345 else
5346 if test "$GCC" = yes; then
5347 CFLAGS="-O2"
5348 else
5349 CFLAGS=
5350 fi
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5354 if ${ac_cv_prog_cc_c89+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 ac_cv_prog_cc_c89=no
5358 ac_save_CC=$CC
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdarg.h>
5362 #include <stdio.h>
5363 struct stat;
5364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5365 struct buf { int x; };
5366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5367 static char *e (p, i)
5368 char **p;
5369 int i;
5370 {
5371 return p[i];
5372 }
5373 static char *f (char * (*g) (char **, int), char **p, ...)
5374 {
5375 char *s;
5376 va_list v;
5377 va_start (v,p);
5378 s = g (p, va_arg (v,int));
5379 va_end (v);
5380 return s;
5381 }
5382
5383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5384 function prototypes and stuff, but not '\xHH' hex character constants.
5385 These don't provoke an error unfortunately, instead are silently treated
5386 as 'x'. The following induces an error, until -std is added to get
5387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5388 array size at least. It's necessary to write '\x00'==0 to get something
5389 that's true only with -std. */
5390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5391
5392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5393 inside strings and character constants. */
5394 #define FOO(x) 'x'
5395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5396
5397 int test (int i, double x);
5398 struct s1 {int (*f) (int a);};
5399 struct s2 {int (*f) (double a);};
5400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5401 int argc;
5402 char **argv;
5403 int
5404 main ()
5405 {
5406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5413 do
5414 CC="$ac_save_CC $ac_arg"
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 ac_cv_prog_cc_c89=$ac_arg
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext
5419 test "x$ac_cv_prog_cc_c89" != "xno" && break
5420 done
5421 rm -f conftest.$ac_ext
5422 CC=$ac_save_CC
5423
5424 fi
5425 # AC_CACHE_VAL
5426 case "x$ac_cv_prog_cc_c89" in
5427 x)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5429 $as_echo "none needed" >&6; } ;;
5430 xno)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5432 $as_echo "unsupported" >&6; } ;;
5433 *)
5434 CC="$CC $ac_cv_prog_cc_c89"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5437 esac
5438 if test "x$ac_cv_prog_cc_c89" != xno; then :
5439
5440 fi
5441
5442 ac_ext=c
5443 ac_cpp='$CPP $CPPFLAGS'
5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5447
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5454 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5455 if ${am_cv_prog_cc_c_o+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460
5461 int
5462 main ()
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 # Make sure it works both with $CC and with simple cc.
5470 # Following AC_PROG_CC_C_O, we do the test twice because some
5471 # compilers refuse to overwrite an existing .o file with -o,
5472 # though they will create one.
5473 am_cv_prog_cc_c_o=yes
5474 for am_i in 1 2; do
5475 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5476 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } \
5480 && test -f conftest2.$ac_objext; then
5481 : OK
5482 else
5483 am_cv_prog_cc_c_o=no
5484 break
5485 fi
5486 done
5487 rm -f core conftest*
5488 unset am_i
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5491 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5492 if test "$am_cv_prog_cc_c_o" != yes; then
5493 # Losing compiler, so override with the script.
5494 # FIXME: It is wrong to rewrite CC.
5495 # But if we don't then we get into trouble of one sort or another.
5496 # A longer-term fix would be to have automake use am__CC in this case,
5497 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5498 CC="$am_aux_dir/compile $CC"
5499 fi
5500 ac_ext=c
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505
5506
5507 ac_ext=cpp
5508 ac_cpp='$CXXCPP $CPPFLAGS'
5509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512 if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5514 CXX=$CCC
5515 else
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_CXX+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 CXX=$ac_cv_prog_CXX
5547 if test -n "$CXX"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5549 $as_echo "$CXX" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 test -n "$CXX" && break
5557 done
5558 fi
5559 if test -z "$CXX"; then
5560 ac_ct_CXX=$CXX
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5562 do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591 if test -n "$ac_ct_CXX"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5593 $as_echo "$ac_ct_CXX" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600 test -n "$ac_ct_CXX" && break
5601 done
5602
5603 if test "x$ac_ct_CXX" = x; then
5604 CXX="g++"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 CXX=$ac_ct_CXX
5613 fi
5614 fi
5615
5616 fi
5617 fi
5618 # Provide some information about the compiler.
5619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5620 set X $ac_compile
5621 ac_compiler=$2
5622 for ac_option in --version -v -V -qversion; do
5623 { { ac_try="$ac_compiler $ac_option >&5"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5631 ac_status=$?
5632 if test -s conftest.err; then
5633 sed '10a\
5634 ... rest of stderr output deleted ...
5635 10q' conftest.err >conftest.er1
5636 cat conftest.er1 >&5
5637 fi
5638 rm -f conftest.er1 conftest.err
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; }
5641 done
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5644 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5645 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650
5651 int
5652 main ()
5653 {
5654 #ifndef __GNUC__
5655 choke me
5656 #endif
5657
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_cxx_try_compile "$LINENO"; then :
5663 ac_compiler_gnu=yes
5664 else
5665 ac_compiler_gnu=no
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5673 if test $ac_compiler_gnu = yes; then
5674 GXX=yes
5675 else
5676 GXX=
5677 fi
5678 ac_test_CXXFLAGS=${CXXFLAGS+set}
5679 ac_save_CXXFLAGS=$CXXFLAGS
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5682 if ${ac_cv_prog_cxx_g+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5686 ac_cxx_werror_flag=yes
5687 ac_cv_prog_cxx_g=no
5688 CXXFLAGS="-g"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691
5692 int
5693 main ()
5694 {
5695
5696 ;
5697 return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_cxx_try_compile "$LINENO"; then :
5701 ac_cv_prog_cxx_g=yes
5702 else
5703 CXXFLAGS=""
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 if ac_fn_cxx_try_compile "$LINENO"; then :
5716
5717 else
5718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5719 CXXFLAGS="-g"
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722
5723 int
5724 main ()
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_cxx_try_compile "$LINENO"; then :
5732 ac_cv_prog_cxx_g=yes
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5742 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5743 if test "$ac_test_CXXFLAGS" = set; then
5744 CXXFLAGS=$ac_save_CXXFLAGS
5745 elif test $ac_cv_prog_cxx_g = yes; then
5746 if test "$GXX" = yes; then
5747 CXXFLAGS="-g -O2"
5748 else
5749 CXXFLAGS="-g"
5750 fi
5751 else
5752 if test "$GXX" = yes; then
5753 CXXFLAGS="-O2"
5754 else
5755 CXXFLAGS=
5756 fi
5757 fi
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764 depcc="$CXX" am_compiler_list=
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5767 $as_echo_n "checking dependency style of $depcc... " >&6; }
5768 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5772 # We make a subdir and do the tests there. Otherwise we can end up
5773 # making bogus files that we don't know about and never remove. For
5774 # instance it was reported that on HP-UX the gcc test will end up
5775 # making a dummy file named 'D' -- because '-MD' means "put the output
5776 # in D".
5777 rm -rf conftest.dir
5778 mkdir conftest.dir
5779 # Copy depcomp to subdir because otherwise we won't find it if we're
5780 # using a relative directory.
5781 cp "$am_depcomp" conftest.dir
5782 cd conftest.dir
5783 # We will build objects and dependencies in a subdirectory because
5784 # it helps to detect inapplicable dependency modes. For instance
5785 # both Tru64's cc and ICC support -MD to output dependencies as a
5786 # side effect of compilation, but ICC will put the dependencies in
5787 # the current directory while Tru64 will put them in the object
5788 # directory.
5789 mkdir sub
5790
5791 am_cv_CXX_dependencies_compiler_type=none
5792 if test "$am_compiler_list" = ""; then
5793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5794 fi
5795 am__universal=false
5796 case " $depcc " in #(
5797 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5798 esac
5799
5800 for depmode in $am_compiler_list; do
5801 # Setup a source with many dependencies, because some compilers
5802 # like to wrap large dependency lists on column 80 (with \), and
5803 # we should not choose a depcomp mode which is confused by this.
5804 #
5805 # We need to recreate these files for each test, as the compiler may
5806 # overwrite some of them when testing with obscure command lines.
5807 # This happens at least with the AIX C compiler.
5808 : > sub/conftest.c
5809 for i in 1 2 3 4 5 6; do
5810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5811 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5812 # Solaris 10 /bin/sh.
5813 echo '/* dummy */' > sub/conftst$i.h
5814 done
5815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5816
5817 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5818 # mode. It turns out that the SunPro C++ compiler does not properly
5819 # handle '-M -o', and we need to detect this. Also, some Intel
5820 # versions had trouble with output in subdirs.
5821 am__obj=sub/conftest.${OBJEXT-o}
5822 am__minus_obj="-o $am__obj"
5823 case $depmode in
5824 gcc)
5825 # This depmode causes a compiler race in universal mode.
5826 test "$am__universal" = false || continue
5827 ;;
5828 nosideeffect)
5829 # After this tag, mechanisms are not by side-effect, so they'll
5830 # only be used when explicitly requested.
5831 if test "x$enable_dependency_tracking" = xyes; then
5832 continue
5833 else
5834 break
5835 fi
5836 ;;
5837 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5838 # This compiler won't grok '-c -o', but also, the minuso test has
5839 # not run yet. These depmodes are late enough in the game, and
5840 # so weak that their functioning should not be impacted.
5841 am__obj=conftest.${OBJEXT-o}
5842 am__minus_obj=
5843 ;;
5844 none) break ;;
5845 esac
5846 if depmode=$depmode \
5847 source=sub/conftest.c object=$am__obj \
5848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5850 >/dev/null 2>conftest.err &&
5851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5855 # icc doesn't choke on unknown options, it will just issue warnings
5856 # or remarks (even with -Werror). So we grep stderr for any message
5857 # that says an option was ignored or not supported.
5858 # When given -MP, icc 7.0 and 7.1 complain thusly:
5859 # icc: Command line warning: ignoring option '-M'; no argument required
5860 # The diagnosis changed in icc 8.0:
5861 # icc: Command line remark: option '-MP' not supported
5862 if (grep 'ignoring option' conftest.err ||
5863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5864 am_cv_CXX_dependencies_compiler_type=$depmode
5865 break
5866 fi
5867 fi
5868 done
5869
5870 cd ..
5871 rm -rf conftest.dir
5872 else
5873 am_cv_CXX_dependencies_compiler_type=none
5874 fi
5875
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5878 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5879 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5880
5881 if
5882 test "x$enable_dependency_tracking" != xno \
5883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5884 am__fastdepCXX_TRUE=
5885 am__fastdepCXX_FALSE='#'
5886 else
5887 am__fastdepCXX_TRUE='#'
5888 am__fastdepCXX_FALSE=
5889 fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 # Newer automakes demand CCAS and CCASFLAGS.
5900 : ${CCAS='$(CC)'}
5901 : ${CCASFLAGS='$(CFLAGS)'}
5902
5903
5904
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}as; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_AS+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$AS"; then
5914 ac_cv_prog_AS="$AS" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_AS="${ac_tool_prefix}as"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 AS=$ac_cv_prog_AS
5934 if test -n "$AS"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5936 $as_echo "$AS" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943 fi
5944 if test -z "$ac_cv_prog_AS"; then
5945 ac_ct_AS=$AS
5946 # Extract the first word of "as", so it can be a program name with args.
5947 set dummy as; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$ac_ct_AS"; then
5954 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_AS="as"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5974 if test -n "$ac_ct_AS"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5976 $as_echo "$ac_ct_AS" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982 if test "x$ac_ct_AS" = x; then
5983 AS=""
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 AS=$ac_ct_AS
5992 fi
5993 else
5994 AS="$ac_cv_prog_AS"
5995 fi
5996
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ar; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_AR+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -n "$AR"; then
6006 ac_cv_prog_AR="$AR" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_AR="${ac_tool_prefix}ar"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 AR=$ac_cv_prog_AR
6026 if test -n "$AR"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6028 $as_echo "$AR" >&6; }
6029 else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_AR"; then
6037 ac_ct_AR=$AR
6038 # Extract the first word of "ar", so it can be a program name with args.
6039 set dummy ar; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$ac_ct_AR"; then
6046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_ac_ct_AR="ar"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6066 if test -n "$ac_ct_AR"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6068 $as_echo "$ac_ct_AR" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074 if test "x$ac_ct_AR" = x; then
6075 AR=""
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083 AR=$ac_ct_AR
6084 fi
6085 else
6086 AR="$ac_cv_prog_AR"
6087 fi
6088
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_RANLIB+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 RANLIB=$ac_cv_prog_RANLIB
6118 if test -n "$RANLIB"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6120 $as_echo "$RANLIB" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126
6127 fi
6128 if test -z "$ac_cv_prog_RANLIB"; then
6129 ac_ct_RANLIB=$RANLIB
6130 # Extract the first word of "ranlib", so it can be a program name with args.
6131 set dummy ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$ac_ct_RANLIB"; then
6138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_ac_ct_RANLIB="ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158 if test -n "$ac_ct_RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6160 $as_echo "$ac_ct_RANLIB" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166 if test "x$ac_ct_RANLIB" = x; then
6167 RANLIB=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175 RANLIB=$ac_ct_RANLIB
6176 fi
6177 else
6178 RANLIB="$ac_cv_prog_RANLIB"
6179 fi
6180
6181
6182 # Configure libtool
6183 enable_dlopen=yes
6184
6185
6186
6187 case `pwd` in
6188 *\ * | *\ *)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6190 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6191 esac
6192
6193
6194
6195 macro_version='2.2.7a'
6196 macro_revision='1.3134'
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210 ltmain="$ac_aux_dir/ltmain.sh"
6211
6212 # Backslashify metacharacters that are still active within
6213 # double-quoted strings.
6214 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6215
6216 # Same as above, but do not quote variable references.
6217 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6218
6219 # Sed substitution to delay expansion of an escaped shell variable in a
6220 # double_quote_subst'ed string.
6221 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6222
6223 # Sed substitution to delay expansion of an escaped single quote.
6224 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6225
6226 # Sed substitution to avoid accidental globbing in evaled expressions
6227 no_glob_subst='s/\*/\\\*/g'
6228
6229 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6230 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6231 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6234 $as_echo_n "checking how to print strings... " >&6; }
6235 # Test print first, because it will be a builtin if present.
6236 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6237 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6238 ECHO='print -r --'
6239 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6240 ECHO='printf %s\n'
6241 else
6242 # Use this function as a fallback that always works.
6243 func_fallback_echo ()
6244 {
6245 eval 'cat <<_LTECHO_EOF
6246 $1
6247 _LTECHO_EOF'
6248 }
6249 ECHO='func_fallback_echo'
6250 fi
6251
6252 # func_echo_all arg...
6253 # Invoke $ECHO with all args, space-separated.
6254 func_echo_all ()
6255 {
6256 $ECHO ""
6257 }
6258
6259 case "$ECHO" in
6260 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6261 $as_echo "printf" >&6; } ;;
6262 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6263 $as_echo "print -r" >&6; } ;;
6264 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6265 $as_echo "cat" >&6; } ;;
6266 esac
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6282 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6283 if ${ac_cv_path_SED+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6287 for ac_i in 1 2 3 4 5 6 7; do
6288 ac_script="$ac_script$as_nl$ac_script"
6289 done
6290 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6291 { ac_script=; unset ac_script;}
6292 if test -z "$SED"; then
6293 ac_path_SED_found=false
6294 # Loop through the user's path and test for each of PROGNAME-LIST
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_prog in sed gsed; do
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6303 as_fn_executable_p "$ac_path_SED" || continue
6304 # Check for GNU ac_path_SED and select it if it is found.
6305 # Check for GNU $ac_path_SED
6306 case `"$ac_path_SED" --version 2>&1` in
6307 *GNU*)
6308 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6309 *)
6310 ac_count=0
6311 $as_echo_n 0123456789 >"conftest.in"
6312 while :
6313 do
6314 cat "conftest.in" "conftest.in" >"conftest.tmp"
6315 mv "conftest.tmp" "conftest.in"
6316 cp "conftest.in" "conftest.nl"
6317 $as_echo '' >> "conftest.nl"
6318 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320 as_fn_arith $ac_count + 1 && ac_count=$as_val
6321 if test $ac_count -gt ${ac_path_SED_max-0}; then
6322 # Best one so far, save it but keep looking for a better one
6323 ac_cv_path_SED="$ac_path_SED"
6324 ac_path_SED_max=$ac_count
6325 fi
6326 # 10*(2^10) chars as input seems more than enough
6327 test $ac_count -gt 10 && break
6328 done
6329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330 esac
6331
6332 $ac_path_SED_found && break 3
6333 done
6334 done
6335 done
6336 IFS=$as_save_IFS
6337 if test -z "$ac_cv_path_SED"; then
6338 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6339 fi
6340 else
6341 ac_cv_path_SED=$SED
6342 fi
6343
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6346 $as_echo "$ac_cv_path_SED" >&6; }
6347 SED="$ac_cv_path_SED"
6348 rm -f conftest.sed
6349
6350 test -z "$SED" && SED=sed
6351 Xsed="$SED -e 1s/^X//"
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6364 $as_echo_n "checking for fgrep... " >&6; }
6365 if ${ac_cv_path_FGREP+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6369 then ac_cv_path_FGREP="$GREP -F"
6370 else
6371 if test -z "$FGREP"; then
6372 ac_path_FGREP_found=false
6373 # Loop through the user's path and test for each of PROGNAME-LIST
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_prog in fgrep; do
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6382 as_fn_executable_p "$ac_path_FGREP" || continue
6383 # Check for GNU ac_path_FGREP and select it if it is found.
6384 # Check for GNU $ac_path_FGREP
6385 case `"$ac_path_FGREP" --version 2>&1` in
6386 *GNU*)
6387 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6388 *)
6389 ac_count=0
6390 $as_echo_n 0123456789 >"conftest.in"
6391 while :
6392 do
6393 cat "conftest.in" "conftest.in" >"conftest.tmp"
6394 mv "conftest.tmp" "conftest.in"
6395 cp "conftest.in" "conftest.nl"
6396 $as_echo 'FGREP' >> "conftest.nl"
6397 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6399 as_fn_arith $ac_count + 1 && ac_count=$as_val
6400 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6401 # Best one so far, save it but keep looking for a better one
6402 ac_cv_path_FGREP="$ac_path_FGREP"
6403 ac_path_FGREP_max=$ac_count
6404 fi
6405 # 10*(2^10) chars as input seems more than enough
6406 test $ac_count -gt 10 && break
6407 done
6408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6409 esac
6410
6411 $ac_path_FGREP_found && break 3
6412 done
6413 done
6414 done
6415 IFS=$as_save_IFS
6416 if test -z "$ac_cv_path_FGREP"; then
6417 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6418 fi
6419 else
6420 ac_cv_path_FGREP=$FGREP
6421 fi
6422
6423 fi
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6426 $as_echo "$ac_cv_path_FGREP" >&6; }
6427 FGREP="$ac_cv_path_FGREP"
6428
6429
6430 test -z "$GREP" && GREP=grep
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 # Check whether --with-gnu-ld was given.
6451 if test "${with_gnu_ld+set}" = set; then :
6452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6453 else
6454 with_gnu_ld=no
6455 fi
6456
6457 ac_prog=ld
6458 if test "$GCC" = yes; then
6459 # Check if gcc -print-prog-name=ld gives a path.
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6461 $as_echo_n "checking for ld used by $CC... " >&6; }
6462 case $host in
6463 *-*-mingw*)
6464 # gcc leaves a trailing carriage return which upsets mingw
6465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6466 *)
6467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6468 esac
6469 case $ac_prog in
6470 # Accept absolute paths.
6471 [\\/]* | ?:[\\/]*)
6472 re_direlt='/[^/][^/]*/\.\./'
6473 # Canonicalize the pathname of ld
6474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6477 done
6478 test -z "$LD" && LD="$ac_prog"
6479 ;;
6480 "")
6481 # If it fails, then pretend we aren't using GCC.
6482 ac_prog=ld
6483 ;;
6484 *)
6485 # If it is relative, then search for the first ld in PATH.
6486 with_gnu_ld=unknown
6487 ;;
6488 esac
6489 elif test "$with_gnu_ld" = yes; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6491 $as_echo_n "checking for GNU ld... " >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6494 $as_echo_n "checking for non-GNU ld... " >&6; }
6495 fi
6496 if ${lt_cv_path_LD+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -z "$LD"; then
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 for ac_dir in $PATH; do
6502 IFS="$lt_save_ifs"
6503 test -z "$ac_dir" && ac_dir=.
6504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6505 lt_cv_path_LD="$ac_dir/$ac_prog"
6506 # Check to see if the program is GNU ld. I'd rather use --version,
6507 # but apparently some variants of GNU ld only accept -v.
6508 # Break only if it was the GNU/non-GNU ld that we prefer.
6509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6510 *GNU* | *'with BFD'*)
6511 test "$with_gnu_ld" != no && break
6512 ;;
6513 *)
6514 test "$with_gnu_ld" != yes && break
6515 ;;
6516 esac
6517 fi
6518 done
6519 IFS="$lt_save_ifs"
6520 else
6521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6522 fi
6523 fi
6524
6525 LD="$lt_cv_path_LD"
6526 if test -n "$LD"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6528 $as_echo "$LD" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6536 if ${lt_cv_prog_gnu_ld+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6540 case `$LD -v 2>&1 </dev/null` in
6541 *GNU* | *'with BFD'*)
6542 lt_cv_prog_gnu_ld=yes
6543 ;;
6544 *)
6545 lt_cv_prog_gnu_ld=no
6546 ;;
6547 esac
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6551 with_gnu_ld=$lt_cv_prog_gnu_ld
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6562 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6563 if ${lt_cv_path_NM+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$NM"; then
6567 # Let the user override the test.
6568 lt_cv_path_NM="$NM"
6569 else
6570 lt_nm_to_check="${ac_tool_prefix}nm"
6571 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6572 lt_nm_to_check="$lt_nm_to_check nm"
6573 fi
6574 for lt_tmp_nm in $lt_nm_to_check; do
6575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6576 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6577 IFS="$lt_save_ifs"
6578 test -z "$ac_dir" && ac_dir=.
6579 tmp_nm="$ac_dir/$lt_tmp_nm"
6580 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6581 # Check to see if the nm accepts a BSD-compat flag.
6582 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6583 # nm: unknown option "B" ignored
6584 # Tru64's nm complains that /dev/null is an invalid object file
6585 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6586 */dev/null* | *'Invalid file or object type'*)
6587 lt_cv_path_NM="$tmp_nm -B"
6588 break
6589 ;;
6590 *)
6591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6592 */dev/null*)
6593 lt_cv_path_NM="$tmp_nm -p"
6594 break
6595 ;;
6596 *)
6597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6598 continue # so that we can try to find one that supports BSD flags
6599 ;;
6600 esac
6601 ;;
6602 esac
6603 fi
6604 done
6605 IFS="$lt_save_ifs"
6606 done
6607 : ${lt_cv_path_NM=no}
6608 fi
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6611 $as_echo "$lt_cv_path_NM" >&6; }
6612 if test "$lt_cv_path_NM" != "no"; then
6613 NM="$lt_cv_path_NM"
6614 else
6615 # Didn't find any BSD compatible name lister, look for dumpbin.
6616 if test -n "$DUMPBIN"; then :
6617 # Let the user override the test.
6618 else
6619 if test -n "$ac_tool_prefix"; then
6620 for ac_prog in dumpbin "link -dump"
6621 do
6622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_DUMPBIN+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$DUMPBIN"; then
6630 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 DUMPBIN=$ac_cv_prog_DUMPBIN
6650 if test -n "$DUMPBIN"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6652 $as_echo "$DUMPBIN" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 test -n "$DUMPBIN" && break
6660 done
6661 fi
6662 if test -z "$DUMPBIN"; then
6663 ac_ct_DUMPBIN=$DUMPBIN
6664 for ac_prog in dumpbin "link -dump"
6665 do
6666 # Extract the first word of "$ac_prog", so it can be a program name with args.
6667 set dummy $ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$ac_ct_DUMPBIN"; then
6674 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6694 if test -n "$ac_ct_DUMPBIN"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6696 $as_echo "$ac_ct_DUMPBIN" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 test -n "$ac_ct_DUMPBIN" && break
6704 done
6705
6706 if test "x$ac_ct_DUMPBIN" = x; then
6707 DUMPBIN=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 DUMPBIN=$ac_ct_DUMPBIN
6716 fi
6717 fi
6718
6719 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6720 *COFF*)
6721 DUMPBIN="$DUMPBIN -symbols"
6722 ;;
6723 *)
6724 DUMPBIN=:
6725 ;;
6726 esac
6727 fi
6728
6729 if test "$DUMPBIN" != ":"; then
6730 NM="$DUMPBIN"
6731 fi
6732 fi
6733 test -z "$NM" && NM=nm
6734
6735
6736
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6741 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6742 if ${lt_cv_nm_interface+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 lt_cv_nm_interface="BSD nm"
6746 echo "int some_variable = 0;" > conftest.$ac_ext
6747 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6748 (eval "$ac_compile" 2>conftest.err)
6749 cat conftest.err >&5
6750 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6751 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6752 cat conftest.err >&5
6753 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6754 cat conftest.out >&5
6755 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6756 lt_cv_nm_interface="MS dumpbin"
6757 fi
6758 rm -f conftest*
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6761 $as_echo "$lt_cv_nm_interface" >&6; }
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6764 $as_echo_n "checking whether ln -s works... " >&6; }
6765 LN_S=$as_ln_s
6766 if test "$LN_S" = "ln -s"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6768 $as_echo "yes" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6771 $as_echo "no, using $LN_S" >&6; }
6772 fi
6773
6774 # find the maximum length of command line arguments
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6776 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6777 if ${lt_cv_sys_max_cmd_len+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 i=0
6781 teststring="ABCD"
6782
6783 case $build_os in
6784 msdosdjgpp*)
6785 # On DJGPP, this test can blow up pretty badly due to problems in libc
6786 # (any single argument exceeding 2000 bytes causes a buffer overrun
6787 # during glob expansion). Even if it were fixed, the result of this
6788 # check would be larger than it should be.
6789 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6790 ;;
6791
6792 gnu*)
6793 # Under GNU Hurd, this test is not required because there is
6794 # no limit to the length of command line arguments.
6795 # Libtool will interpret -1 as no limit whatsoever
6796 lt_cv_sys_max_cmd_len=-1;
6797 ;;
6798
6799 cygwin* | mingw* | cegcc*)
6800 # On Win9x/ME, this test blows up -- it succeeds, but takes
6801 # about 5 minutes as the teststring grows exponentially.
6802 # Worse, since 9x/ME are not pre-emptively multitasking,
6803 # you end up with a "frozen" computer, even though with patience
6804 # the test eventually succeeds (with a max line length of 256k).
6805 # Instead, let's just punt: use the minimum linelength reported by
6806 # all of the supported platforms: 8192 (on NT/2K/XP).
6807 lt_cv_sys_max_cmd_len=8192;
6808 ;;
6809
6810 mint*)
6811 # On MiNT this can take a long time and run out of memory.
6812 lt_cv_sys_max_cmd_len=8192;
6813 ;;
6814
6815 amigaos*)
6816 # On AmigaOS with pdksh, this test takes hours, literally.
6817 # So we just punt and use a minimum line length of 8192.
6818 lt_cv_sys_max_cmd_len=8192;
6819 ;;
6820
6821 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6822 # This has been around since 386BSD, at least. Likely further.
6823 if test -x /sbin/sysctl; then
6824 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6825 elif test -x /usr/sbin/sysctl; then
6826 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6827 else
6828 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6829 fi
6830 # And add a safety zone
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6833 ;;
6834
6835 interix*)
6836 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6837 lt_cv_sys_max_cmd_len=196608
6838 ;;
6839
6840 osf*)
6841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6843 # nice to cause kernel panics so lets avoid the loop below.
6844 # First set a reasonable default.
6845 lt_cv_sys_max_cmd_len=16384
6846 #
6847 if test -x /sbin/sysconfig; then
6848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6849 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6850 esac
6851 fi
6852 ;;
6853 sco3.2v5*)
6854 lt_cv_sys_max_cmd_len=102400
6855 ;;
6856 sysv5* | sco5v6* | sysv4.2uw2*)
6857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6858 if test -n "$kargmax"; then
6859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6860 else
6861 lt_cv_sys_max_cmd_len=32768
6862 fi
6863 ;;
6864 *)
6865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6866 if test -n "$lt_cv_sys_max_cmd_len"; then
6867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6869 else
6870 # Make teststring a little bigger before we do anything with it.
6871 # a 1K string should be a reasonable start.
6872 for i in 1 2 3 4 5 6 7 8 ; do
6873 teststring=$teststring$teststring
6874 done
6875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6876 # If test is not a shell built-in, we'll probably end up computing a
6877 # maximum length that is only half of the actual maximum length, but
6878 # we can't tell.
6879 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6880 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6881 test $i != 17 # 1/2 MB should be enough
6882 do
6883 i=`expr $i + 1`
6884 teststring=$teststring$teststring
6885 done
6886 # Only check the string length outside the loop.
6887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6888 teststring=
6889 # Add a significant safety factor because C++ compilers can tack on
6890 # massive amounts of additional arguments before passing them to the
6891 # linker. It appears as though 1/2 is a usable value.
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6893 fi
6894 ;;
6895 esac
6896
6897 fi
6898
6899 if test -n $lt_cv_sys_max_cmd_len ; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6901 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6904 $as_echo "none" >&6; }
6905 fi
6906 max_cmd_len=$lt_cv_sys_max_cmd_len
6907
6908
6909
6910
6911
6912
6913 : ${CP="cp -f"}
6914 : ${MV="mv -f"}
6915 : ${RM="rm -f"}
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6918 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6919 # Try some XSI features
6920 xsi_shell=no
6921 ( _lt_dummy="a/b/c"
6922 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6923 = c,a/b,, \
6924 && eval 'test $(( 1 + 1 )) -eq 2 \
6925 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6926 && xsi_shell=yes
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6928 $as_echo "$xsi_shell" >&6; }
6929
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6932 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6933 lt_shell_append=no
6934 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6935 >/dev/null 2>&1 \
6936 && lt_shell_append=yes
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6938 $as_echo "$lt_shell_append" >&6; }
6939
6940
6941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6942 lt_unset=unset
6943 else
6944 lt_unset=false
6945 fi
6946
6947
6948
6949
6950
6951 # test EBCDIC or ASCII
6952 case `echo X|tr X '\101'` in
6953 A) # ASCII based system
6954 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6955 lt_SP2NL='tr \040 \012'
6956 lt_NL2SP='tr \015\012 \040\040'
6957 ;;
6958 *) # EBCDIC based system
6959 lt_SP2NL='tr \100 \n'
6960 lt_NL2SP='tr \r\n \100\100'
6961 ;;
6962 esac
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6973 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6974 if ${lt_cv_ld_reload_flag+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 lt_cv_ld_reload_flag='-r'
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6980 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6981 reload_flag=$lt_cv_ld_reload_flag
6982 case $reload_flag in
6983 "" | " "*) ;;
6984 *) reload_flag=" $reload_flag" ;;
6985 esac
6986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6987 case $host_os in
6988 darwin*)
6989 if test "$GCC" = yes; then
6990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6991 else
6992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6993 fi
6994 ;;
6995 esac
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_OBJDUMP+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$OBJDUMP"; then
7014 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 OBJDUMP=$ac_cv_prog_OBJDUMP
7034 if test -n "$OBJDUMP"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7036 $as_echo "$OBJDUMP" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_OBJDUMP"; then
7045 ac_ct_OBJDUMP=$OBJDUMP
7046 # Extract the first word of "objdump", so it can be a program name with args.
7047 set dummy objdump; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_OBJDUMP"; then
7054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7074 if test -n "$ac_ct_OBJDUMP"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7076 $as_echo "$ac_ct_OBJDUMP" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_OBJDUMP" = x; then
7083 OBJDUMP="false"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 OBJDUMP=$ac_ct_OBJDUMP
7092 fi
7093 else
7094 OBJDUMP="$ac_cv_prog_OBJDUMP"
7095 fi
7096
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7109 if ${lt_cv_deplibs_check_method+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 lt_cv_file_magic_cmd='$MAGIC_CMD'
7113 lt_cv_file_magic_test_file=
7114 lt_cv_deplibs_check_method='unknown'
7115 # Need to set the preceding variable on all platforms that support
7116 # interlibrary dependencies.
7117 # 'none' -- dependencies not supported.
7118 # `unknown' -- same as none, but documents that we really don't know.
7119 # 'pass_all' -- all dependencies passed with no checks.
7120 # 'test_compile' -- check by making test program.
7121 # 'file_magic [[regex]]' -- check by looking for files in library path
7122 # which responds to the $file_magic_cmd with a given extended regex.
7123 # If you have `file' or equivalent on your system and you're not sure
7124 # whether `pass_all' will *always* work, you probably want this one.
7125
7126 case $host_os in
7127 aix[4-9]*)
7128 lt_cv_deplibs_check_method=pass_all
7129 ;;
7130
7131 beos*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134
7135 bsdi[45]*)
7136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7137 lt_cv_file_magic_cmd='/usr/bin/file -L'
7138 lt_cv_file_magic_test_file=/shlib/libc.so
7139 ;;
7140
7141 cygwin*)
7142 # func_win32_libid is a shell function defined in ltmain.sh
7143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7144 lt_cv_file_magic_cmd='func_win32_libid'
7145 ;;
7146
7147 mingw* | pw32*)
7148 # Base MSYS/MinGW do not provide the 'file' command needed by
7149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7150 # unless we find 'file', for example because we are cross-compiling.
7151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7154 lt_cv_file_magic_cmd='func_win32_libid'
7155 else
7156 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7157 lt_cv_file_magic_cmd='$OBJDUMP -f'
7158 fi
7159 ;;
7160
7161 cegcc*)
7162 # use the weaker test based on 'objdump'. See mingw*.
7163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7164 lt_cv_file_magic_cmd='$OBJDUMP -f'
7165 ;;
7166
7167 darwin* | rhapsody*)
7168 lt_cv_deplibs_check_method=pass_all
7169 ;;
7170
7171 freebsd* | dragonfly*)
7172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7173 case $host_cpu in
7174 i*86 )
7175 # Not sure whether the presence of OpenBSD here was a mistake.
7176 # Let's accept both of them until this is cleared up.
7177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7178 lt_cv_file_magic_cmd=/usr/bin/file
7179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7180 ;;
7181 esac
7182 else
7183 lt_cv_deplibs_check_method=pass_all
7184 fi
7185 ;;
7186
7187 gnu*)
7188 lt_cv_deplibs_check_method=pass_all
7189 ;;
7190
7191 haiku*)
7192 lt_cv_deplibs_check_method=pass_all
7193 ;;
7194
7195 hpux10.20* | hpux11*)
7196 lt_cv_file_magic_cmd=/usr/bin/file
7197 case $host_cpu in
7198 ia64*)
7199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7200 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7201 ;;
7202 hppa*64*)
7203 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]'
7204 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7205 ;;
7206 *)
7207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7208 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7209 ;;
7210 esac
7211 ;;
7212
7213 interix[3-9]*)
7214 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7216 ;;
7217
7218 irix5* | irix6* | nonstopux*)
7219 case $LD in
7220 *-32|*"-32 ") libmagic=32-bit;;
7221 *-n32|*"-n32 ") libmagic=N32;;
7222 *-64|*"-64 ") libmagic=64-bit;;
7223 *) libmagic=never-match;;
7224 esac
7225 lt_cv_deplibs_check_method=pass_all
7226 ;;
7227
7228 # This must be Linux ELF.
7229 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7230 lt_cv_deplibs_check_method=pass_all
7231 ;;
7232
7233 netbsd*)
7234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7236 else
7237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7238 fi
7239 ;;
7240
7241 newos6*)
7242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7243 lt_cv_file_magic_cmd=/usr/bin/file
7244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7245 ;;
7246
7247 *nto* | *qnx*)
7248 lt_cv_deplibs_check_method=pass_all
7249 ;;
7250
7251 openbsd*)
7252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7254 else
7255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7256 fi
7257 ;;
7258
7259 osf3* | osf4* | osf5*)
7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
7262
7263 rdos*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
7267 solaris*)
7268 lt_cv_deplibs_check_method=pass_all
7269 ;;
7270
7271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7272 lt_cv_deplibs_check_method=pass_all
7273 ;;
7274
7275 sysv4 | sysv4.3*)
7276 case $host_vendor in
7277 motorola)
7278 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]'
7279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7280 ;;
7281 ncr)
7282 lt_cv_deplibs_check_method=pass_all
7283 ;;
7284 sequent)
7285 lt_cv_file_magic_cmd='/bin/file'
7286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7287 ;;
7288 sni)
7289 lt_cv_file_magic_cmd='/bin/file'
7290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7291 lt_cv_file_magic_test_file=/lib/libc.so
7292 ;;
7293 siemens)
7294 lt_cv_deplibs_check_method=pass_all
7295 ;;
7296 pc)
7297 lt_cv_deplibs_check_method=pass_all
7298 ;;
7299 esac
7300 ;;
7301
7302 tpf*)
7303 lt_cv_deplibs_check_method=pass_all
7304 ;;
7305 esac
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7309 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7310 file_magic_cmd=$lt_cv_file_magic_cmd
7311 deplibs_check_method=$lt_cv_deplibs_check_method
7312 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325 if test -n "$ac_tool_prefix"; then
7326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}ar; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_AR+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$AR"; then
7334 ac_cv_prog_AR="$AR" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_AR="${ac_tool_prefix}ar"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 AR=$ac_cv_prog_AR
7354 if test -n "$AR"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7356 $as_echo "$AR" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362
7363 fi
7364 if test -z "$ac_cv_prog_AR"; then
7365 ac_ct_AR=$AR
7366 # Extract the first word of "ar", so it can be a program name with args.
7367 set dummy ar; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 if test -n "$ac_ct_AR"; then
7374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_ac_ct_AR="ar"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7386 fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7394 if test -n "$ac_ct_AR"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7396 $as_echo "$ac_ct_AR" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402 if test "x$ac_ct_AR" = x; then
7403 AR="false"
7404 else
7405 case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411 AR=$ac_ct_AR
7412 fi
7413 else
7414 AR="$ac_cv_prog_AR"
7415 fi
7416
7417 test -z "$AR" && AR=ar
7418 test -z "$AR_FLAGS" && AR_FLAGS=cru
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}strip; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_STRIP+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$STRIP"; then
7439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 STRIP=$ac_cv_prog_STRIP
7459 if test -n "$STRIP"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7461 $as_echo "$STRIP" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467
7468 fi
7469 if test -z "$ac_cv_prog_STRIP"; then
7470 ac_ct_STRIP=$STRIP
7471 # Extract the first word of "strip", so it can be a program name with args.
7472 set dummy strip; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$ac_ct_STRIP"; then
7479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_STRIP="strip"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7499 if test -n "$ac_ct_STRIP"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7501 $as_echo "$ac_ct_STRIP" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507 if test "x$ac_ct_STRIP" = x; then
7508 STRIP=":"
7509 else
7510 case $cross_compiling:$ac_tool_warned in
7511 yes:)
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514 ac_tool_warned=yes ;;
7515 esac
7516 STRIP=$ac_ct_STRIP
7517 fi
7518 else
7519 STRIP="$ac_cv_prog_STRIP"
7520 fi
7521
7522 test -z "$STRIP" && STRIP=:
7523
7524
7525
7526
7527
7528
7529 if test -n "$ac_tool_prefix"; then
7530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_RANLIB+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$RANLIB"; then
7538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 RANLIB=$ac_cv_prog_RANLIB
7558 if test -n "$RANLIB"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7560 $as_echo "$RANLIB" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566
7567 fi
7568 if test -z "$ac_cv_prog_RANLIB"; then
7569 ac_ct_RANLIB=$RANLIB
7570 # Extract the first word of "ranlib", so it can be a program name with args.
7571 set dummy ranlib; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 if test -n "$ac_ct_RANLIB"; then
7578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_ac_ct_RANLIB="ranlib"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7598 if test -n "$ac_ct_RANLIB"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7600 $as_echo "$ac_ct_RANLIB" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606 if test "x$ac_ct_RANLIB" = x; then
7607 RANLIB=":"
7608 else
7609 case $cross_compiling:$ac_tool_warned in
7610 yes:)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613 ac_tool_warned=yes ;;
7614 esac
7615 RANLIB=$ac_ct_RANLIB
7616 fi
7617 else
7618 RANLIB="$ac_cv_prog_RANLIB"
7619 fi
7620
7621 test -z "$RANLIB" && RANLIB=:
7622
7623
7624
7625
7626
7627
7628 # Determine commands to create old-style static archives.
7629 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7630 old_postinstall_cmds='chmod 644 $oldlib'
7631 old_postuninstall_cmds=
7632
7633 if test -n "$RANLIB"; then
7634 case $host_os in
7635 openbsd*)
7636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7637 ;;
7638 *)
7639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7640 ;;
7641 esac
7642 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7643 fi
7644
7645 case $host_os in
7646 darwin*)
7647 lock_old_archive_extraction=yes ;;
7648 *)
7649 lock_old_archive_extraction=no ;;
7650 esac
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 # If no C compiler was specified, use CC.
7691 LTCC=${LTCC-"$CC"}
7692
7693 # If no C compiler flags were specified, use CFLAGS.
7694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7695
7696 # Allow CC to be a program name with arguments.
7697 compiler=$CC
7698
7699
7700 # Check for command to grab the raw symbol name followed by C symbol from nm.
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7702 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7703 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706
7707 # These are sane defaults that work on at least a few old systems.
7708 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7709
7710 # Character class describing NM global symbol codes.
7711 symcode='[BCDEGRST]'
7712
7713 # Regexp to match symbols that can be accessed directly from C.
7714 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7715
7716 # Define system-specific variables.
7717 case $host_os in
7718 aix*)
7719 symcode='[BCDT]'
7720 ;;
7721 cygwin* | mingw* | pw32* | cegcc*)
7722 symcode='[ABCDGISTW]'
7723 ;;
7724 hpux*)
7725 if test "$host_cpu" = ia64; then
7726 symcode='[ABCDEGRST]'
7727 fi
7728 ;;
7729 irix* | nonstopux*)
7730 symcode='[BCDEGRST]'
7731 ;;
7732 osf*)
7733 symcode='[BCDEGQRST]'
7734 ;;
7735 solaris*)
7736 symcode='[BDRT]'
7737 ;;
7738 sco3.2v5*)
7739 symcode='[DT]'
7740 ;;
7741 sysv4.2uw2*)
7742 symcode='[DT]'
7743 ;;
7744 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7745 symcode='[ABDT]'
7746 ;;
7747 sysv4)
7748 symcode='[DFNSTU]'
7749 ;;
7750 esac
7751
7752 # If we're using GNU nm, then use its standard symbol codes.
7753 case `$NM -V 2>&1` in
7754 *GNU* | *'with BFD'*)
7755 symcode='[ABCDGIRSTW]' ;;
7756 esac
7757
7758 # Transform an extracted symbol line into a proper C declaration.
7759 # Some systems (esp. on ia64) link data and code symbols differently,
7760 # so use this general approach.
7761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7762
7763 # Transform an extracted symbol line into symbol name and symbol address
7764 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7765 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'"
7766
7767 # Handle CRLF in mingw tool chain
7768 opt_cr=
7769 case $build_os in
7770 mingw*)
7771 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7772 ;;
7773 esac
7774
7775 # Try without a prefix underscore, then with it.
7776 for ac_symprfx in "" "_"; do
7777
7778 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7779 symxfrm="\\1 $ac_symprfx\\2 \\2"
7780
7781 # Write the raw and C identifiers.
7782 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7783 # Fake it for dumpbin and say T for any non-static function
7784 # and D for any global variable.
7785 # Also find C++ and __fastcall symbols from MSVC++,
7786 # which start with @ or ?.
7787 lt_cv_sys_global_symbol_pipe="$AWK '"\
7788 " {last_section=section; section=\$ 3};"\
7789 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7790 " \$ 0!~/External *\|/{next};"\
7791 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7792 " {if(hide[section]) next};"\
7793 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7794 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7795 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7796 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7797 " ' prfx=^$ac_symprfx"
7798 else
7799 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7800 fi
7801
7802 # Check to see that the pipe works correctly.
7803 pipe_works=no
7804
7805 rm -f conftest*
7806 cat > conftest.$ac_ext <<_LT_EOF
7807 #ifdef __cplusplus
7808 extern "C" {
7809 #endif
7810 char nm_test_var;
7811 void nm_test_func(void);
7812 void nm_test_func(void){}
7813 #ifdef __cplusplus
7814 }
7815 #endif
7816 int main(){nm_test_var='a';nm_test_func();return(0);}
7817 _LT_EOF
7818
7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; }; then
7824 # Now try to grab the symbols.
7825 nlist=conftest.nm
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7827 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7828 ac_status=$?
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; } && test -s "$nlist"; then
7831 # Try sorting and uniquifying the output.
7832 if sort "$nlist" | uniq > "$nlist"T; then
7833 mv -f "$nlist"T "$nlist"
7834 else
7835 rm -f "$nlist"T
7836 fi
7837
7838 # Make sure that we snagged all the symbols we need.
7839 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7840 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7841 cat <<_LT_EOF > conftest.$ac_ext
7842 #ifdef __cplusplus
7843 extern "C" {
7844 #endif
7845
7846 _LT_EOF
7847 # Now generate the symbol file.
7848 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7849
7850 cat <<_LT_EOF >> conftest.$ac_ext
7851
7852 /* The mapping between symbol names and symbols. */
7853 const struct {
7854 const char *name;
7855 void *address;
7856 }
7857 lt__PROGRAM__LTX_preloaded_symbols[] =
7858 {
7859 { "@PROGRAM@", (void *) 0 },
7860 _LT_EOF
7861 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7862 cat <<\_LT_EOF >> conftest.$ac_ext
7863 {0, (void *) 0}
7864 };
7865
7866 /* This works around a problem in FreeBSD linker */
7867 #ifdef FREEBSD_WORKAROUND
7868 static const void *lt_preloaded_setup() {
7869 return lt__PROGRAM__LTX_preloaded_symbols;
7870 }
7871 #endif
7872
7873 #ifdef __cplusplus
7874 }
7875 #endif
7876 _LT_EOF
7877 # Now try linking the two files.
7878 mv conftest.$ac_objext conftstm.$ac_objext
7879 lt_save_LIBS="$LIBS"
7880 lt_save_CFLAGS="$CFLAGS"
7881 LIBS="conftstm.$ac_objext"
7882 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7884 (eval $ac_link) 2>&5
7885 ac_status=$?
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7888 pipe_works=yes
7889 fi
7890 LIBS="$lt_save_LIBS"
7891 CFLAGS="$lt_save_CFLAGS"
7892 else
7893 echo "cannot find nm_test_func in $nlist" >&5
7894 fi
7895 else
7896 echo "cannot find nm_test_var in $nlist" >&5
7897 fi
7898 else
7899 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7900 fi
7901 else
7902 echo "$progname: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 fi
7905 rm -rf conftest* conftst*
7906
7907 # Do not use the global_symbol_pipe unless it works.
7908 if test "$pipe_works" = yes; then
7909 break
7910 else
7911 lt_cv_sys_global_symbol_pipe=
7912 fi
7913 done
7914
7915 fi
7916
7917 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7918 lt_cv_sys_global_symbol_to_cdecl=
7919 fi
7920 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7922 $as_echo "failed" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7925 $as_echo "ok" >&6; }
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 # Check whether --enable-libtool-lock was given.
7950 if test "${enable_libtool_lock+set}" = set; then :
7951 enableval=$enable_libtool_lock;
7952 fi
7953
7954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7955
7956 # Some flags need to be propagated to the compiler or linker for good
7957 # libtool support.
7958 case $host in
7959 ia64-*-hpux*)
7960 # Find out which ABI we are using.
7961 echo 'int i;' > conftest.$ac_ext
7962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7963 (eval $ac_compile) 2>&5
7964 ac_status=$?
7965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7966 test $ac_status = 0; }; then
7967 case `/usr/bin/file conftest.$ac_objext` in
7968 *ELF-32*)
7969 HPUX_IA64_MODE="32"
7970 ;;
7971 *ELF-64*)
7972 HPUX_IA64_MODE="64"
7973 ;;
7974 esac
7975 fi
7976 rm -rf conftest*
7977 ;;
7978 *-*-irix6*)
7979 # Find out which ABI we are using.
7980 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7982 (eval $ac_compile) 2>&5
7983 ac_status=$?
7984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985 test $ac_status = 0; }; then
7986 if test "$lt_cv_prog_gnu_ld" = yes; then
7987 case `/usr/bin/file conftest.$ac_objext` in
7988 *32-bit*)
7989 LD="${LD-ld} -melf32bsmip"
7990 ;;
7991 *N32*)
7992 LD="${LD-ld} -melf32bmipn32"
7993 ;;
7994 *64-bit*)
7995 LD="${LD-ld} -melf64bmip"
7996 ;;
7997 esac
7998 else
7999 case `/usr/bin/file conftest.$ac_objext` in
8000 *32-bit*)
8001 LD="${LD-ld} -32"
8002 ;;
8003 *N32*)
8004 LD="${LD-ld} -n32"
8005 ;;
8006 *64-bit*)
8007 LD="${LD-ld} -64"
8008 ;;
8009 esac
8010 fi
8011 fi
8012 rm -rf conftest*
8013 ;;
8014
8015 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8016 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8017 # Find out which ABI we are using.
8018 echo 'int i;' > conftest.$ac_ext
8019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8020 (eval $ac_compile) 2>&5
8021 ac_status=$?
8022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8023 test $ac_status = 0; }; then
8024 case `/usr/bin/file conftest.o` in
8025 *32-bit*)
8026 case $host in
8027 x86_64-*kfreebsd*-gnu)
8028 LD="${LD-ld} -m elf_i386_fbsd"
8029 ;;
8030 x86_64-*linux*)
8031 case `/usr/bin/file conftest.o` in
8032 *x86-64*)
8033 LD="${LD-ld} -m elf32_x86_64"
8034 ;;
8035 *)
8036 LD="${LD-ld} -m elf_i386"
8037 ;;
8038 esac
8039 ;;
8040 powerpc64le-*linux*)
8041 LD="${LD-ld} -m elf32lppclinux"
8042 ;;
8043 powerpc64-*linux*)
8044 LD="${LD-ld} -m elf32ppclinux"
8045 ;;
8046 s390x-*linux*)
8047 LD="${LD-ld} -m elf_s390"
8048 ;;
8049 sparc64-*linux*)
8050 LD="${LD-ld} -m elf32_sparc"
8051 ;;
8052 esac
8053 ;;
8054 *64-bit*)
8055 case $host in
8056 x86_64-*kfreebsd*-gnu)
8057 LD="${LD-ld} -m elf_x86_64_fbsd"
8058 ;;
8059 x86_64-*linux*)
8060 LD="${LD-ld} -m elf_x86_64"
8061 ;;
8062 powerpcle-*linux*)
8063 LD="${LD-ld} -m elf64lppc"
8064 ;;
8065 powerpc-*linux*)
8066 LD="${LD-ld} -m elf64ppc"
8067 ;;
8068 s390*-*linux*|s390*-*tpf*)
8069 LD="${LD-ld} -m elf64_s390"
8070 ;;
8071 sparc*-*linux*)
8072 LD="${LD-ld} -m elf64_sparc"
8073 ;;
8074 esac
8075 ;;
8076 esac
8077 fi
8078 rm -rf conftest*
8079 ;;
8080
8081 *-*-sco3.2v5*)
8082 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8083 SAVE_CFLAGS="$CFLAGS"
8084 CFLAGS="$CFLAGS -belf"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8086 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8087 if ${lt_cv_cc_needs_belf+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098
8099 int
8100 main ()
8101 {
8102
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 lt_cv_cc_needs_belf=yes
8109 else
8110 lt_cv_cc_needs_belf=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 ac_ext=c
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8122 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8123 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8125 CFLAGS="$SAVE_CFLAGS"
8126 fi
8127 ;;
8128 sparc*-*solaris*)
8129 # Find out which ABI we are using.
8130 echo 'int i;' > conftest.$ac_ext
8131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8132 (eval $ac_compile) 2>&5
8133 ac_status=$?
8134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8135 test $ac_status = 0; }; then
8136 case `/usr/bin/file conftest.o` in
8137 *64-bit*)
8138 case $lt_cv_prog_gnu_ld in
8139 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8140 *)
8141 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8142 LD="${LD-ld} -64"
8143 fi
8144 ;;
8145 esac
8146 ;;
8147 esac
8148 fi
8149 rm -rf conftest*
8150 ;;
8151 esac
8152
8153 need_locks="$enable_libtool_lock"
8154
8155
8156 case $host_os in
8157 rhapsody* | darwin*)
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8160 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$DSYMUTIL"; then
8167 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8187 if test -n "$DSYMUTIL"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8189 $as_echo "$DSYMUTIL" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196 fi
8197 if test -z "$ac_cv_prog_DSYMUTIL"; then
8198 ac_ct_DSYMUTIL=$DSYMUTIL
8199 # Extract the first word of "dsymutil", so it can be a program name with args.
8200 set dummy dsymutil; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$ac_ct_DSYMUTIL"; then
8207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8227 if test -n "$ac_ct_DSYMUTIL"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8229 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235 if test "x$ac_ct_DSYMUTIL" = x; then
8236 DSYMUTIL=":"
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239 yes:)
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8243 esac
8244 DSYMUTIL=$ac_ct_DSYMUTIL
8245 fi
8246 else
8247 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8248 fi
8249
8250 if test -n "$ac_tool_prefix"; then
8251 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8252 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_NMEDIT+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$NMEDIT"; then
8259 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 NMEDIT=$ac_cv_prog_NMEDIT
8279 if test -n "$NMEDIT"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8281 $as_echo "$NMEDIT" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287
8288 fi
8289 if test -z "$ac_cv_prog_NMEDIT"; then
8290 ac_ct_NMEDIT=$NMEDIT
8291 # Extract the first word of "nmedit", so it can be a program name with args.
8292 set dummy nmedit; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$ac_ct_NMEDIT"; then
8299 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8319 if test -n "$ac_ct_NMEDIT"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8321 $as_echo "$ac_ct_NMEDIT" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327 if test "x$ac_ct_NMEDIT" = x; then
8328 NMEDIT=":"
8329 else
8330 case $cross_compiling:$ac_tool_warned in
8331 yes:)
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8334 ac_tool_warned=yes ;;
8335 esac
8336 NMEDIT=$ac_ct_NMEDIT
8337 fi
8338 else
8339 NMEDIT="$ac_cv_prog_NMEDIT"
8340 fi
8341
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8344 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_LIPO+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$LIPO"; then
8351 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 LIPO=$ac_cv_prog_LIPO
8371 if test -n "$LIPO"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8373 $as_echo "$LIPO" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 if test -z "$ac_cv_prog_LIPO"; then
8382 ac_ct_LIPO=$LIPO
8383 # Extract the first word of "lipo", so it can be a program name with args.
8384 set dummy lipo; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$ac_ct_LIPO"; then
8391 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_ac_ct_LIPO="lipo"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8411 if test -n "$ac_ct_LIPO"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8413 $as_echo "$ac_ct_LIPO" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419 if test "x$ac_ct_LIPO" = x; then
8420 LIPO=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 LIPO=$ac_ct_LIPO
8429 fi
8430 else
8431 LIPO="$ac_cv_prog_LIPO"
8432 fi
8433
8434 if test -n "$ac_tool_prefix"; then
8435 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8436 set dummy ${ac_tool_prefix}otool; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_OTOOL+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$OTOOL"; then
8443 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456 done
8457 done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 OTOOL=$ac_cv_prog_OTOOL
8463 if test -n "$OTOOL"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8465 $as_echo "$OTOOL" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471
8472 fi
8473 if test -z "$ac_cv_prog_OTOOL"; then
8474 ac_ct_OTOOL=$OTOOL
8475 # Extract the first word of "otool", so it can be a program name with args.
8476 set dummy otool; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 if test -n "$ac_ct_OTOOL"; then
8483 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_prog_ac_ct_OTOOL="otool"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8495 fi
8496 done
8497 done
8498 IFS=$as_save_IFS
8499
8500 fi
8501 fi
8502 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8503 if test -n "$ac_ct_OTOOL"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8505 $as_echo "$ac_ct_OTOOL" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8509 fi
8510
8511 if test "x$ac_ct_OTOOL" = x; then
8512 OTOOL=":"
8513 else
8514 case $cross_compiling:$ac_tool_warned in
8515 yes:)
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8518 ac_tool_warned=yes ;;
8519 esac
8520 OTOOL=$ac_ct_OTOOL
8521 fi
8522 else
8523 OTOOL="$ac_cv_prog_OTOOL"
8524 fi
8525
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_OTOOL64+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 if test -n "$OTOOL64"; then
8535 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi
8553 fi
8554 OTOOL64=$ac_cv_prog_OTOOL64
8555 if test -n "$OTOOL64"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8557 $as_echo "$OTOOL64" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563
8564 fi
8565 if test -z "$ac_cv_prog_OTOOL64"; then
8566 ac_ct_OTOOL64=$OTOOL64
8567 # Extract the first word of "otool64", so it can be a program name with args.
8568 set dummy otool64; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 if test -n "$ac_ct_OTOOL64"; then
8575 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584 ac_cv_prog_ac_ct_OTOOL64="otool64"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8587 fi
8588 done
8589 done
8590 IFS=$as_save_IFS
8591
8592 fi
8593 fi
8594 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8595 if test -n "$ac_ct_OTOOL64"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8597 $as_echo "$ac_ct_OTOOL64" >&6; }
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8601 fi
8602
8603 if test "x$ac_ct_OTOOL64" = x; then
8604 OTOOL64=":"
8605 else
8606 case $cross_compiling:$ac_tool_warned in
8607 yes:)
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8610 ac_tool_warned=yes ;;
8611 esac
8612 OTOOL64=$ac_ct_OTOOL64
8613 fi
8614 else
8615 OTOOL64="$ac_cv_prog_OTOOL64"
8616 fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8645 $as_echo_n "checking for -single_module linker flag... " >&6; }
8646 if ${lt_cv_apple_cc_single_mod+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 lt_cv_apple_cc_single_mod=no
8650 if test -z "${LT_MULTI_MODULE}"; then
8651 # By default we will add the -single_module flag. You can override
8652 # by either setting the environment variable LT_MULTI_MODULE
8653 # non-empty at configure time, or by adding -multi_module to the
8654 # link flags.
8655 rm -rf libconftest.dylib*
8656 echo "int foo(void){return 1;}" > conftest.c
8657 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8658 -dynamiclib -Wl,-single_module conftest.c" >&5
8659 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8660 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8661 _lt_result=$?
8662 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8663 lt_cv_apple_cc_single_mod=yes
8664 else
8665 cat conftest.err >&5
8666 fi
8667 rm -rf libconftest.dylib*
8668 rm -f conftest.*
8669 fi
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8672 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8674 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8675 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 lt_cv_ld_exported_symbols_list=no
8679 save_LDFLAGS=$LDFLAGS
8680 echo "_main" > conftest.sym
8681 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684
8685 int
8686 main ()
8687 {
8688
8689 ;
8690 return 0;
8691 }
8692 _ACEOF
8693 if ac_fn_c_try_link "$LINENO"; then :
8694 lt_cv_ld_exported_symbols_list=yes
8695 else
8696 lt_cv_ld_exported_symbols_list=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LDFLAGS="$save_LDFLAGS"
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8704 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8706 $as_echo_n "checking for -force_load linker flag... " >&6; }
8707 if ${lt_cv_ld_force_load+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 lt_cv_ld_force_load=no
8711 cat > conftest.c << _LT_EOF
8712 int forced_loaded() { return 2;}
8713 _LT_EOF
8714 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8715 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8716 echo "$AR cru libconftest.a conftest.o" >&5
8717 $AR cru libconftest.a conftest.o 2>&5
8718 cat > conftest.c << _LT_EOF
8719 int main() { return 0;}
8720 _LT_EOF
8721 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8722 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8723 _lt_result=$?
8724 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8725 lt_cv_ld_force_load=yes
8726 else
8727 cat conftest.err >&5
8728 fi
8729 rm -f conftest.err libconftest.a conftest conftest.c
8730 rm -rf conftest.dSYM
8731
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8734 $as_echo "$lt_cv_ld_force_load" >&6; }
8735 case $host_os in
8736 rhapsody* | darwin1.[012])
8737 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8738 darwin1.*)
8739 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8740 darwin*) # darwin 5.x on
8741 # if running on 10.5 or later, the deployment target defaults
8742 # to the OS version, if on x86, and 10.4, the deployment
8743 # target defaults to 10.4. Don't you love it?
8744 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8745 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8746 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8747 10.[012][,.]*)
8748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8749 10.*)
8750 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8751 esac
8752 ;;
8753 esac
8754 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8755 _lt_dar_single_mod='$single_module'
8756 fi
8757 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8758 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8759 else
8760 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8761 fi
8762 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8763 _lt_dsymutil='~$DSYMUTIL $lib || :'
8764 else
8765 _lt_dsymutil=
8766 fi
8767 ;;
8768 esac
8769
8770 for ac_header in dlfcn.h
8771 do :
8772 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8773 "
8774 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_DLFCN_H 1
8777 _ACEOF
8778
8779 fi
8780
8781 done
8782
8783
8784
8785
8786
8787
8788 # Set options
8789
8790
8791
8792
8793 enable_win32_dll=no
8794
8795
8796 # Check whether --enable-shared was given.
8797 if test "${enable_shared+set}" = set; then :
8798 enableval=$enable_shared; p=${PACKAGE-default}
8799 case $enableval in
8800 yes) enable_shared=yes ;;
8801 no) enable_shared=no ;;
8802 *)
8803 enable_shared=no
8804 # Look at the argument we got. We use all the common list separators.
8805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8806 for pkg in $enableval; do
8807 IFS="$lt_save_ifs"
8808 if test "X$pkg" = "X$p"; then
8809 enable_shared=yes
8810 fi
8811 done
8812 IFS="$lt_save_ifs"
8813 ;;
8814 esac
8815 else
8816 enable_shared=yes
8817 fi
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827 # Check whether --enable-static was given.
8828 if test "${enable_static+set}" = set; then :
8829 enableval=$enable_static; p=${PACKAGE-default}
8830 case $enableval in
8831 yes) enable_static=yes ;;
8832 no) enable_static=no ;;
8833 *)
8834 enable_static=no
8835 # Look at the argument we got. We use all the common list separators.
8836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8837 for pkg in $enableval; do
8838 IFS="$lt_save_ifs"
8839 if test "X$pkg" = "X$p"; then
8840 enable_static=yes
8841 fi
8842 done
8843 IFS="$lt_save_ifs"
8844 ;;
8845 esac
8846 else
8847 enable_static=yes
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 # Check whether --with-pic was given.
8860 if test "${with_pic+set}" = set; then :
8861 withval=$with_pic; pic_mode="$withval"
8862 else
8863 pic_mode=default
8864 fi
8865
8866
8867 test -z "$pic_mode" && pic_mode=default
8868
8869
8870
8871
8872
8873
8874
8875 # Check whether --enable-fast-install was given.
8876 if test "${enable_fast_install+set}" = set; then :
8877 enableval=$enable_fast_install; p=${PACKAGE-default}
8878 case $enableval in
8879 yes) enable_fast_install=yes ;;
8880 no) enable_fast_install=no ;;
8881 *)
8882 enable_fast_install=no
8883 # Look at the argument we got. We use all the common list separators.
8884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8885 for pkg in $enableval; do
8886 IFS="$lt_save_ifs"
8887 if test "X$pkg" = "X$p"; then
8888 enable_fast_install=yes
8889 fi
8890 done
8891 IFS="$lt_save_ifs"
8892 ;;
8893 esac
8894 else
8895 enable_fast_install=yes
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908 # This can be used to rebuild libtool when needed
8909 LIBTOOL_DEPS="$ltmain"
8910
8911 # Always use our own libtool.
8912 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939 test -z "$LN_S" && LN_S="ln -s"
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 if test -n "${ZSH_VERSION+set}" ; then
8955 setopt NO_GLOB_SUBST
8956 fi
8957
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8959 $as_echo_n "checking for objdir... " >&6; }
8960 if ${lt_cv_objdir+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 rm -f .libs 2>/dev/null
8964 mkdir .libs 2>/dev/null
8965 if test -d .libs; then
8966 lt_cv_objdir=.libs
8967 else
8968 # MS-DOS does not allow filenames that begin with a dot.
8969 lt_cv_objdir=_libs
8970 fi
8971 rmdir .libs 2>/dev/null
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8974 $as_echo "$lt_cv_objdir" >&6; }
8975 objdir=$lt_cv_objdir
8976
8977
8978
8979
8980
8981 cat >>confdefs.h <<_ACEOF
8982 #define LT_OBJDIR "$lt_cv_objdir/"
8983 _ACEOF
8984
8985
8986
8987
8988 case $host_os in
8989 aix3*)
8990 # AIX sometimes has problems with the GCC collect2 program. For some
8991 # reason, if we set the COLLECT_NAMES environment variable, the problems
8992 # vanish in a puff of smoke.
8993 if test "X${COLLECT_NAMES+set}" != Xset; then
8994 COLLECT_NAMES=
8995 export COLLECT_NAMES
8996 fi
8997 ;;
8998 esac
8999
9000 # Global variables:
9001 ofile=libtool
9002 can_build_shared=yes
9003
9004 # All known linkers require a `.a' archive for static linking (except MSVC,
9005 # which needs '.lib').
9006 libext=a
9007
9008 with_gnu_ld="$lt_cv_prog_gnu_ld"
9009
9010 old_CC="$CC"
9011 old_CFLAGS="$CFLAGS"
9012
9013 # Set sane defaults for various variables
9014 test -z "$CC" && CC=cc
9015 test -z "$LTCC" && LTCC=$CC
9016 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9017 test -z "$LD" && LD=ld
9018 test -z "$ac_objext" && ac_objext=o
9019
9020 for cc_temp in $compiler""; do
9021 case $cc_temp in
9022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9024 \-*) ;;
9025 *) break;;
9026 esac
9027 done
9028 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9029
9030
9031 # Only perform the check for file, if the check method requires it
9032 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9033 case $deplibs_check_method in
9034 file_magic*)
9035 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9037 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 case $MAGIC_CMD in
9042 [\\/*] | ?:[\\/]*)
9043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9044 ;;
9045 *)
9046 lt_save_MAGIC_CMD="$MAGIC_CMD"
9047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049 for ac_dir in $ac_dummy; do
9050 IFS="$lt_save_ifs"
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f $ac_dir/${ac_tool_prefix}file; then
9053 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9054 if test -n "$file_magic_test_file"; then
9055 case $deplibs_check_method in
9056 "file_magic "*)
9057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060 $EGREP "$file_magic_regex" > /dev/null; then
9061 :
9062 else
9063 cat <<_LT_EOF 1>&2
9064
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such. This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem. Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9073
9074 _LT_EOF
9075 fi ;;
9076 esac
9077 fi
9078 break
9079 fi
9080 done
9081 IFS="$lt_save_ifs"
9082 MAGIC_CMD="$lt_save_MAGIC_CMD"
9083 ;;
9084 esac
9085 fi
9086
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if test -n "$MAGIC_CMD"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097
9098
9099
9100 if test -z "$lt_cv_path_MAGIC_CMD"; then
9101 if test -n "$ac_tool_prefix"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9103 $as_echo_n "checking for file... " >&6; }
9104 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 case $MAGIC_CMD in
9108 [\\/*] | ?:[\\/]*)
9109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9110 ;;
9111 *)
9112 lt_save_MAGIC_CMD="$MAGIC_CMD"
9113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9115 for ac_dir in $ac_dummy; do
9116 IFS="$lt_save_ifs"
9117 test -z "$ac_dir" && ac_dir=.
9118 if test -f $ac_dir/file; then
9119 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9120 if test -n "$file_magic_test_file"; then
9121 case $deplibs_check_method in
9122 "file_magic "*)
9123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9126 $EGREP "$file_magic_regex" > /dev/null; then
9127 :
9128 else
9129 cat <<_LT_EOF 1>&2
9130
9131 *** Warning: the command libtool uses to detect shared libraries,
9132 *** $file_magic_cmd, produces output that libtool cannot recognize.
9133 *** The result is that libtool may fail to recognize shared libraries
9134 *** as such. This will affect the creation of libtool libraries that
9135 *** depend on shared libraries, but programs linked with such libtool
9136 *** libraries will work regardless of this problem. Nevertheless, you
9137 *** may want to report the problem to your system manager and/or to
9138 *** bug-libtool@gnu.org
9139
9140 _LT_EOF
9141 fi ;;
9142 esac
9143 fi
9144 break
9145 fi
9146 done
9147 IFS="$lt_save_ifs"
9148 MAGIC_CMD="$lt_save_MAGIC_CMD"
9149 ;;
9150 esac
9151 fi
9152
9153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9154 if test -n "$MAGIC_CMD"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9156 $as_echo "$MAGIC_CMD" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163 else
9164 MAGIC_CMD=:
9165 fi
9166 fi
9167
9168 fi
9169 ;;
9170 esac
9171
9172 # Use C for the default configuration in the libtool script
9173
9174 lt_save_CC="$CC"
9175 ac_ext=c
9176 ac_cpp='$CPP $CPPFLAGS'
9177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180
9181
9182 # Source file extension for C test sources.
9183 ac_ext=c
9184
9185 # Object file extension for compiled C test sources.
9186 objext=o
9187 objext=$objext
9188
9189 # Code to be used in simple compile tests
9190 lt_simple_compile_test_code="int some_variable = 0;"
9191
9192 # Code to be used in simple link tests
9193 lt_simple_link_test_code='int main(){return(0);}'
9194
9195
9196
9197
9198
9199
9200
9201 # If no C compiler was specified, use CC.
9202 LTCC=${LTCC-"$CC"}
9203
9204 # If no C compiler flags were specified, use CFLAGS.
9205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9206
9207 # Allow CC to be a program name with arguments.
9208 compiler=$CC
9209
9210 # Save the default compiler, since it gets overwritten when the other
9211 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9212 compiler_DEFAULT=$CC
9213
9214 # save warnings/boilerplate of simple test code
9215 ac_outfile=conftest.$ac_objext
9216 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9217 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9218 _lt_compiler_boilerplate=`cat conftest.err`
9219 $RM conftest*
9220
9221 ac_outfile=conftest.$ac_objext
9222 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9223 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9224 _lt_linker_boilerplate=`cat conftest.err`
9225 $RM -r conftest*
9226
9227
9228 ## CAVEAT EMPTOR:
9229 ## There is no encapsulation within the following macros, do not change
9230 ## the running order or otherwise move them around unless you know exactly
9231 ## what you are doing...
9232 if test -n "$compiler"; then
9233
9234 lt_prog_compiler_no_builtin_flag=
9235
9236 if test "$GCC" = yes; then
9237 case $cc_basename in
9238 nvcc*)
9239 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9240 *)
9241 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9242 esac
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9245 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9246 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 lt_cv_prog_compiler_rtti_exceptions=no
9250 ac_outfile=conftest.$ac_objext
9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9252 lt_compiler_flag="-fno-rtti -fno-exceptions"
9253 # Insert the option either (1) after the last *FLAGS variable, or
9254 # (2) before a word containing "conftest.", or (3) at the end.
9255 # Note that $ac_compile itself does not contain backslashes and begins
9256 # with a dollar sign (not a hyphen), so the echo should work correctly.
9257 # The option is referenced via a variable to avoid confusing sed.
9258 lt_compile=`echo "$ac_compile" | $SED \
9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261 -e 's:$: $lt_compiler_flag:'`
9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263 (eval "$lt_compile" 2>conftest.err)
9264 ac_status=$?
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 if (exit $ac_status) && test -s "$ac_outfile"; then
9268 # The compiler can only warn and ignore the option if not recognized
9269 # So say no if there are warnings other than the usual output.
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler_rtti_exceptions=yes
9274 fi
9275 fi
9276 $RM conftest*
9277
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9280 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9281
9282 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9284 else
9285 :
9286 fi
9287
9288 fi
9289
9290
9291
9292
9293
9294
9295 lt_prog_compiler_wl=
9296 lt_prog_compiler_pic=
9297 lt_prog_compiler_static=
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9300 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9301
9302 if test "$GCC" = yes; then
9303 lt_prog_compiler_wl='-Wl,'
9304 lt_prog_compiler_static='-static'
9305
9306 case $host_os in
9307 aix*)
9308 # All AIX code is PIC.
9309 if test "$host_cpu" = ia64; then
9310 # AIX 5 now supports IA64 processor
9311 lt_prog_compiler_static='-Bstatic'
9312 fi
9313 lt_prog_compiler_pic='-fPIC'
9314 ;;
9315
9316 amigaos*)
9317 case $host_cpu in
9318 powerpc)
9319 # see comment about AmigaOS4 .so support
9320 lt_prog_compiler_pic='-fPIC'
9321 ;;
9322 m68k)
9323 # FIXME: we need at least 68020 code to build shared libraries, but
9324 # adding the `-m68020' flag to GCC prevents building anything better,
9325 # like `-m68040'.
9326 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9327 ;;
9328 esac
9329 ;;
9330
9331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9332 # PIC is the default for these OSes.
9333 ;;
9334
9335 mingw* | cygwin* | pw32* | os2* | cegcc*)
9336 # This hack is so that the source file can tell whether it is being
9337 # built for inclusion in a dll (and should export symbols for example).
9338 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9339 # (--disable-auto-import) libraries
9340 lt_prog_compiler_pic='-DDLL_EXPORT'
9341 ;;
9342
9343 darwin* | rhapsody*)
9344 # PIC is the default on this platform
9345 # Common symbols not allowed in MH_DYLIB files
9346 lt_prog_compiler_pic='-fno-common'
9347 ;;
9348
9349 haiku*)
9350 # PIC is the default for Haiku.
9351 # The "-static" flag exists, but is broken.
9352 lt_prog_compiler_static=
9353 ;;
9354
9355 hpux*)
9356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9358 # sets the default TLS model and affects inlining.
9359 case $host_cpu in
9360 hppa*64*)
9361 # +Z the default
9362 ;;
9363 *)
9364 lt_prog_compiler_pic='-fPIC'
9365 ;;
9366 esac
9367 ;;
9368
9369 interix[3-9]*)
9370 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9371 # Instead, we relocate shared libraries at runtime.
9372 ;;
9373
9374 msdosdjgpp*)
9375 # Just because we use GCC doesn't mean we suddenly get shared libraries
9376 # on systems that don't support them.
9377 lt_prog_compiler_can_build_shared=no
9378 enable_shared=no
9379 ;;
9380
9381 *nto* | *qnx*)
9382 # QNX uses GNU C++, but need to define -shared option too, otherwise
9383 # it will coredump.
9384 lt_prog_compiler_pic='-fPIC -shared'
9385 ;;
9386
9387 sysv4*MP*)
9388 if test -d /usr/nec; then
9389 lt_prog_compiler_pic=-Kconform_pic
9390 fi
9391 ;;
9392
9393 *)
9394 lt_prog_compiler_pic='-fPIC'
9395 ;;
9396 esac
9397
9398 case $cc_basename in
9399 nvcc*) # Cuda Compiler Driver 2.2
9400 lt_prog_compiler_wl='-Xlinker '
9401 lt_prog_compiler_pic='-Xcompiler -fPIC'
9402 ;;
9403 esac
9404 else
9405 # PORTME Check for flag to pass linker flags through the system compiler.
9406 case $host_os in
9407 aix*)
9408 lt_prog_compiler_wl='-Wl,'
9409 if test "$host_cpu" = ia64; then
9410 # AIX 5 now supports IA64 processor
9411 lt_prog_compiler_static='-Bstatic'
9412 else
9413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9414 fi
9415 ;;
9416
9417 mingw* | cygwin* | pw32* | os2* | cegcc*)
9418 # This hack is so that the source file can tell whether it is being
9419 # built for inclusion in a dll (and should export symbols for example).
9420 lt_prog_compiler_pic='-DDLL_EXPORT'
9421 ;;
9422
9423 hpux9* | hpux10* | hpux11*)
9424 lt_prog_compiler_wl='-Wl,'
9425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9426 # not for PA HP-UX.
9427 case $host_cpu in
9428 hppa*64*|ia64*)
9429 # +Z the default
9430 ;;
9431 *)
9432 lt_prog_compiler_pic='+Z'
9433 ;;
9434 esac
9435 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9436 lt_prog_compiler_static='${wl}-a ${wl}archive'
9437 ;;
9438
9439 irix5* | irix6* | nonstopux*)
9440 lt_prog_compiler_wl='-Wl,'
9441 # PIC (with -KPIC) is the default.
9442 lt_prog_compiler_static='-non_shared'
9443 ;;
9444
9445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9446 case $cc_basename in
9447 # old Intel for x86_64 which still supported -KPIC.
9448 ecc*)
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-KPIC'
9451 lt_prog_compiler_static='-static'
9452 ;;
9453 # icc used to be incompatible with GCC.
9454 # ICC 10 doesn't accept -KPIC any more.
9455 icc* | ifort*)
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_pic='-fPIC'
9458 lt_prog_compiler_static='-static'
9459 ;;
9460 # Lahey Fortran 8.1.
9461 lf95*)
9462 lt_prog_compiler_wl='-Wl,'
9463 lt_prog_compiler_pic='--shared'
9464 lt_prog_compiler_static='--static'
9465 ;;
9466 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9467 # Portland Group compilers (*not* the Pentium gcc compiler,
9468 # which looks to be a dead project)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fpic'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473 ccc*)
9474 lt_prog_compiler_wl='-Wl,'
9475 # All Alpha code is PIC.
9476 lt_prog_compiler_static='-non_shared'
9477 ;;
9478 xl* | bgxl* | bgf* | mpixl*)
9479 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9480 lt_prog_compiler_wl='-Wl,'
9481 lt_prog_compiler_pic='-qpic'
9482 lt_prog_compiler_static='-qstaticlink'
9483 ;;
9484 *)
9485 case `$CC -V 2>&1 | sed 5q` in
9486 *Sun\ F* | *Sun*Fortran*)
9487 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9488 lt_prog_compiler_pic='-KPIC'
9489 lt_prog_compiler_static='-Bstatic'
9490 lt_prog_compiler_wl=''
9491 ;;
9492 *Sun\ C*)
9493 # Sun C 5.9
9494 lt_prog_compiler_pic='-KPIC'
9495 lt_prog_compiler_static='-Bstatic'
9496 lt_prog_compiler_wl='-Wl,'
9497 ;;
9498 esac
9499 ;;
9500 esac
9501 ;;
9502
9503 newsos6)
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 ;;
9507
9508 *nto* | *qnx*)
9509 # QNX uses GNU C++, but need to define -shared option too, otherwise
9510 # it will coredump.
9511 lt_prog_compiler_pic='-fPIC -shared'
9512 ;;
9513
9514 osf3* | osf4* | osf5*)
9515 lt_prog_compiler_wl='-Wl,'
9516 # All OSF/1 code is PIC.
9517 lt_prog_compiler_static='-non_shared'
9518 ;;
9519
9520 rdos*)
9521 lt_prog_compiler_static='-non_shared'
9522 ;;
9523
9524 solaris*)
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 case $cc_basename in
9528 f77* | f90* | f95*)
9529 lt_prog_compiler_wl='-Qoption ld ';;
9530 *)
9531 lt_prog_compiler_wl='-Wl,';;
9532 esac
9533 ;;
9534
9535 sunos4*)
9536 lt_prog_compiler_wl='-Qoption ld '
9537 lt_prog_compiler_pic='-PIC'
9538 lt_prog_compiler_static='-Bstatic'
9539 ;;
9540
9541 sysv4 | sysv4.2uw2* | sysv4.3*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9545 ;;
9546
9547 sysv4*MP*)
9548 if test -d /usr/nec ;then
9549 lt_prog_compiler_pic='-Kconform_pic'
9550 lt_prog_compiler_static='-Bstatic'
9551 fi
9552 ;;
9553
9554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='-KPIC'
9557 lt_prog_compiler_static='-Bstatic'
9558 ;;
9559
9560 unicos*)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_can_build_shared=no
9563 ;;
9564
9565 uts4*)
9566 lt_prog_compiler_pic='-pic'
9567 lt_prog_compiler_static='-Bstatic'
9568 ;;
9569
9570 *)
9571 lt_prog_compiler_can_build_shared=no
9572 ;;
9573 esac
9574 fi
9575
9576 case $host_os in
9577 # For platforms which do not support PIC, -DPIC is meaningless:
9578 *djgpp*)
9579 lt_prog_compiler_pic=
9580 ;;
9581 *)
9582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9583 ;;
9584 esac
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9586 $as_echo "$lt_prog_compiler_pic" >&6; }
9587
9588
9589
9590
9591
9592
9593 #
9594 # Check to make sure the PIC flag actually works.
9595 #
9596 if test -n "$lt_prog_compiler_pic"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9599 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 lt_cv_prog_compiler_pic_works=no
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9606 # Insert the option either (1) after the last *FLAGS variable, or
9607 # (2) before a word containing "conftest.", or (3) at the end.
9608 # Note that $ac_compile itself does not contain backslashes and begins
9609 # with a dollar sign (not a hyphen), so the echo should work correctly.
9610 # The option is referenced via a variable to avoid confusing sed.
9611 lt_compile=`echo "$ac_compile" | $SED \
9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614 -e 's:$: $lt_compiler_flag:'`
9615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9616 (eval "$lt_compile" 2>conftest.err)
9617 ac_status=$?
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 if (exit $ac_status) && test -s "$ac_outfile"; then
9621 # The compiler can only warn and ignore the option if not recognized
9622 # So say no if there are warnings other than the usual output.
9623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9626 lt_cv_prog_compiler_pic_works=yes
9627 fi
9628 fi
9629 $RM conftest*
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9633 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9634
9635 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9636 case $lt_prog_compiler_pic in
9637 "" | " "*) ;;
9638 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9639 esac
9640 else
9641 lt_prog_compiler_pic=
9642 lt_prog_compiler_can_build_shared=no
9643 fi
9644
9645 fi
9646
9647
9648
9649
9650
9651
9652 #
9653 # Check to make sure the static flag actually works.
9654 #
9655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9657 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9658 if ${lt_cv_prog_compiler_static_works+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 lt_cv_prog_compiler_static_works=no
9662 save_LDFLAGS="$LDFLAGS"
9663 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9664 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9666 # The linker can only warn and ignore the option if not recognized
9667 # So say no if there are warnings
9668 if test -s conftest.err; then
9669 # Append any errors to the config.log.
9670 cat conftest.err 1>&5
9671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9673 if diff conftest.exp conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler_static_works=yes
9675 fi
9676 else
9677 lt_cv_prog_compiler_static_works=yes
9678 fi
9679 fi
9680 $RM -r conftest*
9681 LDFLAGS="$save_LDFLAGS"
9682
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9685 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9686
9687 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9688 :
9689 else
9690 lt_prog_compiler_static=
9691 fi
9692
9693
9694
9695
9696
9697
9698
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9701 if ${lt_cv_prog_compiler_c_o+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 lt_cv_prog_compiler_c_o=no
9705 $RM -r conftest 2>/dev/null
9706 mkdir conftest
9707 cd conftest
9708 mkdir out
9709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710
9711 lt_compiler_flag="-o out/conftest2.$ac_objext"
9712 # Insert the option either (1) after the last *FLAGS variable, or
9713 # (2) before a word containing "conftest.", or (3) at the end.
9714 # Note that $ac_compile itself does not contain backslashes and begins
9715 # with a dollar sign (not a hyphen), so the echo should work correctly.
9716 lt_compile=`echo "$ac_compile" | $SED \
9717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719 -e 's:$: $lt_compiler_flag:'`
9720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9721 (eval "$lt_compile" 2>out/conftest.err)
9722 ac_status=$?
9723 cat out/conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9726 then
9727 # The compiler can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_c_o=yes
9733 fi
9734 fi
9735 chmod u+w . 2>&5
9736 $RM conftest*
9737 # SGI C++ compiler will create directory out/ii_files/ for
9738 # template instantiation
9739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9740 $RM out/* && rmdir out
9741 cd ..
9742 $RM -r conftest
9743 $RM conftest*
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9747 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9748
9749
9750
9751
9752
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9756 if ${lt_cv_prog_compiler_c_o+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 lt_cv_prog_compiler_c_o=no
9760 $RM -r conftest 2>/dev/null
9761 mkdir conftest
9762 cd conftest
9763 mkdir out
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765
9766 lt_compiler_flag="-o out/conftest2.$ac_objext"
9767 # Insert the option either (1) after the last *FLAGS variable, or
9768 # (2) before a word containing "conftest.", or (3) at the end.
9769 # Note that $ac_compile itself does not contain backslashes and begins
9770 # with a dollar sign (not a hyphen), so the echo should work correctly.
9771 lt_compile=`echo "$ac_compile" | $SED \
9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774 -e 's:$: $lt_compiler_flag:'`
9775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9776 (eval "$lt_compile" 2>out/conftest.err)
9777 ac_status=$?
9778 cat out/conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9781 then
9782 # The compiler can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_c_o=yes
9788 fi
9789 fi
9790 chmod u+w . 2>&5
9791 $RM conftest*
9792 # SGI C++ compiler will create directory out/ii_files/ for
9793 # template instantiation
9794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9795 $RM out/* && rmdir out
9796 cd ..
9797 $RM -r conftest
9798 $RM conftest*
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9802 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9803
9804
9805
9806
9807 hard_links="nottested"
9808 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9809 # do not overwrite the value of need_locks provided by the user
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9811 $as_echo_n "checking if we can lock with hard links... " >&6; }
9812 hard_links=yes
9813 $RM conftest*
9814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9815 touch conftest.a
9816 ln conftest.a conftest.b 2>&5 || hard_links=no
9817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9819 $as_echo "$hard_links" >&6; }
9820 if test "$hard_links" = no; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9822 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9823 need_locks=warn
9824 fi
9825 else
9826 need_locks=no
9827 fi
9828
9829
9830
9831
9832
9833
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9836
9837 runpath_var=
9838 allow_undefined_flag=
9839 always_export_symbols=no
9840 archive_cmds=
9841 archive_expsym_cmds=
9842 compiler_needs_object=no
9843 enable_shared_with_static_runtimes=no
9844 export_dynamic_flag_spec=
9845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9846 hardcode_automatic=no
9847 hardcode_direct=no
9848 hardcode_direct_absolute=no
9849 hardcode_libdir_flag_spec=
9850 hardcode_libdir_flag_spec_ld=
9851 hardcode_libdir_separator=
9852 hardcode_minus_L=no
9853 hardcode_shlibpath_var=unsupported
9854 inherit_rpath=no
9855 link_all_deplibs=unknown
9856 module_cmds=
9857 module_expsym_cmds=
9858 old_archive_from_new_cmds=
9859 old_archive_from_expsyms_cmds=
9860 thread_safe_flag_spec=
9861 whole_archive_flag_spec=
9862 # include_expsyms should be a list of space-separated symbols to be *always*
9863 # included in the symbol list
9864 include_expsyms=
9865 # exclude_expsyms can be an extended regexp of symbols to exclude
9866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9868 # as well as any symbol that contains `d'.
9869 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9871 # platforms (ab)use it in PIC code, but their linkers get confused if
9872 # the symbol is explicitly referenced. Since portable code cannot
9873 # rely on this symbol name, it's probably fine to never include it in
9874 # preloaded symbol tables.
9875 # Exclude shared library initialization/finalization symbols.
9876 extract_expsyms_cmds=
9877
9878 case $host_os in
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 if test "$GCC" != yes; then
9884 with_gnu_ld=no
9885 fi
9886 ;;
9887 interix*)
9888 # we just hope/assume this is gcc and not c89 (= MSVC++)
9889 with_gnu_ld=yes
9890 ;;
9891 openbsd*)
9892 with_gnu_ld=no
9893 ;;
9894 esac
9895
9896 ld_shlibs=yes
9897
9898 # On some targets, GNU ld is compatible enough with the native linker
9899 # that we're better off using the native interface for both.
9900 lt_use_gnu_ld_interface=no
9901 if test "$with_gnu_ld" = yes; then
9902 case $host_os in
9903 aix*)
9904 # The AIX port of GNU ld has always aspired to compatibility
9905 # with the native linker. However, as the warning in the GNU ld
9906 # block says, versions before 2.19.5* couldn't really create working
9907 # shared libraries, regardless of the interface used.
9908 case `$LD -v 2>&1` in
9909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9912 *)
9913 lt_use_gnu_ld_interface=yes
9914 ;;
9915 esac
9916 ;;
9917 *)
9918 lt_use_gnu_ld_interface=yes
9919 ;;
9920 esac
9921 fi
9922
9923 if test "$lt_use_gnu_ld_interface" = yes; then
9924 # If archive_cmds runs LD, not CC, wlarc should be empty
9925 wlarc='${wl}'
9926
9927 # Set some defaults for GNU ld with shared library support. These
9928 # are reset later if shared libraries are not supported. Putting them
9929 # here allows them to be overridden if necessary.
9930 runpath_var=LD_RUN_PATH
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 export_dynamic_flag_spec='${wl}--export-dynamic'
9933 # ancient GNU ld didn't support --whole-archive et. al.
9934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9935 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9936 else
9937 whole_archive_flag_spec=
9938 fi
9939 supports_anon_versioning=no
9940 case `$LD -v 2>&1` in
9941 *GNU\ gold*) supports_anon_versioning=yes ;;
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9945 *\ 2.11.*) ;; # other 2.11 versions
9946 *) supports_anon_versioning=yes ;;
9947 esac
9948
9949 # See if GNU ld supports shared libraries.
9950 case $host_os in
9951 aix[3-9]*)
9952 # On AIX/PPC, the GNU linker is very broken
9953 if test "$host_cpu" != ia64; then
9954 ld_shlibs=no
9955 cat <<_LT_EOF 1>&2
9956
9957 *** Warning: the GNU linker, at least up to release 2.19, is reported
9958 *** to be unable to reliably create shared libraries on AIX.
9959 *** Therefore, libtool is disabling shared libraries support. If you
9960 *** really care for shared libraries, you may want to install binutils
9961 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9962 *** You will then need to restart the configuration process.
9963
9964 _LT_EOF
9965 fi
9966 ;;
9967
9968 amigaos*)
9969 case $host_cpu in
9970 powerpc)
9971 # see comment about AmigaOS4 .so support
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds=''
9974 ;;
9975 m68k)
9976 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)'
9977 hardcode_libdir_flag_spec='-L$libdir'
9978 hardcode_minus_L=yes
9979 ;;
9980 esac
9981 ;;
9982
9983 beos*)
9984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9985 allow_undefined_flag=unsupported
9986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9987 # support --undefined. This deserves some investigation. FIXME
9988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9989 else
9990 ld_shlibs=no
9991 fi
9992 ;;
9993
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9996 # as there is no search path for DLLs.
9997 hardcode_libdir_flag_spec='-L$libdir'
9998 export_dynamic_flag_spec='${wl}--export-all-symbols'
9999 allow_undefined_flag=unsupported
10000 always_export_symbols=no
10001 enable_shared_with_static_runtimes=yes
10002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10003
10004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10006 # If the export-symbols file already is a .def file (1st line
10007 # is EXPORTS), use it as is; otherwise, prepend...
10008 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10009 cp $export_symbols $output_objdir/$soname.def;
10010 else
10011 echo EXPORTS > $output_objdir/$soname.def;
10012 cat $export_symbols >> $output_objdir/$soname.def;
10013 fi~
10014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10015 else
10016 ld_shlibs=no
10017 fi
10018 ;;
10019
10020 haiku*)
10021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022 link_all_deplibs=yes
10023 ;;
10024
10025 interix[3-9]*)
10026 hardcode_direct=no
10027 hardcode_shlibpath_var=no
10028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029 export_dynamic_flag_spec='${wl}-E'
10030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10031 # Instead, shared libraries are loaded at an image base (0x10000000 by
10032 # default) and relocated if they conflict, which is a slow very memory
10033 # consuming and fragmenting process. To avoid this, we pick a random,
10034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10037 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'
10038 ;;
10039
10040 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10041 tmp_diet=no
10042 if test "$host_os" = linux-dietlibc; then
10043 case $cc_basename in
10044 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10045 esac
10046 fi
10047 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10048 && test "$tmp_diet" = no
10049 then
10050 tmp_addflag=' $pic_flag'
10051 tmp_sharedflag='-shared'
10052 case $cc_basename,$host_cpu in
10053 pgcc*) # Portland Group C compiler
10054 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'
10055 tmp_addflag=' $pic_flag'
10056 ;;
10057 pgf77* | pgf90* | pgf95* | pgfortran*)
10058 # Portland Group f77 and f90 compilers
10059 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'
10060 tmp_addflag=' $pic_flag -Mnomain' ;;
10061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10062 tmp_addflag=' -i_dynamic' ;;
10063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10064 tmp_addflag=' -i_dynamic -nofor_main' ;;
10065 ifc* | ifort*) # Intel Fortran compiler
10066 tmp_addflag=' -nofor_main' ;;
10067 lf95*) # Lahey Fortran 8.1
10068 whole_archive_flag_spec=
10069 tmp_sharedflag='--shared' ;;
10070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10071 tmp_sharedflag='-qmkshrobj'
10072 tmp_addflag= ;;
10073 nvcc*) # Cuda Compiler Driver 2.2
10074 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'
10075 compiler_needs_object=yes
10076 ;;
10077 esac
10078 case `$CC -V 2>&1 | sed 5q` in
10079 *Sun\ C*) # Sun C 5.9
10080 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'
10081 compiler_needs_object=yes
10082 tmp_sharedflag='-G' ;;
10083 *Sun\ F*) # Sun Fortran 8.3
10084 tmp_sharedflag='-G' ;;
10085 esac
10086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087
10088 if test "x$supports_anon_versioning" = xyes; then
10089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10091 echo "local: *; };" >> $output_objdir/$libname.ver~
10092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10093 fi
10094
10095 case $cc_basename in
10096 xlf* | bgf* | bgxlf* | mpixlf*)
10097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10098 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10099 hardcode_libdir_flag_spec=
10100 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10101 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10102 if test "x$supports_anon_versioning" = xyes; then
10103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10105 echo "local: *; };" >> $output_objdir/$libname.ver~
10106 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10107 fi
10108 ;;
10109 esac
10110 else
10111 ld_shlibs=no
10112 fi
10113 ;;
10114
10115 netbsd*)
10116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10118 wlarc=
10119 else
10120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10122 fi
10123 ;;
10124
10125 solaris*)
10126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10127 ld_shlibs=no
10128 cat <<_LT_EOF 1>&2
10129
10130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10131 *** create shared libraries on Solaris systems. Therefore, libtool
10132 *** is disabling shared libraries support. We urge you to upgrade GNU
10133 *** binutils to release 2.9.1 or newer. Another option is to modify
10134 *** your PATH or compiler configuration so that the native linker is
10135 *** used, and then restart.
10136
10137 _LT_EOF
10138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141 else
10142 ld_shlibs=no
10143 fi
10144 ;;
10145
10146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10147 case `$LD -v 2>&1` in
10148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10149 ld_shlibs=no
10150 cat <<_LT_EOF 1>&2
10151
10152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10153 *** reliably create shared libraries on SCO systems. Therefore, libtool
10154 *** is disabling shared libraries support. We urge you to upgrade GNU
10155 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10156 *** your PATH or compiler configuration so that the native linker is
10157 *** used, and then restart.
10158
10159 _LT_EOF
10160 ;;
10161 *)
10162 # For security reasons, it is highly recommended that you always
10163 # use absolute paths for naming shared libraries, and exclude the
10164 # DT_RUNPATH tag from executables and libraries. But doing so
10165 # requires that you compile everything twice, which is a pain.
10166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10170 else
10171 ld_shlibs=no
10172 fi
10173 ;;
10174 esac
10175 ;;
10176
10177 sunos4*)
10178 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179 wlarc=
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 *)
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188 else
10189 ld_shlibs=no
10190 fi
10191 ;;
10192 esac
10193
10194 if test "$ld_shlibs" = no; then
10195 runpath_var=
10196 hardcode_libdir_flag_spec=
10197 export_dynamic_flag_spec=
10198 whole_archive_flag_spec=
10199 fi
10200 else
10201 # PORTME fill in a description of your system's linker (not GNU ld)
10202 case $host_os in
10203 aix3*)
10204 allow_undefined_flag=unsupported
10205 always_export_symbols=yes
10206 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'
10207 # Note: this linker hardcodes the directories in LIBPATH if there
10208 # are no directories specified by -L.
10209 hardcode_minus_L=yes
10210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10211 # Neither direct hardcoding nor static linking is supported with a
10212 # broken collect2.
10213 hardcode_direct=unsupported
10214 fi
10215 ;;
10216
10217 aix[4-9]*)
10218 if test "$host_cpu" = ia64; then
10219 # On IA64, the linker does run time linking by default, so we don't
10220 # have to do anything special.
10221 aix_use_runtimelinking=no
10222 exp_sym_flag='-Bexport'
10223 no_entry_flag=""
10224 else
10225 # If we're using GNU nm, then we don't want the "-C" option.
10226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10227 # Also, AIX nm treats weak defined symbols like other global
10228 # defined symbols, whereas GNU nm marks them as "W".
10229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230 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'
10231 else
10232 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'
10233 fi
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # need to do runtime linking.
10239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10240 for ld_flag in $LDFLAGS; do
10241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10242 aix_use_runtimelinking=yes
10243 break
10244 fi
10245 done
10246 ;;
10247 esac
10248
10249 exp_sym_flag='-bexport'
10250 no_entry_flag='-bnoentry'
10251 fi
10252
10253 # When large executables or shared objects are built, AIX ld can
10254 # have problems creating the table of contents. If linking a library
10255 # or program results in "error TOC overflow" add -mminimal-toc to
10256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10258
10259 archive_cmds=''
10260 hardcode_direct=yes
10261 hardcode_direct_absolute=yes
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 file_list_spec='${wl}-f,'
10265
10266 if test "$GCC" = yes; then
10267 case $host_os in aix4.[012]|aix4.[012].*)
10268 # We only want to do this on AIX 4.2 and lower, the check
10269 # below for broken collect2 doesn't work under 4.3+
10270 collect2name=`${CC} -print-prog-name=collect2`
10271 if test -f "$collect2name" &&
10272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10273 then
10274 # We have reworked collect2
10275 :
10276 else
10277 # We have old collect2
10278 hardcode_direct=unsupported
10279 # It fails to find uninstalled libraries when the uninstalled
10280 # path is not listed in the libpath. Setting hardcode_minus_L
10281 # to unsupported forces relinking
10282 hardcode_minus_L=yes
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_libdir_separator=
10285 fi
10286 ;;
10287 esac
10288 shared_flag='-shared'
10289 if test "$aix_use_runtimelinking" = yes; then
10290 shared_flag="$shared_flag "'${wl}-G'
10291 fi
10292 else
10293 # not using gcc
10294 if test "$host_cpu" = ia64; then
10295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10296 # chokes on -Wl,-G. The following line is correct:
10297 shared_flag='-G'
10298 else
10299 if test "$aix_use_runtimelinking" = yes; then
10300 shared_flag='${wl}-G'
10301 else
10302 shared_flag='${wl}-bM:SRE'
10303 fi
10304 fi
10305 fi
10306
10307 export_dynamic_flag_spec='${wl}-bexpall'
10308 # It seems that -bexpall does not export symbols beginning with
10309 # underscore (_), so it is better to generate a list of symbols to export.
10310 always_export_symbols=yes
10311 if test "$aix_use_runtimelinking" = yes; then
10312 # Warning - without using the other runtime loading flags (-brtl),
10313 # -berok will link without error, but may produce a broken library.
10314 allow_undefined_flag='-berok'
10315 # Determine the default libpath from the value encoded in an
10316 # empty executable.
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319
10320 int
10321 main ()
10322 {
10323
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329
10330 lt_aix_libpath_sed='
10331 /Import File Strings/,/^$/ {
10332 /^0/ {
10333 s/^0 *\(.*\)$/\1/
10334 p
10335 }
10336 }'
10337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10338 # Check for a 64-bit object if we didn't find anything.
10339 if test -z "$aix_libpath"; then
10340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10341 fi
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10346
10347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10348 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"
10349 else
10350 if test "$host_cpu" = ia64; then
10351 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10352 allow_undefined_flag="-z nodefs"
10353 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"
10354 else
10355 # Determine the default libpath from the value encoded in an
10356 # empty executable.
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369
10370 lt_aix_libpath_sed='
10371 /Import File Strings/,/^$/ {
10372 /^0/ {
10373 s/^0 *\(.*\)$/\1/
10374 p
10375 }
10376 }'
10377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378 # Check for a 64-bit object if we didn't find anything.
10379 if test -z "$aix_libpath"; then
10380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381 fi
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10386
10387 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10388 # Warning - without using the other run time loading flags,
10389 # -berok will link without error, but may produce a broken library.
10390 no_undefined_flag=' ${wl}-bernotok'
10391 allow_undefined_flag=' ${wl}-berok'
10392 if test "$with_gnu_ld" = yes; then
10393 # We only use this code for GNU lds that support --whole-archive.
10394 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10395 else
10396 # Exported symbols can be pulled into shared objects from archives
10397 whole_archive_flag_spec='$convenience'
10398 fi
10399 archive_cmds_need_lc=yes
10400 # This is similar to how AIX traditionally builds its shared libraries.
10401 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'
10402 fi
10403 fi
10404 ;;
10405
10406 amigaos*)
10407 case $host_cpu in
10408 powerpc)
10409 # see comment about AmigaOS4 .so support
10410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411 archive_expsym_cmds=''
10412 ;;
10413 m68k)
10414 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)'
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_minus_L=yes
10417 ;;
10418 esac
10419 ;;
10420
10421 bsdi[45]*)
10422 export_dynamic_flag_spec=-rdynamic
10423 ;;
10424
10425 cygwin* | mingw* | pw32* | cegcc*)
10426 # When not using gcc, we currently assume that we are using
10427 # Microsoft Visual C++.
10428 # hardcode_libdir_flag_spec is actually meaningless, as there is
10429 # no search path for DLLs.
10430 hardcode_libdir_flag_spec=' '
10431 allow_undefined_flag=unsupported
10432 # Tell ltmain to make .lib files, not .a files.
10433 libext=lib
10434 # Tell ltmain to make .dll files, not .so files.
10435 shrext_cmds=".dll"
10436 # FIXME: Setting linknames here is a bad hack.
10437 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10438 # The linker will automatically build a .lib file if we build a DLL.
10439 old_archive_from_new_cmds='true'
10440 # FIXME: Should let the user specify the lib program.
10441 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10442 fix_srcfile_path='`cygpath -w "$srcfile"`'
10443 enable_shared_with_static_runtimes=yes
10444 ;;
10445
10446 darwin* | rhapsody*)
10447
10448
10449 archive_cmds_need_lc=no
10450 hardcode_direct=no
10451 hardcode_automatic=yes
10452 hardcode_shlibpath_var=unsupported
10453 if test "$lt_cv_ld_force_load" = "yes"; then
10454 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\"`'
10455 else
10456 whole_archive_flag_spec=''
10457 fi
10458 link_all_deplibs=yes
10459 allow_undefined_flag="$_lt_dar_allow_undefined"
10460 case $cc_basename in
10461 ifort*) _lt_dar_can_shared=yes ;;
10462 *) _lt_dar_can_shared=$GCC ;;
10463 esac
10464 if test "$_lt_dar_can_shared" = "yes"; then
10465 output_verbose_link_cmd=func_echo_all
10466 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10467 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10468 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}"
10469 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}"
10470
10471 else
10472 ld_shlibs=no
10473 fi
10474
10475 ;;
10476
10477 dgux*)
10478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_libdir_flag_spec='-L$libdir'
10480 hardcode_shlibpath_var=no
10481 ;;
10482
10483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10484 # support. Future versions do this automatically, but an explicit c++rt0.o
10485 # does not break anything, and helps significantly (at the cost of a little
10486 # extra space).
10487 freebsd2.2*)
10488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10489 hardcode_libdir_flag_spec='-R$libdir'
10490 hardcode_direct=yes
10491 hardcode_shlibpath_var=no
10492 ;;
10493
10494 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10495 freebsd2.*)
10496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10497 hardcode_direct=yes
10498 hardcode_minus_L=yes
10499 hardcode_shlibpath_var=no
10500 ;;
10501
10502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10503 freebsd* | dragonfly*)
10504 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10505 hardcode_libdir_flag_spec='-R$libdir'
10506 hardcode_direct=yes
10507 hardcode_shlibpath_var=no
10508 ;;
10509
10510 hpux9*)
10511 if test "$GCC" = yes; then
10512 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'
10513 else
10514 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'
10515 fi
10516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10517 hardcode_libdir_separator=:
10518 hardcode_direct=yes
10519
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10523 export_dynamic_flag_spec='${wl}-E'
10524 ;;
10525
10526 hpux10*)
10527 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10529 else
10530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10531 fi
10532 if test "$with_gnu_ld" = no; then
10533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10534 hardcode_libdir_flag_spec_ld='+b $libdir'
10535 hardcode_libdir_separator=:
10536 hardcode_direct=yes
10537 hardcode_direct_absolute=yes
10538 export_dynamic_flag_spec='${wl}-E'
10539 # hardcode_minus_L: Not really in the search PATH,
10540 # but as the default location of the library.
10541 hardcode_minus_L=yes
10542 fi
10543 ;;
10544
10545 hpux11*)
10546 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10547 case $host_cpu in
10548 hppa*64*)
10549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10550 ;;
10551 ia64*)
10552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10553 ;;
10554 *)
10555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10556 ;;
10557 esac
10558 else
10559 case $host_cpu in
10560 hppa*64*)
10561 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 ;;
10563 ia64*)
10564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10565 ;;
10566 *)
10567
10568 # Older versions of the 11.00 compiler do not understand -b yet
10569 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10571 $as_echo_n "checking if $CC understands -b... " >&6; }
10572 if ${lt_cv_prog_compiler__b+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 lt_cv_prog_compiler__b=no
10576 save_LDFLAGS="$LDFLAGS"
10577 LDFLAGS="$LDFLAGS -b"
10578 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10580 # The linker can only warn and ignore the option if not recognized
10581 # So say no if there are warnings
10582 if test -s conftest.err; then
10583 # Append any errors to the config.log.
10584 cat conftest.err 1>&5
10585 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10587 if diff conftest.exp conftest.er2 >/dev/null; then
10588 lt_cv_prog_compiler__b=yes
10589 fi
10590 else
10591 lt_cv_prog_compiler__b=yes
10592 fi
10593 fi
10594 $RM -r conftest*
10595 LDFLAGS="$save_LDFLAGS"
10596
10597 fi
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10599 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10600
10601 if test x"$lt_cv_prog_compiler__b" = xyes; then
10602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10603 else
10604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10605 fi
10606
10607 ;;
10608 esac
10609 fi
10610 if test "$with_gnu_ld" = no; then
10611 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10612 hardcode_libdir_separator=:
10613
10614 case $host_cpu in
10615 hppa*64*|ia64*)
10616 hardcode_direct=no
10617 hardcode_shlibpath_var=no
10618 ;;
10619 *)
10620 hardcode_direct=yes
10621 hardcode_direct_absolute=yes
10622 export_dynamic_flag_spec='${wl}-E'
10623
10624 # hardcode_minus_L: Not really in the search PATH,
10625 # but as the default location of the library.
10626 hardcode_minus_L=yes
10627 ;;
10628 esac
10629 fi
10630 ;;
10631
10632 irix5* | irix6* | nonstopux*)
10633 if test "$GCC" = yes; then
10634 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'
10635 # Try to use the -exported_symbol ld option, if it does not
10636 # work, assume that -exports_file does not work either and
10637 # implicitly export all symbols.
10638 save_LDFLAGS="$LDFLAGS"
10639 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 int foo(void) {}
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 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'
10646
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LDFLAGS="$save_LDFLAGS"
10651 else
10652 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'
10653 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'
10654 fi
10655 archive_cmds_need_lc='no'
10656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10657 hardcode_libdir_separator=:
10658 inherit_rpath=yes
10659 link_all_deplibs=yes
10660 ;;
10661
10662 netbsd*)
10663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10665 else
10666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10667 fi
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10671 ;;
10672
10673 newsos6)
10674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675 hardcode_direct=yes
10676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10677 hardcode_libdir_separator=:
10678 hardcode_shlibpath_var=no
10679 ;;
10680
10681 *nto* | *qnx*)
10682 ;;
10683
10684 openbsd*)
10685 if test -f /usr/libexec/ld.so; then
10686 hardcode_direct=yes
10687 hardcode_shlibpath_var=no
10688 hardcode_direct_absolute=yes
10689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10693 export_dynamic_flag_spec='${wl}-E'
10694 else
10695 case $host_os in
10696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 ;;
10700 *)
10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10702 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10703 ;;
10704 esac
10705 fi
10706 else
10707 ld_shlibs=no
10708 fi
10709 ;;
10710
10711 os2*)
10712 hardcode_libdir_flag_spec='-L$libdir'
10713 hardcode_minus_L=yes
10714 allow_undefined_flag=unsupported
10715 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'
10716 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10717 ;;
10718
10719 osf3*)
10720 if test "$GCC" = yes; then
10721 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10722 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'
10723 else
10724 allow_undefined_flag=' -expect_unresolved \*'
10725 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'
10726 fi
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 hardcode_libdir_separator=:
10730 ;;
10731
10732 osf4* | osf5*) # as osf3* with the addition of -msym flag
10733 if test "$GCC" = yes; then
10734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10735 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'
10736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737 else
10738 allow_undefined_flag=' -expect_unresolved \*'
10739 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'
10740 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~
10741 $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'
10742
10743 # Both c and cxx compiler support -rpath directly
10744 hardcode_libdir_flag_spec='-rpath $libdir'
10745 fi
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_separator=:
10748 ;;
10749
10750 solaris*)
10751 no_undefined_flag=' -z defs'
10752 if test "$GCC" = yes; then
10753 wlarc='${wl}'
10754 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10756 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10757 else
10758 case `$CC -V 2>&1` in
10759 *"Compilers 5.0"*)
10760 wlarc=''
10761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10764 ;;
10765 *)
10766 wlarc='${wl}'
10767 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10769 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10770 ;;
10771 esac
10772 fi
10773 hardcode_libdir_flag_spec='-R$libdir'
10774 hardcode_shlibpath_var=no
10775 case $host_os in
10776 solaris2.[0-5] | solaris2.[0-5].*) ;;
10777 *)
10778 # The compiler driver will combine and reorder linker options,
10779 # but understands `-z linker_flag'. GCC discards it without `$wl',
10780 # but is careful enough not to reorder.
10781 # Supported since Solaris 2.6 (maybe 2.5.1?)
10782 if test "$GCC" = yes; then
10783 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10784 else
10785 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10786 fi
10787 ;;
10788 esac
10789 link_all_deplibs=yes
10790 ;;
10791
10792 sunos4*)
10793 if test "x$host_vendor" = xsequent; then
10794 # Use $CC to link under sequent, because it throws in some extra .o
10795 # files that make .init and .fini sections work.
10796 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10797 else
10798 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10799 fi
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_direct=yes
10802 hardcode_minus_L=yes
10803 hardcode_shlibpath_var=no
10804 ;;
10805
10806 sysv4)
10807 case $host_vendor in
10808 sni)
10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_direct=yes # is this really true???
10811 ;;
10812 siemens)
10813 ## LD is ld it makes a PLAMLIB
10814 ## CC just makes a GrossModule.
10815 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10816 reload_cmds='$CC -r -o $output$reload_objs'
10817 hardcode_direct=no
10818 ;;
10819 motorola)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10822 ;;
10823 esac
10824 runpath_var='LD_RUN_PATH'
10825 hardcode_shlibpath_var=no
10826 ;;
10827
10828 sysv4.3*)
10829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830 hardcode_shlibpath_var=no
10831 export_dynamic_flag_spec='-Bexport'
10832 ;;
10833
10834 sysv4*MP*)
10835 if test -d /usr/nec; then
10836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_shlibpath_var=no
10838 runpath_var=LD_RUN_PATH
10839 hardcode_runpath_var=yes
10840 ld_shlibs=yes
10841 fi
10842 ;;
10843
10844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10845 no_undefined_flag='${wl}-z,text'
10846 archive_cmds_need_lc=no
10847 hardcode_shlibpath_var=no
10848 runpath_var='LD_RUN_PATH'
10849
10850 if test "$GCC" = yes; then
10851 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 else
10854 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 fi
10857 ;;
10858
10859 sysv5* | sco3.2v5* | sco5v6*)
10860 # Note: We can NOT use -z defs as we might desire, because we do not
10861 # link with -lc, and that would cause any symbols used from libc to
10862 # always be unresolved, which means just about no library would
10863 # ever link correctly. If we're not using GNU ld we use -z text
10864 # though, which does catch some bad symbols but isn't as heavy-handed
10865 # as -z defs.
10866 no_undefined_flag='${wl}-z,text'
10867 allow_undefined_flag='${wl}-z,nodefs'
10868 archive_cmds_need_lc=no
10869 hardcode_shlibpath_var=no
10870 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10871 hardcode_libdir_separator=':'
10872 link_all_deplibs=yes
10873 export_dynamic_flag_spec='${wl}-Bexport'
10874 runpath_var='LD_RUN_PATH'
10875
10876 if test "$GCC" = yes; then
10877 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10878 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10879 else
10880 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10881 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 fi
10883 ;;
10884
10885 uts4*)
10886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10887 hardcode_libdir_flag_spec='-L$libdir'
10888 hardcode_shlibpath_var=no
10889 ;;
10890
10891 *)
10892 ld_shlibs=no
10893 ;;
10894 esac
10895
10896 if test x$host_vendor = xsni; then
10897 case $host in
10898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10899 export_dynamic_flag_spec='${wl}-Blargedynsym'
10900 ;;
10901 esac
10902 fi
10903 fi
10904
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10906 $as_echo "$ld_shlibs" >&6; }
10907 test "$ld_shlibs" = no && can_build_shared=no
10908
10909 with_gnu_ld=$with_gnu_ld
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925 #
10926 # Do we need to explicitly link libc?
10927 #
10928 case "x$archive_cmds_need_lc" in
10929 x|xyes)
10930 # Assume -lc should be added
10931 archive_cmds_need_lc=yes
10932
10933 if test "$enable_shared" = yes && test "$GCC" = yes; then
10934 case $archive_cmds in
10935 *'~'*)
10936 # FIXME: we may have to deal with multi-command sequences.
10937 ;;
10938 '$CC '*)
10939 # Test whether the compiler implicitly links with -lc since on some
10940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10941 # to ld, don't add -lc before -lgcc.
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10943 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10944 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 $RM conftest*
10948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10949
10950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10951 (eval $ac_compile) 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; } 2>conftest.err; then
10955 soname=conftest
10956 lib=conftest
10957 libobjs=conftest.$ac_objext
10958 deplibs=
10959 wl=$lt_prog_compiler_wl
10960 pic_flag=$lt_prog_compiler_pic
10961 compiler_flags=-v
10962 linker_flags=-v
10963 verstring=
10964 output_objdir=.
10965 libname=conftest
10966 lt_save_allow_undefined_flag=$allow_undefined_flag
10967 allow_undefined_flag=
10968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10969 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10970 ac_status=$?
10971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10972 test $ac_status = 0; }
10973 then
10974 lt_cv_archive_cmds_need_lc=no
10975 else
10976 lt_cv_archive_cmds_need_lc=yes
10977 fi
10978 allow_undefined_flag=$lt_save_allow_undefined_flag
10979 else
10980 cat conftest.err 1>&5
10981 fi
10982 $RM conftest*
10983
10984 fi
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10986 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10987 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10988 ;;
10989 esac
10990 fi
10991 ;;
10992 esac
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
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11151 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11152
11153 if test "$GCC" = yes; then
11154 case $host_os in
11155 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11156 *) lt_awk_arg="/^libraries:/" ;;
11157 esac
11158 case $host_os in
11159 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11160 *) lt_sed_strip_eq="s,=/,/,g" ;;
11161 esac
11162 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11163 case $lt_search_path_spec in
11164 *\;*)
11165 # if the path contains ";" then we assume it to be the separator
11166 # otherwise default to the standard path separator (i.e. ":") - it is
11167 # assumed that no part of a normal pathname contains ";" but that should
11168 # okay in the real world where ";" in dirpaths is itself problematic.
11169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11170 ;;
11171 *)
11172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11173 ;;
11174 esac
11175 # Ok, now we have the path, separated by spaces, we can step through it
11176 # and add multilib dir if necessary.
11177 lt_tmp_lt_search_path_spec=
11178 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11179 for lt_sys_path in $lt_search_path_spec; do
11180 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11181 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11182 else
11183 test -d "$lt_sys_path" && \
11184 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11185 fi
11186 done
11187 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11188 BEGIN {RS=" "; FS="/|\n";} {
11189 lt_foo="";
11190 lt_count=0;
11191 for (lt_i = NF; lt_i > 0; lt_i--) {
11192 if ($lt_i != "" && $lt_i != ".") {
11193 if ($lt_i == "..") {
11194 lt_count++;
11195 } else {
11196 if (lt_count == 0) {
11197 lt_foo="/" $lt_i lt_foo;
11198 } else {
11199 lt_count--;
11200 }
11201 }
11202 }
11203 }
11204 if (lt_foo != "") { lt_freq[lt_foo]++; }
11205 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11206 }'`
11207 # AWK program above erroneously prepends '/' to C:/dos/paths
11208 # for these hosts.
11209 case $host_os in
11210 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11211 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11212 esac
11213 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11214 else
11215 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11216 fi
11217 library_names_spec=
11218 libname_spec='lib$name'
11219 soname_spec=
11220 shrext_cmds=".so"
11221 postinstall_cmds=
11222 postuninstall_cmds=
11223 finish_cmds=
11224 finish_eval=
11225 shlibpath_var=
11226 shlibpath_overrides_runpath=unknown
11227 version_type=none
11228 dynamic_linker="$host_os ld.so"
11229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11230 need_lib_prefix=unknown
11231 hardcode_into_libs=no
11232
11233 # when you set need_version to no, make sure it does not cause -set_version
11234 # flags to be left without arguments
11235 need_version=unknown
11236
11237 case $host_os in
11238 aix3*)
11239 version_type=linux
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11241 shlibpath_var=LIBPATH
11242
11243 # AIX 3 has no versioning support, so we append a major version to the name.
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 ;;
11246
11247 aix[4-9]*)
11248 version_type=linux
11249 need_lib_prefix=no
11250 need_version=no
11251 hardcode_into_libs=yes
11252 if test "$host_cpu" = ia64; then
11253 # AIX 5 supports IA64
11254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 else
11257 # With GCC up to 2.95.x, collect2 would create an import file
11258 # for dependence libraries. The import file would start with
11259 # the line `#! .'. This would cause the generated library to
11260 # depend on `.', always an invalid library. This was fixed in
11261 # development snapshots of GCC prior to 3.0.
11262 case $host_os in
11263 aix4 | aix4.[01] | aix4.[01].*)
11264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11265 echo ' yes '
11266 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11267 :
11268 else
11269 can_build_shared=no
11270 fi
11271 ;;
11272 esac
11273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11274 # soname into executable. Probably we can add versioning support to
11275 # collect2, so additional links can be useful in future.
11276 if test "$aix_use_runtimelinking" = yes; then
11277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11278 # instead of lib<name>.a to let people know that these are not
11279 # typical AIX shared libraries.
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 else
11282 # We preserve .a as extension for shared libraries through AIX4.2
11283 # and later when we are not doing run time linking.
11284 library_names_spec='${libname}${release}.a $libname.a'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 fi
11287 shlibpath_var=LIBPATH
11288 fi
11289 ;;
11290
11291 amigaos*)
11292 case $host_cpu in
11293 powerpc)
11294 # Since July 2007 AmigaOS4 officially supports .so libraries.
11295 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 ;;
11298 m68k)
11299 library_names_spec='$libname.ixlibrary $libname.a'
11300 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11301 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'
11302 ;;
11303 esac
11304 ;;
11305
11306 beos*)
11307 library_names_spec='${libname}${shared_ext}'
11308 dynamic_linker="$host_os ld.so"
11309 shlibpath_var=LIBRARY_PATH
11310 ;;
11311
11312 bsdi[45]*)
11313 version_type=linux
11314 need_version=no
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11320 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11321 # the default ld.so.conf also contains /usr/contrib/lib and
11322 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11323 # libtool to hard-code these into programs
11324 ;;
11325
11326 cygwin* | mingw* | pw32* | cegcc*)
11327 version_type=windows
11328 shrext_cmds=".dll"
11329 need_version=no
11330 need_lib_prefix=no
11331
11332 case $GCC,$host_os in
11333 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11334 library_names_spec='$libname.dll.a'
11335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11336 postinstall_cmds='base_file=`basename \${file}`~
11337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11338 dldir=$destdir/`dirname \$dlpath`~
11339 test -d \$dldir || mkdir -p \$dldir~
11340 $install_prog $dir/$dlname \$dldir/$dlname~
11341 chmod a+x \$dldir/$dlname~
11342 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11343 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11344 fi'
11345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11346 dlpath=$dir/\$dldll~
11347 $RM \$dlpath'
11348 shlibpath_overrides_runpath=yes
11349
11350 case $host_os in
11351 cygwin*)
11352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11354
11355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11356 ;;
11357 mingw* | cegcc*)
11358 # MinGW DLLs use traditional 'lib' prefix
11359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11360 ;;
11361 pw32*)
11362 # pw32 DLLs use 'pw' prefix rather than 'lib'
11363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11364 ;;
11365 esac
11366 ;;
11367
11368 *)
11369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11370 ;;
11371 esac
11372 dynamic_linker='Win32 ld.exe'
11373 # FIXME: first we should search . and the directory the executable is in
11374 shlibpath_var=PATH
11375 ;;
11376
11377 darwin* | rhapsody*)
11378 dynamic_linker="$host_os dyld"
11379 version_type=darwin
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11383 soname_spec='${libname}${release}${major}$shared_ext'
11384 shlibpath_overrides_runpath=yes
11385 shlibpath_var=DYLD_LIBRARY_PATH
11386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11387
11388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11390 ;;
11391
11392 dgux*)
11393 version_type=linux
11394 need_lib_prefix=no
11395 need_version=no
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 ;;
11400
11401 freebsd* | dragonfly*)
11402 # DragonFly does not have aout. When/if they implement a new
11403 # versioning mechanism, adjust this.
11404 if test -x /usr/bin/objformat; then
11405 objformat=`/usr/bin/objformat`
11406 else
11407 case $host_os in
11408 freebsd[23].*) objformat=aout ;;
11409 *) objformat=elf ;;
11410 esac
11411 fi
11412 version_type=freebsd-$objformat
11413 case $version_type in
11414 freebsd-elf*)
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11416 need_version=no
11417 need_lib_prefix=no
11418 ;;
11419 freebsd-*)
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11421 need_version=yes
11422 ;;
11423 esac
11424 shlibpath_var=LD_LIBRARY_PATH
11425 case $host_os in
11426 freebsd2.*)
11427 shlibpath_overrides_runpath=yes
11428 ;;
11429 freebsd3.[01]* | freebsdelf3.[01]*)
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11432 ;;
11433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11435 shlibpath_overrides_runpath=no
11436 hardcode_into_libs=yes
11437 ;;
11438 *) # from 4.6 on, and DragonFly
11439 shlibpath_overrides_runpath=yes
11440 hardcode_into_libs=yes
11441 ;;
11442 esac
11443 ;;
11444
11445 gnu*)
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 hardcode_into_libs=yes
11453 ;;
11454
11455 haiku*)
11456 version_type=linux
11457 need_lib_prefix=no
11458 need_version=no
11459 dynamic_linker="$host_os runtime_loader"
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11465 hardcode_into_libs=yes
11466 ;;
11467
11468 hpux9* | hpux10* | hpux11*)
11469 # Give a soname corresponding to the major version so that dld.sl refuses to
11470 # link against other versions.
11471 version_type=sunos
11472 need_lib_prefix=no
11473 need_version=no
11474 case $host_cpu in
11475 ia64*)
11476 shrext_cmds='.so'
11477 hardcode_into_libs=yes
11478 dynamic_linker="$host_os dld.so"
11479 shlibpath_var=LD_LIBRARY_PATH
11480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 if test "X$HPUX_IA64_MODE" = X32; then
11484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11485 else
11486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11487 fi
11488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11489 ;;
11490 hppa*64*)
11491 shrext_cmds='.sl'
11492 hardcode_into_libs=yes
11493 dynamic_linker="$host_os dld.sl"
11494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500 ;;
11501 *)
11502 shrext_cmds='.sl'
11503 dynamic_linker="$host_os dld.sl"
11504 shlibpath_var=SHLIB_PATH
11505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 ;;
11509 esac
11510 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11511 postinstall_cmds='chmod 555 $lib'
11512 # or fails outright, so override atomically:
11513 install_override_mode=555
11514 ;;
11515
11516 interix[3-9]*)
11517 version_type=linux
11518 need_lib_prefix=no
11519 need_version=no
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 ;;
11527
11528 irix5* | irix6* | nonstopux*)
11529 case $host_os in
11530 nonstopux*) version_type=nonstopux ;;
11531 *)
11532 if test "$lt_cv_prog_gnu_ld" = yes; then
11533 version_type=linux
11534 else
11535 version_type=irix
11536 fi ;;
11537 esac
11538 need_lib_prefix=no
11539 need_version=no
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11542 case $host_os in
11543 irix5* | nonstopux*)
11544 libsuff= shlibsuff=
11545 ;;
11546 *)
11547 case $LD in # libtool.m4 will add one of these switches to LD
11548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11549 libsuff= shlibsuff= libmagic=32-bit;;
11550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11551 libsuff=32 shlibsuff=N32 libmagic=N32;;
11552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11554 *) libsuff= shlibsuff= libmagic=never-match;;
11555 esac
11556 ;;
11557 esac
11558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11559 shlibpath_overrides_runpath=no
11560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11562 hardcode_into_libs=yes
11563 ;;
11564
11565 # No shared lib support for Linux oldld, aout, or coff.
11566 linux*oldld* | linux*aout* | linux*coff*)
11567 dynamic_linker=no
11568 ;;
11569
11570 # This must be Linux ELF.
11571
11572 # uclinux* changes (here and below) have been submitted to the libtool
11573 # project, but have not yet been accepted: they are GCC-local changes
11574 # for the time being. (See
11575 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11576 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11577 version_type=linux
11578 need_lib_prefix=no
11579 need_version=no
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=no
11585
11586 # Some binutils ld are patched to set DT_RUNPATH
11587 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 lt_cv_shlibpath_overrides_runpath=no
11591 save_LDFLAGS=$LDFLAGS
11592 save_libdir=$libdir
11593 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11594 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597
11598 int
11599 main ()
11600 {
11601
11602 ;
11603 return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11608 lt_cv_shlibpath_overrides_runpath=yes
11609 fi
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LDFLAGS=$save_LDFLAGS
11614 libdir=$save_libdir
11615
11616 fi
11617
11618 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11619
11620 # This implies no fast_install, which is unacceptable.
11621 # Some rework will be needed to allow for fast_install
11622 # before this can be enabled.
11623 hardcode_into_libs=yes
11624
11625 # Append ld.so.conf contents to the search path
11626 if test -f /etc/ld.so.conf; then
11627 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' ' '`
11628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11629 fi
11630
11631 # We used to test for /lib/ld.so.1 and disable shared libraries on
11632 # powerpc, because MkLinux only supported shared libraries with the
11633 # GNU dynamic linker. Since this was broken with cross compilers,
11634 # most powerpc-linux boxes support dynamic linking these days and
11635 # people can always --disable-shared, the test was removed, and we
11636 # assume the GNU/Linux dynamic linker is in use.
11637 dynamic_linker='GNU/Linux ld.so'
11638 ;;
11639
11640 netbsd*)
11641 version_type=sunos
11642 need_lib_prefix=no
11643 need_version=no
11644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647 dynamic_linker='NetBSD (a.out) ld.so'
11648 else
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 dynamic_linker='NetBSD ld.elf_so'
11652 fi
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11656 ;;
11657
11658 newsos6)
11659 version_type=linux
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 ;;
11664
11665 *nto* | *qnx*)
11666 version_type=qnx
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11674 dynamic_linker='ldqnx.so'
11675 ;;
11676
11677 openbsd*)
11678 version_type=sunos
11679 sys_lib_dlsearch_path_spec="/usr/lib"
11680 need_lib_prefix=no
11681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11682 case $host_os in
11683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11684 *) need_version=no ;;
11685 esac
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11690 case $host_os in
11691 openbsd2.[89] | openbsd2.[89].*)
11692 shlibpath_overrides_runpath=no
11693 ;;
11694 *)
11695 shlibpath_overrides_runpath=yes
11696 ;;
11697 esac
11698 else
11699 shlibpath_overrides_runpath=yes
11700 fi
11701 ;;
11702
11703 os2*)
11704 libname_spec='$name'
11705 shrext_cmds=".dll"
11706 need_lib_prefix=no
11707 library_names_spec='$libname${shared_ext} $libname.a'
11708 dynamic_linker='OS/2 ld.exe'
11709 shlibpath_var=LIBPATH
11710 ;;
11711
11712 osf3* | osf4* | osf5*)
11713 version_type=osf
11714 need_lib_prefix=no
11715 need_version=no
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11721 ;;
11722
11723 rdos*)
11724 dynamic_linker=no
11725 ;;
11726
11727 solaris*)
11728 version_type=linux
11729 need_lib_prefix=no
11730 need_version=no
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11735 hardcode_into_libs=yes
11736 # ldd complains unless libraries are executable
11737 postinstall_cmds='chmod +x $lib'
11738 ;;
11739
11740 sunos4*)
11741 version_type=sunos
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=yes
11746 if test "$with_gnu_ld" = yes; then
11747 need_lib_prefix=no
11748 fi
11749 need_version=yes
11750 ;;
11751
11752 sysv4 | sysv4.3*)
11753 version_type=linux
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 case $host_vendor in
11758 sni)
11759 shlibpath_overrides_runpath=no
11760 need_lib_prefix=no
11761 runpath_var=LD_RUN_PATH
11762 ;;
11763 siemens)
11764 need_lib_prefix=no
11765 ;;
11766 motorola)
11767 need_lib_prefix=no
11768 need_version=no
11769 shlibpath_overrides_runpath=no
11770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11771 ;;
11772 esac
11773 ;;
11774
11775 sysv4*MP*)
11776 if test -d /usr/nec ;then
11777 version_type=linux
11778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11779 soname_spec='$libname${shared_ext}.$major'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 fi
11782 ;;
11783
11784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11785 version_type=freebsd-elf
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 hardcode_into_libs=yes
11793 if test "$with_gnu_ld" = yes; then
11794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11795 else
11796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11797 case $host_os in
11798 sco3.2v5*)
11799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11800 ;;
11801 esac
11802 fi
11803 sys_lib_dlsearch_path_spec='/usr/lib'
11804 ;;
11805
11806 tpf*)
11807 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11808 version_type=linux
11809 need_lib_prefix=no
11810 need_version=no
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 hardcode_into_libs=yes
11815 ;;
11816
11817 uts4*)
11818 version_type=linux
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 ;;
11823
11824 *)
11825 dynamic_linker=no
11826 ;;
11827 esac
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11829 $as_echo "$dynamic_linker" >&6; }
11830 test "$dynamic_linker" = no && can_build_shared=no
11831
11832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11833 if test "$GCC" = yes; then
11834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11835 fi
11836
11837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11838 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11839 fi
11840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11842 fi
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
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11937 hardcode_action=
11938 if test -n "$hardcode_libdir_flag_spec" ||
11939 test -n "$runpath_var" ||
11940 test "X$hardcode_automatic" = "Xyes" ; then
11941
11942 # We can hardcode non-existent directories.
11943 if test "$hardcode_direct" != no &&
11944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11945 # have to relink, otherwise we might link with an installed library
11946 # when we should be linking with a yet-to-be-installed one
11947 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11948 test "$hardcode_minus_L" != no; then
11949 # Linking always hardcodes the temporary library directory.
11950 hardcode_action=relink
11951 else
11952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11953 hardcode_action=immediate
11954 fi
11955 else
11956 # We cannot hardcode anything, or else we can only hardcode existing
11957 # directories.
11958 hardcode_action=unsupported
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11961 $as_echo "$hardcode_action" >&6; }
11962
11963 if test "$hardcode_action" = relink ||
11964 test "$inherit_rpath" = yes; then
11965 # Fast installation is not supported
11966 enable_fast_install=no
11967 elif test "$shlibpath_overrides_runpath" = yes ||
11968 test "$enable_shared" = no; then
11969 # Fast installation is not necessary
11970 enable_fast_install=needless
11971 fi
11972
11973
11974
11975
11976
11977
11978 if test "x$enable_dlopen" != xyes; then
11979 enable_dlopen=unknown
11980 enable_dlopen_self=unknown
11981 enable_dlopen_self_static=unknown
11982 else
11983 lt_cv_dlopen=no
11984 lt_cv_dlopen_libs=
11985
11986 case $host_os in
11987 beos*)
11988 lt_cv_dlopen="load_add_on"
11989 lt_cv_dlopen_libs=
11990 lt_cv_dlopen_self=yes
11991 ;;
11992
11993 mingw* | pw32* | cegcc*)
11994 lt_cv_dlopen="LoadLibrary"
11995 lt_cv_dlopen_libs=
11996 ;;
11997
11998 cygwin*)
11999 lt_cv_dlopen="dlopen"
12000 lt_cv_dlopen_libs=
12001 ;;
12002
12003 darwin*)
12004 # if libdl is installed we need to link against it
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12006 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12007 if ${ac_cv_lib_dl_dlopen+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-ldl $LIBS"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char dlopen ();
12022 int
12023 main ()
12024 {
12025 return dlopen ();
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 ac_cv_lib_dl_dlopen=yes
12032 else
12033 ac_cv_lib_dl_dlopen=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12041 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12043 else
12044
12045 lt_cv_dlopen="dyld"
12046 lt_cv_dlopen_libs=
12047 lt_cv_dlopen_self=yes
12048
12049 fi
12050
12051 ;;
12052
12053 *)
12054 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12055 if test "x$ac_cv_func_shl_load" = xyes; then :
12056 lt_cv_dlopen="shl_load"
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12059 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12060 if ${ac_cv_lib_dld_shl_load+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-ldld $LIBS"
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 char shl_load ();
12075 int
12076 main ()
12077 {
12078 return shl_load ();
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_lib_dld_shl_load=yes
12085 else
12086 ac_cv_lib_dld_shl_load=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12093 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12094 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12095 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12096 else
12097 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12098 if test "x$ac_cv_func_dlopen" = xyes; then :
12099 lt_cv_dlopen="dlopen"
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12103 if ${ac_cv_lib_dl_dlopen+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-ldl $LIBS"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char dlopen ();
12118 int
12119 main ()
12120 {
12121 return dlopen ();
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127 ac_cv_lib_dl_dlopen=yes
12128 else
12129 ac_cv_lib_dl_dlopen=no
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12134 fi
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12141 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12142 if ${ac_cv_lib_svld_dlopen+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lsvld $LIBS"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12153 #ifdef __cplusplus
12154 extern "C"
12155 #endif
12156 char dlopen ();
12157 int
12158 main ()
12159 {
12160 return dlopen ();
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_lib_svld_dlopen=yes
12167 else
12168 ac_cv_lib_svld_dlopen=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_lib_save_LIBS
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12175 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12176 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12180 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12181 if ${ac_cv_lib_dld_dld_link+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldld $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char dld_link ();
12196 int
12197 main ()
12198 {
12199 return dld_link ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_dld_dld_link=yes
12206 else
12207 ac_cv_lib_dld_dld_link=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12214 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12215 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12216 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12217 fi
12218
12219
12220 fi
12221
12222
12223 fi
12224
12225
12226 fi
12227
12228
12229 fi
12230
12231
12232 fi
12233
12234 ;;
12235 esac
12236
12237 if test "x$lt_cv_dlopen" != xno; then
12238 enable_dlopen=yes
12239 else
12240 enable_dlopen=no
12241 fi
12242
12243 case $lt_cv_dlopen in
12244 dlopen)
12245 save_CPPFLAGS="$CPPFLAGS"
12246 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12247
12248 save_LDFLAGS="$LDFLAGS"
12249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12250
12251 save_LIBS="$LIBS"
12252 LIBS="$lt_cv_dlopen_libs $LIBS"
12253
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12255 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12256 if ${lt_cv_dlopen_self+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test "$cross_compiling" = yes; then :
12260 lt_cv_dlopen_self=cross
12261 else
12262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12263 lt_status=$lt_dlunknown
12264 cat > conftest.$ac_ext <<_LT_EOF
12265 #line 12265 "configure"
12266 #include "confdefs.h"
12267
12268 #if HAVE_DLFCN_H
12269 #include <dlfcn.h>
12270 #endif
12271
12272 #include <stdio.h>
12273
12274 #ifdef RTLD_GLOBAL
12275 # define LT_DLGLOBAL RTLD_GLOBAL
12276 #else
12277 # ifdef DL_GLOBAL
12278 # define LT_DLGLOBAL DL_GLOBAL
12279 # else
12280 # define LT_DLGLOBAL 0
12281 # endif
12282 #endif
12283
12284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12285 find out it does not work in some platform. */
12286 #ifndef LT_DLLAZY_OR_NOW
12287 # ifdef RTLD_LAZY
12288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12289 # else
12290 # ifdef DL_LAZY
12291 # define LT_DLLAZY_OR_NOW DL_LAZY
12292 # else
12293 # ifdef RTLD_NOW
12294 # define LT_DLLAZY_OR_NOW RTLD_NOW
12295 # else
12296 # ifdef DL_NOW
12297 # define LT_DLLAZY_OR_NOW DL_NOW
12298 # else
12299 # define LT_DLLAZY_OR_NOW 0
12300 # endif
12301 # endif
12302 # endif
12303 # endif
12304 #endif
12305
12306 /* When -fvisbility=hidden is used, assume the code has been annotated
12307 correspondingly for the symbols needed. */
12308 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12309 void fnord () __attribute__((visibility("default")));
12310 #endif
12311
12312 void fnord () { int i=42; }
12313 int main ()
12314 {
12315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12316 int status = $lt_dlunknown;
12317
12318 if (self)
12319 {
12320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12321 else
12322 {
12323 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12324 else puts (dlerror ());
12325 }
12326 /* dlclose (self); */
12327 }
12328 else
12329 puts (dlerror ());
12330
12331 return status;
12332 }
12333 _LT_EOF
12334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12335 (eval $ac_link) 2>&5
12336 ac_status=$?
12337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12338 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12339 (./conftest; exit; ) >&5 2>/dev/null
12340 lt_status=$?
12341 case x$lt_status in
12342 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12343 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12344 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12345 esac
12346 else :
12347 # compilation failed
12348 lt_cv_dlopen_self=no
12349 fi
12350 fi
12351 rm -fr conftest*
12352
12353
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12356 $as_echo "$lt_cv_dlopen_self" >&6; }
12357
12358 if test "x$lt_cv_dlopen_self" = xyes; then
12359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12361 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12362 if ${lt_cv_dlopen_self_static+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 if test "$cross_compiling" = yes; then :
12366 lt_cv_dlopen_self_static=cross
12367 else
12368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369 lt_status=$lt_dlunknown
12370 cat > conftest.$ac_ext <<_LT_EOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12373
12374 #if HAVE_DLFCN_H
12375 #include <dlfcn.h>
12376 #endif
12377
12378 #include <stdio.h>
12379
12380 #ifdef RTLD_GLOBAL
12381 # define LT_DLGLOBAL RTLD_GLOBAL
12382 #else
12383 # ifdef DL_GLOBAL
12384 # define LT_DLGLOBAL DL_GLOBAL
12385 # else
12386 # define LT_DLGLOBAL 0
12387 # endif
12388 #endif
12389
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391 find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12393 # ifdef RTLD_LAZY
12394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12395 # else
12396 # ifdef DL_LAZY
12397 # define LT_DLLAZY_OR_NOW DL_LAZY
12398 # else
12399 # ifdef RTLD_NOW
12400 # define LT_DLLAZY_OR_NOW RTLD_NOW
12401 # else
12402 # ifdef DL_NOW
12403 # define LT_DLLAZY_OR_NOW DL_NOW
12404 # else
12405 # define LT_DLLAZY_OR_NOW 0
12406 # endif
12407 # endif
12408 # endif
12409 # endif
12410 #endif
12411
12412 /* When -fvisbility=hidden is used, assume the code has been annotated
12413 correspondingly for the symbols needed. */
12414 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12415 void fnord () __attribute__((visibility("default")));
12416 #endif
12417
12418 void fnord () { int i=42; }
12419 int main ()
12420 {
12421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12422 int status = $lt_dlunknown;
12423
12424 if (self)
12425 {
12426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12427 else
12428 {
12429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12430 else puts (dlerror ());
12431 }
12432 /* dlclose (self); */
12433 }
12434 else
12435 puts (dlerror ());
12436
12437 return status;
12438 }
12439 _LT_EOF
12440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12445 (./conftest; exit; ) >&5 2>/dev/null
12446 lt_status=$?
12447 case x$lt_status in
12448 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12449 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12450 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12451 esac
12452 else :
12453 # compilation failed
12454 lt_cv_dlopen_self_static=no
12455 fi
12456 fi
12457 rm -fr conftest*
12458
12459
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12462 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12463 fi
12464
12465 CPPFLAGS="$save_CPPFLAGS"
12466 LDFLAGS="$save_LDFLAGS"
12467 LIBS="$save_LIBS"
12468 ;;
12469 esac
12470
12471 case $lt_cv_dlopen_self in
12472 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12473 *) enable_dlopen_self=unknown ;;
12474 esac
12475
12476 case $lt_cv_dlopen_self_static in
12477 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12478 *) enable_dlopen_self_static=unknown ;;
12479 esac
12480 fi
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498 striplib=
12499 old_striplib=
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12501 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12502 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12503 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12504 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12506 $as_echo "yes" >&6; }
12507 else
12508 # FIXME - insert some real tests, host_os isn't really good enough
12509 case $host_os in
12510 darwin*)
12511 if test -n "$STRIP" ; then
12512 striplib="$STRIP -x"
12513 old_striplib="$STRIP -S"
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12515 $as_echo "yes" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520 ;;
12521 *)
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 ;;
12525 esac
12526 fi
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539 # Report which library types will actually be built
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12541 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12543 $as_echo "$can_build_shared" >&6; }
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12546 $as_echo_n "checking whether to build shared libraries... " >&6; }
12547 test "$can_build_shared" = "no" && enable_shared=no
12548
12549 # On AIX, shared libraries and static libraries use the same namespace, and
12550 # are all built from PIC.
12551 case $host_os in
12552 aix3*)
12553 test "$enable_shared" = yes && enable_static=no
12554 if test -n "$RANLIB"; then
12555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12556 postinstall_cmds='$RANLIB $lib'
12557 fi
12558 ;;
12559
12560 aix[4-9]*)
12561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12562 test "$enable_shared" = yes && enable_static=no
12563 fi
12564 ;;
12565 esac
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12567 $as_echo "$enable_shared" >&6; }
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12570 $as_echo_n "checking whether to build static libraries... " >&6; }
12571 # Make sure either enable_shared or enable_static is yes.
12572 test "$enable_shared" = yes || enable_static=yes
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12574 $as_echo "$enable_static" >&6; }
12575
12576
12577
12578
12579 fi
12580 ac_ext=c
12581 ac_cpp='$CPP $CPPFLAGS'
12582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12585
12586 CC="$lt_save_CC"
12587
12588 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12589 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12590 (test "X$CXX" != "Xg++"))) ; then
12591 ac_ext=cpp
12592 ac_cpp='$CXXCPP $CPPFLAGS'
12593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12597 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12598 if test -z "$CXXCPP"; then
12599 if ${ac_cv_prog_CXXCPP+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 # Double quotes because CXXCPP needs to be expanded
12603 for CXXCPP in "$CXX -E" "/lib/cpp"
12604 do
12605 ac_preproc_ok=false
12606 for ac_cxx_preproc_warn_flag in '' yes
12607 do
12608 # Use a header file that comes with gcc, so configuring glibc
12609 # with a fresh cross-compiler works.
12610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12611 # <limits.h> exists even on freestanding compilers.
12612 # On the NeXT, cc -E runs the code through the compiler's parser,
12613 # not just through cpp. "Syntax error" is here to catch this case.
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 #ifdef __STDC__
12617 # include <limits.h>
12618 #else
12619 # include <assert.h>
12620 #endif
12621 Syntax error
12622 _ACEOF
12623 if ac_fn_cxx_try_cpp "$LINENO"; then :
12624
12625 else
12626 # Broken: fails on valid input.
12627 continue
12628 fi
12629 rm -f conftest.err conftest.i conftest.$ac_ext
12630
12631 # OK, works on sane cases. Now check whether nonexistent headers
12632 # can be detected and how.
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635 #include <ac_nonexistent.h>
12636 _ACEOF
12637 if ac_fn_cxx_try_cpp "$LINENO"; then :
12638 # Broken: success on invalid input.
12639 continue
12640 else
12641 # Passes both tests.
12642 ac_preproc_ok=:
12643 break
12644 fi
12645 rm -f conftest.err conftest.i conftest.$ac_ext
12646
12647 done
12648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12649 rm -f conftest.i conftest.err conftest.$ac_ext
12650 if $ac_preproc_ok; then :
12651 break
12652 fi
12653
12654 done
12655 ac_cv_prog_CXXCPP=$CXXCPP
12656
12657 fi
12658 CXXCPP=$ac_cv_prog_CXXCPP
12659 else
12660 ac_cv_prog_CXXCPP=$CXXCPP
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12663 $as_echo "$CXXCPP" >&6; }
12664 ac_preproc_ok=false
12665 for ac_cxx_preproc_warn_flag in '' yes
12666 do
12667 # Use a header file that comes with gcc, so configuring glibc
12668 # with a fresh cross-compiler works.
12669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12670 # <limits.h> exists even on freestanding compilers.
12671 # On the NeXT, cc -E runs the code through the compiler's parser,
12672 # not just through cpp. "Syntax error" is here to catch this case.
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12680 Syntax error
12681 _ACEOF
12682 if ac_fn_cxx_try_cpp "$LINENO"; then :
12683
12684 else
12685 # Broken: fails on valid input.
12686 continue
12687 fi
12688 rm -f conftest.err conftest.i conftest.$ac_ext
12689
12690 # OK, works on sane cases. Now check whether nonexistent headers
12691 # can be detected and how.
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12694 #include <ac_nonexistent.h>
12695 _ACEOF
12696 if ac_fn_cxx_try_cpp "$LINENO"; then :
12697 # Broken: success on invalid input.
12698 continue
12699 else
12700 # Passes both tests.
12701 ac_preproc_ok=:
12702 break
12703 fi
12704 rm -f conftest.err conftest.i conftest.$ac_ext
12705
12706 done
12707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12708 rm -f conftest.i conftest.err conftest.$ac_ext
12709 if $ac_preproc_ok; then :
12710
12711 else
12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12714 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12715 See \`config.log' for more details" "$LINENO" 5; }
12716 fi
12717
12718 ac_ext=c
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12723
12724 else
12725 _lt_caught_CXX_error=yes
12726 fi
12727
12728 ac_ext=cpp
12729 ac_cpp='$CXXCPP $CPPFLAGS'
12730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12733
12734 archive_cmds_need_lc_CXX=no
12735 allow_undefined_flag_CXX=
12736 always_export_symbols_CXX=no
12737 archive_expsym_cmds_CXX=
12738 compiler_needs_object_CXX=no
12739 export_dynamic_flag_spec_CXX=
12740 hardcode_direct_CXX=no
12741 hardcode_direct_absolute_CXX=no
12742 hardcode_libdir_flag_spec_CXX=
12743 hardcode_libdir_flag_spec_ld_CXX=
12744 hardcode_libdir_separator_CXX=
12745 hardcode_minus_L_CXX=no
12746 hardcode_shlibpath_var_CXX=unsupported
12747 hardcode_automatic_CXX=no
12748 inherit_rpath_CXX=no
12749 module_cmds_CXX=
12750 module_expsym_cmds_CXX=
12751 link_all_deplibs_CXX=unknown
12752 old_archive_cmds_CXX=$old_archive_cmds
12753 reload_flag_CXX=$reload_flag
12754 reload_cmds_CXX=$reload_cmds
12755 no_undefined_flag_CXX=
12756 whole_archive_flag_spec_CXX=
12757 enable_shared_with_static_runtimes_CXX=no
12758
12759 # Source file extension for C++ test sources.
12760 ac_ext=cpp
12761
12762 # Object file extension for compiled C++ test sources.
12763 objext=o
12764 objext_CXX=$objext
12765
12766 # No sense in running all these tests if we already determined that
12767 # the CXX compiler isn't working. Some variables (like enable_shared)
12768 # are currently assumed to apply to all compilers on this platform,
12769 # and will be corrupted by setting them based on a non-working compiler.
12770 if test "$_lt_caught_CXX_error" != yes; then
12771 # Code to be used in simple compile tests
12772 lt_simple_compile_test_code="int some_variable = 0;"
12773
12774 # Code to be used in simple link tests
12775 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12776
12777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12778
12779
12780
12781
12782
12783
12784 # If no C compiler was specified, use CC.
12785 LTCC=${LTCC-"$CC"}
12786
12787 # If no C compiler flags were specified, use CFLAGS.
12788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12789
12790 # Allow CC to be a program name with arguments.
12791 compiler=$CC
12792
12793
12794 # save warnings/boilerplate of simple test code
12795 ac_outfile=conftest.$ac_objext
12796 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12797 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12798 _lt_compiler_boilerplate=`cat conftest.err`
12799 $RM conftest*
12800
12801 ac_outfile=conftest.$ac_objext
12802 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12803 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12804 _lt_linker_boilerplate=`cat conftest.err`
12805 $RM -r conftest*
12806
12807
12808 # Allow CC to be a program name with arguments.
12809 lt_save_CC=$CC
12810 lt_save_LD=$LD
12811 lt_save_GCC=$GCC
12812 GCC=$GXX
12813 lt_save_with_gnu_ld=$with_gnu_ld
12814 lt_save_path_LD=$lt_cv_path_LD
12815 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12816 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12817 else
12818 $as_unset lt_cv_prog_gnu_ld
12819 fi
12820 if test -n "${lt_cv_path_LDCXX+set}"; then
12821 lt_cv_path_LD=$lt_cv_path_LDCXX
12822 else
12823 $as_unset lt_cv_path_LD
12824 fi
12825 test -z "${LDCXX+set}" || LD=$LDCXX
12826 CC=${CXX-"c++"}
12827 compiler=$CC
12828 compiler_CXX=$CC
12829 for cc_temp in $compiler""; do
12830 case $cc_temp in
12831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12833 \-*) ;;
12834 *) break;;
12835 esac
12836 done
12837 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12838
12839
12840 if test -n "$compiler"; then
12841 # We don't want -fno-exception when compiling C++ code, so set the
12842 # no_builtin_flag separately
12843 if test "$GXX" = yes; then
12844 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12845 else
12846 lt_prog_compiler_no_builtin_flag_CXX=
12847 fi
12848
12849 if test "$GXX" = yes; then
12850 # Set up default GNU C++ configuration
12851
12852
12853
12854 # Check whether --with-gnu-ld was given.
12855 if test "${with_gnu_ld+set}" = set; then :
12856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12857 else
12858 with_gnu_ld=no
12859 fi
12860
12861 ac_prog=ld
12862 if test "$GCC" = yes; then
12863 # Check if gcc -print-prog-name=ld gives a path.
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12865 $as_echo_n "checking for ld used by $CC... " >&6; }
12866 case $host in
12867 *-*-mingw*)
12868 # gcc leaves a trailing carriage return which upsets mingw
12869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12870 *)
12871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12872 esac
12873 case $ac_prog in
12874 # Accept absolute paths.
12875 [\\/]* | ?:[\\/]*)
12876 re_direlt='/[^/][^/]*/\.\./'
12877 # Canonicalize the pathname of ld
12878 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12879 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12880 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12881 done
12882 test -z "$LD" && LD="$ac_prog"
12883 ;;
12884 "")
12885 # If it fails, then pretend we aren't using GCC.
12886 ac_prog=ld
12887 ;;
12888 *)
12889 # If it is relative, then search for the first ld in PATH.
12890 with_gnu_ld=unknown
12891 ;;
12892 esac
12893 elif test "$with_gnu_ld" = yes; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12895 $as_echo_n "checking for GNU ld... " >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12898 $as_echo_n "checking for non-GNU ld... " >&6; }
12899 fi
12900 if ${lt_cv_path_LD+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -z "$LD"; then
12904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12905 for ac_dir in $PATH; do
12906 IFS="$lt_save_ifs"
12907 test -z "$ac_dir" && ac_dir=.
12908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12909 lt_cv_path_LD="$ac_dir/$ac_prog"
12910 # Check to see if the program is GNU ld. I'd rather use --version,
12911 # but apparently some variants of GNU ld only accept -v.
12912 # Break only if it was the GNU/non-GNU ld that we prefer.
12913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12914 *GNU* | *'with BFD'*)
12915 test "$with_gnu_ld" != no && break
12916 ;;
12917 *)
12918 test "$with_gnu_ld" != yes && break
12919 ;;
12920 esac
12921 fi
12922 done
12923 IFS="$lt_save_ifs"
12924 else
12925 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12926 fi
12927 fi
12928
12929 LD="$lt_cv_path_LD"
12930 if test -n "$LD"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12932 $as_echo "$LD" >&6; }
12933 else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12936 fi
12937 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12939 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12940 if ${lt_cv_prog_gnu_ld+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12944 case `$LD -v 2>&1 </dev/null` in
12945 *GNU* | *'with BFD'*)
12946 lt_cv_prog_gnu_ld=yes
12947 ;;
12948 *)
12949 lt_cv_prog_gnu_ld=no
12950 ;;
12951 esac
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12954 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12955 with_gnu_ld=$lt_cv_prog_gnu_ld
12956
12957
12958
12959
12960
12961
12962
12963 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12964 # archiving commands below assume that GNU ld is being used.
12965 if test "$with_gnu_ld" = yes; then
12966 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 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'
12968
12969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12971
12972 # If archive_cmds runs LD, not CC, wlarc should be empty
12973 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12974 # investigate it a little bit more. (MM)
12975 wlarc='${wl}'
12976
12977 # ancient GNU ld didn't support --whole-archive et. al.
12978 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12979 $GREP 'no-whole-archive' > /dev/null; then
12980 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12981 else
12982 whole_archive_flag_spec_CXX=
12983 fi
12984 else
12985 with_gnu_ld=no
12986 wlarc=
12987
12988 # A generic and very simple default shared library creation
12989 # command for GNU C++ for the case where it uses the native
12990 # linker, instead of GNU ld. If possible, this setting should
12991 # overridden to take advantage of the native linker features on
12992 # the platform it is being used on.
12993 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12994 fi
12995
12996 # Commands to make compiler produce verbose output that lists
12997 # what "hidden" libraries, object files and flags are used when
12998 # linking a shared library.
12999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13000
13001 else
13002 GXX=no
13003 with_gnu_ld=no
13004 wlarc=
13005 fi
13006
13007 # PORTME: fill in a description of your system's C++ link characteristics
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13009 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13010 ld_shlibs_CXX=yes
13011 case $host_os in
13012 aix3*)
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13015 ;;
13016 aix[4-9]*)
13017 if test "$host_cpu" = ia64; then
13018 # On IA64, the linker does run time linking by default, so we don't
13019 # have to do anything special.
13020 aix_use_runtimelinking=no
13021 exp_sym_flag='-Bexport'
13022 no_entry_flag=""
13023 else
13024 aix_use_runtimelinking=no
13025
13026 # Test if we are trying to use run time linking or normal
13027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13028 # need to do runtime linking.
13029 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13030 for ld_flag in $LDFLAGS; do
13031 case $ld_flag in
13032 *-brtl*)
13033 aix_use_runtimelinking=yes
13034 break
13035 ;;
13036 esac
13037 done
13038 ;;
13039 esac
13040
13041 exp_sym_flag='-bexport'
13042 no_entry_flag='-bnoentry'
13043 fi
13044
13045 # When large executables or shared objects are built, AIX ld can
13046 # have problems creating the table of contents. If linking a library
13047 # or program results in "error TOC overflow" add -mminimal-toc to
13048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13050
13051 archive_cmds_CXX=''
13052 hardcode_direct_CXX=yes
13053 hardcode_direct_absolute_CXX=yes
13054 hardcode_libdir_separator_CXX=':'
13055 link_all_deplibs_CXX=yes
13056 file_list_spec_CXX='${wl}-f,'
13057
13058 if test "$GXX" = yes; then
13059 case $host_os in aix4.[012]|aix4.[012].*)
13060 # We only want to do this on AIX 4.2 and lower, the check
13061 # below for broken collect2 doesn't work under 4.3+
13062 collect2name=`${CC} -print-prog-name=collect2`
13063 if test -f "$collect2name" &&
13064 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13065 then
13066 # We have reworked collect2
13067 :
13068 else
13069 # We have old collect2
13070 hardcode_direct_CXX=unsupported
13071 # It fails to find uninstalled libraries when the uninstalled
13072 # path is not listed in the libpath. Setting hardcode_minus_L
13073 # to unsupported forces relinking
13074 hardcode_minus_L_CXX=yes
13075 hardcode_libdir_flag_spec_CXX='-L$libdir'
13076 hardcode_libdir_separator_CXX=
13077 fi
13078 esac
13079 shared_flag='-shared'
13080 if test "$aix_use_runtimelinking" = yes; then
13081 shared_flag="$shared_flag "'${wl}-G'
13082 fi
13083 else
13084 # not using gcc
13085 if test "$host_cpu" = ia64; then
13086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13087 # chokes on -Wl,-G. The following line is correct:
13088 shared_flag='-G'
13089 else
13090 if test "$aix_use_runtimelinking" = yes; then
13091 shared_flag='${wl}-G'
13092 else
13093 shared_flag='${wl}-bM:SRE'
13094 fi
13095 fi
13096 fi
13097
13098 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13099 # It seems that -bexpall does not export symbols beginning with
13100 # underscore (_), so it is better to generate a list of symbols to
13101 # export.
13102 always_export_symbols_CXX=yes
13103 if test "$aix_use_runtimelinking" = yes; then
13104 # Warning - without using the other runtime loading flags (-brtl),
13105 # -berok will link without error, but may produce a broken library.
13106 allow_undefined_flag_CXX='-berok'
13107 # Determine the default libpath from the value encoded in an empty
13108 # executable.
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111
13112 int
13113 main ()
13114 {
13115
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 if ac_fn_cxx_try_link "$LINENO"; then :
13121
13122 lt_aix_libpath_sed='
13123 /Import File Strings/,/^$/ {
13124 /^0/ {
13125 s/^0 *\(.*\)$/\1/
13126 p
13127 }
13128 }'
13129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13130 # Check for a 64-bit object if we didn't find anything.
13131 if test -z "$aix_libpath"; then
13132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133 fi
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138
13139 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13140
13141 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"
13142 else
13143 if test "$host_cpu" = ia64; then
13144 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13145 allow_undefined_flag_CXX="-z nodefs"
13146 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"
13147 else
13148 # Determine the default libpath from the value encoded in an
13149 # empty executable.
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 int
13154 main ()
13155 {
13156
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_cxx_try_link "$LINENO"; then :
13162
13163 lt_aix_libpath_sed='
13164 /Import File Strings/,/^$/ {
13165 /^0/ {
13166 s/^0 *\(.*\)$/\1/
13167 p
13168 }
13169 }'
13170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13171 # Check for a 64-bit object if we didn't find anything.
13172 if test -z "$aix_libpath"; then
13173 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13174 fi
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13179
13180 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13181 # Warning - without using the other run time loading flags,
13182 # -berok will link without error, but may produce a broken library.
13183 no_undefined_flag_CXX=' ${wl}-bernotok'
13184 allow_undefined_flag_CXX=' ${wl}-berok'
13185 if test "$with_gnu_ld" = yes; then
13186 # We only use this code for GNU lds that support --whole-archive.
13187 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13188 else
13189 # Exported symbols can be pulled into shared objects from archives
13190 whole_archive_flag_spec_CXX='$convenience'
13191 fi
13192 archive_cmds_need_lc_CXX=yes
13193 # This is similar to how AIX traditionally builds its shared
13194 # libraries.
13195 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'
13196 fi
13197 fi
13198 ;;
13199
13200 beos*)
13201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13202 allow_undefined_flag_CXX=unsupported
13203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13204 # support --undefined. This deserves some investigation. FIXME
13205 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206 else
13207 ld_shlibs_CXX=no
13208 fi
13209 ;;
13210
13211 chorus*)
13212 case $cc_basename in
13213 *)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 esac
13218 ;;
13219
13220 cygwin* | mingw* | pw32* | cegcc*)
13221 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13222 # as there is no search path for DLLs.
13223 hardcode_libdir_flag_spec_CXX='-L$libdir'
13224 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13225 allow_undefined_flag_CXX=unsupported
13226 always_export_symbols_CXX=no
13227 enable_shared_with_static_runtimes_CXX=yes
13228
13229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13230 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'
13231 # If the export-symbols file already is a .def file (1st line
13232 # is EXPORTS), use it as is; otherwise, prepend...
13233 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13234 cp $export_symbols $output_objdir/$soname.def;
13235 else
13236 echo EXPORTS > $output_objdir/$soname.def;
13237 cat $export_symbols >> $output_objdir/$soname.def;
13238 fi~
13239 $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'
13240 else
13241 ld_shlibs_CXX=no
13242 fi
13243 ;;
13244 darwin* | rhapsody*)
13245
13246
13247 archive_cmds_need_lc_CXX=no
13248 hardcode_direct_CXX=no
13249 hardcode_automatic_CXX=yes
13250 hardcode_shlibpath_var_CXX=unsupported
13251 if test "$lt_cv_ld_force_load" = "yes"; then
13252 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\"`'
13253 else
13254 whole_archive_flag_spec_CXX=''
13255 fi
13256 link_all_deplibs_CXX=yes
13257 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13258 case $cc_basename in
13259 ifort*) _lt_dar_can_shared=yes ;;
13260 *) _lt_dar_can_shared=$GCC ;;
13261 esac
13262 if test "$_lt_dar_can_shared" = "yes"; then
13263 output_verbose_link_cmd=func_echo_all
13264 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}"
13265 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13266 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}"
13267 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}"
13268 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13269 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}"
13270 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}"
13271 fi
13272
13273 else
13274 ld_shlibs_CXX=no
13275 fi
13276
13277 ;;
13278
13279 dgux*)
13280 case $cc_basename in
13281 ec++*)
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13284 ;;
13285 ghcx*)
13286 # Green Hills C++ Compiler
13287 # FIXME: insert proper C++ library support
13288 ld_shlibs_CXX=no
13289 ;;
13290 *)
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13293 ;;
13294 esac
13295 ;;
13296
13297 freebsd2.*)
13298 # C++ shared libraries reported to be fairly broken before
13299 # switch to ELF
13300 ld_shlibs_CXX=no
13301 ;;
13302
13303 freebsd-elf*)
13304 archive_cmds_need_lc_CXX=no
13305 ;;
13306
13307 freebsd* | dragonfly*)
13308 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13309 # conventions
13310 ld_shlibs_CXX=yes
13311 ;;
13312
13313 gnu*)
13314 ;;
13315
13316 haiku*)
13317 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 link_all_deplibs_CXX=yes
13319 ;;
13320
13321 hpux9*)
13322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13323 hardcode_libdir_separator_CXX=:
13324 export_dynamic_flag_spec_CXX='${wl}-E'
13325 hardcode_direct_CXX=yes
13326 hardcode_minus_L_CXX=yes # Not in the search PATH,
13327 # but as the default
13328 # location of the library.
13329
13330 case $cc_basename in
13331 CC*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335 aCC*)
13336 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'
13337 # Commands to make compiler produce verbose output that lists
13338 # what "hidden" libraries, object files and flags are used when
13339 # linking a shared library.
13340 #
13341 # There doesn't appear to be a way to prevent this compiler from
13342 # explicitly linking system object files so we need to strip them
13343 # from the output so that they don't get included in the library
13344 # dependencies.
13345 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"'
13346 ;;
13347 *)
13348 if test "$GXX" = yes; then
13349 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'
13350 else
13351 # FIXME: insert proper C++ library support
13352 ld_shlibs_CXX=no
13353 fi
13354 ;;
13355 esac
13356 ;;
13357
13358 hpux10*|hpux11*)
13359 if test $with_gnu_ld = no; then
13360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13361 hardcode_libdir_separator_CXX=:
13362
13363 case $host_cpu in
13364 hppa*64*|ia64*)
13365 ;;
13366 *)
13367 export_dynamic_flag_spec_CXX='${wl}-E'
13368 ;;
13369 esac
13370 fi
13371 case $host_cpu in
13372 hppa*64*|ia64*)
13373 hardcode_direct_CXX=no
13374 hardcode_shlibpath_var_CXX=no
13375 ;;
13376 *)
13377 hardcode_direct_CXX=yes
13378 hardcode_direct_absolute_CXX=yes
13379 hardcode_minus_L_CXX=yes # Not in the search PATH,
13380 # but as the default
13381 # location of the library.
13382 ;;
13383 esac
13384
13385 case $cc_basename in
13386 CC*)
13387 # FIXME: insert proper C++ library support
13388 ld_shlibs_CXX=no
13389 ;;
13390 aCC*)
13391 case $host_cpu in
13392 hppa*64*)
13393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13394 ;;
13395 ia64*)
13396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13397 ;;
13398 *)
13399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400 ;;
13401 esac
13402 # Commands to make compiler produce verbose output that lists
13403 # what "hidden" libraries, object files and flags are used when
13404 # linking a shared library.
13405 #
13406 # There doesn't appear to be a way to prevent this compiler from
13407 # explicitly linking system object files so we need to strip them
13408 # from the output so that they don't get included in the library
13409 # dependencies.
13410 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"'
13411 ;;
13412 *)
13413 if test "$GXX" = yes; then
13414 if test $with_gnu_ld = no; then
13415 case $host_cpu in
13416 hppa*64*)
13417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418 ;;
13419 ia64*)
13420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13421 ;;
13422 *)
13423 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'
13424 ;;
13425 esac
13426 fi
13427 else
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13430 fi
13431 ;;
13432 esac
13433 ;;
13434
13435 interix[3-9]*)
13436 hardcode_direct_CXX=no
13437 hardcode_shlibpath_var_CXX=no
13438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13439 export_dynamic_flag_spec_CXX='${wl}-E'
13440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13441 # Instead, shared libraries are loaded at an image base (0x10000000 by
13442 # default) and relocated if they conflict, which is a slow very memory
13443 # consuming and fragmenting process. To avoid this, we pick a random,
13444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13445 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13446 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'
13447 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'
13448 ;;
13449 irix5* | irix6*)
13450 case $cc_basename in
13451 CC*)
13452 # SGI C++
13453 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'
13454
13455 # Archives containing C++ object files must be created using
13456 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13457 # necessary to make sure instantiated templates are included
13458 # in the archive.
13459 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13460 ;;
13461 *)
13462 if test "$GXX" = yes; then
13463 if test "$with_gnu_ld" = no; then
13464 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'
13465 else
13466 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'
13467 fi
13468 fi
13469 link_all_deplibs_CXX=yes
13470 ;;
13471 esac
13472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13473 hardcode_libdir_separator_CXX=:
13474 inherit_rpath_CXX=yes
13475 ;;
13476
13477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13478 case $cc_basename in
13479 KCC*)
13480 # Kuck and Associates, Inc. (KAI) C++ Compiler
13481
13482 # KCC will only create a shared library if the output file
13483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13484 # to its proper name (with version) after linking.
13485 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'
13486 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'
13487 # Commands to make compiler produce verbose output that lists
13488 # what "hidden" libraries, object files and flags are used when
13489 # linking a shared library.
13490 #
13491 # There doesn't appear to be a way to prevent this compiler from
13492 # explicitly linking system object files so we need to strip them
13493 # from the output so that they don't get included in the library
13494 # dependencies.
13495 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"'
13496
13497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13499
13500 # Archives containing C++ object files must be created using
13501 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13502 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13503 ;;
13504 icpc* | ecpc* )
13505 # Intel C++
13506 with_gnu_ld=yes
13507 # version 8.0 and above of icpc choke on multiply defined symbols
13508 # if we add $predep_objects and $postdep_objects, however 7.1 and
13509 # earlier do not add the objects themselves.
13510 case `$CC -V 2>&1` in
13511 *"Version 7."*)
13512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513 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'
13514 ;;
13515 *) # Version 8.0 or newer
13516 tmp_idyn=
13517 case $host_cpu in
13518 ia64*) tmp_idyn=' -i_dynamic';;
13519 esac
13520 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13521 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'
13522 ;;
13523 esac
13524 archive_cmds_need_lc_CXX=no
13525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13527 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13528 ;;
13529 pgCC* | pgcpp*)
13530 # Portland Group C++ compiler
13531 case `$CC -V` in
13532 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13533 prelink_cmds_CXX='tpldir=Template.dir~
13534 rm -rf $tpldir~
13535 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13536 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13537 old_archive_cmds_CXX='tpldir=Template.dir~
13538 rm -rf $tpldir~
13539 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13540 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13541 $RANLIB $oldlib'
13542 archive_cmds_CXX='tpldir=Template.dir~
13543 rm -rf $tpldir~
13544 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13545 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13546 archive_expsym_cmds_CXX='tpldir=Template.dir~
13547 rm -rf $tpldir~
13548 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13549 $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'
13550 ;;
13551 *) # Version 6 and above use weak symbols
13552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13553 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'
13554 ;;
13555 esac
13556
13557 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13558 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13559 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'
13560 ;;
13561 cxx*)
13562 # Compaq C++
13563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564 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'
13565
13566 runpath_var=LD_RUN_PATH
13567 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13568 hardcode_libdir_separator_CXX=:
13569
13570 # Commands to make compiler produce verbose output that lists
13571 # what "hidden" libraries, object files and flags are used when
13572 # linking a shared library.
13573 #
13574 # There doesn't appear to be a way to prevent this compiler from
13575 # explicitly linking system object files so we need to strip them
13576 # from the output so that they don't get included in the library
13577 # dependencies.
13578 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'
13579 ;;
13580 xl* | mpixl* | bgxl*)
13581 # IBM XL 8.0 on PPC, with GNU ld
13582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13584 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13585 if test "x$supports_anon_versioning" = xyes; then
13586 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13588 echo "local: *; };" >> $output_objdir/$libname.ver~
13589 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13590 fi
13591 ;;
13592 *)
13593 case `$CC -V 2>&1 | sed 5q` in
13594 *Sun\ C*)
13595 # Sun C++ 5.9
13596 no_undefined_flag_CXX=' -zdefs'
13597 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13598 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'
13599 hardcode_libdir_flag_spec_CXX='-R$libdir'
13600 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'
13601 compiler_needs_object_CXX=yes
13602
13603 # Not sure whether something based on
13604 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13605 # would be better.
13606 output_verbose_link_cmd='func_echo_all'
13607
13608 # Archives containing C++ object files must be created using
13609 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13610 # necessary to make sure instantiated templates are included
13611 # in the archive.
13612 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13613 ;;
13614 esac
13615 ;;
13616 esac
13617 ;;
13618
13619 lynxos*)
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 ;;
13623
13624 m88k*)
13625 # FIXME: insert proper C++ library support
13626 ld_shlibs_CXX=no
13627 ;;
13628
13629 mvs*)
13630 case $cc_basename in
13631 cxx*)
13632 # FIXME: insert proper C++ library support
13633 ld_shlibs_CXX=no
13634 ;;
13635 *)
13636 # FIXME: insert proper C++ library support
13637 ld_shlibs_CXX=no
13638 ;;
13639 esac
13640 ;;
13641
13642 netbsd*)
13643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13644 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13645 wlarc=
13646 hardcode_libdir_flag_spec_CXX='-R$libdir'
13647 hardcode_direct_CXX=yes
13648 hardcode_shlibpath_var_CXX=no
13649 fi
13650 # Workaround some broken pre-1.5 toolchains
13651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13652 ;;
13653
13654 *nto* | *qnx*)
13655 ld_shlibs_CXX=yes
13656 ;;
13657
13658 openbsd2*)
13659 # C++ shared libraries are fairly broken
13660 ld_shlibs_CXX=no
13661 ;;
13662
13663 openbsd*)
13664 if test -f /usr/libexec/ld.so; then
13665 hardcode_direct_CXX=yes
13666 hardcode_shlibpath_var_CXX=no
13667 hardcode_direct_absolute_CXX=yes
13668 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13671 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13672 export_dynamic_flag_spec_CXX='${wl}-E'
13673 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13674 fi
13675 output_verbose_link_cmd=func_echo_all
13676 else
13677 ld_shlibs_CXX=no
13678 fi
13679 ;;
13680
13681 osf3* | osf4* | osf5*)
13682 case $cc_basename in
13683 KCC*)
13684 # Kuck and Associates, Inc. (KAI) C++ Compiler
13685
13686 # KCC will only create a shared library if the output file
13687 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13688 # to its proper name (with version) after linking.
13689 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'
13690
13691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13692 hardcode_libdir_separator_CXX=:
13693
13694 # Archives containing C++ object files must be created using
13695 # the KAI C++ compiler.
13696 case $host in
13697 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13698 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13699 esac
13700 ;;
13701 RCC*)
13702 # Rational C++ 2.4.1
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13705 ;;
13706 cxx*)
13707 case $host in
13708 osf3*)
13709 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13710 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'
13711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13712 ;;
13713 *)
13714 allow_undefined_flag_CXX=' -expect_unresolved \*'
13715 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'
13716 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13717 echo "-hidden">> $lib.exp~
13718 $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~
13719 $RM $lib.exp'
13720 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13721 ;;
13722 esac
13723
13724 hardcode_libdir_separator_CXX=:
13725
13726 # Commands to make compiler produce verbose output that lists
13727 # what "hidden" libraries, object files and flags are used when
13728 # linking a shared library.
13729 #
13730 # There doesn't appear to be a way to prevent this compiler from
13731 # explicitly linking system object files so we need to strip them
13732 # from the output so that they don't get included in the library
13733 # dependencies.
13734 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"'
13735 ;;
13736 *)
13737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13739 case $host in
13740 osf3*)
13741 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'
13742 ;;
13743 *)
13744 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'
13745 ;;
13746 esac
13747
13748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13749 hardcode_libdir_separator_CXX=:
13750
13751 # Commands to make compiler produce verbose output that lists
13752 # what "hidden" libraries, object files and flags are used when
13753 # linking a shared library.
13754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13755
13756 else
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13759 fi
13760 ;;
13761 esac
13762 ;;
13763
13764 psos*)
13765 # FIXME: insert proper C++ library support
13766 ld_shlibs_CXX=no
13767 ;;
13768
13769 sunos4*)
13770 case $cc_basename in
13771 CC*)
13772 # Sun C++ 4.x
13773 # FIXME: insert proper C++ library support
13774 ld_shlibs_CXX=no
13775 ;;
13776 lcc*)
13777 # Lucid
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13780 ;;
13781 *)
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13784 ;;
13785 esac
13786 ;;
13787
13788 solaris*)
13789 case $cc_basename in
13790 CC*)
13791 # Sun C++ 4.2, 5.x and Centerline C++
13792 archive_cmds_need_lc_CXX=yes
13793 no_undefined_flag_CXX=' -zdefs'
13794 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13795 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13796 $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'
13797
13798 hardcode_libdir_flag_spec_CXX='-R$libdir'
13799 hardcode_shlibpath_var_CXX=no
13800 case $host_os in
13801 solaris2.[0-5] | solaris2.[0-5].*) ;;
13802 *)
13803 # The compiler driver will combine and reorder linker options,
13804 # but understands `-z linker_flag'.
13805 # Supported since Solaris 2.6 (maybe 2.5.1?)
13806 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13807 ;;
13808 esac
13809 link_all_deplibs_CXX=yes
13810
13811 output_verbose_link_cmd='func_echo_all'
13812
13813 # Archives containing C++ object files must be created using
13814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13815 # necessary to make sure instantiated templates are included
13816 # in the archive.
13817 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13818 ;;
13819 gcx*)
13820 # Green Hills C++ Compiler
13821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13822
13823 # The C++ compiler must be used to create the archive.
13824 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13825 ;;
13826 *)
13827 # GNU C++ compiler with Solaris linker
13828 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13829 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13830 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13831 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13832 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13833 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13834
13835 # Commands to make compiler produce verbose output that lists
13836 # what "hidden" libraries, object files and flags are used when
13837 # linking a shared library.
13838 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13839 else
13840 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13841 # platform.
13842 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13843 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13844 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13845
13846 # Commands to make compiler produce verbose output that lists
13847 # what "hidden" libraries, object files and flags are used when
13848 # linking a shared library.
13849 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13850 fi
13851
13852 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13853 case $host_os in
13854 solaris2.[0-5] | solaris2.[0-5].*) ;;
13855 *)
13856 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13857 ;;
13858 esac
13859 fi
13860 ;;
13861 esac
13862 ;;
13863
13864 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13865 no_undefined_flag_CXX='${wl}-z,text'
13866 archive_cmds_need_lc_CXX=no
13867 hardcode_shlibpath_var_CXX=no
13868 runpath_var='LD_RUN_PATH'
13869
13870 case $cc_basename in
13871 CC*)
13872 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13873 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 ;;
13875 *)
13876 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13877 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878 ;;
13879 esac
13880 ;;
13881
13882 sysv5* | sco3.2v5* | sco5v6*)
13883 # Note: We can NOT use -z defs as we might desire, because we do not
13884 # link with -lc, and that would cause any symbols used from libc to
13885 # always be unresolved, which means just about no library would
13886 # ever link correctly. If we're not using GNU ld we use -z text
13887 # though, which does catch some bad symbols but isn't as heavy-handed
13888 # as -z defs.
13889 no_undefined_flag_CXX='${wl}-z,text'
13890 allow_undefined_flag_CXX='${wl}-z,nodefs'
13891 archive_cmds_need_lc_CXX=no
13892 hardcode_shlibpath_var_CXX=no
13893 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13894 hardcode_libdir_separator_CXX=':'
13895 link_all_deplibs_CXX=yes
13896 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13897 runpath_var='LD_RUN_PATH'
13898
13899 case $cc_basename in
13900 CC*)
13901 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13902 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13904 '"$old_archive_cmds_CXX"
13905 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13906 '"$reload_cmds_CXX"
13907 ;;
13908 *)
13909 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 ;;
13912 esac
13913 ;;
13914
13915 tandem*)
13916 case $cc_basename in
13917 NCC*)
13918 # NonStop-UX NCC 3.20
13919 # FIXME: insert proper C++ library support
13920 ld_shlibs_CXX=no
13921 ;;
13922 *)
13923 # FIXME: insert proper C++ library support
13924 ld_shlibs_CXX=no
13925 ;;
13926 esac
13927 ;;
13928
13929 vxworks*)
13930 # FIXME: insert proper C++ library support
13931 ld_shlibs_CXX=no
13932 ;;
13933
13934 *)
13935 # FIXME: insert proper C++ library support
13936 ld_shlibs_CXX=no
13937 ;;
13938 esac
13939
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13941 $as_echo "$ld_shlibs_CXX" >&6; }
13942 test "$ld_shlibs_CXX" = no && can_build_shared=no
13943
13944 GCC_CXX="$GXX"
13945 LD_CXX="$LD"
13946
13947 ## CAVEAT EMPTOR:
13948 ## There is no encapsulation within the following macros, do not change
13949 ## the running order or otherwise move them around unless you know exactly
13950 ## what you are doing...
13951 # Dependencies to place before and after the object being linked:
13952 predep_objects_CXX=
13953 postdep_objects_CXX=
13954 predeps_CXX=
13955 postdeps_CXX=
13956 compiler_lib_search_path_CXX=
13957
13958 cat > conftest.$ac_ext <<_LT_EOF
13959 class Foo
13960 {
13961 public:
13962 Foo (void) { a = 0; }
13963 private:
13964 int a;
13965 };
13966 _LT_EOF
13967
13968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13970 ac_status=$?
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 # Parse the compiler output and extract the necessary
13974 # objects, libraries and library flags.
13975
13976 # Sentinel used to keep track of whether or not we are before
13977 # the conftest object file.
13978 pre_test_object_deps_done=no
13979
13980 for p in `eval "$output_verbose_link_cmd"`; do
13981 case $p in
13982
13983 -L* | -R* | -l*)
13984 # Some compilers place space between "-{L,R}" and the path.
13985 # Remove the space.
13986 if test $p = "-L" ||
13987 test $p = "-R"; then
13988 prev=$p
13989 continue
13990 else
13991 prev=
13992 fi
13993
13994 if test "$pre_test_object_deps_done" = no; then
13995 case $p in
13996 -L* | -R*)
13997 # Internal compiler library paths should come after those
13998 # provided the user. The postdeps already come after the
13999 # user supplied libs so there is no need to process them.
14000 if test -z "$compiler_lib_search_path_CXX"; then
14001 compiler_lib_search_path_CXX="${prev}${p}"
14002 else
14003 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14004 fi
14005 ;;
14006 # The "-l" case would never come before the object being
14007 # linked, so don't bother handling this case.
14008 esac
14009 else
14010 if test -z "$postdeps_CXX"; then
14011 postdeps_CXX="${prev}${p}"
14012 else
14013 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14014 fi
14015 fi
14016 ;;
14017
14018 *.$objext)
14019 # This assumes that the test object file only shows up
14020 # once in the compiler output.
14021 if test "$p" = "conftest.$objext"; then
14022 pre_test_object_deps_done=yes
14023 continue
14024 fi
14025
14026 if test "$pre_test_object_deps_done" = no; then
14027 if test -z "$predep_objects_CXX"; then
14028 predep_objects_CXX="$p"
14029 else
14030 predep_objects_CXX="$predep_objects_CXX $p"
14031 fi
14032 else
14033 if test -z "$postdep_objects_CXX"; then
14034 postdep_objects_CXX="$p"
14035 else
14036 postdep_objects_CXX="$postdep_objects_CXX $p"
14037 fi
14038 fi
14039 ;;
14040
14041 *) ;; # Ignore the rest.
14042
14043 esac
14044 done
14045
14046 # Clean up.
14047 rm -f a.out a.exe
14048 else
14049 echo "libtool.m4: error: problem compiling CXX test program"
14050 fi
14051
14052 $RM -f confest.$objext
14053
14054 # PORTME: override above test on systems where it is broken
14055 case $host_os in
14056 interix[3-9]*)
14057 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14058 # hack all around it, let's just trust "g++" to DTRT.
14059 predep_objects_CXX=
14060 postdep_objects_CXX=
14061 postdeps_CXX=
14062 ;;
14063
14064 linux*)
14065 case `$CC -V 2>&1 | sed 5q` in
14066 *Sun\ C*)
14067 # Sun C++ 5.9
14068
14069 # The more standards-conforming stlport4 library is
14070 # incompatible with the Cstd library. Avoid specifying
14071 # it if it's in CXXFLAGS. Ignore libCrun as
14072 # -library=stlport4 depends on it.
14073 case " $CXX $CXXFLAGS " in
14074 *" -library=stlport4 "*)
14075 solaris_use_stlport4=yes
14076 ;;
14077 esac
14078
14079 if test "$solaris_use_stlport4" != yes; then
14080 postdeps_CXX='-library=Cstd -library=Crun'
14081 fi
14082 ;;
14083 esac
14084 ;;
14085
14086 solaris*)
14087 case $cc_basename in
14088 CC*)
14089 # The more standards-conforming stlport4 library is
14090 # incompatible with the Cstd library. Avoid specifying
14091 # it if it's in CXXFLAGS. Ignore libCrun as
14092 # -library=stlport4 depends on it.
14093 case " $CXX $CXXFLAGS " in
14094 *" -library=stlport4 "*)
14095 solaris_use_stlport4=yes
14096 ;;
14097 esac
14098
14099 # Adding this requires a known-good setup of shared libraries for
14100 # Sun compiler versions before 5.6, else PIC objects from an old
14101 # archive will be linked into the output, leading to subtle bugs.
14102 if test "$solaris_use_stlport4" != yes; then
14103 postdeps_CXX='-library=Cstd -library=Crun'
14104 fi
14105 ;;
14106 esac
14107 ;;
14108 esac
14109
14110
14111 case " $postdeps_CXX " in
14112 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14113 esac
14114 compiler_lib_search_dirs_CXX=
14115 if test -n "${compiler_lib_search_path_CXX}"; then
14116 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14117 fi
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149 lt_prog_compiler_wl_CXX=
14150 lt_prog_compiler_pic_CXX=
14151 lt_prog_compiler_static_CXX=
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14155
14156 # C++ specific cases for pic, static, wl, etc.
14157 if test "$GXX" = yes; then
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_static_CXX='-static'
14160
14161 case $host_os in
14162 aix*)
14163 # All AIX code is PIC.
14164 if test "$host_cpu" = ia64; then
14165 # AIX 5 now supports IA64 processor
14166 lt_prog_compiler_static_CXX='-Bstatic'
14167 fi
14168 lt_prog_compiler_pic_CXX='-fPIC'
14169 ;;
14170
14171 amigaos*)
14172 case $host_cpu in
14173 powerpc)
14174 # see comment about AmigaOS4 .so support
14175 lt_prog_compiler_pic_CXX='-fPIC'
14176 ;;
14177 m68k)
14178 # FIXME: we need at least 68020 code to build shared libraries, but
14179 # adding the `-m68020' flag to GCC prevents building anything better,
14180 # like `-m68040'.
14181 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14182 ;;
14183 esac
14184 ;;
14185
14186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14187 # PIC is the default for these OSes.
14188 ;;
14189 mingw* | cygwin* | os2* | pw32* | cegcc*)
14190 # This hack is so that the source file can tell whether it is being
14191 # built for inclusion in a dll (and should export symbols for example).
14192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14193 # (--disable-auto-import) libraries
14194 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14195 ;;
14196 darwin* | rhapsody*)
14197 # PIC is the default on this platform
14198 # Common symbols not allowed in MH_DYLIB files
14199 lt_prog_compiler_pic_CXX='-fno-common'
14200 ;;
14201 *djgpp*)
14202 # DJGPP does not support shared libraries at all
14203 lt_prog_compiler_pic_CXX=
14204 ;;
14205 haiku*)
14206 # PIC is the default for Haiku.
14207 # The "-static" flag exists, but is broken.
14208 lt_prog_compiler_static_CXX=
14209 ;;
14210 interix[3-9]*)
14211 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14212 # Instead, we relocate shared libraries at runtime.
14213 ;;
14214 sysv4*MP*)
14215 if test -d /usr/nec; then
14216 lt_prog_compiler_pic_CXX=-Kconform_pic
14217 fi
14218 ;;
14219 hpux*)
14220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14222 # sets the default TLS model and affects inlining.
14223 case $host_cpu in
14224 hppa*64*)
14225 ;;
14226 *)
14227 lt_prog_compiler_pic_CXX='-fPIC'
14228 ;;
14229 esac
14230 ;;
14231 *qnx* | *nto*)
14232 # QNX uses GNU C++, but need to define -shared option too, otherwise
14233 # it will coredump.
14234 lt_prog_compiler_pic_CXX='-fPIC -shared'
14235 ;;
14236 *)
14237 lt_prog_compiler_pic_CXX='-fPIC'
14238 ;;
14239 esac
14240 else
14241 case $host_os in
14242 aix[4-9]*)
14243 # All AIX code is PIC.
14244 if test "$host_cpu" = ia64; then
14245 # AIX 5 now supports IA64 processor
14246 lt_prog_compiler_static_CXX='-Bstatic'
14247 else
14248 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14249 fi
14250 ;;
14251 chorus*)
14252 case $cc_basename in
14253 cxch68*)
14254 # Green Hills C++ Compiler
14255 # _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"
14256 ;;
14257 esac
14258 ;;
14259 dgux*)
14260 case $cc_basename in
14261 ec++*)
14262 lt_prog_compiler_pic_CXX='-KPIC'
14263 ;;
14264 ghcx*)
14265 # Green Hills C++ Compiler
14266 lt_prog_compiler_pic_CXX='-pic'
14267 ;;
14268 *)
14269 ;;
14270 esac
14271 ;;
14272 freebsd* | dragonfly*)
14273 # FreeBSD uses GNU C++
14274 ;;
14275 hpux9* | hpux10* | hpux11*)
14276 case $cc_basename in
14277 CC*)
14278 lt_prog_compiler_wl_CXX='-Wl,'
14279 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14280 if test "$host_cpu" != ia64; then
14281 lt_prog_compiler_pic_CXX='+Z'
14282 fi
14283 ;;
14284 aCC*)
14285 lt_prog_compiler_wl_CXX='-Wl,'
14286 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14287 case $host_cpu in
14288 hppa*64*|ia64*)
14289 # +Z the default
14290 ;;
14291 *)
14292 lt_prog_compiler_pic_CXX='+Z'
14293 ;;
14294 esac
14295 ;;
14296 *)
14297 ;;
14298 esac
14299 ;;
14300 interix*)
14301 # This is c89, which is MS Visual C++ (no shared libs)
14302 # Anyone wants to do a port?
14303 ;;
14304 irix5* | irix6* | nonstopux*)
14305 case $cc_basename in
14306 CC*)
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 lt_prog_compiler_static_CXX='-non_shared'
14309 # CC pic flag -KPIC is the default.
14310 ;;
14311 *)
14312 ;;
14313 esac
14314 ;;
14315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14316 case $cc_basename in
14317 KCC*)
14318 # KAI C++ Compiler
14319 lt_prog_compiler_wl_CXX='--backend -Wl,'
14320 lt_prog_compiler_pic_CXX='-fPIC'
14321 ;;
14322 ecpc* )
14323 # old Intel C++ for x86_64 which still supported -KPIC.
14324 lt_prog_compiler_wl_CXX='-Wl,'
14325 lt_prog_compiler_pic_CXX='-KPIC'
14326 lt_prog_compiler_static_CXX='-static'
14327 ;;
14328 icpc* )
14329 # Intel C++, used to be incompatible with GCC.
14330 # ICC 10 doesn't accept -KPIC any more.
14331 lt_prog_compiler_wl_CXX='-Wl,'
14332 lt_prog_compiler_pic_CXX='-fPIC'
14333 lt_prog_compiler_static_CXX='-static'
14334 ;;
14335 pgCC* | pgcpp*)
14336 # Portland Group C++ compiler
14337 lt_prog_compiler_wl_CXX='-Wl,'
14338 lt_prog_compiler_pic_CXX='-fpic'
14339 lt_prog_compiler_static_CXX='-Bstatic'
14340 ;;
14341 cxx*)
14342 # Compaq C++
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14347 ;;
14348 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14349 # IBM XL 8.0, 9.0 on PPC and BlueGene
14350 lt_prog_compiler_wl_CXX='-Wl,'
14351 lt_prog_compiler_pic_CXX='-qpic'
14352 lt_prog_compiler_static_CXX='-qstaticlink'
14353 ;;
14354 *)
14355 case `$CC -V 2>&1 | sed 5q` in
14356 *Sun\ C*)
14357 # Sun C++ 5.9
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14361 ;;
14362 esac
14363 ;;
14364 esac
14365 ;;
14366 lynxos*)
14367 ;;
14368 m88k*)
14369 ;;
14370 mvs*)
14371 case $cc_basename in
14372 cxx*)
14373 lt_prog_compiler_pic_CXX='-W c,exportall'
14374 ;;
14375 *)
14376 ;;
14377 esac
14378 ;;
14379 netbsd*)
14380 ;;
14381 *qnx* | *nto*)
14382 # QNX uses GNU C++, but need to define -shared option too, otherwise
14383 # it will coredump.
14384 lt_prog_compiler_pic_CXX='-fPIC -shared'
14385 ;;
14386 osf3* | osf4* | osf5*)
14387 case $cc_basename in
14388 KCC*)
14389 lt_prog_compiler_wl_CXX='--backend -Wl,'
14390 ;;
14391 RCC*)
14392 # Rational C++ 2.4.1
14393 lt_prog_compiler_pic_CXX='-pic'
14394 ;;
14395 cxx*)
14396 # Digital/Compaq C++
14397 lt_prog_compiler_wl_CXX='-Wl,'
14398 # Make sure the PIC flag is empty. It appears that all Alpha
14399 # Linux and Compaq Tru64 Unix objects are PIC.
14400 lt_prog_compiler_pic_CXX=
14401 lt_prog_compiler_static_CXX='-non_shared'
14402 ;;
14403 *)
14404 ;;
14405 esac
14406 ;;
14407 psos*)
14408 ;;
14409 solaris*)
14410 case $cc_basename in
14411 CC*)
14412 # Sun C++ 4.2, 5.x and Centerline C++
14413 lt_prog_compiler_pic_CXX='-KPIC'
14414 lt_prog_compiler_static_CXX='-Bstatic'
14415 lt_prog_compiler_wl_CXX='-Qoption ld '
14416 ;;
14417 gcx*)
14418 # Green Hills C++ Compiler
14419 lt_prog_compiler_pic_CXX='-PIC'
14420 ;;
14421 *)
14422 ;;
14423 esac
14424 ;;
14425 sunos4*)
14426 case $cc_basename in
14427 CC*)
14428 # Sun C++ 4.x
14429 lt_prog_compiler_pic_CXX='-pic'
14430 lt_prog_compiler_static_CXX='-Bstatic'
14431 ;;
14432 lcc*)
14433 # Lucid
14434 lt_prog_compiler_pic_CXX='-pic'
14435 ;;
14436 *)
14437 ;;
14438 esac
14439 ;;
14440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14441 case $cc_basename in
14442 CC*)
14443 lt_prog_compiler_wl_CXX='-Wl,'
14444 lt_prog_compiler_pic_CXX='-KPIC'
14445 lt_prog_compiler_static_CXX='-Bstatic'
14446 ;;
14447 esac
14448 ;;
14449 tandem*)
14450 case $cc_basename in
14451 NCC*)
14452 # NonStop-UX NCC 3.20
14453 lt_prog_compiler_pic_CXX='-KPIC'
14454 ;;
14455 *)
14456 ;;
14457 esac
14458 ;;
14459 vxworks*)
14460 ;;
14461 *)
14462 lt_prog_compiler_can_build_shared_CXX=no
14463 ;;
14464 esac
14465 fi
14466
14467 case $host_os in
14468 # For platforms which do not support PIC, -DPIC is meaningless:
14469 *djgpp*)
14470 lt_prog_compiler_pic_CXX=
14471 ;;
14472 *)
14473 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14474 ;;
14475 esac
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14477 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14478
14479
14480
14481 #
14482 # Check to make sure the PIC flag actually works.
14483 #
14484 if test -n "$lt_prog_compiler_pic_CXX"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14487 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 lt_cv_prog_compiler_pic_works_CXX=no
14491 ac_outfile=conftest.$ac_objext
14492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14494 # Insert the option either (1) after the last *FLAGS variable, or
14495 # (2) before a word containing "conftest.", or (3) at the end.
14496 # Note that $ac_compile itself does not contain backslashes and begins
14497 # with a dollar sign (not a hyphen), so the echo should work correctly.
14498 # The option is referenced via a variable to avoid confusing sed.
14499 lt_compile=`echo "$ac_compile" | $SED \
14500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502 -e 's:$: $lt_compiler_flag:'`
14503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14504 (eval "$lt_compile" 2>conftest.err)
14505 ac_status=$?
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 if (exit $ac_status) && test -s "$ac_outfile"; then
14509 # The compiler can only warn and ignore the option if not recognized
14510 # So say no if there are warnings other than the usual output.
14511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14514 lt_cv_prog_compiler_pic_works_CXX=yes
14515 fi
14516 fi
14517 $RM conftest*
14518
14519 fi
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14521 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14522
14523 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14524 case $lt_prog_compiler_pic_CXX in
14525 "" | " "*) ;;
14526 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14527 esac
14528 else
14529 lt_prog_compiler_pic_CXX=
14530 lt_prog_compiler_can_build_shared_CXX=no
14531 fi
14532
14533 fi
14534
14535
14536
14537 #
14538 # Check to make sure the static flag actually works.
14539 #
14540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14543 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_prog_compiler_static_works_CXX=no
14547 save_LDFLAGS="$LDFLAGS"
14548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551 # The linker can only warn and ignore the option if not recognized
14552 # So say no if there are warnings
14553 if test -s conftest.err; then
14554 # Append any errors to the config.log.
14555 cat conftest.err 1>&5
14556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558 if diff conftest.exp conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_static_works_CXX=yes
14560 fi
14561 else
14562 lt_cv_prog_compiler_static_works_CXX=yes
14563 fi
14564 fi
14565 $RM -r conftest*
14566 LDFLAGS="$save_LDFLAGS"
14567
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14570 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14571
14572 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14573 :
14574 else
14575 lt_prog_compiler_static_CXX=
14576 fi
14577
14578
14579
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14583 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 lt_cv_prog_compiler_c_o_CXX=no
14587 $RM -r conftest 2>/dev/null
14588 mkdir conftest
14589 cd conftest
14590 mkdir out
14591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14592
14593 lt_compiler_flag="-o out/conftest2.$ac_objext"
14594 # Insert the option either (1) after the last *FLAGS variable, or
14595 # (2) before a word containing "conftest.", or (3) at the end.
14596 # Note that $ac_compile itself does not contain backslashes and begins
14597 # with a dollar sign (not a hyphen), so the echo should work correctly.
14598 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>out/conftest.err)
14604 ac_status=$?
14605 cat out/conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14608 then
14609 # The compiler can only warn and ignore the option if not recognized
14610 # So say no if there are warnings
14611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14614 lt_cv_prog_compiler_c_o_CXX=yes
14615 fi
14616 fi
14617 chmod u+w . 2>&5
14618 $RM conftest*
14619 # SGI C++ compiler will create directory out/ii_files/ for
14620 # template instantiation
14621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14622 $RM out/* && rmdir out
14623 cd ..
14624 $RM -r conftest
14625 $RM conftest*
14626
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14629 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14630
14631
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14635 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 lt_cv_prog_compiler_c_o_CXX=no
14639 $RM -r conftest 2>/dev/null
14640 mkdir conftest
14641 cd conftest
14642 mkdir out
14643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644
14645 lt_compiler_flag="-o out/conftest2.$ac_objext"
14646 # Insert the option either (1) after the last *FLAGS variable, or
14647 # (2) before a word containing "conftest.", or (3) at the end.
14648 # Note that $ac_compile itself does not contain backslashes and begins
14649 # with a dollar sign (not a hyphen), so the echo should work correctly.
14650 lt_compile=`echo "$ac_compile" | $SED \
14651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653 -e 's:$: $lt_compiler_flag:'`
14654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655 (eval "$lt_compile" 2>out/conftest.err)
14656 ac_status=$?
14657 cat out/conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14660 then
14661 # The compiler can only warn and ignore the option if not recognized
14662 # So say no if there are warnings
14663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666 lt_cv_prog_compiler_c_o_CXX=yes
14667 fi
14668 fi
14669 chmod u+w . 2>&5
14670 $RM conftest*
14671 # SGI C++ compiler will create directory out/ii_files/ for
14672 # template instantiation
14673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14674 $RM out/* && rmdir out
14675 cd ..
14676 $RM -r conftest
14677 $RM conftest*
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14682
14683
14684
14685
14686 hard_links="nottested"
14687 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14688 # do not overwrite the value of need_locks provided by the user
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14690 $as_echo_n "checking if we can lock with hard links... " >&6; }
14691 hard_links=yes
14692 $RM conftest*
14693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14694 touch conftest.a
14695 ln conftest.a conftest.b 2>&5 || hard_links=no
14696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14698 $as_echo "$hard_links" >&6; }
14699 if test "$hard_links" = no; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14702 need_locks=warn
14703 fi
14704 else
14705 need_locks=no
14706 fi
14707
14708
14709
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14712
14713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14714 case $host_os in
14715 aix[4-9]*)
14716 # If we're using GNU nm, then we don't want the "-C" option.
14717 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14718 # Also, AIX nm treats weak defined symbols like other global defined
14719 # symbols, whereas GNU nm marks them as "W".
14720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14721 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'
14722 else
14723 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'
14724 fi
14725 ;;
14726 pw32*)
14727 export_symbols_cmds_CXX="$ltdll_cmds"
14728 ;;
14729 cygwin* | mingw* | cegcc*)
14730 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'
14731 ;;
14732 *)
14733 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14734 ;;
14735 esac
14736 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14737
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14739 $as_echo "$ld_shlibs_CXX" >&6; }
14740 test "$ld_shlibs_CXX" = no && can_build_shared=no
14741
14742 with_gnu_ld_CXX=$with_gnu_ld
14743
14744
14745
14746
14747
14748
14749 #
14750 # Do we need to explicitly link libc?
14751 #
14752 case "x$archive_cmds_need_lc_CXX" in
14753 x|xyes)
14754 # Assume -lc should be added
14755 archive_cmds_need_lc_CXX=yes
14756
14757 if test "$enable_shared" = yes && test "$GCC" = yes; then
14758 case $archive_cmds_CXX in
14759 *'~'*)
14760 # FIXME: we may have to deal with multi-command sequences.
14761 ;;
14762 '$CC '*)
14763 # Test whether the compiler implicitly links with -lc since on some
14764 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14765 # to ld, don't add -lc before -lgcc.
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14767 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14768 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 $RM conftest*
14772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14773
14774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14775 (eval $ac_compile) 2>&5
14776 ac_status=$?
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; } 2>conftest.err; then
14779 soname=conftest
14780 lib=conftest
14781 libobjs=conftest.$ac_objext
14782 deplibs=
14783 wl=$lt_prog_compiler_wl_CXX
14784 pic_flag=$lt_prog_compiler_pic_CXX
14785 compiler_flags=-v
14786 linker_flags=-v
14787 verstring=
14788 output_objdir=.
14789 libname=conftest
14790 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14791 allow_undefined_flag_CXX=
14792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14793 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14794 ac_status=$?
14795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796 test $ac_status = 0; }
14797 then
14798 lt_cv_archive_cmds_need_lc_CXX=no
14799 else
14800 lt_cv_archive_cmds_need_lc_CXX=yes
14801 fi
14802 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14803 else
14804 cat conftest.err 1>&5
14805 fi
14806 $RM conftest*
14807
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14810 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14811 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14812 ;;
14813 esac
14814 fi
14815 ;;
14816 esac
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
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14883
14884 library_names_spec=
14885 libname_spec='lib$name'
14886 soname_spec=
14887 shrext_cmds=".so"
14888 postinstall_cmds=
14889 postuninstall_cmds=
14890 finish_cmds=
14891 finish_eval=
14892 shlibpath_var=
14893 shlibpath_overrides_runpath=unknown
14894 version_type=none
14895 dynamic_linker="$host_os ld.so"
14896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14897 need_lib_prefix=unknown
14898 hardcode_into_libs=no
14899
14900 # when you set need_version to no, make sure it does not cause -set_version
14901 # flags to be left without arguments
14902 need_version=unknown
14903
14904 case $host_os in
14905 aix3*)
14906 version_type=linux
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14908 shlibpath_var=LIBPATH
14909
14910 # AIX 3 has no versioning support, so we append a major version to the name.
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 ;;
14913
14914 aix[4-9]*)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 hardcode_into_libs=yes
14919 if test "$host_cpu" = ia64; then
14920 # AIX 5 supports IA64
14921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 else
14924 # With GCC up to 2.95.x, collect2 would create an import file
14925 # for dependence libraries. The import file would start with
14926 # the line `#! .'. This would cause the generated library to
14927 # depend on `.', always an invalid library. This was fixed in
14928 # development snapshots of GCC prior to 3.0.
14929 case $host_os in
14930 aix4 | aix4.[01] | aix4.[01].*)
14931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14932 echo ' yes '
14933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14934 :
14935 else
14936 can_build_shared=no
14937 fi
14938 ;;
14939 esac
14940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14941 # soname into executable. Probably we can add versioning support to
14942 # collect2, so additional links can be useful in future.
14943 if test "$aix_use_runtimelinking" = yes; then
14944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14945 # instead of lib<name>.a to let people know that these are not
14946 # typical AIX shared libraries.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 else
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='${libname}${release}.a $libname.a'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 fi
14954 shlibpath_var=LIBPATH
14955 fi
14956 ;;
14957
14958 amigaos*)
14959 case $host_cpu in
14960 powerpc)
14961 # Since July 2007 AmigaOS4 officially supports .so libraries.
14962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 ;;
14965 m68k)
14966 library_names_spec='$libname.ixlibrary $libname.a'
14967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14968 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'
14969 ;;
14970 esac
14971 ;;
14972
14973 beos*)
14974 library_names_spec='${libname}${shared_ext}'
14975 dynamic_linker="$host_os ld.so"
14976 shlibpath_var=LIBRARY_PATH
14977 ;;
14978
14979 bsdi[45]*)
14980 version_type=linux
14981 need_version=no
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14988 # the default ld.so.conf also contains /usr/contrib/lib and
14989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14990 # libtool to hard-code these into programs
14991 ;;
14992
14993 cygwin* | mingw* | pw32* | cegcc*)
14994 version_type=windows
14995 shrext_cmds=".dll"
14996 need_version=no
14997 need_lib_prefix=no
14998
14999 case $GCC,$host_os in
15000 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15001 library_names_spec='$libname.dll.a'
15002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15003 postinstall_cmds='base_file=`basename \${file}`~
15004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15005 dldir=$destdir/`dirname \$dlpath`~
15006 test -d \$dldir || mkdir -p \$dldir~
15007 $install_prog $dir/$dlname \$dldir/$dlname~
15008 chmod a+x \$dldir/$dlname~
15009 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15010 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15011 fi'
15012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15013 dlpath=$dir/\$dldll~
15014 $RM \$dlpath'
15015 shlibpath_overrides_runpath=yes
15016
15017 case $host_os in
15018 cygwin*)
15019 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15021
15022 ;;
15023 mingw* | cegcc*)
15024 # MinGW DLLs use traditional 'lib' prefix
15025 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15026 ;;
15027 pw32*)
15028 # pw32 DLLs use 'pw' prefix rather than 'lib'
15029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15030 ;;
15031 esac
15032 ;;
15033
15034 *)
15035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15036 ;;
15037 esac
15038 dynamic_linker='Win32 ld.exe'
15039 # FIXME: first we should search . and the directory the executable is in
15040 shlibpath_var=PATH
15041 ;;
15042
15043 darwin* | rhapsody*)
15044 dynamic_linker="$host_os dyld"
15045 version_type=darwin
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15049 soname_spec='${libname}${release}${major}$shared_ext'
15050 shlibpath_overrides_runpath=yes
15051 shlibpath_var=DYLD_LIBRARY_PATH
15052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15053
15054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15055 ;;
15056
15057 dgux*)
15058 version_type=linux
15059 need_lib_prefix=no
15060 need_version=no
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 ;;
15065
15066 freebsd* | dragonfly*)
15067 # DragonFly does not have aout. When/if they implement a new
15068 # versioning mechanism, adjust this.
15069 if test -x /usr/bin/objformat; then
15070 objformat=`/usr/bin/objformat`
15071 else
15072 case $host_os in
15073 freebsd[23].*) objformat=aout ;;
15074 *) objformat=elf ;;
15075 esac
15076 fi
15077 version_type=freebsd-$objformat
15078 case $version_type in
15079 freebsd-elf*)
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15081 need_version=no
15082 need_lib_prefix=no
15083 ;;
15084 freebsd-*)
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15086 need_version=yes
15087 ;;
15088 esac
15089 shlibpath_var=LD_LIBRARY_PATH
15090 case $host_os in
15091 freebsd2.*)
15092 shlibpath_overrides_runpath=yes
15093 ;;
15094 freebsd3.[01]* | freebsdelf3.[01]*)
15095 shlibpath_overrides_runpath=yes
15096 hardcode_into_libs=yes
15097 ;;
15098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15100 shlibpath_overrides_runpath=no
15101 hardcode_into_libs=yes
15102 ;;
15103 *) # from 4.6 on, and DragonFly
15104 shlibpath_overrides_runpath=yes
15105 hardcode_into_libs=yes
15106 ;;
15107 esac
15108 ;;
15109
15110 gnu*)
15111 version_type=linux
15112 need_lib_prefix=no
15113 need_version=no
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 hardcode_into_libs=yes
15118 ;;
15119
15120 haiku*)
15121 version_type=linux
15122 need_lib_prefix=no
15123 need_version=no
15124 dynamic_linker="$host_os runtime_loader"
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 shlibpath_var=LIBRARY_PATH
15128 shlibpath_overrides_runpath=yes
15129 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15130 hardcode_into_libs=yes
15131 ;;
15132
15133 hpux9* | hpux10* | hpux11*)
15134 # Give a soname corresponding to the major version so that dld.sl refuses to
15135 # link against other versions.
15136 version_type=sunos
15137 need_lib_prefix=no
15138 need_version=no
15139 case $host_cpu in
15140 ia64*)
15141 shrext_cmds='.so'
15142 hardcode_into_libs=yes
15143 dynamic_linker="$host_os dld.so"
15144 shlibpath_var=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 if test "X$HPUX_IA64_MODE" = X32; then
15149 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15150 else
15151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15152 fi
15153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15154 ;;
15155 hppa*64*)
15156 shrext_cmds='.sl'
15157 hardcode_into_libs=yes
15158 dynamic_linker="$host_os dld.sl"
15159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15165 ;;
15166 *)
15167 shrext_cmds='.sl'
15168 dynamic_linker="$host_os dld.sl"
15169 shlibpath_var=SHLIB_PATH
15170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 ;;
15174 esac
15175 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15176 postinstall_cmds='chmod 555 $lib'
15177 # or fails outright, so override atomically:
15178 install_override_mode=555
15179 ;;
15180
15181 interix[3-9]*)
15182 version_type=linux
15183 need_lib_prefix=no
15184 need_version=no
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=no
15190 hardcode_into_libs=yes
15191 ;;
15192
15193 irix5* | irix6* | nonstopux*)
15194 case $host_os in
15195 nonstopux*) version_type=nonstopux ;;
15196 *)
15197 if test "$lt_cv_prog_gnu_ld" = yes; then
15198 version_type=linux
15199 else
15200 version_type=irix
15201 fi ;;
15202 esac
15203 need_lib_prefix=no
15204 need_version=no
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 case $host_os in
15208 irix5* | nonstopux*)
15209 libsuff= shlibsuff=
15210 ;;
15211 *)
15212 case $LD in # libtool.m4 will add one of these switches to LD
15213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15214 libsuff= shlibsuff= libmagic=32-bit;;
15215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15216 libsuff=32 shlibsuff=N32 libmagic=N32;;
15217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15219 *) libsuff= shlibsuff= libmagic=never-match;;
15220 esac
15221 ;;
15222 esac
15223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15224 shlibpath_overrides_runpath=no
15225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15227 hardcode_into_libs=yes
15228 ;;
15229
15230 # No shared lib support for Linux oldld, aout, or coff.
15231 linux*oldld* | linux*aout* | linux*coff*)
15232 dynamic_linker=no
15233 ;;
15234
15235 # This must be Linux ELF.
15236
15237 # uclinux* changes (here and below) have been submitted to the libtool
15238 # project, but have not yet been accepted: they are GCC-local changes
15239 # for the time being. (See
15240 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15241 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15242 version_type=linux
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 shlibpath_overrides_runpath=no
15250
15251 # Some binutils ld are patched to set DT_RUNPATH
15252 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 lt_cv_shlibpath_overrides_runpath=no
15256 save_LDFLAGS=$LDFLAGS
15257 save_libdir=$libdir
15258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262
15263 int
15264 main ()
15265 {
15266
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 if ac_fn_cxx_try_link "$LINENO"; then :
15272 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15273 lt_cv_shlibpath_overrides_runpath=yes
15274 fi
15275 fi
15276 rm -f core conftest.err conftest.$ac_objext \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LDFLAGS=$save_LDFLAGS
15279 libdir=$save_libdir
15280
15281 fi
15282
15283 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15284
15285 # This implies no fast_install, which is unacceptable.
15286 # Some rework will be needed to allow for fast_install
15287 # before this can be enabled.
15288 hardcode_into_libs=yes
15289
15290 # Append ld.so.conf contents to the search path
15291 if test -f /etc/ld.so.conf; then
15292 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' ' '`
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15294 fi
15295
15296 # We used to test for /lib/ld.so.1 and disable shared libraries on
15297 # powerpc, because MkLinux only supported shared libraries with the
15298 # GNU dynamic linker. Since this was broken with cross compilers,
15299 # most powerpc-linux boxes support dynamic linking these days and
15300 # people can always --disable-shared, the test was removed, and we
15301 # assume the GNU/Linux dynamic linker is in use.
15302 dynamic_linker='GNU/Linux ld.so'
15303 ;;
15304
15305 netbsd*)
15306 version_type=sunos
15307 need_lib_prefix=no
15308 need_version=no
15309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15312 dynamic_linker='NetBSD (a.out) ld.so'
15313 else
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 dynamic_linker='NetBSD ld.elf_so'
15317 fi
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 ;;
15322
15323 newsos6)
15324 version_type=linux
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15328 ;;
15329
15330 *nto* | *qnx*)
15331 version_type=qnx
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=no
15338 hardcode_into_libs=yes
15339 dynamic_linker='ldqnx.so'
15340 ;;
15341
15342 openbsd*)
15343 version_type=sunos
15344 sys_lib_dlsearch_path_spec="/usr/lib"
15345 need_lib_prefix=no
15346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15347 case $host_os in
15348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15349 *) need_version=no ;;
15350 esac
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15355 case $host_os in
15356 openbsd2.[89] | openbsd2.[89].*)
15357 shlibpath_overrides_runpath=no
15358 ;;
15359 *)
15360 shlibpath_overrides_runpath=yes
15361 ;;
15362 esac
15363 else
15364 shlibpath_overrides_runpath=yes
15365 fi
15366 ;;
15367
15368 os2*)
15369 libname_spec='$name'
15370 shrext_cmds=".dll"
15371 need_lib_prefix=no
15372 library_names_spec='$libname${shared_ext} $libname.a'
15373 dynamic_linker='OS/2 ld.exe'
15374 shlibpath_var=LIBPATH
15375 ;;
15376
15377 osf3* | osf4* | osf5*)
15378 version_type=osf
15379 need_lib_prefix=no
15380 need_version=no
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15386 ;;
15387
15388 rdos*)
15389 dynamic_linker=no
15390 ;;
15391
15392 solaris*)
15393 version_type=linux
15394 need_lib_prefix=no
15395 need_version=no
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15401 # ldd complains unless libraries are executable
15402 postinstall_cmds='chmod +x $lib'
15403 ;;
15404
15405 sunos4*)
15406 version_type=sunos
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=yes
15411 if test "$with_gnu_ld" = yes; then
15412 need_lib_prefix=no
15413 fi
15414 need_version=yes
15415 ;;
15416
15417 sysv4 | sysv4.3*)
15418 version_type=linux
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 case $host_vendor in
15423 sni)
15424 shlibpath_overrides_runpath=no
15425 need_lib_prefix=no
15426 runpath_var=LD_RUN_PATH
15427 ;;
15428 siemens)
15429 need_lib_prefix=no
15430 ;;
15431 motorola)
15432 need_lib_prefix=no
15433 need_version=no
15434 shlibpath_overrides_runpath=no
15435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 ;;
15437 esac
15438 ;;
15439
15440 sysv4*MP*)
15441 if test -d /usr/nec ;then
15442 version_type=linux
15443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15444 soname_spec='$libname${shared_ext}.$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 fi
15447 ;;
15448
15449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15450 version_type=freebsd-elf
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=yes
15457 hardcode_into_libs=yes
15458 if test "$with_gnu_ld" = yes; then
15459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15460 else
15461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15462 case $host_os in
15463 sco3.2v5*)
15464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15465 ;;
15466 esac
15467 fi
15468 sys_lib_dlsearch_path_spec='/usr/lib'
15469 ;;
15470
15471 tpf*)
15472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 ;;
15481
15482 uts4*)
15483 version_type=linux
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 ;;
15488
15489 *)
15490 dynamic_linker=no
15491 ;;
15492 esac
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15494 $as_echo "$dynamic_linker" >&6; }
15495 test "$dynamic_linker" = no && can_build_shared=no
15496
15497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15498 if test "$GCC" = yes; then
15499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15500 fi
15501
15502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15503 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15504 fi
15505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15547 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15548 hardcode_action_CXX=
15549 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15550 test -n "$runpath_var_CXX" ||
15551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15552
15553 # We can hardcode non-existent directories.
15554 if test "$hardcode_direct_CXX" != no &&
15555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15556 # have to relink, otherwise we might link with an installed library
15557 # when we should be linking with a yet-to-be-installed one
15558 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15559 test "$hardcode_minus_L_CXX" != no; then
15560 # Linking always hardcodes the temporary library directory.
15561 hardcode_action_CXX=relink
15562 else
15563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15564 hardcode_action_CXX=immediate
15565 fi
15566 else
15567 # We cannot hardcode anything, or else we can only hardcode existing
15568 # directories.
15569 hardcode_action_CXX=unsupported
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15572 $as_echo "$hardcode_action_CXX" >&6; }
15573
15574 if test "$hardcode_action_CXX" = relink ||
15575 test "$inherit_rpath_CXX" = yes; then
15576 # Fast installation is not supported
15577 enable_fast_install=no
15578 elif test "$shlibpath_overrides_runpath" = yes ||
15579 test "$enable_shared" = no; then
15580 # Fast installation is not necessary
15581 enable_fast_install=needless
15582 fi
15583
15584
15585
15586
15587
15588
15589
15590 fi # test -n "$compiler"
15591
15592 CC=$lt_save_CC
15593 LDCXX=$LD
15594 LD=$lt_save_LD
15595 GCC=$lt_save_GCC
15596 with_gnu_ld=$lt_save_with_gnu_ld
15597 lt_cv_path_LDCXX=$lt_cv_path_LD
15598 lt_cv_path_LD=$lt_save_path_LD
15599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15601 fi # test "$_lt_caught_CXX_error" != yes
15602
15603 ac_ext=c
15604 ac_cpp='$CPP $CPPFLAGS'
15605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621 ac_config_commands="$ac_config_commands libtool"
15622
15623
15624
15625
15626 # Only expand once:
15627
15628
15629
15630
15631
15632 case $host in
15633 *-cygwin* | *-mingw*)
15634 # 'host' will be top-level target in the case of a target lib,
15635 # we must compare to with_cross_host to decide if this is a native
15636 # or cross-compiler and select where to install dlls appropriately.
15637 if test -n "$with_cross_host" &&
15638 test x"$with_cross_host" != x"no"; then
15639 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15640 else
15641 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15642 fi
15643 ;;
15644 *)
15645 lt_host_flags=
15646 ;;
15647 esac
15648
15649
15650
15651
15652
15653
15654 # For libtool versioning info, format is CURRENT:REVISION:AGE
15655 libtool_VERSION=1:0:0
15656
15657
15658 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15659
15660 # Add CET specific flags if Intel CET is enabled.
15661 # Check whether --enable-cet was given.
15662 if test "${enable_cet+set}" = set; then :
15663 enableval=$enable_cet;
15664 case "$enableval" in
15665 yes|no|auto) ;;
15666 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15667 esac
15668
15669 else
15670 enable_cet=auto
15671 fi
15672
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15675 $as_echo_n "checking for CET support... " >&6; }
15676
15677 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
15678 case "$host" in
15679 i[34567]86-*-linux* | x86_64-*-linux*)
15680 case "$enable_cet" in
15681 auto)
15682 # Check if target supports multi-byte NOPs
15683 # and if assembler supports CET insn.
15684 cet_save_CFLAGS="$CFLAGS"
15685 CFLAGS="$CFLAGS -fcf-protection"
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688
15689 int
15690 main ()
15691 {
15692
15693 #if !defined(__SSE2__)
15694 #error target does not support multi-byte NOPs
15695 #else
15696 asm ("setssbsy");
15697 #endif
15698
15699 ;
15700 return 0;
15701 }
15702 _ACEOF
15703 if ac_fn_c_try_compile "$LINENO"; then :
15704 enable_cet=yes
15705 else
15706 enable_cet=no
15707 fi
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 CFLAGS="$cet_save_CFLAGS"
15710 ;;
15711 yes)
15712 # Check if assembler supports CET.
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715
15716 int
15717 main ()
15718 {
15719 asm ("setssbsy");
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_compile "$LINENO"; then :
15725
15726 else
15727 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 ;;
15731 esac
15732 ;;
15733 *)
15734 enable_cet=no
15735 ;;
15736 esac
15737 if test x$enable_cet = xyes; then
15738 CET_FLAGS="-fcf-protection -mshstk"
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15740 $as_echo "yes" >&6; }
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15744 fi
15745
15746 XCFLAGS="$XCFLAGS $CET_FLAGS"
15747
15748
15749
15750 if test "${multilib}" = "yes"; then
15751 multilib_arg="--enable-multilib"
15752 else
15753 multilib_arg=
15754 fi
15755
15756 ac_config_files="$ac_config_files Makefile"
15757
15758
15759 if test "x$VTV_SUPPORTED" = "xyes"; then
15760 ac_config_files="$ac_config_files testsuite/Makefile"
15761
15762 fi
15763
15764 case "$target_os" in
15765 cygwin*|mingw32*)
15766 vtv_cygmin="yes"
15767 ;;
15768 *)
15769 vtv_cygmin="no"
15770 ;;
15771 esac
15772
15773 if test $vtv_cygmin = yes; then
15774 VTV_CYGMIN_TRUE=
15775 VTV_CYGMIN_FALSE='#'
15776 else
15777 VTV_CYGMIN_TRUE='#'
15778 VTV_CYGMIN_FALSE=
15779 fi
15780
15781
15782 for ac_func in _obstack_begin
15783 do :
15784 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15785 if test "x$ac_cv_func__obstack_begin" = xyes; then :
15786 cat >>confdefs.h <<_ACEOF
15787 #define HAVE__OBSTACK_BEGIN 1
15788 _ACEOF
15789
15790 fi
15791 done
15792
15793 if test $ac_cv_func__obstack_begin = no; then
15794 VTV_NO_OBSTACK_TRUE=
15795 VTV_NO_OBSTACK_FALSE='#'
15796 else
15797 VTV_NO_OBSTACK_TRUE='#'
15798 VTV_NO_OBSTACK_FALSE=
15799 fi
15800
15801
15802 # Determine what GCC version number to use in filesystem paths.
15803
15804 get_gcc_base_ver="cat"
15805
15806 # Check whether --with-gcc-major-version-only was given.
15807 if test "${with_gcc_major_version_only+set}" = set; then :
15808 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15809 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15810 fi
15811
15812 fi
15813
15814
15815
15816
15817 cat >confcache <<\_ACEOF
15818 # This file is a shell script that caches the results of configure
15819 # tests run on this system so they can be shared between configure
15820 # scripts and configure runs, see configure's option --config-cache.
15821 # It is not useful on other systems. If it contains results you don't
15822 # want to keep, you may remove or edit it.
15823 #
15824 # config.status only pays attention to the cache file if you give it
15825 # the --recheck option to rerun configure.
15826 #
15827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15829 # following values.
15830
15831 _ACEOF
15832
15833 # The following way of writing the cache mishandles newlines in values,
15834 # but we know of no workaround that is simple, portable, and efficient.
15835 # So, we kill variables containing newlines.
15836 # Ultrix sh set writes to stderr and can't be redirected directly,
15837 # and sets the high bit in the cache file unless we assign to the vars.
15838 (
15839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15840 eval ac_val=\$$ac_var
15841 case $ac_val in #(
15842 *${as_nl}*)
15843 case $ac_var in #(
15844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15846 esac
15847 case $ac_var in #(
15848 _ | IFS | as_nl) ;; #(
15849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15850 *) { eval $ac_var=; unset $ac_var;} ;;
15851 esac ;;
15852 esac
15853 done
15854
15855 (set) 2>&1 |
15856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15857 *${as_nl}ac_space=\ *)
15858 # `set' does not quote correctly, so add quotes: double-quote
15859 # substitution turns \\\\ into \\, and sed turns \\ into \.
15860 sed -n \
15861 "s/'/'\\\\''/g;
15862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15863 ;; #(
15864 *)
15865 # `set' quotes correctly as required by POSIX, so do not add quotes.
15866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15867 ;;
15868 esac |
15869 sort
15870 ) |
15871 sed '
15872 /^ac_cv_env_/b end
15873 t clear
15874 :clear
15875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15876 t end
15877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15878 :end' >>confcache
15879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15880 if test -w "$cache_file"; then
15881 if test "x$cache_file" != "x/dev/null"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15883 $as_echo "$as_me: updating cache $cache_file" >&6;}
15884 if test ! -f "$cache_file" || test -h "$cache_file"; then
15885 cat confcache >"$cache_file"
15886 else
15887 case $cache_file in #(
15888 */* | ?:*)
15889 mv -f confcache "$cache_file"$$ &&
15890 mv -f "$cache_file"$$ "$cache_file" ;; #(
15891 *)
15892 mv -f confcache "$cache_file" ;;
15893 esac
15894 fi
15895 fi
15896 else
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15898 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15899 fi
15900 fi
15901 rm -f confcache
15902
15903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15904 # Let make expand exec_prefix.
15905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15906
15907 # Transform confdefs.h into DEFS.
15908 # Protect against shell expansion while executing Makefile rules.
15909 # Protect against Makefile macro expansion.
15910 #
15911 # If the first sed substitution is executed (which looks for macros that
15912 # take arguments), then branch to the quote section. Otherwise,
15913 # look for a macro that doesn't take arguments.
15914 ac_script='
15915 :mline
15916 /\\$/{
15917 N
15918 s,\\\n,,
15919 b mline
15920 }
15921 t clear
15922 :clear
15923 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15924 t quote
15925 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15926 t quote
15927 b any
15928 :quote
15929 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15930 s/\[/\\&/g
15931 s/\]/\\&/g
15932 s/\$/$$/g
15933 H
15934 :any
15935 ${
15936 g
15937 s/^\n//
15938 s/\n/ /g
15939 p
15940 }
15941 '
15942 DEFS=`sed -n "$ac_script" confdefs.h`
15943
15944
15945 ac_libobjs=
15946 ac_ltlibobjs=
15947 U=
15948 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15949 # 1. Remove the extension, and $U if already installed.
15950 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15951 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15952 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15953 # will be set to the directory where LIBOBJS objects are built.
15954 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15955 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15956 done
15957 LIBOBJS=$ac_libobjs
15958
15959 LTLIBOBJS=$ac_ltlibobjs
15960
15961
15962 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15963 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15967 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15968 if test -n "$am_sleep_pid"; then
15969 # Hide warnings about reused PIDs.
15970 wait $am_sleep_pid 2>/dev/null
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15973 $as_echo "done" >&6; }
15974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15975 as_fn_error $? "conditional \"AMDEP\" was never defined.
15976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15977 fi
15978 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15981 fi
15982 if test -n "$EXEEXT"; then
15983 am__EXEEXT_TRUE=
15984 am__EXEEXT_FALSE='#'
15985 else
15986 am__EXEEXT_TRUE='#'
15987 am__EXEEXT_FALSE=
15988 fi
15989
15990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15991 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15993 fi
15994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15995 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15997 fi
15998 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15999 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
16000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001 fi
16002 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
16003 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
16004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 fi
16006
16007 : "${CONFIG_STATUS=./config.status}"
16008 ac_write_fail=0
16009 ac_clean_files_save=$ac_clean_files
16010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16012 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16013 as_write_fail=0
16014 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16015 #! $SHELL
16016 # Generated by $as_me.
16017 # Run this file to recreate the current configuration.
16018 # Compiler output produced by configure, useful for debugging
16019 # configure, is in config.log if it exists.
16020
16021 debug=false
16022 ac_cs_recheck=false
16023 ac_cs_silent=false
16024
16025 SHELL=\${CONFIG_SHELL-$SHELL}
16026 export SHELL
16027 _ASEOF
16028 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16029 ## -------------------- ##
16030 ## M4sh Initialization. ##
16031 ## -------------------- ##
16032
16033 # Be more Bourne compatible
16034 DUALCASE=1; export DUALCASE # for MKS sh
16035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16036 emulate sh
16037 NULLCMD=:
16038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16039 # is contrary to our usage. Disable this feature.
16040 alias -g '${1+"$@"}'='"$@"'
16041 setopt NO_GLOB_SUBST
16042 else
16043 case `(set -o) 2>/dev/null` in #(
16044 *posix*) :
16045 set -o posix ;; #(
16046 *) :
16047 ;;
16048 esac
16049 fi
16050
16051
16052 as_nl='
16053 '
16054 export as_nl
16055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16056 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16059 # Prefer a ksh shell builtin over an external printf program on Solaris,
16060 # but without wasting forks for bash or zsh.
16061 if test -z "$BASH_VERSION$ZSH_VERSION" \
16062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16063 as_echo='print -r --'
16064 as_echo_n='print -rn --'
16065 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16066 as_echo='printf %s\n'
16067 as_echo_n='printf %s'
16068 else
16069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16071 as_echo_n='/usr/ucb/echo -n'
16072 else
16073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16074 as_echo_n_body='eval
16075 arg=$1;
16076 case $arg in #(
16077 *"$as_nl"*)
16078 expr "X$arg" : "X\\(.*\\)$as_nl";
16079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16080 esac;
16081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16082 '
16083 export as_echo_n_body
16084 as_echo_n='sh -c $as_echo_n_body as_echo'
16085 fi
16086 export as_echo_body
16087 as_echo='sh -c $as_echo_body as_echo'
16088 fi
16089
16090 # The user is always right.
16091 if test "${PATH_SEPARATOR+set}" != set; then
16092 PATH_SEPARATOR=:
16093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16095 PATH_SEPARATOR=';'
16096 }
16097 fi
16098
16099
16100 # IFS
16101 # We need space, tab and new line, in precisely that order. Quoting is
16102 # there to prevent editors from complaining about space-tab.
16103 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16104 # splitting by setting IFS to empty value.)
16105 IFS=" "" $as_nl"
16106
16107 # Find who we are. Look in the path if we contain no directory separator.
16108 as_myself=
16109 case $0 in #((
16110 *[\\/]* ) as_myself=$0 ;;
16111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16113 do
16114 IFS=$as_save_IFS
16115 test -z "$as_dir" && as_dir=.
16116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16117 done
16118 IFS=$as_save_IFS
16119
16120 ;;
16121 esac
16122 # We did not find ourselves, most probably we were run as `sh COMMAND'
16123 # in which case we are not to be found in the path.
16124 if test "x$as_myself" = x; then
16125 as_myself=$0
16126 fi
16127 if test ! -f "$as_myself"; then
16128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16129 exit 1
16130 fi
16131
16132 # Unset variables that we do not need and which cause bugs (e.g. in
16133 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16134 # suppresses any "Segmentation fault" message there. '((' could
16135 # trigger a bug in pdksh 5.2.14.
16136 for as_var in BASH_ENV ENV MAIL MAILPATH
16137 do eval test x\${$as_var+set} = xset \
16138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16139 done
16140 PS1='$ '
16141 PS2='> '
16142 PS4='+ '
16143
16144 # NLS nuisances.
16145 LC_ALL=C
16146 export LC_ALL
16147 LANGUAGE=C
16148 export LANGUAGE
16149
16150 # CDPATH.
16151 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16152
16153
16154 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16155 # ----------------------------------------
16156 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16157 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16158 # script with STATUS, using 1 if that was 0.
16159 as_fn_error ()
16160 {
16161 as_status=$1; test $as_status -eq 0 && as_status=1
16162 if test "$4"; then
16163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16165 fi
16166 $as_echo "$as_me: error: $2" >&2
16167 as_fn_exit $as_status
16168 } # as_fn_error
16169
16170
16171 # as_fn_set_status STATUS
16172 # -----------------------
16173 # Set $? to STATUS, without forking.
16174 as_fn_set_status ()
16175 {
16176 return $1
16177 } # as_fn_set_status
16178
16179 # as_fn_exit STATUS
16180 # -----------------
16181 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16182 as_fn_exit ()
16183 {
16184 set +e
16185 as_fn_set_status $1
16186 exit $1
16187 } # as_fn_exit
16188
16189 # as_fn_unset VAR
16190 # ---------------
16191 # Portably unset VAR.
16192 as_fn_unset ()
16193 {
16194 { eval $1=; unset $1;}
16195 }
16196 as_unset=as_fn_unset
16197 # as_fn_append VAR VALUE
16198 # ----------------------
16199 # Append the text in VALUE to the end of the definition contained in VAR. Take
16200 # advantage of any shell optimizations that allow amortized linear growth over
16201 # repeated appends, instead of the typical quadratic growth present in naive
16202 # implementations.
16203 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16204 eval 'as_fn_append ()
16205 {
16206 eval $1+=\$2
16207 }'
16208 else
16209 as_fn_append ()
16210 {
16211 eval $1=\$$1\$2
16212 }
16213 fi # as_fn_append
16214
16215 # as_fn_arith ARG...
16216 # ------------------
16217 # Perform arithmetic evaluation on the ARGs, and store the result in the
16218 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16219 # must be portable across $(()) and expr.
16220 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16221 eval 'as_fn_arith ()
16222 {
16223 as_val=$(( $* ))
16224 }'
16225 else
16226 as_fn_arith ()
16227 {
16228 as_val=`expr "$@" || test $? -eq 1`
16229 }
16230 fi # as_fn_arith
16231
16232
16233 if expr a : '\(a\)' >/dev/null 2>&1 &&
16234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16235 as_expr=expr
16236 else
16237 as_expr=false
16238 fi
16239
16240 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16241 as_basename=basename
16242 else
16243 as_basename=false
16244 fi
16245
16246 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16247 as_dirname=dirname
16248 else
16249 as_dirname=false
16250 fi
16251
16252 as_me=`$as_basename -- "$0" ||
16253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16254 X"$0" : 'X\(//\)$' \| \
16255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16256 $as_echo X/"$0" |
16257 sed '/^.*\/\([^/][^/]*\)\/*$/{
16258 s//\1/
16259 q
16260 }
16261 /^X\/\(\/\/\)$/{
16262 s//\1/
16263 q
16264 }
16265 /^X\/\(\/\).*/{
16266 s//\1/
16267 q
16268 }
16269 s/.*/./; q'`
16270
16271 # Avoid depending upon Character Ranges.
16272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16275 as_cr_digits='0123456789'
16276 as_cr_alnum=$as_cr_Letters$as_cr_digits
16277
16278 ECHO_C= ECHO_N= ECHO_T=
16279 case `echo -n x` in #(((((
16280 -n*)
16281 case `echo 'xy\c'` in
16282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16283 xy) ECHO_C='\c';;
16284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16285 ECHO_T=' ';;
16286 esac;;
16287 *)
16288 ECHO_N='-n';;
16289 esac
16290
16291 rm -f conf$$ conf$$.exe conf$$.file
16292 if test -d conf$$.dir; then
16293 rm -f conf$$.dir/conf$$.file
16294 else
16295 rm -f conf$$.dir
16296 mkdir conf$$.dir 2>/dev/null
16297 fi
16298 if (echo >conf$$.file) 2>/dev/null; then
16299 if ln -s conf$$.file conf$$ 2>/dev/null; then
16300 as_ln_s='ln -s'
16301 # ... but there are two gotchas:
16302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16304 # In both cases, we have to default to `cp -pR'.
16305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16306 as_ln_s='cp -pR'
16307 elif ln conf$$.file conf$$ 2>/dev/null; then
16308 as_ln_s=ln
16309 else
16310 as_ln_s='cp -pR'
16311 fi
16312 else
16313 as_ln_s='cp -pR'
16314 fi
16315 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16316 rmdir conf$$.dir 2>/dev/null
16317
16318
16319 # as_fn_mkdir_p
16320 # -------------
16321 # Create "$as_dir" as a directory, including parents if necessary.
16322 as_fn_mkdir_p ()
16323 {
16324
16325 case $as_dir in #(
16326 -*) as_dir=./$as_dir;;
16327 esac
16328 test -d "$as_dir" || eval $as_mkdir_p || {
16329 as_dirs=
16330 while :; do
16331 case $as_dir in #(
16332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16333 *) as_qdir=$as_dir;;
16334 esac
16335 as_dirs="'$as_qdir' $as_dirs"
16336 as_dir=`$as_dirname -- "$as_dir" ||
16337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16338 X"$as_dir" : 'X\(//\)[^/]' \| \
16339 X"$as_dir" : 'X\(//\)$' \| \
16340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16341 $as_echo X"$as_dir" |
16342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16343 s//\1/
16344 q
16345 }
16346 /^X\(\/\/\)[^/].*/{
16347 s//\1/
16348 q
16349 }
16350 /^X\(\/\/\)$/{
16351 s//\1/
16352 q
16353 }
16354 /^X\(\/\).*/{
16355 s//\1/
16356 q
16357 }
16358 s/.*/./; q'`
16359 test -d "$as_dir" && break
16360 done
16361 test -z "$as_dirs" || eval "mkdir $as_dirs"
16362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16363
16364
16365 } # as_fn_mkdir_p
16366 if mkdir -p . 2>/dev/null; then
16367 as_mkdir_p='mkdir -p "$as_dir"'
16368 else
16369 test -d ./-p && rmdir ./-p
16370 as_mkdir_p=false
16371 fi
16372
16373
16374 # as_fn_executable_p FILE
16375 # -----------------------
16376 # Test if FILE is an executable regular file.
16377 as_fn_executable_p ()
16378 {
16379 test -f "$1" && test -x "$1"
16380 } # as_fn_executable_p
16381 as_test_x='test -x'
16382 as_executable_p=as_fn_executable_p
16383
16384 # Sed expression to map a string onto a valid CPP name.
16385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16386
16387 # Sed expression to map a string onto a valid variable name.
16388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16389
16390
16391 exec 6>&1
16392 ## ----------------------------------- ##
16393 ## Main body of $CONFIG_STATUS script. ##
16394 ## ----------------------------------- ##
16395 _ASEOF
16396 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16397
16398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16399 # Save the log message, to keep $0 and so on meaningful, and to
16400 # report actual input values of CONFIG_FILES etc. instead of their
16401 # values after options handling.
16402 ac_log="
16403 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16404 generated by GNU Autoconf 2.69. Invocation command line was
16405
16406 CONFIG_FILES = $CONFIG_FILES
16407 CONFIG_HEADERS = $CONFIG_HEADERS
16408 CONFIG_LINKS = $CONFIG_LINKS
16409 CONFIG_COMMANDS = $CONFIG_COMMANDS
16410 $ $0 $@
16411
16412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16413 "
16414
16415 _ACEOF
16416
16417 case $ac_config_files in *"
16418 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16419 esac
16420
16421
16422
16423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16424 # Files that config.status was made for.
16425 config_files="$ac_config_files"
16426 config_commands="$ac_config_commands"
16427
16428 _ACEOF
16429
16430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431 ac_cs_usage="\
16432 \`$as_me' instantiates files and other configuration actions
16433 from templates according to the current configuration. Unless the files
16434 and actions are specified as TAGs, all are instantiated by default.
16435
16436 Usage: $0 [OPTION]... [TAG]...
16437
16438 -h, --help print this help, then exit
16439 -V, --version print version number and configuration settings, then exit
16440 --config print configuration, then exit
16441 -q, --quiet, --silent
16442 do not print progress messages
16443 -d, --debug don't remove temporary files
16444 --recheck update $as_me by reconfiguring in the same conditions
16445 --file=FILE[:TEMPLATE]
16446 instantiate the configuration file FILE
16447
16448 Configuration files:
16449 $config_files
16450
16451 Configuration commands:
16452 $config_commands
16453
16454 Report bugs to the package provider.
16455 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16456 General help using GNU software: <http://www.gnu.org/gethelp/>."
16457
16458 _ACEOF
16459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16460 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16461 ac_cs_version="\\
16462 GNU Vtable Verification Runtime Library config.status 1.0
16463 configured by $0, generated by GNU Autoconf 2.69,
16464 with options \\"\$ac_cs_config\\"
16465
16466 Copyright (C) 2012 Free Software Foundation, Inc.
16467 This config.status script is free software; the Free Software Foundation
16468 gives unlimited permission to copy, distribute and modify it."
16469
16470 ac_pwd='$ac_pwd'
16471 srcdir='$srcdir'
16472 INSTALL='$INSTALL'
16473 MKDIR_P='$MKDIR_P'
16474 AWK='$AWK'
16475 test -n "\$AWK" || AWK=awk
16476 _ACEOF
16477
16478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16479 # The default lists apply if the user does not specify any file.
16480 ac_need_defaults=:
16481 while test $# != 0
16482 do
16483 case $1 in
16484 --*=?*)
16485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16487 ac_shift=:
16488 ;;
16489 --*=)
16490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16491 ac_optarg=
16492 ac_shift=:
16493 ;;
16494 *)
16495 ac_option=$1
16496 ac_optarg=$2
16497 ac_shift=shift
16498 ;;
16499 esac
16500
16501 case $ac_option in
16502 # Handling of the options.
16503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16504 ac_cs_recheck=: ;;
16505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16506 $as_echo "$ac_cs_version"; exit ;;
16507 --config | --confi | --conf | --con | --co | --c )
16508 $as_echo "$ac_cs_config"; exit ;;
16509 --debug | --debu | --deb | --de | --d | -d )
16510 debug=: ;;
16511 --file | --fil | --fi | --f )
16512 $ac_shift
16513 case $ac_optarg in
16514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16515 '') as_fn_error $? "missing file argument" ;;
16516 esac
16517 as_fn_append CONFIG_FILES " '$ac_optarg'"
16518 ac_need_defaults=false;;
16519 --he | --h | --help | --hel | -h )
16520 $as_echo "$ac_cs_usage"; exit ;;
16521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16523 ac_cs_silent=: ;;
16524
16525 # This is an error.
16526 -*) as_fn_error $? "unrecognized option: \`$1'
16527 Try \`$0 --help' for more information." ;;
16528
16529 *) as_fn_append ac_config_targets " $1"
16530 ac_need_defaults=false ;;
16531
16532 esac
16533 shift
16534 done
16535
16536 ac_configure_extra_args=
16537
16538 if $ac_cs_silent; then
16539 exec 6>/dev/null
16540 ac_configure_extra_args="$ac_configure_extra_args --silent"
16541 fi
16542
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 if \$ac_cs_recheck; then
16546 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16547 shift
16548 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16549 CONFIG_SHELL='$SHELL'
16550 export CONFIG_SHELL
16551 exec "\$@"
16552 fi
16553
16554 _ACEOF
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16556 exec 5>>config.log
16557 {
16558 echo
16559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16560 ## Running $as_me. ##
16561 _ASBOX
16562 $as_echo "$ac_log"
16563 } >&5
16564
16565 _ACEOF
16566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16567 #
16568 # INIT-COMMANDS
16569 #
16570
16571 srcdir="$srcdir"
16572 host="$host"
16573 target="$target"
16574 with_multisubdir="$with_multisubdir"
16575 with_multisrctop="$with_multisrctop"
16576 with_target_subdir="$with_target_subdir"
16577 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16578 multi_basedir="$multi_basedir"
16579 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16580 CC="$CC"
16581 CXX="$CXX"
16582 GFORTRAN="$GFORTRAN"
16583 GDC="$GDC"
16584 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16585
16586
16587 # The HP-UX ksh and POSIX shell print the target directory to stdout
16588 # if CDPATH is set.
16589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16590
16591 sed_quote_subst='$sed_quote_subst'
16592 double_quote_subst='$double_quote_subst'
16593 delay_variable_subst='$delay_variable_subst'
16594 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16595 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16596 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16597 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16598 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16599 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16600 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16601 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16602 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16603 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16604 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16605 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16606 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16607 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16608 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16609 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16610 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16611 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16612 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16613 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16614 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16615 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16616 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16617 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16618 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16619 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16620 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16621 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16622 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16623 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16624 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16625 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16626 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16627 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16628 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16629 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16630 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16631 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16632 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16633 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16634 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16635 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16636 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16637 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16638 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16639 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16640 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16641 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16642 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"`'
16643 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16644 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16645 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16646 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16647 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16648 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16649 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16650 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16651 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16652 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16653 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16654 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16655 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16656 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16657 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16658 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16659 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16660 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16661 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16662 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16663 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16664 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16665 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16666 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16667 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16668 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16669 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16670 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16671 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16672 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16673 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16674 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16675 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16676 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16677 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16678 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16679 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16680 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16681 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16682 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16683 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16684 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16685 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16686 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16687 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16688 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16689 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16690 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16691 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16692 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16693 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16694 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16695 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16696 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16697 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16698 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16699 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16700 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16701 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16702 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16703 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16704 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16705 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16706 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16707 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16708 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16709 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16710 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16711 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16712 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16713 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16714 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16715 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16716 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16717 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16718 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16719 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16720 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16721 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16722 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16723 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16724 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16725 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16726 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16727 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16728 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16729 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16730 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16731 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16732 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16733 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16734 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16735 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16736 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16737 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16738 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16739 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16740 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16741 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16742 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16743 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16744 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16745 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16746 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16747 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16748 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16749 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16750 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16751 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16752 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16753 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16754 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16755 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16756 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16757 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16758 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16759 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16760 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16761 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16762 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16763 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16764 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16765 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16766 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16767 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16768 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16769
16770 LTCC='$LTCC'
16771 LTCFLAGS='$LTCFLAGS'
16772 compiler='$compiler_DEFAULT'
16773
16774 # A function that is used when there is no print builtin or printf.
16775 func_fallback_echo ()
16776 {
16777 eval 'cat <<_LTECHO_EOF
16778 \$1
16779 _LTECHO_EOF'
16780 }
16781
16782 # Quote evaled strings.
16783 for var in SHELL \
16784 ECHO \
16785 SED \
16786 GREP \
16787 EGREP \
16788 FGREP \
16789 LD \
16790 NM \
16791 LN_S \
16792 lt_SP2NL \
16793 lt_NL2SP \
16794 reload_flag \
16795 OBJDUMP \
16796 deplibs_check_method \
16797 file_magic_cmd \
16798 AR \
16799 AR_FLAGS \
16800 STRIP \
16801 RANLIB \
16802 CC \
16803 CFLAGS \
16804 compiler \
16805 lt_cv_sys_global_symbol_pipe \
16806 lt_cv_sys_global_symbol_to_cdecl \
16807 lt_cv_sys_global_symbol_to_c_name_address \
16808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16809 lt_prog_compiler_no_builtin_flag \
16810 lt_prog_compiler_wl \
16811 lt_prog_compiler_pic \
16812 lt_prog_compiler_static \
16813 lt_cv_prog_compiler_c_o \
16814 need_locks \
16815 DSYMUTIL \
16816 NMEDIT \
16817 LIPO \
16818 OTOOL \
16819 OTOOL64 \
16820 shrext_cmds \
16821 export_dynamic_flag_spec \
16822 whole_archive_flag_spec \
16823 compiler_needs_object \
16824 with_gnu_ld \
16825 allow_undefined_flag \
16826 no_undefined_flag \
16827 hardcode_libdir_flag_spec \
16828 hardcode_libdir_flag_spec_ld \
16829 hardcode_libdir_separator \
16830 fix_srcfile_path \
16831 exclude_expsyms \
16832 include_expsyms \
16833 file_list_spec \
16834 variables_saved_for_relink \
16835 libname_spec \
16836 library_names_spec \
16837 soname_spec \
16838 install_override_mode \
16839 finish_eval \
16840 old_striplib \
16841 striplib \
16842 compiler_lib_search_dirs \
16843 predep_objects \
16844 postdep_objects \
16845 predeps \
16846 postdeps \
16847 compiler_lib_search_path \
16848 LD_CXX \
16849 reload_flag_CXX \
16850 compiler_CXX \
16851 lt_prog_compiler_no_builtin_flag_CXX \
16852 lt_prog_compiler_wl_CXX \
16853 lt_prog_compiler_pic_CXX \
16854 lt_prog_compiler_static_CXX \
16855 lt_cv_prog_compiler_c_o_CXX \
16856 export_dynamic_flag_spec_CXX \
16857 whole_archive_flag_spec_CXX \
16858 compiler_needs_object_CXX \
16859 with_gnu_ld_CXX \
16860 allow_undefined_flag_CXX \
16861 no_undefined_flag_CXX \
16862 hardcode_libdir_flag_spec_CXX \
16863 hardcode_libdir_flag_spec_ld_CXX \
16864 hardcode_libdir_separator_CXX \
16865 fix_srcfile_path_CXX \
16866 exclude_expsyms_CXX \
16867 include_expsyms_CXX \
16868 file_list_spec_CXX \
16869 compiler_lib_search_dirs_CXX \
16870 predep_objects_CXX \
16871 postdep_objects_CXX \
16872 predeps_CXX \
16873 postdeps_CXX \
16874 compiler_lib_search_path_CXX; do
16875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16876 *[\\\\\\\`\\"\\\$]*)
16877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16878 ;;
16879 *)
16880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16881 ;;
16882 esac
16883 done
16884
16885 # Double-quote double-evaled strings.
16886 for var in reload_cmds \
16887 old_postinstall_cmds \
16888 old_postuninstall_cmds \
16889 old_archive_cmds \
16890 extract_expsyms_cmds \
16891 old_archive_from_new_cmds \
16892 old_archive_from_expsyms_cmds \
16893 archive_cmds \
16894 archive_expsym_cmds \
16895 module_cmds \
16896 module_expsym_cmds \
16897 export_symbols_cmds \
16898 prelink_cmds \
16899 postinstall_cmds \
16900 postuninstall_cmds \
16901 finish_cmds \
16902 sys_lib_search_path_spec \
16903 sys_lib_dlsearch_path_spec \
16904 reload_cmds_CXX \
16905 old_archive_cmds_CXX \
16906 old_archive_from_new_cmds_CXX \
16907 old_archive_from_expsyms_cmds_CXX \
16908 archive_cmds_CXX \
16909 archive_expsym_cmds_CXX \
16910 module_cmds_CXX \
16911 module_expsym_cmds_CXX \
16912 export_symbols_cmds_CXX \
16913 prelink_cmds_CXX; do
16914 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16915 *[\\\\\\\`\\"\\\$]*)
16916 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16917 ;;
16918 *)
16919 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16920 ;;
16921 esac
16922 done
16923
16924 ac_aux_dir='$ac_aux_dir'
16925 xsi_shell='$xsi_shell'
16926 lt_shell_append='$lt_shell_append'
16927
16928 # See if we are running on zsh, and set the options which allow our
16929 # commands through without removal of \ escapes INIT.
16930 if test -n "\${ZSH_VERSION+set}" ; then
16931 setopt NO_GLOB_SUBST
16932 fi
16933
16934
16935 PACKAGE='$PACKAGE'
16936 VERSION='$VERSION'
16937 TIMESTAMP='$TIMESTAMP'
16938 RM='$RM'
16939 ofile='$ofile'
16940
16941
16942
16943
16944
16945
16946 _ACEOF
16947
16948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949
16950 # Handling of arguments.
16951 for ac_config_target in $ac_config_targets
16952 do
16953 case $ac_config_target in
16954 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16955 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16956 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16958 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16959
16960 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16961 esac
16962 done
16963
16964
16965 # If the user did not use the arguments to specify the items to instantiate,
16966 # then the envvar interface is used. Set only those that are not.
16967 # We use the long form for the default assignment because of an extremely
16968 # bizarre bug on SunOS 4.1.3.
16969 if $ac_need_defaults; then
16970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16972 fi
16973
16974 # Have a temporary directory for convenience. Make it in the build tree
16975 # simply because there is no reason against having it here, and in addition,
16976 # creating and moving files from /tmp can sometimes cause problems.
16977 # Hook for its removal unless debugging.
16978 # Note that there is a small window in which the directory will not be cleaned:
16979 # after its creation but before its name has been assigned to `$tmp'.
16980 $debug ||
16981 {
16982 tmp= ac_tmp=
16983 trap 'exit_status=$?
16984 : "${ac_tmp:=$tmp}"
16985 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16986 ' 0
16987 trap 'as_fn_exit 1' 1 2 13 15
16988 }
16989 # Create a (secure) tmp directory for tmp files.
16990
16991 {
16992 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16993 test -d "$tmp"
16994 } ||
16995 {
16996 tmp=./conf$$-$RANDOM
16997 (umask 077 && mkdir "$tmp")
16998 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16999 ac_tmp=$tmp
17000
17001 # Set up the scripts for CONFIG_FILES section.
17002 # No need to generate them if there are no CONFIG_FILES.
17003 # This happens for instance with `./config.status config.h'.
17004 if test -n "$CONFIG_FILES"; then
17005
17006
17007 ac_cr=`echo X | tr X '\015'`
17008 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17009 # But we know of no other shell where ac_cr would be empty at this
17010 # point, so we can use a bashism as a fallback.
17011 if test "x$ac_cr" = x; then
17012 eval ac_cr=\$\'\\r\'
17013 fi
17014 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17015 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17016 ac_cs_awk_cr='\\r'
17017 else
17018 ac_cs_awk_cr=$ac_cr
17019 fi
17020
17021 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17022 _ACEOF
17023
17024
17025 {
17026 echo "cat >conf$$subs.awk <<_ACEOF" &&
17027 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17028 echo "_ACEOF"
17029 } >conf$$subs.sh ||
17030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17032 ac_delim='%!_!# '
17033 for ac_last_try in false false false false false :; do
17034 . ./conf$$subs.sh ||
17035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17036
17037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17038 if test $ac_delim_n = $ac_delim_num; then
17039 break
17040 elif $ac_last_try; then
17041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17042 else
17043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17044 fi
17045 done
17046 rm -f conf$$subs.sh
17047
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17050 _ACEOF
17051 sed -n '
17052 h
17053 s/^/S["/; s/!.*/"]=/
17054 p
17055 g
17056 s/^[^!]*!//
17057 :repl
17058 t repl
17059 s/'"$ac_delim"'$//
17060 t delim
17061 :nl
17062 h
17063 s/\(.\{148\}\)..*/\1/
17064 t more1
17065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17066 p
17067 n
17068 b repl
17069 :more1
17070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17071 p
17072 g
17073 s/.\{148\}//
17074 t nl
17075 :delim
17076 h
17077 s/\(.\{148\}\)..*/\1/
17078 t more2
17079 s/["\\]/\\&/g; s/^/"/; s/$/"/
17080 p
17081 b
17082 :more2
17083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17084 p
17085 g
17086 s/.\{148\}//
17087 t delim
17088 ' <conf$$subs.awk | sed '
17089 /^[^""]/{
17090 N
17091 s/\n//
17092 }
17093 ' >>$CONFIG_STATUS || ac_write_fail=1
17094 rm -f conf$$subs.awk
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 _ACAWK
17097 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17098 for (key in S) S_is_set[key] = 1
17099 FS = "\a"
17100
17101 }
17102 {
17103 line = $ 0
17104 nfields = split(line, field, "@")
17105 substed = 0
17106 len = length(field[1])
17107 for (i = 2; i < nfields; i++) {
17108 key = field[i]
17109 keylen = length(key)
17110 if (S_is_set[key]) {
17111 value = S[key]
17112 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17113 len += length(value) + length(field[++i])
17114 substed = 1
17115 } else
17116 len += 1 + keylen
17117 }
17118
17119 print line
17120 }
17121
17122 _ACAWK
17123 _ACEOF
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17126 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17127 else
17128 cat
17129 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17130 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17131 _ACEOF
17132
17133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17135 # trailing colons and then remove the whole line if VPATH becomes empty
17136 # (actually we leave an empty line to preserve line numbers).
17137 if test "x$srcdir" = x.; then
17138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17139 h
17140 s///
17141 s/^/:/
17142 s/[ ]*$/:/
17143 s/:\$(srcdir):/:/g
17144 s/:\${srcdir}:/:/g
17145 s/:@srcdir@:/:/g
17146 s/^:*//
17147 s/:*$//
17148 x
17149 s/\(=[ ]*\).*/\1/
17150 G
17151 s/\n//
17152 s/^[^=]*=[ ]*$//
17153 }'
17154 fi
17155
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 fi # test -n "$CONFIG_FILES"
17158
17159
17160 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17161 shift
17162 for ac_tag
17163 do
17164 case $ac_tag in
17165 :[FHLC]) ac_mode=$ac_tag; continue;;
17166 esac
17167 case $ac_mode$ac_tag in
17168 :[FHL]*:*);;
17169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17170 :[FH]-) ac_tag=-:-;;
17171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17172 esac
17173 ac_save_IFS=$IFS
17174 IFS=:
17175 set x $ac_tag
17176 IFS=$ac_save_IFS
17177 shift
17178 ac_file=$1
17179 shift
17180
17181 case $ac_mode in
17182 :L) ac_source=$1;;
17183 :[FH])
17184 ac_file_inputs=
17185 for ac_f
17186 do
17187 case $ac_f in
17188 -) ac_f="$ac_tmp/stdin";;
17189 *) # Look for the file first in the build tree, then in the source tree
17190 # (if the path is not absolute). The absolute path cannot be DOS-style,
17191 # because $ac_f cannot contain `:'.
17192 test -f "$ac_f" ||
17193 case $ac_f in
17194 [\\/$]*) false;;
17195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17196 esac ||
17197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17198 esac
17199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17200 as_fn_append ac_file_inputs " '$ac_f'"
17201 done
17202
17203 # Let's still pretend it is `configure' which instantiates (i.e., don't
17204 # use $as_me), people would be surprised to read:
17205 # /* config.h. Generated by config.status. */
17206 configure_input='Generated from '`
17207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17208 `' by configure.'
17209 if test x"$ac_file" != x-; then
17210 configure_input="$ac_file. $configure_input"
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17212 $as_echo "$as_me: creating $ac_file" >&6;}
17213 fi
17214 # Neutralize special characters interpreted by sed in replacement strings.
17215 case $configure_input in #(
17216 *\&* | *\|* | *\\* )
17217 ac_sed_conf_input=`$as_echo "$configure_input" |
17218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17219 *) ac_sed_conf_input=$configure_input;;
17220 esac
17221
17222 case $ac_tag in
17223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17225 esac
17226 ;;
17227 esac
17228
17229 ac_dir=`$as_dirname -- "$ac_file" ||
17230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231 X"$ac_file" : 'X\(//\)[^/]' \| \
17232 X"$ac_file" : 'X\(//\)$' \| \
17233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17234 $as_echo X"$ac_file" |
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236 s//\1/
17237 q
17238 }
17239 /^X\(\/\/\)[^/].*/{
17240 s//\1/
17241 q
17242 }
17243 /^X\(\/\/\)$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\).*/{
17248 s//\1/
17249 q
17250 }
17251 s/.*/./; q'`
17252 as_dir="$ac_dir"; as_fn_mkdir_p
17253 ac_builddir=.
17254
17255 case "$ac_dir" in
17256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17257 *)
17258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17259 # A ".." for each directory in $ac_dir_suffix.
17260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17261 case $ac_top_builddir_sub in
17262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17264 esac ;;
17265 esac
17266 ac_abs_top_builddir=$ac_pwd
17267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17268 # for backward compatibility:
17269 ac_top_builddir=$ac_top_build_prefix
17270
17271 case $srcdir in
17272 .) # We are building in place.
17273 ac_srcdir=.
17274 ac_top_srcdir=$ac_top_builddir_sub
17275 ac_abs_top_srcdir=$ac_pwd ;;
17276 [\\/]* | ?:[\\/]* ) # Absolute name.
17277 ac_srcdir=$srcdir$ac_dir_suffix;
17278 ac_top_srcdir=$srcdir
17279 ac_abs_top_srcdir=$srcdir ;;
17280 *) # Relative name.
17281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17282 ac_top_srcdir=$ac_top_build_prefix$srcdir
17283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17284 esac
17285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17286
17287
17288 case $ac_mode in
17289 :F)
17290 #
17291 # CONFIG_FILE
17292 #
17293
17294 case $INSTALL in
17295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17297 esac
17298 ac_MKDIR_P=$MKDIR_P
17299 case $MKDIR_P in
17300 [\\/$]* | ?:[\\/]* ) ;;
17301 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17302 esac
17303 _ACEOF
17304
17305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17306 # If the template does not know about datarootdir, expand it.
17307 # FIXME: This hack should be removed a few years after 2.60.
17308 ac_datarootdir_hack=; ac_datarootdir_seen=
17309 ac_sed_dataroot='
17310 /datarootdir/ {
17311 p
17312 q
17313 }
17314 /@datadir@/p
17315 /@docdir@/p
17316 /@infodir@/p
17317 /@localedir@/p
17318 /@mandir@/p'
17319 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17320 *datarootdir*) ac_datarootdir_seen=yes;;
17321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 ac_datarootdir_hack='
17327 s&@datadir@&$datadir&g
17328 s&@docdir@&$docdir&g
17329 s&@infodir@&$infodir&g
17330 s&@localedir@&$localedir&g
17331 s&@mandir@&$mandir&g
17332 s&\\\${datarootdir}&$datarootdir&g' ;;
17333 esac
17334 _ACEOF
17335
17336 # Neutralize VPATH when `$srcdir' = `.'.
17337 # Shell code in configure.ac might set extrasub.
17338 # FIXME: do we really want to maintain this feature?
17339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340 ac_sed_extra="$ac_vpsub
17341 $extrasub
17342 _ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17344 :t
17345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17346 s|@configure_input@|$ac_sed_conf_input|;t t
17347 s&@top_builddir@&$ac_top_builddir_sub&;t t
17348 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17349 s&@srcdir@&$ac_srcdir&;t t
17350 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17351 s&@top_srcdir@&$ac_top_srcdir&;t t
17352 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17353 s&@builddir@&$ac_builddir&;t t
17354 s&@abs_builddir@&$ac_abs_builddir&;t t
17355 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17356 s&@INSTALL@&$ac_INSTALL&;t t
17357 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17358 $ac_datarootdir_hack
17359 "
17360 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17361 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17362
17363 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17364 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17366 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17368 which seems to be undefined. Please make sure it is defined" >&5
17369 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17370 which seems to be undefined. Please make sure it is defined" >&2;}
17371
17372 rm -f "$ac_tmp/stdin"
17373 case $ac_file in
17374 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17375 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17376 esac \
17377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17378 ;;
17379
17380
17381 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17382 $as_echo "$as_me: executing $ac_file commands" >&6;}
17383 ;;
17384 esac
17385
17386
17387 case $ac_file$ac_mode in
17388 "default-1":C)
17389 # Only add multilib support code if we just rebuilt the top-level
17390 # Makefile.
17391 case " $CONFIG_FILES " in
17392 *" Makefile "*)
17393 ac_file=Makefile . ${multi_basedir}/config-ml.in
17394 ;;
17395 esac ;;
17396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17397 # Older Autoconf quotes --file arguments for eval, but not when files
17398 # are listed without --file. Let's play safe and only enable the eval
17399 # if we detect the quoting.
17400 case $CONFIG_FILES in
17401 *\'*) eval set x "$CONFIG_FILES" ;;
17402 *) set x $CONFIG_FILES ;;
17403 esac
17404 shift
17405 for mf
17406 do
17407 # Strip MF so we end up with the name of the file.
17408 mf=`echo "$mf" | sed -e 's/:.*$//'`
17409 # Check whether this is an Automake generated Makefile or not.
17410 # We used to match only the files named 'Makefile.in', but
17411 # some people rename them; so instead we look at the file content.
17412 # Grep'ing the first line is not enough: some people post-process
17413 # each Makefile.in and add a new line on top of each file to say so.
17414 # Grep'ing the whole file is not good either: AIX grep has a line
17415 # limit of 2048, but all sed's we know have understand at least 4000.
17416 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17417 dirpart=`$as_dirname -- "$mf" ||
17418 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419 X"$mf" : 'X\(//\)[^/]' \| \
17420 X"$mf" : 'X\(//\)$' \| \
17421 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17422 $as_echo X"$mf" |
17423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424 s//\1/
17425 q
17426 }
17427 /^X\(\/\/\)[^/].*/{
17428 s//\1/
17429 q
17430 }
17431 /^X\(\/\/\)$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\(\/\).*/{
17436 s//\1/
17437 q
17438 }
17439 s/.*/./; q'`
17440 else
17441 continue
17442 fi
17443 # Extract the definition of DEPDIR, am__include, and am__quote
17444 # from the Makefile without running 'make'.
17445 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17446 test -z "$DEPDIR" && continue
17447 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17448 test -z "$am__include" && continue
17449 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17450 # Find all dependency output files, they are included files with
17451 # $(DEPDIR) in their names. We invoke sed twice because it is the
17452 # simplest approach to changing $(DEPDIR) to its actual value in the
17453 # expansion.
17454 for file in `sed -n "
17455 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17456 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17457 # Make sure the directory exists.
17458 test -f "$dirpart/$file" && continue
17459 fdir=`$as_dirname -- "$file" ||
17460 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461 X"$file" : 'X\(//\)[^/]' \| \
17462 X"$file" : 'X\(//\)$' \| \
17463 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17464 $as_echo X"$file" |
17465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17466 s//\1/
17467 q
17468 }
17469 /^X\(\/\/\)[^/].*/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\).*/{
17478 s//\1/
17479 q
17480 }
17481 s/.*/./; q'`
17482 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17483 # echo "creating $dirpart/$file"
17484 echo '# dummy' > "$dirpart/$file"
17485 done
17486 done
17487 }
17488 ;;
17489 "libtool":C)
17490
17491 # See if we are running on zsh, and set the options which allow our
17492 # commands through without removal of \ escapes.
17493 if test -n "${ZSH_VERSION+set}" ; then
17494 setopt NO_GLOB_SUBST
17495 fi
17496
17497 cfgfile="${ofile}T"
17498 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17499 $RM "$cfgfile"
17500
17501 cat <<_LT_EOF >> "$cfgfile"
17502 #! $SHELL
17503
17504 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17505 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17507 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17508 #
17509 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17510 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17511 # Written by Gordon Matzigkeit, 1996
17512 #
17513 # This file is part of GNU Libtool.
17514 #
17515 # GNU Libtool is free software; you can redistribute it and/or
17516 # modify it under the terms of the GNU General Public License as
17517 # published by the Free Software Foundation; either version 2 of
17518 # the License, or (at your option) any later version.
17519 #
17520 # As a special exception to the GNU General Public License,
17521 # if you distribute this file as part of a program or library that
17522 # is built using GNU Libtool, you may include this file under the
17523 # same distribution terms that you use for the rest of that program.
17524 #
17525 # GNU Libtool is distributed in the hope that it will be useful,
17526 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17528 # GNU General Public License for more details.
17529 #
17530 # You should have received a copy of the GNU General Public License
17531 # along with GNU Libtool; see the file COPYING. If not, a copy
17532 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17533 # obtained by writing to the Free Software Foundation, Inc.,
17534 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17535
17536
17537 # The names of the tagged configurations supported by this script.
17538 available_tags="CXX "
17539
17540 # ### BEGIN LIBTOOL CONFIG
17541
17542 # Which release of libtool.m4 was used?
17543 macro_version=$macro_version
17544 macro_revision=$macro_revision
17545
17546 # Whether or not to build shared libraries.
17547 build_libtool_libs=$enable_shared
17548
17549 # Whether or not to build static libraries.
17550 build_old_libs=$enable_static
17551
17552 # What type of objects to build.
17553 pic_mode=$pic_mode
17554
17555 # Whether or not to optimize for fast installation.
17556 fast_install=$enable_fast_install
17557
17558 # Shell to use when invoking shell scripts.
17559 SHELL=$lt_SHELL
17560
17561 # An echo program that protects backslashes.
17562 ECHO=$lt_ECHO
17563
17564 # The host system.
17565 host_alias=$host_alias
17566 host=$host
17567 host_os=$host_os
17568
17569 # The build system.
17570 build_alias=$build_alias
17571 build=$build
17572 build_os=$build_os
17573
17574 # A sed program that does not truncate output.
17575 SED=$lt_SED
17576
17577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17578 Xsed="\$SED -e 1s/^X//"
17579
17580 # A grep program that handles long lines.
17581 GREP=$lt_GREP
17582
17583 # An ERE matcher.
17584 EGREP=$lt_EGREP
17585
17586 # A literal string matcher.
17587 FGREP=$lt_FGREP
17588
17589 # A BSD- or MS-compatible name lister.
17590 NM=$lt_NM
17591
17592 # Whether we need soft or hard links.
17593 LN_S=$lt_LN_S
17594
17595 # What is the maximum length of a command?
17596 max_cmd_len=$max_cmd_len
17597
17598 # Object file suffix (normally "o").
17599 objext=$ac_objext
17600
17601 # Executable file suffix (normally "").
17602 exeext=$exeext
17603
17604 # whether the shell understands "unset".
17605 lt_unset=$lt_unset
17606
17607 # turn spaces into newlines.
17608 SP2NL=$lt_lt_SP2NL
17609
17610 # turn newlines into spaces.
17611 NL2SP=$lt_lt_NL2SP
17612
17613 # An object symbol dumper.
17614 OBJDUMP=$lt_OBJDUMP
17615
17616 # Method to check whether dependent libraries are shared objects.
17617 deplibs_check_method=$lt_deplibs_check_method
17618
17619 # Command to use when deplibs_check_method == "file_magic".
17620 file_magic_cmd=$lt_file_magic_cmd
17621
17622 # The archiver.
17623 AR=$lt_AR
17624 AR_FLAGS=$lt_AR_FLAGS
17625
17626 # A symbol stripping program.
17627 STRIP=$lt_STRIP
17628
17629 # Commands used to install an old-style archive.
17630 RANLIB=$lt_RANLIB
17631 old_postinstall_cmds=$lt_old_postinstall_cmds
17632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17633
17634 # Whether to use a lock for old archive extraction.
17635 lock_old_archive_extraction=$lock_old_archive_extraction
17636
17637 # A C compiler.
17638 LTCC=$lt_CC
17639
17640 # LTCC compiler flags.
17641 LTCFLAGS=$lt_CFLAGS
17642
17643 # Take the output of nm and produce a listing of raw symbols and C names.
17644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17645
17646 # Transform the output of nm in a proper C declaration.
17647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17648
17649 # Transform the output of nm in a C name address pair.
17650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17651
17652 # Transform the output of nm in a C name address pair when lib prefix is needed.
17653 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17654
17655 # The name of the directory that contains temporary libtool files.
17656 objdir=$objdir
17657
17658 # Used to examine libraries when file_magic_cmd begins with "file".
17659 MAGIC_CMD=$MAGIC_CMD
17660
17661 # Must we lock files when doing compilation?
17662 need_locks=$lt_need_locks
17663
17664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17665 DSYMUTIL=$lt_DSYMUTIL
17666
17667 # Tool to change global to local symbols on Mac OS X.
17668 NMEDIT=$lt_NMEDIT
17669
17670 # Tool to manipulate fat objects and archives on Mac OS X.
17671 LIPO=$lt_LIPO
17672
17673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17674 OTOOL=$lt_OTOOL
17675
17676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17677 OTOOL64=$lt_OTOOL64
17678
17679 # Old archive suffix (normally "a").
17680 libext=$libext
17681
17682 # Shared library suffix (normally ".so").
17683 shrext_cmds=$lt_shrext_cmds
17684
17685 # The commands to extract the exported symbol list from a shared archive.
17686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17687
17688 # Variables whose values should be saved in libtool wrapper scripts and
17689 # restored at link time.
17690 variables_saved_for_relink=$lt_variables_saved_for_relink
17691
17692 # Do we need the "lib" prefix for modules?
17693 need_lib_prefix=$need_lib_prefix
17694
17695 # Do we need a version for libraries?
17696 need_version=$need_version
17697
17698 # Library versioning type.
17699 version_type=$version_type
17700
17701 # Shared library runtime path variable.
17702 runpath_var=$runpath_var
17703
17704 # Shared library path variable.
17705 shlibpath_var=$shlibpath_var
17706
17707 # Is shlibpath searched before the hard-coded library search path?
17708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17709
17710 # Format of library name prefix.
17711 libname_spec=$lt_libname_spec
17712
17713 # List of archive names. First name is the real one, the rest are links.
17714 # The last name is the one that the linker finds with -lNAME
17715 library_names_spec=$lt_library_names_spec
17716
17717 # The coded name of the library, if different from the real name.
17718 soname_spec=$lt_soname_spec
17719
17720 # Permission mode override for installation of shared libraries.
17721 install_override_mode=$lt_install_override_mode
17722
17723 # Command to use after installation of a shared archive.
17724 postinstall_cmds=$lt_postinstall_cmds
17725
17726 # Command to use after uninstallation of a shared archive.
17727 postuninstall_cmds=$lt_postuninstall_cmds
17728
17729 # Commands used to finish a libtool library installation in a directory.
17730 finish_cmds=$lt_finish_cmds
17731
17732 # As "finish_cmds", except a single script fragment to be evaled but
17733 # not shown.
17734 finish_eval=$lt_finish_eval
17735
17736 # Whether we should hardcode library paths into libraries.
17737 hardcode_into_libs=$hardcode_into_libs
17738
17739 # Compile-time system search path for libraries.
17740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17741
17742 # Run-time system search path for libraries.
17743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17744
17745 # Whether dlopen is supported.
17746 dlopen_support=$enable_dlopen
17747
17748 # Whether dlopen of programs is supported.
17749 dlopen_self=$enable_dlopen_self
17750
17751 # Whether dlopen of statically linked programs is supported.
17752 dlopen_self_static=$enable_dlopen_self_static
17753
17754 # Commands to strip libraries.
17755 old_striplib=$lt_old_striplib
17756 striplib=$lt_striplib
17757
17758
17759 # The linker used to build libraries.
17760 LD=$lt_LD
17761
17762 # How to create reloadable object files.
17763 reload_flag=$lt_reload_flag
17764 reload_cmds=$lt_reload_cmds
17765
17766 # Commands used to build an old-style archive.
17767 old_archive_cmds=$lt_old_archive_cmds
17768
17769 # A language specific compiler.
17770 CC=$lt_compiler
17771
17772 # Is the compiler the GNU compiler?
17773 with_gcc=$GCC
17774
17775 # Compiler flag to turn off builtin functions.
17776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17777
17778 # How to pass a linker flag through the compiler.
17779 wl=$lt_lt_prog_compiler_wl
17780
17781 # Additional compiler flags for building library objects.
17782 pic_flag=$lt_lt_prog_compiler_pic
17783
17784 # Compiler flag to prevent dynamic linking.
17785 link_static_flag=$lt_lt_prog_compiler_static
17786
17787 # Does compiler simultaneously support -c and -o options?
17788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17789
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc
17792
17793 # Whether or not to disallow shared libs when runtime libs are static.
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17795
17796 # Compiler flag to allow reflexive dlopens.
17797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17798
17799 # Compiler flag to generate shared objects directly from archives.
17800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17801
17802 # Whether the compiler copes with passing no objects directly.
17803 compiler_needs_object=$lt_compiler_needs_object
17804
17805 # Create an old-style archive from a shared archive.
17806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17807
17808 # Create a temporary old-style archive to link instead of a shared archive.
17809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17810
17811 # Commands used to build a shared archive.
17812 archive_cmds=$lt_archive_cmds
17813 archive_expsym_cmds=$lt_archive_expsym_cmds
17814
17815 # Commands used to build a loadable module if different from building
17816 # a shared archive.
17817 module_cmds=$lt_module_cmds
17818 module_expsym_cmds=$lt_module_expsym_cmds
17819
17820 # Whether we are building with GNU ld or not.
17821 with_gnu_ld=$lt_with_gnu_ld
17822
17823 # Flag that allows shared libraries with undefined symbols to be built.
17824 allow_undefined_flag=$lt_allow_undefined_flag
17825
17826 # Flag that enforces no undefined symbols.
17827 no_undefined_flag=$lt_no_undefined_flag
17828
17829 # Flag to hardcode \$libdir into a binary during linking.
17830 # This must work even if \$libdir does not exist
17831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17832
17833 # If ld is used when linking, flag to hardcode \$libdir into a binary
17834 # during linking. This must work even if \$libdir does not exist.
17835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17836
17837 # Whether we need a single "-rpath" flag with a separated argument.
17838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17839
17840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17841 # DIR into the resulting binary.
17842 hardcode_direct=$hardcode_direct
17843
17844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17845 # DIR into the resulting binary and the resulting library dependency is
17846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17847 # library is relocated.
17848 hardcode_direct_absolute=$hardcode_direct_absolute
17849
17850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17851 # into the resulting binary.
17852 hardcode_minus_L=$hardcode_minus_L
17853
17854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17855 # into the resulting binary.
17856 hardcode_shlibpath_var=$hardcode_shlibpath_var
17857
17858 # Set to "yes" if building a shared library automatically hardcodes DIR
17859 # into the library and all subsequent libraries and executables linked
17860 # against it.
17861 hardcode_automatic=$hardcode_automatic
17862
17863 # Set to yes if linker adds runtime paths of dependent libraries
17864 # to runtime path list.
17865 inherit_rpath=$inherit_rpath
17866
17867 # Whether libtool must link a program against all its dependency libraries.
17868 link_all_deplibs=$link_all_deplibs
17869
17870 # Fix the shell variable \$srcfile for the compiler.
17871 fix_srcfile_path=$lt_fix_srcfile_path
17872
17873 # Set to "yes" if exported symbols are required.
17874 always_export_symbols=$always_export_symbols
17875
17876 # The commands to list exported symbols.
17877 export_symbols_cmds=$lt_export_symbols_cmds
17878
17879 # Symbols that should not be listed in the preloaded symbols.
17880 exclude_expsyms=$lt_exclude_expsyms
17881
17882 # Symbols that must always be exported.
17883 include_expsyms=$lt_include_expsyms
17884
17885 # Commands necessary for linking programs (against libraries) with templates.
17886 prelink_cmds=$lt_prelink_cmds
17887
17888 # Specify filename containing input files.
17889 file_list_spec=$lt_file_list_spec
17890
17891 # How to hardcode a shared library path into an executable.
17892 hardcode_action=$hardcode_action
17893
17894 # The directories searched by this compiler when creating a shared library.
17895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17896
17897 # Dependencies to place before and after the objects being linked to
17898 # create a shared library.
17899 predep_objects=$lt_predep_objects
17900 postdep_objects=$lt_postdep_objects
17901 predeps=$lt_predeps
17902 postdeps=$lt_postdeps
17903
17904 # The library search path used internally by the compiler when linking
17905 # a shared library.
17906 compiler_lib_search_path=$lt_compiler_lib_search_path
17907
17908 # ### END LIBTOOL CONFIG
17909
17910 _LT_EOF
17911
17912 case $host_os in
17913 aix3*)
17914 cat <<\_LT_EOF >> "$cfgfile"
17915 # AIX sometimes has problems with the GCC collect2 program. For some
17916 # reason, if we set the COLLECT_NAMES environment variable, the problems
17917 # vanish in a puff of smoke.
17918 if test "X${COLLECT_NAMES+set}" != Xset; then
17919 COLLECT_NAMES=
17920 export COLLECT_NAMES
17921 fi
17922 _LT_EOF
17923 ;;
17924 esac
17925
17926
17927 ltmain="$ac_aux_dir/ltmain.sh"
17928
17929
17930 # We use sed instead of cat because bash on DJGPP gets confused if
17931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17932 # text mode, it properly converts lines to CR/LF. This bash problem
17933 # is reportedly fixed, but why not run on old versions too?
17934 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17935 || (rm -f "$cfgfile"; exit 1)
17936
17937 case $xsi_shell in
17938 yes)
17939 cat << \_LT_EOF >> "$cfgfile"
17940
17941 # func_dirname file append nondir_replacement
17942 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17943 # otherwise set result to NONDIR_REPLACEMENT.
17944 func_dirname ()
17945 {
17946 case ${1} in
17947 */*) func_dirname_result="${1%/*}${2}" ;;
17948 * ) func_dirname_result="${3}" ;;
17949 esac
17950 }
17951
17952 # func_basename file
17953 func_basename ()
17954 {
17955 func_basename_result="${1##*/}"
17956 }
17957
17958 # func_dirname_and_basename file append nondir_replacement
17959 # perform func_basename and func_dirname in a single function
17960 # call:
17961 # dirname: Compute the dirname of FILE. If nonempty,
17962 # add APPEND to the result, otherwise set result
17963 # to NONDIR_REPLACEMENT.
17964 # value returned in "$func_dirname_result"
17965 # basename: Compute filename of FILE.
17966 # value retuned in "$func_basename_result"
17967 # Implementation must be kept synchronized with func_dirname
17968 # and func_basename. For efficiency, we do not delegate to
17969 # those functions but instead duplicate the functionality here.
17970 func_dirname_and_basename ()
17971 {
17972 case ${1} in
17973 */*) func_dirname_result="${1%/*}${2}" ;;
17974 * ) func_dirname_result="${3}" ;;
17975 esac
17976 func_basename_result="${1##*/}"
17977 }
17978
17979 # func_stripname prefix suffix name
17980 # strip PREFIX and SUFFIX off of NAME.
17981 # PREFIX and SUFFIX must not contain globbing or regex special
17982 # characters, hashes, percent signs, but SUFFIX may contain a leading
17983 # dot (in which case that matches only a dot).
17984 func_stripname ()
17985 {
17986 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17987 # positional parameters, so assign one to ordinary parameter first.
17988 func_stripname_result=${3}
17989 func_stripname_result=${func_stripname_result#"${1}"}
17990 func_stripname_result=${func_stripname_result%"${2}"}
17991 }
17992
17993 # func_opt_split
17994 func_opt_split ()
17995 {
17996 func_opt_split_opt=${1%%=*}
17997 func_opt_split_arg=${1#*=}
17998 }
17999
18000 # func_lo2o object
18001 func_lo2o ()
18002 {
18003 case ${1} in
18004 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18005 *) func_lo2o_result=${1} ;;
18006 esac
18007 }
18008
18009 # func_xform libobj-or-source
18010 func_xform ()
18011 {
18012 func_xform_result=${1%.*}.lo
18013 }
18014
18015 # func_arith arithmetic-term...
18016 func_arith ()
18017 {
18018 func_arith_result=$(( $* ))
18019 }
18020
18021 # func_len string
18022 # STRING may not start with a hyphen.
18023 func_len ()
18024 {
18025 func_len_result=${#1}
18026 }
18027
18028 _LT_EOF
18029 ;;
18030 *) # Bourne compatible functions.
18031 cat << \_LT_EOF >> "$cfgfile"
18032
18033 # func_dirname file append nondir_replacement
18034 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18035 # otherwise set result to NONDIR_REPLACEMENT.
18036 func_dirname ()
18037 {
18038 # Extract subdirectory from the argument.
18039 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18040 if test "X$func_dirname_result" = "X${1}"; then
18041 func_dirname_result="${3}"
18042 else
18043 func_dirname_result="$func_dirname_result${2}"
18044 fi
18045 }
18046
18047 # func_basename file
18048 func_basename ()
18049 {
18050 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18051 }
18052
18053
18054 # func_stripname prefix suffix name
18055 # strip PREFIX and SUFFIX off of NAME.
18056 # PREFIX and SUFFIX must not contain globbing or regex special
18057 # characters, hashes, percent signs, but SUFFIX may contain a leading
18058 # dot (in which case that matches only a dot).
18059 # func_strip_suffix prefix name
18060 func_stripname ()
18061 {
18062 case ${2} in
18063 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18064 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18065 esac
18066 }
18067
18068 # sed scripts:
18069 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18070 my_sed_long_arg='1s/^-[^=]*=//'
18071
18072 # func_opt_split
18073 func_opt_split ()
18074 {
18075 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18076 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18077 }
18078
18079 # func_lo2o object
18080 func_lo2o ()
18081 {
18082 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18083 }
18084
18085 # func_xform libobj-or-source
18086 func_xform ()
18087 {
18088 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18089 }
18090
18091 # func_arith arithmetic-term...
18092 func_arith ()
18093 {
18094 func_arith_result=`expr "$@"`
18095 }
18096
18097 # func_len string
18098 # STRING may not start with a hyphen.
18099 func_len ()
18100 {
18101 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18102 }
18103
18104 _LT_EOF
18105 esac
18106
18107 case $lt_shell_append in
18108 yes)
18109 cat << \_LT_EOF >> "$cfgfile"
18110
18111 # func_append var value
18112 # Append VALUE to the end of shell variable VAR.
18113 func_append ()
18114 {
18115 eval "$1+=\$2"
18116 }
18117 _LT_EOF
18118 ;;
18119 *)
18120 cat << \_LT_EOF >> "$cfgfile"
18121
18122 # func_append var value
18123 # Append VALUE to the end of shell variable VAR.
18124 func_append ()
18125 {
18126 eval "$1=\$$1\$2"
18127 }
18128
18129 _LT_EOF
18130 ;;
18131 esac
18132
18133
18134 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18135 || (rm -f "$cfgfile"; exit 1)
18136
18137 mv -f "$cfgfile" "$ofile" ||
18138 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18139 chmod +x "$ofile"
18140
18141
18142 cat <<_LT_EOF >> "$ofile"
18143
18144 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18145
18146 # The linker used to build libraries.
18147 LD=$lt_LD_CXX
18148
18149 # How to create reloadable object files.
18150 reload_flag=$lt_reload_flag_CXX
18151 reload_cmds=$lt_reload_cmds_CXX
18152
18153 # Commands used to build an old-style archive.
18154 old_archive_cmds=$lt_old_archive_cmds_CXX
18155
18156 # A language specific compiler.
18157 CC=$lt_compiler_CXX
18158
18159 # Is the compiler the GNU compiler?
18160 with_gcc=$GCC_CXX
18161
18162 # Compiler flag to turn off builtin functions.
18163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18164
18165 # How to pass a linker flag through the compiler.
18166 wl=$lt_lt_prog_compiler_wl_CXX
18167
18168 # Additional compiler flags for building library objects.
18169 pic_flag=$lt_lt_prog_compiler_pic_CXX
18170
18171 # Compiler flag to prevent dynamic linking.
18172 link_static_flag=$lt_lt_prog_compiler_static_CXX
18173
18174 # Does compiler simultaneously support -c and -o options?
18175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18176
18177 # Whether or not to add -lc for building shared libraries.
18178 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18179
18180 # Whether or not to disallow shared libs when runtime libs are static.
18181 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18182
18183 # Compiler flag to allow reflexive dlopens.
18184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18185
18186 # Compiler flag to generate shared objects directly from archives.
18187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18188
18189 # Whether the compiler copes with passing no objects directly.
18190 compiler_needs_object=$lt_compiler_needs_object_CXX
18191
18192 # Create an old-style archive from a shared archive.
18193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18194
18195 # Create a temporary old-style archive to link instead of a shared archive.
18196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18197
18198 # Commands used to build a shared archive.
18199 archive_cmds=$lt_archive_cmds_CXX
18200 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18201
18202 # Commands used to build a loadable module if different from building
18203 # a shared archive.
18204 module_cmds=$lt_module_cmds_CXX
18205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18206
18207 # Whether we are building with GNU ld or not.
18208 with_gnu_ld=$lt_with_gnu_ld_CXX
18209
18210 # Flag that allows shared libraries with undefined symbols to be built.
18211 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18212
18213 # Flag that enforces no undefined symbols.
18214 no_undefined_flag=$lt_no_undefined_flag_CXX
18215
18216 # Flag to hardcode \$libdir into a binary during linking.
18217 # This must work even if \$libdir does not exist
18218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18219
18220 # If ld is used when linking, flag to hardcode \$libdir into a binary
18221 # during linking. This must work even if \$libdir does not exist.
18222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18223
18224 # Whether we need a single "-rpath" flag with a separated argument.
18225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18226
18227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18228 # DIR into the resulting binary.
18229 hardcode_direct=$hardcode_direct_CXX
18230
18231 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18232 # DIR into the resulting binary and the resulting library dependency is
18233 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18234 # library is relocated.
18235 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18236
18237 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18238 # into the resulting binary.
18239 hardcode_minus_L=$hardcode_minus_L_CXX
18240
18241 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18242 # into the resulting binary.
18243 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18244
18245 # Set to "yes" if building a shared library automatically hardcodes DIR
18246 # into the library and all subsequent libraries and executables linked
18247 # against it.
18248 hardcode_automatic=$hardcode_automatic_CXX
18249
18250 # Set to yes if linker adds runtime paths of dependent libraries
18251 # to runtime path list.
18252 inherit_rpath=$inherit_rpath_CXX
18253
18254 # Whether libtool must link a program against all its dependency libraries.
18255 link_all_deplibs=$link_all_deplibs_CXX
18256
18257 # Fix the shell variable \$srcfile for the compiler.
18258 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18259
18260 # Set to "yes" if exported symbols are required.
18261 always_export_symbols=$always_export_symbols_CXX
18262
18263 # The commands to list exported symbols.
18264 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18265
18266 # Symbols that should not be listed in the preloaded symbols.
18267 exclude_expsyms=$lt_exclude_expsyms_CXX
18268
18269 # Symbols that must always be exported.
18270 include_expsyms=$lt_include_expsyms_CXX
18271
18272 # Commands necessary for linking programs (against libraries) with templates.
18273 prelink_cmds=$lt_prelink_cmds_CXX
18274
18275 # Specify filename containing input files.
18276 file_list_spec=$lt_file_list_spec_CXX
18277
18278 # How to hardcode a shared library path into an executable.
18279 hardcode_action=$hardcode_action_CXX
18280
18281 # The directories searched by this compiler when creating a shared library.
18282 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18283
18284 # Dependencies to place before and after the objects being linked to
18285 # create a shared library.
18286 predep_objects=$lt_predep_objects_CXX
18287 postdep_objects=$lt_postdep_objects_CXX
18288 predeps=$lt_predeps_CXX
18289 postdeps=$lt_postdeps_CXX
18290
18291 # The library search path used internally by the compiler when linking
18292 # a shared library.
18293 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18294
18295 # ### END LIBTOOL TAG CONFIG: CXX
18296 _LT_EOF
18297
18298 ;;
18299 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18300 s!`test -f '$<' || echo '$(srcdir)/'`!!
18301 _EOF
18302 sed -f vpsed$$ $ac_file > tmp$$
18303 mv tmp$$ $ac_file
18304 rm vpsed$$
18305 echo 'MULTISUBDIR =' >> $ac_file
18306 ml_norecursion=yes
18307 . ${multi_basedir}/config-ml.in
18308 { ml_norecursion=; unset ml_norecursion;}
18309 ;;
18310
18311 esac
18312 done # for ac_tag
18313
18314
18315 as_fn_exit 0
18316 _ACEOF
18317 ac_clean_files=$ac_clean_files_save
18318
18319 test $ac_write_fail = 0 ||
18320 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18321
18322
18323 # configure is writing to config.log, and then calls config.status.
18324 # config.status does its own redirection, appending to config.log.
18325 # Unfortunately, on DOS this fails, as config.log is still kept open
18326 # by configure, so config.status won't be able to write to it; its
18327 # output is simply discarded. So we exec the FD to /dev/null,
18328 # effectively closing config.log, so it can be properly (re)opened and
18329 # appended to by config.status. When coming back to configure, we
18330 # need to make the FD available again.
18331 if test "$no_create" != yes; then
18332 ac_cs_success=:
18333 ac_config_status_args=
18334 test "$silent" = yes &&
18335 ac_config_status_args="$ac_config_status_args --quiet"
18336 exec 5>/dev/null
18337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18338 exec 5>>config.log
18339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18340 # would make configure fail if this is the last instruction.
18341 $ac_cs_success || as_fn_exit 1
18342 fi
18343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18345 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18346 fi
18347