]> git.ipfire.org Git - thirdparty/gcc.git/blob - libsanitizer/configure
* sanitizer_common/sanitizer_symbolizer_libbacktrace.h
[thirdparty/gcc.git] / libsanitizer / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Report bugs to <libsanitizer>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378 fi
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
565
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBBACKTRACE_SUPPORTED_FALSE
608 LIBBACKTRACE_SUPPORTED_TRUE
609 BACKTRACE_SUPPORTS_THREADS
610 BACKTRACE_USES_MALLOC
611 ALLOC_FILE
612 VIEW_FILE
613 BACKTRACE_SUPPORTED
614 FORMAT_FILE
615 USING_MAC_INTERPOSE_FALSE
616 USING_MAC_INTERPOSE_TRUE
617 link_liblsan
618 link_libubsan
619 link_libtsan
620 link_libasan
621 LSAN_SUPPORTED_FALSE
622 LSAN_SUPPORTED_TRUE
623 TSAN_SUPPORTED_FALSE
624 TSAN_SUPPORTED_TRUE
625 enable_static
626 enable_shared
627 CXXCPP
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 AR
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 SED
642 LIBTOOL
643 RANLIB
644 am__fastdepCCAS_FALSE
645 am__fastdepCCAS_TRUE
646 CCASDEPMODE
647 CCASFLAGS
648 CCAS
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
654 CXX
655 toolexeclibdir
656 toolexecdir
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 multi_basedir
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 LIBSTDCXX_RAW_CXX_LDFLAGS
694 LIBSTDCXX_RAW_CXX_CXXFLAGS
695 target_noncanonical
696 target_os
697 target_vendor
698 target_cpu
699 target
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 EGREP
709 GREP
710 CPP
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_version_specific_runtime_libs
760 enable_dependency_tracking
761 enable_multilib
762 enable_maintainer_mode
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 enable_libtool_lock
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP
779 CXX
780 CXXFLAGS
781 CCC
782 CCAS
783 CCASFLAGS
784 CXXCPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of package-unused version-unused:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --enable-multilib build many library versions (default)
1409 --enable-maintainer-mode enable make rules and dependencies not useful
1410 (and sometimes confusing) to the casual installer
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-pic try to use only PIC/non-PIC objects [default=use
1421 both]
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 CCAS assembler compiler command (defaults to CC)
1436 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1437 CXXCPP C++ preprocessor
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <libsanitizer>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 package-unused configure version-unused
1506 generated by GNU Autoconf 2.64
1507
1508 Copyright (C) 2009 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 return $ac_retval
1554
1555 } # ac_fn_c_try_compile
1556
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_cpp ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } >/dev/null && {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590 return $ac_retval
1591
1592 } # ac_fn_c_try_cpp
1593
1594 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597 # the include files in INCLUDES and setting the cache variable VAR
1598 # accordingly.
1599 ac_fn_c_check_header_mongrel ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 $as_echo_n "(cached) " >&6
1607 fi
1608 eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1611 else
1612 # Is the header compilable?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614 $as_echo_n "checking $2 usability... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 #include <$2>
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_header_compiler=yes
1622 else
1623 ac_header_compiler=no
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627 $as_echo "$ac_header_compiler" >&6; }
1628
1629 # Is the header present?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631 $as_echo_n "checking $2 presence... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_cpp "$LINENO"; then :
1637 ac_header_preproc=yes
1638 else
1639 ac_header_preproc=no
1640 fi
1641 rm -f conftest.err conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643 $as_echo "$ac_header_preproc" >&6; }
1644
1645 # So? What about this header?
1646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1647 yes:no: )
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 ;;
1653 no:yes:* )
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1657 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1661 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ( cat <<\_ASBOX
1665 ## --------------------------- ##
1666 ## Report this to libsanitizer ##
1667 ## --------------------------- ##
1668 _ASBOX
1669 ) | sed "s/^/$as_me: WARNING: /" >&2
1670 ;;
1671 esac
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 eval "$3=\$ac_header_compiler"
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684
1685 } # ac_fn_c_check_header_mongrel
1686
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1691 ac_fn_c_try_run ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=$ac_status
1722 fi
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1726
1727 } # ac_fn_c_try_run
1728
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 eval "$3=yes"
1748 else
1749 eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757
1758 } # ac_fn_c_check_header_compile
1759
1760 # ac_fn_cxx_try_compile LINENO
1761 # ----------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_cxx_try_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_cxx_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 return $ac_retval
1795
1796 } # ac_fn_cxx_try_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 $as_test_x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_func LINENO FUNC VAR
1845 # ----------------------------------
1846 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1847 ac_fn_c_check_func ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859 #define $2 innocuous_$2
1860
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866 #ifdef __STDC__
1867 # include <limits.h>
1868 #else
1869 # include <assert.h>
1870 #endif
1871
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 ();
1881 /* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main ()
1890 {
1891 return $2 ();
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909 } # ac_fn_c_check_func
1910
1911 # ac_fn_cxx_try_cpp LINENO
1912 # ------------------------
1913 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_cxx_try_cpp ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_cpp conftest.$ac_ext"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } >/dev/null && {
1933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 }; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 return $ac_retval
1945
1946 } # ac_fn_cxx_try_cpp
1947
1948 # ac_fn_cxx_try_link LINENO
1949 # -------------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_link ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext conftest$ac_exeext
1955 if { { ac_try="$ac_link"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest$ac_exeext && {
1974 test "$cross_compiling" = yes ||
1975 $as_test_x conftest$ac_exeext
1976 }; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983 fi
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1991
1992 } # ac_fn_cxx_try_link
1993
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 # computed
1999 ac_fn_c_compute_int ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if test "$cross_compiling" = yes; then
2003 # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2011 test_array [0] = 0
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_lo=0 ac_mid=0
2019 while :; do
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 test_array [0] = 0
2028
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_hi=$ac_mid; break
2035 else
2036 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2037 if test $ac_lo -le $ac_mid; then
2038 ac_lo= ac_hi=
2039 break
2040 fi
2041 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 done
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 int
2050 main ()
2051 {
2052 static int test_array [1 - 2 * !(($2) < 0)];
2053 test_array [0] = 0
2054
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_hi=-1 ac_mid=-1
2061 while :; do
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2069 test_array [0] = 0
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=$ac_mid; break
2077 else
2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079 if test $ac_mid -le $ac_hi; then
2080 ac_lo= ac_hi=
2081 break
2082 fi
2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 done
2087 else
2088 ac_lo= ac_hi=
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 test_array [0] = 0
2104
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_hi=$ac_mid
2111 else
2112 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 case $ac_lo in #((
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 '') ac_retval=1 ;;
2119 esac
2120 else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 static long int longval () { return $2; }
2125 static unsigned long int ulongval () { return $2; }
2126 #include <stdio.h>
2127 #include <stdlib.h>
2128 int
2129 main ()
2130 {
2131
2132 FILE *f = fopen ("conftest.val", "w");
2133 if (! f)
2134 return 1;
2135 if (($2) < 0)
2136 {
2137 long int i = longval ();
2138 if (i != ($2))
2139 return 1;
2140 fprintf (f, "%ld", i);
2141 }
2142 else
2143 {
2144 unsigned long int i = ulongval ();
2145 if (i != ($2))
2146 return 1;
2147 fprintf (f, "%lu", i);
2148 }
2149 /* Do not output a trailing newline, as this causes \r\n confusion
2150 on some platforms. */
2151 return ferror (f) || fclose (f) != 0;
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_run "$LINENO"; then :
2158 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2159 else
2160 ac_retval=1
2161 fi
2162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2163 conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 rm -f conftest.val
2165
2166 fi
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 return $ac_retval
2169
2170 } # ac_fn_c_compute_int
2171
2172 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2173 # -------------------------------------------
2174 # Tests whether TYPE exists after having included INCLUDES, setting cache
2175 # variable VAR accordingly.
2176 ac_fn_c_check_type ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 eval "$3=no"
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 if (sizeof ($2))
2192 return 0;
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 if (sizeof (($2)))
2205 return 0;
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211
2212 else
2213 eval "$3=yes"
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224 } # ac_fn_c_check_type
2225
2226 # ac_fn_c_check_decl LINENO SYMBOL VAR
2227 # ------------------------------------
2228 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2229 ac_fn_c_check_decl ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 as_decl_name=`echo $2|sed 's/ *(.*//'`
2233 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2235 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2236 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 #ifndef $as_decl_name
2246 #ifdef __cplusplus
2247 (void) $as_decl_use;
2248 #else
2249 (void) $as_decl_name;
2250 #endif
2251 #endif
2252
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 eval "$3=yes"
2259 else
2260 eval "$3=no"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_decl
2270 cat >config.log <<_ACEOF
2271 This file contains any messages produced by compilers while
2272 running configure, to aid debugging if configure makes a mistake.
2273
2274 It was created by package-unused $as_me version-unused, which was
2275 generated by GNU Autoconf 2.64. Invocation command line was
2276
2277 $ $0 $@
2278
2279 _ACEOF
2280 exec 5>>config.log
2281 {
2282 cat <<_ASUNAME
2283 ## --------- ##
2284 ## Platform. ##
2285 ## --------- ##
2286
2287 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2288 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2289 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2290 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2291 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292
2293 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2294 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295
2296 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2297 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2298 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2299 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2300 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2301 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2302 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303
2304 _ASUNAME
2305
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 $as_echo "PATH: $as_dir"
2312 done
2313 IFS=$as_save_IFS
2314
2315 } >&5
2316
2317 cat >&5 <<_ACEOF
2318
2319
2320 ## ----------- ##
2321 ## Core tests. ##
2322 ## ----------- ##
2323
2324 _ACEOF
2325
2326
2327 # Keep a trace of the command line.
2328 # Strip out --no-create and --no-recursion so they do not pile up.
2329 # Strip out --silent because we don't want to record it for future runs.
2330 # Also quote any args containing shell meta-characters.
2331 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_configure_args=
2333 ac_configure_args0=
2334 ac_configure_args1=
2335 ac_must_keep_next=false
2336 for ac_pass in 1 2
2337 do
2338 for ac_arg
2339 do
2340 case $ac_arg in
2341 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2343 | -silent | --silent | --silen | --sile | --sil)
2344 continue ;;
2345 *\'*)
2346 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2347 esac
2348 case $ac_pass in
2349 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 2)
2351 as_fn_append ac_configure_args1 " '$ac_arg'"
2352 if test $ac_must_keep_next = true; then
2353 ac_must_keep_next=false # Got value, back to normal.
2354 else
2355 case $ac_arg in
2356 *=* | --config-cache | -C | -disable-* | --disable-* \
2357 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2358 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2359 | -with-* | --with-* | -without-* | --without-* | --x)
2360 case "$ac_configure_args0 " in
2361 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2362 esac
2363 ;;
2364 -* ) ac_must_keep_next=true ;;
2365 esac
2366 fi
2367 as_fn_append ac_configure_args " '$ac_arg'"
2368 ;;
2369 esac
2370 done
2371 done
2372 { ac_configure_args0=; unset ac_configure_args0;}
2373 { ac_configure_args1=; unset ac_configure_args1;}
2374
2375 # When interrupted or exit'd, cleanup temporary files, and complete
2376 # config.log. We remove comments because anyway the quotes in there
2377 # would cause problems or look ugly.
2378 # WARNING: Use '\'' to represent an apostrophe within the trap.
2379 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2380 trap 'exit_status=$?
2381 # Save into config.log some information that might help in debugging.
2382 {
2383 echo
2384
2385 cat <<\_ASBOX
2386 ## ---------------- ##
2387 ## Cache variables. ##
2388 ## ---------------- ##
2389 _ASBOX
2390 echo
2391 # The following way of writing the cache mishandles newlines in values,
2392 (
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in #(
2396 *${as_nl}*)
2397 case $ac_var in #(
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400 esac
2401 case $ac_var in #(
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2405 esac ;;
2406 esac
2407 done
2408 (set) 2>&1 |
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2411 sed -n \
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414 ;; #(
2415 *)
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417 ;;
2418 esac |
2419 sort
2420 )
2421 echo
2422
2423 cat <<\_ASBOX
2424 ## ----------------- ##
2425 ## Output variables. ##
2426 ## ----------------- ##
2427 _ASBOX
2428 echo
2429 for ac_var in $ac_subst_vars
2430 do
2431 eval ac_val=\$$ac_var
2432 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac
2435 $as_echo "$ac_var='\''$ac_val'\''"
2436 done | sort
2437 echo
2438
2439 if test -n "$ac_subst_files"; then
2440 cat <<\_ASBOX
2441 ## ------------------- ##
2442 ## File substitutions. ##
2443 ## ------------------- ##
2444 _ASBOX
2445 echo
2446 for ac_var in $ac_subst_files
2447 do
2448 eval ac_val=\$$ac_var
2449 case $ac_val in
2450 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451 esac
2452 $as_echo "$ac_var='\''$ac_val'\''"
2453 done | sort
2454 echo
2455 fi
2456
2457 if test -s confdefs.h; then
2458 cat <<\_ASBOX
2459 ## ----------- ##
2460 ## confdefs.h. ##
2461 ## ----------- ##
2462 _ASBOX
2463 echo
2464 cat confdefs.h
2465 echo
2466 fi
2467 test "$ac_signal" != 0 &&
2468 $as_echo "$as_me: caught signal $ac_signal"
2469 $as_echo "$as_me: exit $exit_status"
2470 } >&5
2471 rm -f core *.core core.conftest.* &&
2472 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2473 exit $exit_status
2474 ' 0
2475 for ac_signal in 1 2 13 15; do
2476 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477 done
2478 ac_signal=0
2479
2480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2481 rm -f -r conftest* confdefs.h
2482
2483 $as_echo "/* confdefs.h */" > confdefs.h
2484
2485 # Predefined preprocessor variables.
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_NAME "$PACKAGE_NAME"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_STRING "$PACKAGE_STRING"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_URL "$PACKAGE_URL"
2509 _ACEOF
2510
2511
2512 # Let the site file select an alternate cache file if it wants to.
2513 # Prefer an explicitly selected file to automatically selected ones.
2514 ac_site_file1=NONE
2515 ac_site_file2=NONE
2516 if test -n "$CONFIG_SITE"; then
2517 ac_site_file1=$CONFIG_SITE
2518 elif test "x$prefix" != xNONE; then
2519 ac_site_file1=$prefix/share/config.site
2520 ac_site_file2=$prefix/etc/config.site
2521 else
2522 ac_site_file1=$ac_default_prefix/share/config.site
2523 ac_site_file2=$ac_default_prefix/etc/config.site
2524 fi
2525 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2526 do
2527 test "x$ac_site_file" = xNONE && continue
2528 if test -r "$ac_site_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2530 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2531 sed 's/^/| /' "$ac_site_file" >&5
2532 . "$ac_site_file"
2533 fi
2534 done
2535
2536 if test -r "$cache_file"; then
2537 # Some versions of bash will fail to source /dev/null (special
2538 # files actually), so we avoid doing that.
2539 if test -f "$cache_file"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2542 case $cache_file in
2543 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544 *) . "./$cache_file";;
2545 esac
2546 fi
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2550 >$cache_file
2551 fi
2552
2553 # Check that the precious variables saved in the cache have kept the same
2554 # value.
2555 ac_cache_corrupted=false
2556 for ac_var in $ac_precious_vars; do
2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558 eval ac_new_set=\$ac_env_${ac_var}_set
2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560 eval ac_new_val=\$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2562 set,)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,set)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2570 ,);;
2571 *)
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w=`echo x $ac_old_val`
2575 ac_new_val_w=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted=:
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\$ac_old_val
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2589 fi;;
2590 esac
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2593 case $ac_new_val in
2594 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg=$ac_var=$ac_new_val ;;
2596 esac
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600 esac
2601 fi
2602 done
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2609 fi
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621
2622
2623
2624
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2627 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2628 # Check whether --enable-version-specific-runtime-libs was given.
2629 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2630 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2631 yes) version_specific_libs=yes ;;
2632 no) version_specific_libs=no ;;
2633 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2634 esac
2635 else
2636 version_specific_libs=no
2637 fi
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2640 $as_echo "$version_specific_libs" >&6; }
2641
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$ac_cv_prog_CC"; then
2687 ac_ct_CC=$CC
2688 # Extract the first word of "gcc", so it can be a program name with args.
2689 set dummy gcc; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$ac_ct_CC"; then
2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_ac_ct_CC="gcc"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716 if test -n "$ac_ct_CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2718 $as_echo "$ac_ct_CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724 if test "x$ac_ct_CC" = x; then
2725 CC=""
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 CC=$ac_ct_CC
2734 fi
2735 else
2736 CC="$ac_cv_prog_CC"
2737 fi
2738
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}cc; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_CC="${ac_tool_prefix}cc"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 CC=$ac_cv_prog_CC
2769 if test -n "$CC"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2771 $as_echo "$CC" >&6; }
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778 fi
2779 fi
2780 if test -z "$CC"; then
2781 # Extract the first word of "cc", so it can be a program name with args.
2782 set dummy cc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 ac_prog_rejected=no
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2800 ac_prog_rejected=yes
2801 continue
2802 fi
2803 ac_cv_prog_CC="cc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 if test $ac_prog_rejected = yes; then
2812 # We found a bogon in the path, so make sure we never use it.
2813 set dummy $ac_cv_prog_CC
2814 shift
2815 if test $# != 0; then
2816 # We chose a different compiler from the bogus one.
2817 # However, it has the same basename, so the bogon will be chosen
2818 # first if we set CC to just the basename; use the full file name.
2819 shift
2820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2821 fi
2822 fi
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$CC"; then
2837 if test -n "$ac_tool_prefix"; then
2838 for ac_prog in cl.exe
2839 do
2840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 test -n "$CC" && break
2878 done
2879 fi
2880 if test -z "$CC"; then
2881 ac_ct_CC=$CC
2882 for ac_prog in cl.exe
2883 do
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_ac_ct_CC="$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912 if test -n "$ac_ct_CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914 $as_echo "$ac_ct_CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 test -n "$ac_ct_CC" && break
2922 done
2923
2924 if test "x$ac_ct_CC" = x; then
2925 CC=""
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933 CC=$ac_ct_CC
2934 fi
2935 fi
2936
2937 fi
2938
2939
2940 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error "no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." "$LINENO" 5; }
2944
2945 # Provide some information about the compiler.
2946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2947 set X $ac_compile
2948 ac_compiler=$2
2949 for ac_option in --version -v -V -qversion; do
2950 { { ac_try="$ac_compiler $ac_option >&5"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2958 ac_status=$?
2959 if test -s conftest.err; then
2960 sed '10a\
2961 ... rest of stderr output deleted ...
2962 10q' conftest.err >conftest.er1
2963 cat conftest.er1 >&5
2964 rm -f conftest.er1 conftest.err
2965 fi
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }
2968 done
2969
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2972
2973 int
2974 main ()
2975 {
2976
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 ac_clean_files_save=$ac_clean_files
2982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2983 # Try to create an executable without -o first, disregard a.out.
2984 # It will help us diagnose broken compilers, and finding out an intuition
2985 # of exeext.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2987 $as_echo_n "checking for C compiler default output file name... " >&6; }
2988 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2989
2990 # The possible output files:
2991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2992
2993 ac_rmfiles=
2994 for ac_file in $ac_files
2995 do
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2999 esac
3000 done
3001 rm -f $ac_rmfiles
3002
3003 if { { ac_try="$ac_link_default"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_link_default") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }; then :
3014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3017 # so that the user can short-circuit this test for compilers unknown to
3018 # Autoconf.
3019 for ac_file in $ac_files ''
3020 do
3021 test -f "$ac_file" || continue
3022 case $ac_file in
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3024 ;;
3025 [ab].out )
3026 # We found the default executable, but exeext='' is most
3027 # certainly right.
3028 break;;
3029 *.* )
3030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3031 then :; else
3032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 fi
3034 # We set ac_cv_exeext here because the later test for it is not
3035 # safe: cross compilers may not add the suffix if given an `-o'
3036 # argument, so we may need to know it at that point already.
3037 # Even if this section looks crufty: it has the advantage of
3038 # actually working.
3039 break;;
3040 * )
3041 break;;
3042 esac
3043 done
3044 test "$ac_cv_exeext" = no && ac_cv_exeext=
3045
3046 else
3047 ac_file=''
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 if test -z "$ac_file"; then :
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 { as_fn_set_status 77
3058 as_fn_error "C compiler cannot create executables
3059 See \`config.log' for more details." "$LINENO" 5; }; }
3060 fi
3061 ac_exeext=$ac_cv_exeext
3062
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3066 $as_echo_n "checking whether the C compiler works... " >&6; }
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069 if { ac_try='./$ac_file'
3070 { { case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; }; then
3080 cross_compiling=no
3081 else
3082 if test "$cross_compiling" = maybe; then
3083 cross_compiling=yes
3084 else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error "cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." "$LINENO" 5; }
3090 fi
3091 fi
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3095
3096 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3097 ac_clean_files=$ac_clean_files_save
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3103 $as_echo "$cross_compiling" >&6; }
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 break;;
3128 * ) break;;
3129 esac
3130 done
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error "cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details." "$LINENO" 5; }
3136 fi
3137 rm -f conftest$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3140
3141 rm -f conftest.$ac_ext
3142 EXEEXT=$ac_cv_exeext
3143 ac_exeext=$EXEEXT
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 test "${ac_cv_objext+set}" = set; 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 test "${ac_cv_c_compiler_gnu+set}" = set; 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 test "${ac_cv_prog_cc_g+set}" = set; 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 test "${ac_cv_prog_cc_c89+set}" = set; 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 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3329 {
3330 return p[i];
3331 }
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3333 {
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3340 }
3341
3342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3343 function prototypes and stuff, but not '\xHH' hex character constants.
3344 These don't provoke an error unfortunately, instead are silently treated
3345 as 'x'. The following induces an error, until -std is added to get
3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3347 array size at least. It's necessary to write '\x00'==0 to get something
3348 that's true only with -std. */
3349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3350
3351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3352 inside strings and character constants. */
3353 #define FOO(x) 'x'
3354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3355
3356 int test (int i, double x);
3357 struct s1 {int (*f) (int a);};
3358 struct s2 {int (*f) (double a);};
3359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 int argc;
3361 char **argv;
3362 int
3363 main ()
3364 {
3365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3372 do
3373 CC="$ac_save_CC $ac_arg"
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_c89=$ac_arg
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
3379 done
3380 rm -f conftest.$ac_ext
3381 CC=$ac_save_CC
3382
3383 fi
3384 # AC_CACHE_VAL
3385 case "x$ac_cv_prog_cc_c89" in
3386 x)
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3388 $as_echo "none needed" >&6; } ;;
3389 xno)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3391 $as_echo "unsupported" >&6; } ;;
3392 *)
3393 CC="$CC $ac_cv_prog_cc_c89"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3396 esac
3397 if test "x$ac_cv_prog_cc_c89" != xno; then :
3398
3399 fi
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3414 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3415 # On Suns, sometimes $CPP names a directory.
3416 if test -n "$CPP" && test -d "$CPP"; then
3417 CPP=
3418 fi
3419 if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3425 do
3426 ac_preproc_ok=false
3427 for ac_c_preproc_warn_flag in '' yes
3428 do
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442 Syntax error
3443 _ACEOF
3444 if ac_fn_c_try_cpp "$LINENO"; then :
3445
3446 else
3447 # Broken: fails on valid input.
3448 continue
3449 fi
3450 rm -f conftest.err conftest.$ac_ext
3451
3452 # OK, works on sane cases. Now check whether nonexistent headers
3453 # can be detected and how.
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456 #include <ac_nonexistent.h>
3457 _ACEOF
3458 if ac_fn_c_try_cpp "$LINENO"; then :
3459 # Broken: success on invalid input.
3460 continue
3461 else
3462 # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then :
3472 break
3473 fi
3474
3475 done
3476 ac_cv_prog_CPP=$CPP
3477
3478 fi
3479 CPP=$ac_cv_prog_CPP
3480 else
3481 ac_cv_prog_CPP=$CPP
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3484 $as_echo "$CPP" >&6; }
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3487 do
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496 #ifdef __STDC__
3497 # include <limits.h>
3498 #else
3499 # include <assert.h>
3500 #endif
3501 Syntax error
3502 _ACEOF
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3504
3505 else
3506 # Broken: fails on valid input.
3507 continue
3508 fi
3509 rm -f conftest.err conftest.$ac_ext
3510
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515 #include <ac_nonexistent.h>
3516 _ACEOF
3517 if ac_fn_c_try_cpp "$LINENO"; then :
3518 # Broken: success on invalid input.
3519 continue
3520 else
3521 # Passes both tests.
3522 ac_preproc_ok=:
3523 break
3524 fi
3525 rm -f conftest.err conftest.$ac_ext
3526
3527 done
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then :
3531
3532 else
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3536 See \`config.log' for more details." "$LINENO" 5; }
3537 fi
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544
3545
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3547 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3548 if test "${ac_cv_path_GREP+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -z "$GREP"; then
3552 ac_path_GREP_found=false
3553 # Loop through the user's path and test for each of PROGNAME-LIST
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_prog in grep ggrep; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3562 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3563 # Check for GNU ac_path_GREP and select it if it is found.
3564 # Check for GNU $ac_path_GREP
3565 case `"$ac_path_GREP" --version 2>&1` in
3566 *GNU*)
3567 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3568 *)
3569 ac_count=0
3570 $as_echo_n 0123456789 >"conftest.in"
3571 while :
3572 do
3573 cat "conftest.in" "conftest.in" >"conftest.tmp"
3574 mv "conftest.tmp" "conftest.in"
3575 cp "conftest.in" "conftest.nl"
3576 $as_echo 'GREP' >> "conftest.nl"
3577 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3579 as_fn_arith $ac_count + 1 && ac_count=$as_val
3580 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3581 # Best one so far, save it but keep looking for a better one
3582 ac_cv_path_GREP="$ac_path_GREP"
3583 ac_path_GREP_max=$ac_count
3584 fi
3585 # 10*(2^10) chars as input seems more than enough
3586 test $ac_count -gt 10 && break
3587 done
3588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3589 esac
3590
3591 $ac_path_GREP_found && break 3
3592 done
3593 done
3594 done
3595 IFS=$as_save_IFS
3596 if test -z "$ac_cv_path_GREP"; then
3597 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3598 fi
3599 else
3600 ac_cv_path_GREP=$GREP
3601 fi
3602
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3605 $as_echo "$ac_cv_path_GREP" >&6; }
3606 GREP="$ac_cv_path_GREP"
3607
3608
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3610 $as_echo_n "checking for egrep... " >&6; }
3611 if test "${ac_cv_path_EGREP+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3615 then ac_cv_path_EGREP="$GREP -E"
3616 else
3617 if test -z "$EGREP"; then
3618 ac_path_EGREP_found=false
3619 # Loop through the user's path and test for each of PROGNAME-LIST
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_prog in egrep; do
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3628 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3629 # Check for GNU ac_path_EGREP and select it if it is found.
3630 # Check for GNU $ac_path_EGREP
3631 case `"$ac_path_EGREP" --version 2>&1` in
3632 *GNU*)
3633 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3634 *)
3635 ac_count=0
3636 $as_echo_n 0123456789 >"conftest.in"
3637 while :
3638 do
3639 cat "conftest.in" "conftest.in" >"conftest.tmp"
3640 mv "conftest.tmp" "conftest.in"
3641 cp "conftest.in" "conftest.nl"
3642 $as_echo 'EGREP' >> "conftest.nl"
3643 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3645 as_fn_arith $ac_count + 1 && ac_count=$as_val
3646 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3647 # Best one so far, save it but keep looking for a better one
3648 ac_cv_path_EGREP="$ac_path_EGREP"
3649 ac_path_EGREP_max=$ac_count
3650 fi
3651 # 10*(2^10) chars as input seems more than enough
3652 test $ac_count -gt 10 && break
3653 done
3654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655 esac
3656
3657 $ac_path_EGREP_found && break 3
3658 done
3659 done
3660 done
3661 IFS=$as_save_IFS
3662 if test -z "$ac_cv_path_EGREP"; then
3663 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3664 fi
3665 else
3666 ac_cv_path_EGREP=$EGREP
3667 fi
3668
3669 fi
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3672 $as_echo "$ac_cv_path_EGREP" >&6; }
3673 EGREP="$ac_cv_path_EGREP"
3674
3675
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3677 $as_echo_n "checking for ANSI C header files... " >&6; }
3678 if test "${ac_cv_header_stdc+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683 #include <stdlib.h>
3684 #include <stdarg.h>
3685 #include <string.h>
3686 #include <float.h>
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_header_stdc=yes
3698 else
3699 ac_cv_header_stdc=no
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702
3703 if test $ac_cv_header_stdc = yes; then
3704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <string.h>
3708
3709 _ACEOF
3710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711 $EGREP "memchr" >/dev/null 2>&1; then :
3712
3713 else
3714 ac_cv_header_stdc=no
3715 fi
3716 rm -f conftest*
3717
3718 fi
3719
3720 if test $ac_cv_header_stdc = yes; then
3721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <stdlib.h>
3725
3726 _ACEOF
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 $EGREP "free" >/dev/null 2>&1; then :
3729
3730 else
3731 ac_cv_header_stdc=no
3732 fi
3733 rm -f conftest*
3734
3735 fi
3736
3737 if test $ac_cv_header_stdc = yes; then
3738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3739 if test "$cross_compiling" = yes; then :
3740 :
3741 else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <ctype.h>
3745 #include <stdlib.h>
3746 #if ((' ' & 0x0FF) == 0x020)
3747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3749 #else
3750 # define ISLOWER(c) \
3751 (('a' <= (c) && (c) <= 'i') \
3752 || ('j' <= (c) && (c) <= 'r') \
3753 || ('s' <= (c) && (c) <= 'z'))
3754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3755 #endif
3756
3757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3758 int
3759 main ()
3760 {
3761 int i;
3762 for (i = 0; i < 256; i++)
3763 if (XOR (islower (i), ISLOWER (i))
3764 || toupper (i) != TOUPPER (i))
3765 return 2;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_run "$LINENO"; then :
3770
3771 else
3772 ac_cv_header_stdc=no
3773 fi
3774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3775 conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 fi
3777
3778 fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3781 $as_echo "$ac_cv_header_stdc" >&6; }
3782 if test $ac_cv_header_stdc = yes; then
3783
3784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3785
3786 fi
3787
3788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3790 inttypes.h stdint.h unistd.h
3791 do :
3792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3794 "
3795 eval as_val=\$$as_ac_Header
3796 if test "x$as_val" = x""yes; then :
3797 cat >>confdefs.h <<_ACEOF
3798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3799 _ACEOF
3800
3801 fi
3802
3803 done
3804
3805
3806
3807 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3808 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3809 MINIX=yes
3810 else
3811 MINIX=
3812 fi
3813
3814
3815 if test "$MINIX" = yes; then
3816
3817 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3818
3819
3820 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3821
3822
3823 $as_echo "#define _MINIX 1" >>confdefs.h
3824
3825 fi
3826
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3829 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3830 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 # define __EXTENSIONS__ 1
3837 $ac_includes_default
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_safe_to_define___extensions__=yes
3848 else
3849 ac_cv_safe_to_define___extensions__=no
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3854 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3855 test $ac_cv_safe_to_define___extensions__ = yes &&
3856 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3857
3858 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3859
3860 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3861
3862 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3863
3864 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3865
3866
3867
3868 # Do not delete or change the following two lines. For why, see
3869 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3870 ac_aux_dir=
3871 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3872 for ac_t in install-sh install.sh shtool; do
3873 if test -f "$ac_dir/$ac_t"; then
3874 ac_aux_dir=$ac_dir
3875 ac_install_sh="$ac_aux_dir/$ac_t -c"
3876 break 2
3877 fi
3878 done
3879 done
3880 if test -z "$ac_aux_dir"; then
3881 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3882 fi
3883
3884 # These three variables are undocumented and unsupported,
3885 # and are intended to be withdrawn in a future Autoconf release.
3886 # They can cause serious problems if a builder's source tree is in a directory
3887 # whose full name contains unusual characters.
3888 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3889 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3890 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3891
3892
3893 # Make sure we can run config.sub.
3894 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3895 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3898 $as_echo_n "checking build system type... " >&6; }
3899 if test "${ac_cv_build+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_build_alias=$build_alias
3903 test "x$ac_build_alias" = x &&
3904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3905 test "x$ac_build_alias" = x &&
3906 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3908 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3912 $as_echo "$ac_cv_build" >&6; }
3913 case $ac_cv_build in
3914 *-*-*) ;;
3915 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3916 esac
3917 build=$ac_cv_build
3918 ac_save_IFS=$IFS; IFS='-'
3919 set x $ac_cv_build
3920 shift
3921 build_cpu=$1
3922 build_vendor=$2
3923 shift; shift
3924 # Remember, the first character of IFS is used to create $*,
3925 # except with old shells:
3926 build_os=$*
3927 IFS=$ac_save_IFS
3928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3932 $as_echo_n "checking host system type... " >&6; }
3933 if test "${ac_cv_host+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test "x$host_alias" = x; then
3937 ac_cv_host=$ac_cv_build
3938 else
3939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3940 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3945 $as_echo "$ac_cv_host" >&6; }
3946 case $ac_cv_host in
3947 *-*-*) ;;
3948 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3949 esac
3950 host=$ac_cv_host
3951 ac_save_IFS=$IFS; IFS='-'
3952 set x $ac_cv_host
3953 shift
3954 host_cpu=$1
3955 host_vendor=$2
3956 shift; shift
3957 # Remember, the first character of IFS is used to create $*,
3958 # except with old shells:
3959 host_os=$*
3960 IFS=$ac_save_IFS
3961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3962
3963
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3965 $as_echo_n "checking target system type... " >&6; }
3966 if test "${ac_cv_target+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test "x$target_alias" = x; then
3970 ac_cv_target=$ac_cv_host
3971 else
3972 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3973 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3974 fi
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3978 $as_echo "$ac_cv_target" >&6; }
3979 case $ac_cv_target in
3980 *-*-*) ;;
3981 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3982 esac
3983 target=$ac_cv_target
3984 ac_save_IFS=$IFS; IFS='-'
3985 set x $ac_cv_target
3986 shift
3987 target_cpu=$1
3988 target_vendor=$2
3989 shift; shift
3990 # Remember, the first character of IFS is used to create $*,
3991 # except with old shells:
3992 target_os=$*
3993 IFS=$ac_save_IFS
3994 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3995
3996
3997 # The aliases save the names the user supplied, while $host etc.
3998 # will get canonicalized.
3999 test -n "$target_alias" &&
4000 test "$program_prefix$program_suffix$program_transform_name" = \
4001 NONENONEs,x,x, &&
4002 program_prefix=${target_alias}-
4003
4004 target_alias=${target_alias-$host_alias}
4005
4006 case ${build_alias} in
4007 "") build_noncanonical=${build} ;;
4008 *) build_noncanonical=${build_alias} ;;
4009 esac
4010
4011 case ${host_alias} in
4012 "") host_noncanonical=${build_noncanonical} ;;
4013 *) host_noncanonical=${host_alias} ;;
4014 esac
4015
4016 case ${target_alias} in
4017 "") target_noncanonical=${host_noncanonical} ;;
4018 *) target_noncanonical=${target_alias} ;;
4019 esac
4020
4021
4022
4023
4024
4025 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4026 -I\$(top_builddir)/../libstdc++-v3/include \
4027 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4028 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4029 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4030 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4031
4032
4033
4034
4035 am__api_version='1.11'
4036
4037 # Find a good install program. We prefer a C program (faster),
4038 # so one script is as good as another. But avoid the broken or
4039 # incompatible versions:
4040 # SysV /etc/install, /usr/sbin/install
4041 # SunOS /usr/etc/install
4042 # IRIX /sbin/install
4043 # AIX /bin/install
4044 # AmigaOS /C/install, which installs bootblocks on floppy discs
4045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4048 # OS/2's system install, which has a completely different semantic
4049 # ./install, which can be erroneously created by make from ./install.sh.
4050 # Reject install programs that cannot install multiple files.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4053 if test -z "$INSTALL"; then
4054 if test "${ac_cv_path_install+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 # Account for people who put trailing slashes in PATH elements.
4063 case $as_dir/ in #((
4064 ./ | .// | /[cC]/* | \
4065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4066 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4067 /usr/ucb/* ) ;;
4068 *)
4069 # OSF1 and SCO ODT 3.0 have their own names for install.
4070 # Don't use installbsd from OSF since it installs stuff as root
4071 # by default.
4072 for ac_prog in ginstall scoinst install; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4075 if test $ac_prog = install &&
4076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4077 # AIX install. It has an incompatible calling convention.
4078 :
4079 elif test $ac_prog = install &&
4080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4081 # program-specific install script used by HP pwplus--don't use.
4082 :
4083 else
4084 rm -rf conftest.one conftest.two conftest.dir
4085 echo one > conftest.one
4086 echo two > conftest.two
4087 mkdir conftest.dir
4088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4089 test -s conftest.one && test -s conftest.two &&
4090 test -s conftest.dir/conftest.one &&
4091 test -s conftest.dir/conftest.two
4092 then
4093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4094 break 3
4095 fi
4096 fi
4097 fi
4098 done
4099 done
4100 ;;
4101 esac
4102
4103 done
4104 IFS=$as_save_IFS
4105
4106 rm -rf conftest.one conftest.two conftest.dir
4107
4108 fi
4109 if test "${ac_cv_path_install+set}" = set; then
4110 INSTALL=$ac_cv_path_install
4111 else
4112 # As a last resort, use the slow shell script. Don't cache a
4113 # value for INSTALL within a source directory, because that will
4114 # break other packages using the cache if that directory is
4115 # removed, or if the value is a relative name.
4116 INSTALL=$ac_install_sh
4117 fi
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4120 $as_echo "$INSTALL" >&6; }
4121
4122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4123 # It thinks the first close brace ends the variable substitution.
4124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4125
4126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4127
4128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4131 $as_echo_n "checking whether build environment is sane... " >&6; }
4132 # Just in case
4133 sleep 1
4134 echo timestamp > conftest.file
4135 # Reject unsafe characters in $srcdir or the absolute working directory
4136 # name. Accept space and tab only in the latter.
4137 am_lf='
4138 '
4139 case `pwd` in
4140 *[\\\"\#\$\&\'\`$am_lf]*)
4141 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4142 esac
4143 case $srcdir in
4144 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4145 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4146 esac
4147
4148 # Do `set' in a subshell so we don't clobber the current shell's
4149 # arguments. Must try -L first in case configure is actually a
4150 # symlink; some systems play weird games with the mod time of symlinks
4151 # (eg FreeBSD returns the mod time of the symlink's containing
4152 # directory).
4153 if (
4154 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4155 if test "$*" = "X"; then
4156 # -L didn't work.
4157 set X `ls -t "$srcdir/configure" conftest.file`
4158 fi
4159 rm -f conftest.file
4160 if test "$*" != "X $srcdir/configure conftest.file" \
4161 && test "$*" != "X conftest.file $srcdir/configure"; then
4162
4163 # If neither matched, then we have a broken ls. This can happen
4164 # if, for instance, CONFIG_SHELL is bash and it inherits a
4165 # broken ls alias from the environment. This has actually
4166 # happened. Such a system could not be considered "sane".
4167 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4168 alias in your environment" "$LINENO" 5
4169 fi
4170
4171 test "$2" = conftest.file
4172 )
4173 then
4174 # Ok.
4175 :
4176 else
4177 as_fn_error "newly created file is older than distributed files!
4178 Check your system clock" "$LINENO" 5
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181 $as_echo "yes" >&6; }
4182 test "$program_prefix" != NONE &&
4183 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4184 # Use a double $ so make ignores it.
4185 test "$program_suffix" != NONE &&
4186 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4187 # Double any \ or $.
4188 # By default was `s,x,x', remove it if useless.
4189 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4190 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4191
4192 # expand $ac_aux_dir to an absolute path
4193 am_aux_dir=`cd $ac_aux_dir && pwd`
4194
4195 if test x"${MISSING+set}" != xset; then
4196 case $am_aux_dir in
4197 *\ * | *\ *)
4198 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4199 *)
4200 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4201 esac
4202 fi
4203 # Use eval to expand $SHELL
4204 if eval "$MISSING --run true"; then
4205 am_missing_run="$MISSING --run "
4206 else
4207 am_missing_run=
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4209 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4210 fi
4211
4212 if test x"${install_sh}" != xset; then
4213 case $am_aux_dir in
4214 *\ * | *\ *)
4215 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4216 *)
4217 install_sh="\${SHELL} $am_aux_dir/install-sh"
4218 esac
4219 fi
4220
4221 # Installed binaries are usually stripped using `strip' when the user
4222 # run `make install-strip'. However `strip' might not be the right
4223 # tool to use in cross-compilation environments, therefore Automake
4224 # will honor the `STRIP' environment variable to overrule this program.
4225 if test "$cross_compiling" != no; then
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}strip; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if test "${ac_cv_prog_STRIP+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$STRIP"; then
4235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4247 fi
4248 done
4249 done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 STRIP=$ac_cv_prog_STRIP
4255 if test -n "$STRIP"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4257 $as_echo "$STRIP" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264 fi
4265 if test -z "$ac_cv_prog_STRIP"; then
4266 ac_ct_STRIP=$STRIP
4267 # Extract the first word of "strip", so it can be a program name with args.
4268 set dummy strip; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$ac_ct_STRIP"; then
4275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_STRIP="strip"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4295 if test -n "$ac_ct_STRIP"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4297 $as_echo "$ac_ct_STRIP" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303 if test "x$ac_ct_STRIP" = x; then
4304 STRIP=":"
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312 STRIP=$ac_ct_STRIP
4313 fi
4314 else
4315 STRIP="$ac_cv_prog_STRIP"
4316 fi
4317
4318 fi
4319 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4322 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4323 if test -z "$MKDIR_P"; then
4324 if test "${ac_cv_path_mkdir+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in mkdir gmkdir; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4335 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4336 'mkdir (GNU coreutils) '* | \
4337 'mkdir (coreutils) '* | \
4338 'mkdir (fileutils) '4.1*)
4339 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4340 break 3;;
4341 esac
4342 done
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347 fi
4348
4349 if test "${ac_cv_path_mkdir+set}" = set; then
4350 MKDIR_P="$ac_cv_path_mkdir -p"
4351 else
4352 # As a last resort, use the slow shell script. Don't cache a
4353 # value for MKDIR_P within a source directory, because that will
4354 # break other packages using the cache if that directory is
4355 # removed, or if the value is a relative name.
4356 test -d ./--version && rmdir ./--version
4357 MKDIR_P="$ac_install_sh -d"
4358 fi
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4361 $as_echo "$MKDIR_P" >&6; }
4362
4363 mkdir_p="$MKDIR_P"
4364 case $mkdir_p in
4365 [\\/$]* | ?:[\\/]*) ;;
4366 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4367 esac
4368
4369 for ac_prog in gawk mawk nawk awk
4370 do
4371 # Extract the first word of "$ac_prog", so it can be a program name with args.
4372 set dummy $ac_prog; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if test "${ac_cv_prog_AWK+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -n "$AWK"; then
4379 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_prog_AWK="$ac_prog"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4391 fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396 fi
4397 fi
4398 AWK=$ac_cv_prog_AWK
4399 if test -n "$AWK"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4401 $as_echo "$AWK" >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4405 fi
4406
4407
4408 test -n "$AWK" && break
4409 done
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4412 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4413 set x ${MAKE-make}
4414 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4415 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat >conftest.make <<\_ACEOF
4419 SHELL = /bin/sh
4420 all:
4421 @echo '@@@%%%=$(MAKE)=@@@%%%'
4422 _ACEOF
4423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4424 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4425 *@@@%%%=?*=@@@%%%*)
4426 eval ac_cv_prog_make_${ac_make}_set=yes;;
4427 *)
4428 eval ac_cv_prog_make_${ac_make}_set=no;;
4429 esac
4430 rm -f conftest.make
4431 fi
4432 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434 $as_echo "yes" >&6; }
4435 SET_MAKE=
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 SET_MAKE="MAKE=${MAKE-make}"
4440 fi
4441
4442 rm -rf .tst 2>/dev/null
4443 mkdir .tst 2>/dev/null
4444 if test -d .tst; then
4445 am__leading_dot=.
4446 else
4447 am__leading_dot=_
4448 fi
4449 rmdir .tst 2>/dev/null
4450
4451 DEPDIR="${am__leading_dot}deps"
4452
4453 ac_config_commands="$ac_config_commands depfiles"
4454
4455
4456 am_make=${MAKE-make}
4457 cat > confinc << 'END'
4458 am__doit:
4459 @echo this is the am__doit target
4460 .PHONY: am__doit
4461 END
4462 # If we don't find an include directive, just comment out the code.
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4464 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4465 am__include="#"
4466 am__quote=
4467 _am_result=none
4468 # First try GNU make style include.
4469 echo "include confinc" > confmf
4470 # Ignore all kinds of additional output from `make'.
4471 case `$am_make -s -f confmf 2> /dev/null` in #(
4472 *the\ am__doit\ target*)
4473 am__include=include
4474 am__quote=
4475 _am_result=GNU
4476 ;;
4477 esac
4478 # Now try BSD make style include.
4479 if test "$am__include" = "#"; then
4480 echo '.include "confinc"' > confmf
4481 case `$am_make -s -f confmf 2> /dev/null` in #(
4482 *the\ am__doit\ target*)
4483 am__include=.include
4484 am__quote="\""
4485 _am_result=BSD
4486 ;;
4487 esac
4488 fi
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4492 $as_echo "$_am_result" >&6; }
4493 rm -f confinc confmf
4494
4495 # Check whether --enable-dependency-tracking was given.
4496 if test "${enable_dependency_tracking+set}" = set; then :
4497 enableval=$enable_dependency_tracking;
4498 fi
4499
4500 if test "x$enable_dependency_tracking" != xno; then
4501 am_depcomp="$ac_aux_dir/depcomp"
4502 AMDEPBACKSLASH='\'
4503 fi
4504 if test "x$enable_dependency_tracking" != xno; then
4505 AMDEP_TRUE=
4506 AMDEP_FALSE='#'
4507 else
4508 AMDEP_TRUE='#'
4509 AMDEP_FALSE=
4510 fi
4511
4512
4513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4515 # is not polluted with repeated "-I."
4516 am__isrc=' -I$(srcdir)'
4517 # test to see if srcdir already configured
4518 if test -f $srcdir/config.status; then
4519 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4520 fi
4521 fi
4522
4523 # test whether we have cygpath
4524 if test -z "$CYGPATH_W"; then
4525 if (cygpath --version) >/dev/null 2>/dev/null; then
4526 CYGPATH_W='cygpath -w'
4527 else
4528 CYGPATH_W=echo
4529 fi
4530 fi
4531
4532
4533 # Define the identity of the package.
4534 PACKAGE='package-unused'
4535 VERSION='version-unused'
4536
4537
4538 cat >>confdefs.h <<_ACEOF
4539 #define PACKAGE "$PACKAGE"
4540 _ACEOF
4541
4542
4543 cat >>confdefs.h <<_ACEOF
4544 #define VERSION "$VERSION"
4545 _ACEOF
4546
4547 # Some tools Automake needs.
4548
4549 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4550
4551
4552 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4553
4554
4555 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4556
4557
4558 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4559
4560
4561 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4562
4563 # We need awk for the "check" target. The system "awk" is bad on
4564 # some platforms.
4565 # Always define AMTAR for backward compatibility.
4566
4567 AMTAR=${AMTAR-"${am_missing_run}tar"}
4568
4569 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4570
4571
4572
4573
4574 depcc="$CC" am_compiler_list=
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4577 $as_echo_n "checking dependency style of $depcc... " >&6; }
4578 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4582 # We make a subdir and do the tests there. Otherwise we can end up
4583 # making bogus files that we don't know about and never remove. For
4584 # instance it was reported that on HP-UX the gcc test will end up
4585 # making a dummy file named `D' -- because `-MD' means `put the output
4586 # in D'.
4587 mkdir conftest.dir
4588 # Copy depcomp to subdir because otherwise we won't find it if we're
4589 # using a relative directory.
4590 cp "$am_depcomp" conftest.dir
4591 cd conftest.dir
4592 # We will build objects and dependencies in a subdirectory because
4593 # it helps to detect inapplicable dependency modes. For instance
4594 # both Tru64's cc and ICC support -MD to output dependencies as a
4595 # side effect of compilation, but ICC will put the dependencies in
4596 # the current directory while Tru64 will put them in the object
4597 # directory.
4598 mkdir sub
4599
4600 am_cv_CC_dependencies_compiler_type=none
4601 if test "$am_compiler_list" = ""; then
4602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4603 fi
4604 am__universal=false
4605 case " $depcc " in #(
4606 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4607 esac
4608
4609 for depmode in $am_compiler_list; do
4610 # Setup a source with many dependencies, because some compilers
4611 # like to wrap large dependency lists on column 80 (with \), and
4612 # we should not choose a depcomp mode which is confused by this.
4613 #
4614 # We need to recreate these files for each test, as the compiler may
4615 # overwrite some of them when testing with obscure command lines.
4616 # This happens at least with the AIX C compiler.
4617 : > sub/conftest.c
4618 for i in 1 2 3 4 5 6; do
4619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4620 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4621 # Solaris 8's {/usr,}/bin/sh.
4622 touch sub/conftst$i.h
4623 done
4624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4625
4626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4627 # mode. It turns out that the SunPro C++ compiler does not properly
4628 # handle `-M -o', and we need to detect this. Also, some Intel
4629 # versions had trouble with output in subdirs
4630 am__obj=sub/conftest.${OBJEXT-o}
4631 am__minus_obj="-o $am__obj"
4632 case $depmode in
4633 gcc)
4634 # This depmode causes a compiler race in universal mode.
4635 test "$am__universal" = false || continue
4636 ;;
4637 nosideeffect)
4638 # after this tag, mechanisms are not by side-effect, so they'll
4639 # only be used when explicitly requested
4640 if test "x$enable_dependency_tracking" = xyes; then
4641 continue
4642 else
4643 break
4644 fi
4645 ;;
4646 msvisualcpp | msvcmsys)
4647 # This compiler won't grok `-c -o', but also, the minuso test has
4648 # not run yet. These depmodes are late enough in the game, and
4649 # so weak that their functioning should not be impacted.
4650 am__obj=conftest.${OBJEXT-o}
4651 am__minus_obj=
4652 ;;
4653 none) break ;;
4654 esac
4655 if depmode=$depmode \
4656 source=sub/conftest.c object=$am__obj \
4657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4659 >/dev/null 2>conftest.err &&
4660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4664 # icc doesn't choke on unknown options, it will just issue warnings
4665 # or remarks (even with -Werror). So we grep stderr for any message
4666 # that says an option was ignored or not supported.
4667 # When given -MP, icc 7.0 and 7.1 complain thusly:
4668 # icc: Command line warning: ignoring option '-M'; no argument required
4669 # The diagnosis changed in icc 8.0:
4670 # icc: Command line remark: option '-MP' not supported
4671 if (grep 'ignoring option' conftest.err ||
4672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4673 am_cv_CC_dependencies_compiler_type=$depmode
4674 break
4675 fi
4676 fi
4677 done
4678
4679 cd ..
4680 rm -rf conftest.dir
4681 else
4682 am_cv_CC_dependencies_compiler_type=none
4683 fi
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4687 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4688 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4689
4690 if
4691 test "x$enable_dependency_tracking" != xno \
4692 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4693 am__fastdepCC_TRUE=
4694 am__fastdepCC_FALSE='#'
4695 else
4696 am__fastdepCC_TRUE='#'
4697 am__fastdepCC_FALSE=
4698 fi
4699
4700
4701
4702 # Default to --enable-multilib
4703 # Check whether --enable-multilib was given.
4704 if test "${enable_multilib+set}" = set; then :
4705 enableval=$enable_multilib; case "$enableval" in
4706 yes) multilib=yes ;;
4707 no) multilib=no ;;
4708 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4709 esac
4710 else
4711 multilib=yes
4712 fi
4713
4714
4715 # We may get other options which we leave undocumented:
4716 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4717 # See config-ml.in if you want the gory details.
4718
4719 if test "$srcdir" = "."; then
4720 if test "$with_target_subdir" != "."; then
4721 multi_basedir="$srcdir/$with_multisrctop../.."
4722 else
4723 multi_basedir="$srcdir/$with_multisrctop.."
4724 fi
4725 else
4726 multi_basedir="$srcdir/.."
4727 fi
4728
4729
4730 # Even if the default multilib is not a cross compilation,
4731 # it may be that some of the other multilibs are.
4732 if test $cross_compiling = no && test $multilib = yes \
4733 && test "x${with_multisubdir}" != x ; then
4734 cross_compiling=maybe
4735 fi
4736
4737 ac_config_commands="$ac_config_commands default-1"
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4742 # Check whether --enable-maintainer-mode was given.
4743 if test "${enable_maintainer_mode+set}" = set; then :
4744 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4745 else
4746 USE_MAINTAINER_MODE=no
4747 fi
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4750 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4751 if test $USE_MAINTAINER_MODE = yes; then
4752 MAINTAINER_MODE_TRUE=
4753 MAINTAINER_MODE_FALSE='#'
4754 else
4755 MAINTAINER_MODE_TRUE='#'
4756 MAINTAINER_MODE_FALSE=
4757 fi
4758
4759 MAINT=$MAINTAINER_MODE_TRUE
4760
4761
4762
4763 # Calculate toolexeclibdir
4764 # Also toolexecdir, though it's only used in toolexeclibdir
4765 case ${version_specific_libs} in
4766 yes)
4767 # Need the gcc compiler version to know where to install libraries
4768 # and header files if --enable-version-specific-runtime-libs option
4769 # is selected.
4770 toolexecdir='$(libdir)/gcc/$(target_alias)'
4771 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4772 ;;
4773 no)
4774 if test -n "$with_cross_host" &&
4775 test x"$with_cross_host" != x"no"; then
4776 # Install a library built with a cross compiler in tooldir, not libdir.
4777 toolexecdir='$(exec_prefix)/$(target_alias)'
4778 toolexeclibdir='$(toolexecdir)/lib'
4779 else
4780 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4781 toolexeclibdir='$(libdir)'
4782 fi
4783 multi_os_directory=`$CC -print-multi-os-directory`
4784 case $multi_os_directory in
4785 .) ;; # Avoid trailing /.
4786 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4787 esac
4788 ;;
4789 esac
4790
4791
4792
4793 # Checks for programs.
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 if test -n "$ac_tool_prefix"; then
4800 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_CC+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$CC"; then
4808 ac_cv_prog_CC="$CC" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 CC=$ac_cv_prog_CC
4828 if test -n "$CC"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4830 $as_echo "$CC" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836
4837 fi
4838 if test -z "$ac_cv_prog_CC"; then
4839 ac_ct_CC=$CC
4840 # Extract the first word of "gcc", so it can be a program name with args.
4841 set dummy gcc; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$ac_ct_CC"; then
4848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_ac_ct_CC="gcc"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4868 if test -n "$ac_ct_CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4870 $as_echo "$ac_ct_CC" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876 if test "x$ac_ct_CC" = x; then
4877 CC=""
4878 else
4879 case $cross_compiling:$ac_tool_warned in
4880 yes:)
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883 ac_tool_warned=yes ;;
4884 esac
4885 CC=$ac_ct_CC
4886 fi
4887 else
4888 CC="$ac_cv_prog_CC"
4889 fi
4890
4891 if test -z "$CC"; then
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}cc; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_CC+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$CC"; then
4901 ac_cv_prog_CC="$CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_CC="${ac_tool_prefix}cc"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 CC=$ac_cv_prog_CC
4921 if test -n "$CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4923 $as_echo "$CC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 fi
4932 if test -z "$CC"; then
4933 # Extract the first word of "cc", so it can be a program name with args.
4934 set dummy cc; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_CC+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$CC"; then
4941 ac_cv_prog_CC="$CC" # Let the user override the test.
4942 else
4943 ac_prog_rejected=no
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4952 ac_prog_rejected=yes
4953 continue
4954 fi
4955 ac_cv_prog_CC="cc"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_CC
4966 shift
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set CC to just the basename; use the full file name.
4971 shift
4972 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4973 fi
4974 fi
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 $as_echo "$CC" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987 fi
4988 if test -z "$CC"; then
4989 if test -n "$ac_tool_prefix"; then
4990 for ac_prog in cl.exe
4991 do
4992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if test "${ac_cv_prog_CC+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -n "$CC"; then
5000 ac_cv_prog_CC="$CC" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 CC=$ac_cv_prog_CC
5020 if test -n "$CC"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5022 $as_echo "$CC" >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 test -n "$CC" && break
5030 done
5031 fi
5032 if test -z "$CC"; then
5033 ac_ct_CC=$CC
5034 for ac_prog in cl.exe
5035 do
5036 # Extract the first word of "$ac_prog", so it can be a program name with args.
5037 set dummy $ac_prog; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$ac_ct_CC"; then
5044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_ac_ct_CC="$ac_prog"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061 fi
5062 fi
5063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5064 if test -n "$ac_ct_CC"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5066 $as_echo "$ac_ct_CC" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071
5072
5073 test -n "$ac_ct_CC" && break
5074 done
5075
5076 if test "x$ac_ct_CC" = x; then
5077 CC=""
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085 CC=$ac_ct_CC
5086 fi
5087 fi
5088
5089 fi
5090
5091
5092 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5094 as_fn_error "no acceptable C compiler found in \$PATH
5095 See \`config.log' for more details." "$LINENO" 5; }
5096
5097 # Provide some information about the compiler.
5098 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5099 set X $ac_compile
5100 ac_compiler=$2
5101 for ac_option in --version -v -V -qversion; do
5102 { { ac_try="$ac_compiler $ac_option >&5"
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5108 $as_echo "$ac_try_echo"; } >&5
5109 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5110 ac_status=$?
5111 if test -s conftest.err; then
5112 sed '10a\
5113 ... rest of stderr output deleted ...
5114 10q' conftest.err >conftest.er1
5115 cat conftest.er1 >&5
5116 rm -f conftest.er1 conftest.err
5117 fi
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 done
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5124 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 int
5131 main ()
5132 {
5133 #ifndef __GNUC__
5134 choke me
5135 #endif
5136
5137 ;
5138 return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_compiler_gnu=yes
5143 else
5144 ac_compiler_gnu=no
5145 fi
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5152 if test $ac_compiler_gnu = yes; then
5153 GCC=yes
5154 else
5155 GCC=
5156 fi
5157 ac_test_CFLAGS=${CFLAGS+set}
5158 ac_save_CFLAGS=$CFLAGS
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5161 if test "${ac_cv_prog_cc_g+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 ac_save_c_werror_flag=$ac_c_werror_flag
5165 ac_c_werror_flag=yes
5166 ac_cv_prog_cc_g=no
5167 CFLAGS="-g"
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_prog_cc_g=yes
5181 else
5182 CFLAGS=""
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185
5186 int
5187 main ()
5188 {
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195
5196 else
5197 ac_c_werror_flag=$ac_save_c_werror_flag
5198 CFLAGS="-g"
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201
5202 int
5203 main ()
5204 {
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_cv_prog_cc_g=yes
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 ac_c_werror_flag=$ac_save_c_werror_flag
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5221 $as_echo "$ac_cv_prog_cc_g" >&6; }
5222 if test "$ac_test_CFLAGS" = set; then
5223 CFLAGS=$ac_save_CFLAGS
5224 elif test $ac_cv_prog_cc_g = yes; then
5225 if test "$GCC" = yes; then
5226 CFLAGS="-g -O2"
5227 else
5228 CFLAGS="-g"
5229 fi
5230 else
5231 if test "$GCC" = yes; then
5232 CFLAGS="-O2"
5233 else
5234 CFLAGS=
5235 fi
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5239 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_cv_prog_cc_c89=no
5243 ac_save_CC=$CC
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #include <stdarg.h>
5247 #include <stdio.h>
5248 #include <sys/types.h>
5249 #include <sys/stat.h>
5250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5251 struct buf { int x; };
5252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5253 static char *e (p, i)
5254 char **p;
5255 int i;
5256 {
5257 return p[i];
5258 }
5259 static char *f (char * (*g) (char **, int), char **p, ...)
5260 {
5261 char *s;
5262 va_list v;
5263 va_start (v,p);
5264 s = g (p, va_arg (v,int));
5265 va_end (v);
5266 return s;
5267 }
5268
5269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5270 function prototypes and stuff, but not '\xHH' hex character constants.
5271 These don't provoke an error unfortunately, instead are silently treated
5272 as 'x'. The following induces an error, until -std is added to get
5273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5274 array size at least. It's necessary to write '\x00'==0 to get something
5275 that's true only with -std. */
5276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5277
5278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5279 inside strings and character constants. */
5280 #define FOO(x) 'x'
5281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5282
5283 int test (int i, double x);
5284 struct s1 {int (*f) (int a);};
5285 struct s2 {int (*f) (double a);};
5286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5287 int argc;
5288 char **argv;
5289 int
5290 main ()
5291 {
5292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5299 do
5300 CC="$ac_save_CC $ac_arg"
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_prog_cc_c89=$ac_arg
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext
5305 test "x$ac_cv_prog_cc_c89" != "xno" && break
5306 done
5307 rm -f conftest.$ac_ext
5308 CC=$ac_save_CC
5309
5310 fi
5311 # AC_CACHE_VAL
5312 case "x$ac_cv_prog_cc_c89" in
5313 x)
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5315 $as_echo "none needed" >&6; } ;;
5316 xno)
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5318 $as_echo "unsupported" >&6; } ;;
5319 *)
5320 CC="$CC $ac_cv_prog_cc_c89"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5323 esac
5324 if test "x$ac_cv_prog_cc_c89" != xno; then :
5325
5326 fi
5327
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334 ac_ext=cpp
5335 ac_cpp='$CXXCPP $CPPFLAGS'
5336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339 if test -z "$CXX"; then
5340 if test -n "$CCC"; then
5341 CXX=$CCC
5342 else
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5345 do
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_CXX+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$CXX"; then
5354 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5370
5371 fi
5372 fi
5373 CXX=$ac_cv_prog_CXX
5374 if test -n "$CXX"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5376 $as_echo "$CXX" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 test -n "$CXX" && break
5384 done
5385 fi
5386 if test -z "$CXX"; then
5387 ac_ct_CXX=$CXX
5388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5389 do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$ac_ct_CXX"; then
5398 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_ac_ct_CXX="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5418 if test -n "$ac_ct_CXX"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5420 $as_echo "$ac_ct_CXX" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 test -n "$ac_ct_CXX" && break
5428 done
5429
5430 if test "x$ac_ct_CXX" = x; then
5431 CXX="g++"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 CXX=$ac_ct_CXX
5440 fi
5441 fi
5442
5443 fi
5444 fi
5445 # Provide some information about the compiler.
5446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5447 set X $ac_compile
5448 ac_compiler=$2
5449 for ac_option in --version -v -V -qversion; do
5450 { { ac_try="$ac_compiler $ac_option >&5"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5456 $as_echo "$ac_try_echo"; } >&5
5457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5458 ac_status=$?
5459 if test -s conftest.err; then
5460 sed '10a\
5461 ... rest of stderr output deleted ...
5462 10q' conftest.err >conftest.er1
5463 cat conftest.er1 >&5
5464 rm -f conftest.er1 conftest.err
5465 fi
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; }
5468 done
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5471 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5472 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477
5478 int
5479 main ()
5480 {
5481 #ifndef __GNUC__
5482 choke me
5483 #endif
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_cxx_try_compile "$LINENO"; then :
5490 ac_compiler_gnu=yes
5491 else
5492 ac_compiler_gnu=no
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5496
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5499 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5500 if test $ac_compiler_gnu = yes; then
5501 GXX=yes
5502 else
5503 GXX=
5504 fi
5505 ac_test_CXXFLAGS=${CXXFLAGS+set}
5506 ac_save_CXXFLAGS=$CXXFLAGS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5508 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5509 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5513 ac_cxx_werror_flag=yes
5514 ac_cv_prog_cxx_g=no
5515 CXXFLAGS="-g"
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_cxx_try_compile "$LINENO"; then :
5528 ac_cv_prog_cxx_g=yes
5529 else
5530 CXXFLAGS=""
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533
5534 int
5535 main ()
5536 {
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_cxx_try_compile "$LINENO"; then :
5543
5544 else
5545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546 CXXFLAGS="-g"
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_cxx_try_compile "$LINENO"; then :
5559 ac_cv_prog_cxx_g=yes
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5569 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5570 if test "$ac_test_CXXFLAGS" = set; then
5571 CXXFLAGS=$ac_save_CXXFLAGS
5572 elif test $ac_cv_prog_cxx_g = yes; then
5573 if test "$GXX" = yes; then
5574 CXXFLAGS="-g -O2"
5575 else
5576 CXXFLAGS="-g"
5577 fi
5578 else
5579 if test "$GXX" = yes; then
5580 CXXFLAGS="-O2"
5581 else
5582 CXXFLAGS=
5583 fi
5584 fi
5585 ac_ext=c
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591 depcc="$CXX" am_compiler_list=
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5594 $as_echo_n "checking dependency style of $depcc... " >&6; }
5595 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5599 # We make a subdir and do the tests there. Otherwise we can end up
5600 # making bogus files that we don't know about and never remove. For
5601 # instance it was reported that on HP-UX the gcc test will end up
5602 # making a dummy file named `D' -- because `-MD' means `put the output
5603 # in D'.
5604 mkdir conftest.dir
5605 # Copy depcomp to subdir because otherwise we won't find it if we're
5606 # using a relative directory.
5607 cp "$am_depcomp" conftest.dir
5608 cd conftest.dir
5609 # We will build objects and dependencies in a subdirectory because
5610 # it helps to detect inapplicable dependency modes. For instance
5611 # both Tru64's cc and ICC support -MD to output dependencies as a
5612 # side effect of compilation, but ICC will put the dependencies in
5613 # the current directory while Tru64 will put them in the object
5614 # directory.
5615 mkdir sub
5616
5617 am_cv_CXX_dependencies_compiler_type=none
5618 if test "$am_compiler_list" = ""; then
5619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5620 fi
5621 am__universal=false
5622 case " $depcc " in #(
5623 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5624 esac
5625
5626 for depmode in $am_compiler_list; do
5627 # Setup a source with many dependencies, because some compilers
5628 # like to wrap large dependency lists on column 80 (with \), and
5629 # we should not choose a depcomp mode which is confused by this.
5630 #
5631 # We need to recreate these files for each test, as the compiler may
5632 # overwrite some of them when testing with obscure command lines.
5633 # This happens at least with the AIX C compiler.
5634 : > sub/conftest.c
5635 for i in 1 2 3 4 5 6; do
5636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5637 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5638 # Solaris 8's {/usr,}/bin/sh.
5639 touch sub/conftst$i.h
5640 done
5641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5642
5643 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5644 # mode. It turns out that the SunPro C++ compiler does not properly
5645 # handle `-M -o', and we need to detect this. Also, some Intel
5646 # versions had trouble with output in subdirs
5647 am__obj=sub/conftest.${OBJEXT-o}
5648 am__minus_obj="-o $am__obj"
5649 case $depmode in
5650 gcc)
5651 # This depmode causes a compiler race in universal mode.
5652 test "$am__universal" = false || continue
5653 ;;
5654 nosideeffect)
5655 # after this tag, mechanisms are not by side-effect, so they'll
5656 # only be used when explicitly requested
5657 if test "x$enable_dependency_tracking" = xyes; then
5658 continue
5659 else
5660 break
5661 fi
5662 ;;
5663 msvisualcpp | msvcmsys)
5664 # This compiler won't grok `-c -o', but also, the minuso test has
5665 # not run yet. These depmodes are late enough in the game, and
5666 # so weak that their functioning should not be impacted.
5667 am__obj=conftest.${OBJEXT-o}
5668 am__minus_obj=
5669 ;;
5670 none) break ;;
5671 esac
5672 if depmode=$depmode \
5673 source=sub/conftest.c object=$am__obj \
5674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5675 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5676 >/dev/null 2>conftest.err &&
5677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5679 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5681 # icc doesn't choke on unknown options, it will just issue warnings
5682 # or remarks (even with -Werror). So we grep stderr for any message
5683 # that says an option was ignored or not supported.
5684 # When given -MP, icc 7.0 and 7.1 complain thusly:
5685 # icc: Command line warning: ignoring option '-M'; no argument required
5686 # The diagnosis changed in icc 8.0:
5687 # icc: Command line remark: option '-MP' not supported
5688 if (grep 'ignoring option' conftest.err ||
5689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5690 am_cv_CXX_dependencies_compiler_type=$depmode
5691 break
5692 fi
5693 fi
5694 done
5695
5696 cd ..
5697 rm -rf conftest.dir
5698 else
5699 am_cv_CXX_dependencies_compiler_type=none
5700 fi
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5704 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5705 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5706
5707 if
5708 test "x$enable_dependency_tracking" != xno \
5709 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5710 am__fastdepCXX_TRUE=
5711 am__fastdepCXX_FALSE='#'
5712 else
5713 am__fastdepCXX_TRUE='#'
5714 am__fastdepCXX_FALSE=
5715 fi
5716
5717
5718 # By default we simply use the C compiler to build assembly code.
5719
5720 test "${CCAS+set}" = set || CCAS=$CC
5721 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5722
5723
5724
5725 depcc="$CCAS" am_compiler_list=
5726
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5728 $as_echo_n "checking dependency style of $depcc... " >&6; }
5729 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5733 # We make a subdir and do the tests there. Otherwise we can end up
5734 # making bogus files that we don't know about and never remove. For
5735 # instance it was reported that on HP-UX the gcc test will end up
5736 # making a dummy file named `D' -- because `-MD' means `put the output
5737 # in D'.
5738 mkdir conftest.dir
5739 # Copy depcomp to subdir because otherwise we won't find it if we're
5740 # using a relative directory.
5741 cp "$am_depcomp" conftest.dir
5742 cd conftest.dir
5743 # We will build objects and dependencies in a subdirectory because
5744 # it helps to detect inapplicable dependency modes. For instance
5745 # both Tru64's cc and ICC support -MD to output dependencies as a
5746 # side effect of compilation, but ICC will put the dependencies in
5747 # the current directory while Tru64 will put them in the object
5748 # directory.
5749 mkdir sub
5750
5751 am_cv_CCAS_dependencies_compiler_type=none
5752 if test "$am_compiler_list" = ""; then
5753 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754 fi
5755 am__universal=false
5756
5757
5758 for depmode in $am_compiler_list; do
5759 # Setup a source with many dependencies, because some compilers
5760 # like to wrap large dependency lists on column 80 (with \), and
5761 # we should not choose a depcomp mode which is confused by this.
5762 #
5763 # We need to recreate these files for each test, as the compiler may
5764 # overwrite some of them when testing with obscure command lines.
5765 # This happens at least with the AIX C compiler.
5766 : > sub/conftest.c
5767 for i in 1 2 3 4 5 6; do
5768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5770 # Solaris 8's {/usr,}/bin/sh.
5771 touch sub/conftst$i.h
5772 done
5773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5774
5775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5776 # mode. It turns out that the SunPro C++ compiler does not properly
5777 # handle `-M -o', and we need to detect this. Also, some Intel
5778 # versions had trouble with output in subdirs
5779 am__obj=sub/conftest.${OBJEXT-o}
5780 am__minus_obj="-o $am__obj"
5781 case $depmode in
5782 gcc)
5783 # This depmode causes a compiler race in universal mode.
5784 test "$am__universal" = false || continue
5785 ;;
5786 nosideeffect)
5787 # after this tag, mechanisms are not by side-effect, so they'll
5788 # only be used when explicitly requested
5789 if test "x$enable_dependency_tracking" = xyes; then
5790 continue
5791 else
5792 break
5793 fi
5794 ;;
5795 msvisualcpp | msvcmsys)
5796 # This compiler won't grok `-c -o', but also, the minuso test has
5797 # not run yet. These depmodes are late enough in the game, and
5798 # so weak that their functioning should not be impacted.
5799 am__obj=conftest.${OBJEXT-o}
5800 am__minus_obj=
5801 ;;
5802 none) break ;;
5803 esac
5804 if depmode=$depmode \
5805 source=sub/conftest.c object=$am__obj \
5806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5808 >/dev/null 2>conftest.err &&
5809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5813 # icc doesn't choke on unknown options, it will just issue warnings
5814 # or remarks (even with -Werror). So we grep stderr for any message
5815 # that says an option was ignored or not supported.
5816 # When given -MP, icc 7.0 and 7.1 complain thusly:
5817 # icc: Command line warning: ignoring option '-M'; no argument required
5818 # The diagnosis changed in icc 8.0:
5819 # icc: Command line remark: option '-MP' not supported
5820 if (grep 'ignoring option' conftest.err ||
5821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5822 am_cv_CCAS_dependencies_compiler_type=$depmode
5823 break
5824 fi
5825 fi
5826 done
5827
5828 cd ..
5829 rm -rf conftest.dir
5830 else
5831 am_cv_CCAS_dependencies_compiler_type=none
5832 fi
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5836 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5837 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5838
5839 if
5840 test "x$enable_dependency_tracking" != xno \
5841 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5842 am__fastdepCCAS_TRUE=
5843 am__fastdepCCAS_FALSE='#'
5844 else
5845 am__fastdepCCAS_TRUE='#'
5846 am__fastdepCCAS_FALSE=
5847 fi
5848
5849
5850 if test -n "$ac_tool_prefix"; then
5851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$RANLIB"; then
5859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 RANLIB=$ac_cv_prog_RANLIB
5879 if test -n "$RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5881 $as_echo "$RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888 fi
5889 if test -z "$ac_cv_prog_RANLIB"; then
5890 ac_ct_RANLIB=$RANLIB
5891 # Extract the first word of "ranlib", so it can be a program name with args.
5892 set dummy ranlib; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$ac_ct_RANLIB"; then
5899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_ac_ct_RANLIB="ranlib"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5919 if test -n "$ac_ct_RANLIB"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5921 $as_echo "$ac_ct_RANLIB" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927 if test "x$ac_ct_RANLIB" = x; then
5928 RANLIB=":"
5929 else
5930 case $cross_compiling:$ac_tool_warned in
5931 yes:)
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 ac_tool_warned=yes ;;
5935 esac
5936 RANLIB=$ac_ct_RANLIB
5937 fi
5938 else
5939 RANLIB="$ac_cv_prog_RANLIB"
5940 fi
5941
5942
5943 enable_dlopen=yes
5944
5945
5946
5947 case `pwd` in
5948 *\ * | *\ *)
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5950 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5951 esac
5952
5953
5954
5955 macro_version='2.2.7a'
5956 macro_revision='1.3134'
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 ltmain="$ac_aux_dir/ltmain.sh"
5971
5972 # Backslashify metacharacters that are still active within
5973 # double-quoted strings.
5974 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5975
5976 # Same as above, but do not quote variable references.
5977 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5978
5979 # Sed substitution to delay expansion of an escaped shell variable in a
5980 # double_quote_subst'ed string.
5981 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5982
5983 # Sed substitution to delay expansion of an escaped single quote.
5984 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5985
5986 # Sed substitution to avoid accidental globbing in evaled expressions
5987 no_glob_subst='s/\*/\\\*/g'
5988
5989 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5990 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5991 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5994 $as_echo_n "checking how to print strings... " >&6; }
5995 # Test print first, because it will be a builtin if present.
5996 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5997 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5998 ECHO='print -r --'
5999 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6000 ECHO='printf %s\n'
6001 else
6002 # Use this function as a fallback that always works.
6003 func_fallback_echo ()
6004 {
6005 eval 'cat <<_LTECHO_EOF
6006 $1
6007 _LTECHO_EOF'
6008 }
6009 ECHO='func_fallback_echo'
6010 fi
6011
6012 # func_echo_all arg...
6013 # Invoke $ECHO with all args, space-separated.
6014 func_echo_all ()
6015 {
6016 $ECHO ""
6017 }
6018
6019 case "$ECHO" in
6020 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6021 $as_echo "printf" >&6; } ;;
6022 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6023 $as_echo "print -r" >&6; } ;;
6024 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6025 $as_echo "cat" >&6; } ;;
6026 esac
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6043 if test "${ac_cv_path_SED+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6047 for ac_i in 1 2 3 4 5 6 7; do
6048 ac_script="$ac_script$as_nl$ac_script"
6049 done
6050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6051 { ac_script=; unset ac_script;}
6052 if test -z "$SED"; then
6053 ac_path_SED_found=false
6054 # Loop through the user's path and test for each of PROGNAME-LIST
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_prog in sed gsed; do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6063 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6064 # Check for GNU ac_path_SED and select it if it is found.
6065 # Check for GNU $ac_path_SED
6066 case `"$ac_path_SED" --version 2>&1` in
6067 *GNU*)
6068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6069 *)
6070 ac_count=0
6071 $as_echo_n 0123456789 >"conftest.in"
6072 while :
6073 do
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 $as_echo '' >> "conftest.nl"
6078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080 as_fn_arith $ac_count + 1 && ac_count=$as_val
6081 if test $ac_count -gt ${ac_path_SED_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_SED="$ac_path_SED"
6084 ac_path_SED_max=$ac_count
6085 fi
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6088 done
6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6090 esac
6091
6092 $ac_path_SED_found && break 3
6093 done
6094 done
6095 done
6096 IFS=$as_save_IFS
6097 if test -z "$ac_cv_path_SED"; then
6098 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6099 fi
6100 else
6101 ac_cv_path_SED=$SED
6102 fi
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6106 $as_echo "$ac_cv_path_SED" >&6; }
6107 SED="$ac_cv_path_SED"
6108 rm -f conftest.sed
6109
6110 test -z "$SED" && SED=sed
6111 Xsed="$SED -e 1s/^X//"
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6124 $as_echo_n "checking for fgrep... " >&6; }
6125 if test "${ac_cv_path_FGREP+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6129 then ac_cv_path_FGREP="$GREP -F"
6130 else
6131 if test -z "$FGREP"; then
6132 ac_path_FGREP_found=false
6133 # Loop through the user's path and test for each of PROGNAME-LIST
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in fgrep; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6142 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6143 # Check for GNU ac_path_FGREP and select it if it is found.
6144 # Check for GNU $ac_path_FGREP
6145 case `"$ac_path_FGREP" --version 2>&1` in
6146 *GNU*)
6147 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6148 *)
6149 ac_count=0
6150 $as_echo_n 0123456789 >"conftest.in"
6151 while :
6152 do
6153 cat "conftest.in" "conftest.in" >"conftest.tmp"
6154 mv "conftest.tmp" "conftest.in"
6155 cp "conftest.in" "conftest.nl"
6156 $as_echo 'FGREP' >> "conftest.nl"
6157 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6159 as_fn_arith $ac_count + 1 && ac_count=$as_val
6160 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6161 # Best one so far, save it but keep looking for a better one
6162 ac_cv_path_FGREP="$ac_path_FGREP"
6163 ac_path_FGREP_max=$ac_count
6164 fi
6165 # 10*(2^10) chars as input seems more than enough
6166 test $ac_count -gt 10 && break
6167 done
6168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6169 esac
6170
6171 $ac_path_FGREP_found && break 3
6172 done
6173 done
6174 done
6175 IFS=$as_save_IFS
6176 if test -z "$ac_cv_path_FGREP"; then
6177 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6178 fi
6179 else
6180 ac_cv_path_FGREP=$FGREP
6181 fi
6182
6183 fi
6184 fi
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6186 $as_echo "$ac_cv_path_FGREP" >&6; }
6187 FGREP="$ac_cv_path_FGREP"
6188
6189
6190 test -z "$GREP" && GREP=grep
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210 # Check whether --with-gnu-ld was given.
6211 if test "${with_gnu_ld+set}" = set; then :
6212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6213 else
6214 with_gnu_ld=no
6215 fi
6216
6217 ac_prog=ld
6218 if test "$GCC" = yes; then
6219 # Check if gcc -print-prog-name=ld gives a path.
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6221 $as_echo_n "checking for ld used by $CC... " >&6; }
6222 case $host in
6223 *-*-mingw*)
6224 # gcc leaves a trailing carriage return which upsets mingw
6225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6226 *)
6227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6228 esac
6229 case $ac_prog in
6230 # Accept absolute paths.
6231 [\\/]* | ?:[\\/]*)
6232 re_direlt='/[^/][^/]*/\.\./'
6233 # Canonicalize the pathname of ld
6234 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6235 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6236 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6237 done
6238 test -z "$LD" && LD="$ac_prog"
6239 ;;
6240 "")
6241 # If it fails, then pretend we aren't using GCC.
6242 ac_prog=ld
6243 ;;
6244 *)
6245 # If it is relative, then search for the first ld in PATH.
6246 with_gnu_ld=unknown
6247 ;;
6248 esac
6249 elif test "$with_gnu_ld" = yes; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6251 $as_echo_n "checking for GNU ld... " >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6254 $as_echo_n "checking for non-GNU ld... " >&6; }
6255 fi
6256 if test "${lt_cv_path_LD+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -z "$LD"; then
6260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6261 for ac_dir in $PATH; do
6262 IFS="$lt_save_ifs"
6263 test -z "$ac_dir" && ac_dir=.
6264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6265 lt_cv_path_LD="$ac_dir/$ac_prog"
6266 # Check to see if the program is GNU ld. I'd rather use --version,
6267 # but apparently some variants of GNU ld only accept -v.
6268 # Break only if it was the GNU/non-GNU ld that we prefer.
6269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6270 *GNU* | *'with BFD'*)
6271 test "$with_gnu_ld" != no && break
6272 ;;
6273 *)
6274 test "$with_gnu_ld" != yes && break
6275 ;;
6276 esac
6277 fi
6278 done
6279 IFS="$lt_save_ifs"
6280 else
6281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6282 fi
6283 fi
6284
6285 LD="$lt_cv_path_LD"
6286 if test -n "$LD"; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6288 $as_echo "$LD" >&6; }
6289 else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6295 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6296 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6300 case `$LD -v 2>&1 </dev/null` in
6301 *GNU* | *'with BFD'*)
6302 lt_cv_prog_gnu_ld=yes
6303 ;;
6304 *)
6305 lt_cv_prog_gnu_ld=no
6306 ;;
6307 esac
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6310 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6311 with_gnu_ld=$lt_cv_prog_gnu_ld
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6322 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6323 if test "${lt_cv_path_NM+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$NM"; then
6327 # Let the user override the test.
6328 lt_cv_path_NM="$NM"
6329 else
6330 lt_nm_to_check="${ac_tool_prefix}nm"
6331 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6332 lt_nm_to_check="$lt_nm_to_check nm"
6333 fi
6334 for lt_tmp_nm in $lt_nm_to_check; do
6335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6336 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6337 IFS="$lt_save_ifs"
6338 test -z "$ac_dir" && ac_dir=.
6339 tmp_nm="$ac_dir/$lt_tmp_nm"
6340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6341 # Check to see if the nm accepts a BSD-compat flag.
6342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6343 # nm: unknown option "B" ignored
6344 # Tru64's nm complains that /dev/null is an invalid object file
6345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6346 */dev/null* | *'Invalid file or object type'*)
6347 lt_cv_path_NM="$tmp_nm -B"
6348 break
6349 ;;
6350 *)
6351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6352 */dev/null*)
6353 lt_cv_path_NM="$tmp_nm -p"
6354 break
6355 ;;
6356 *)
6357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6358 continue # so that we can try to find one that supports BSD flags
6359 ;;
6360 esac
6361 ;;
6362 esac
6363 fi
6364 done
6365 IFS="$lt_save_ifs"
6366 done
6367 : ${lt_cv_path_NM=no}
6368 fi
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6371 $as_echo "$lt_cv_path_NM" >&6; }
6372 if test "$lt_cv_path_NM" != "no"; then
6373 NM="$lt_cv_path_NM"
6374 else
6375 # Didn't find any BSD compatible name lister, look for dumpbin.
6376 if test -n "$DUMPBIN"; then :
6377 # Let the user override the test.
6378 else
6379 if test -n "$ac_tool_prefix"; then
6380 for ac_prog in dumpbin "link -dump"
6381 do
6382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -n "$DUMPBIN"; then
6390 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 DUMPBIN=$ac_cv_prog_DUMPBIN
6410 if test -n "$DUMPBIN"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6412 $as_echo "$DUMPBIN" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418
6419 test -n "$DUMPBIN" && break
6420 done
6421 fi
6422 if test -z "$DUMPBIN"; then
6423 ac_ct_DUMPBIN=$DUMPBIN
6424 for ac_prog in dumpbin "link -dump"
6425 do
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$ac_ct_DUMPBIN"; then
6434 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6454 if test -n "$ac_ct_DUMPBIN"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6456 $as_echo "$ac_ct_DUMPBIN" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463 test -n "$ac_ct_DUMPBIN" && break
6464 done
6465
6466 if test "x$ac_ct_DUMPBIN" = x; then
6467 DUMPBIN=":"
6468 else
6469 case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475 DUMPBIN=$ac_ct_DUMPBIN
6476 fi
6477 fi
6478
6479 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6480 *COFF*)
6481 DUMPBIN="$DUMPBIN -symbols"
6482 ;;
6483 *)
6484 DUMPBIN=:
6485 ;;
6486 esac
6487 fi
6488
6489 if test "$DUMPBIN" != ":"; then
6490 NM="$DUMPBIN"
6491 fi
6492 fi
6493 test -z "$NM" && NM=nm
6494
6495
6496
6497
6498
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6501 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6502 if test "${lt_cv_nm_interface+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 lt_cv_nm_interface="BSD nm"
6506 echo "int some_variable = 0;" > conftest.$ac_ext
6507 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6508 (eval "$ac_compile" 2>conftest.err)
6509 cat conftest.err >&5
6510 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6512 cat conftest.err >&5
6513 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6514 cat conftest.out >&5
6515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6516 lt_cv_nm_interface="MS dumpbin"
6517 fi
6518 rm -f conftest*
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6521 $as_echo "$lt_cv_nm_interface" >&6; }
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6524 $as_echo_n "checking whether ln -s works... " >&6; }
6525 LN_S=$as_ln_s
6526 if test "$LN_S" = "ln -s"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6528 $as_echo "yes" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6531 $as_echo "no, using $LN_S" >&6; }
6532 fi
6533
6534 # find the maximum length of command line arguments
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6536 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6537 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 i=0
6541 teststring="ABCD"
6542
6543 case $build_os in
6544 msdosdjgpp*)
6545 # On DJGPP, this test can blow up pretty badly due to problems in libc
6546 # (any single argument exceeding 2000 bytes causes a buffer overrun
6547 # during glob expansion). Even if it were fixed, the result of this
6548 # check would be larger than it should be.
6549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6550 ;;
6551
6552 gnu*)
6553 # Under GNU Hurd, this test is not required because there is
6554 # no limit to the length of command line arguments.
6555 # Libtool will interpret -1 as no limit whatsoever
6556 lt_cv_sys_max_cmd_len=-1;
6557 ;;
6558
6559 cygwin* | mingw* | cegcc*)
6560 # On Win9x/ME, this test blows up -- it succeeds, but takes
6561 # about 5 minutes as the teststring grows exponentially.
6562 # Worse, since 9x/ME are not pre-emptively multitasking,
6563 # you end up with a "frozen" computer, even though with patience
6564 # the test eventually succeeds (with a max line length of 256k).
6565 # Instead, let's just punt: use the minimum linelength reported by
6566 # all of the supported platforms: 8192 (on NT/2K/XP).
6567 lt_cv_sys_max_cmd_len=8192;
6568 ;;
6569
6570 mint*)
6571 # On MiNT this can take a long time and run out of memory.
6572 lt_cv_sys_max_cmd_len=8192;
6573 ;;
6574
6575 amigaos*)
6576 # On AmigaOS with pdksh, this test takes hours, literally.
6577 # So we just punt and use a minimum line length of 8192.
6578 lt_cv_sys_max_cmd_len=8192;
6579 ;;
6580
6581 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6582 # This has been around since 386BSD, at least. Likely further.
6583 if test -x /sbin/sysctl; then
6584 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585 elif test -x /usr/sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587 else
6588 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6589 fi
6590 # And add a safety zone
6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6593 ;;
6594
6595 interix*)
6596 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6597 lt_cv_sys_max_cmd_len=196608
6598 ;;
6599
6600 osf*)
6601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603 # nice to cause kernel panics so lets avoid the loop below.
6604 # First set a reasonable default.
6605 lt_cv_sys_max_cmd_len=16384
6606 #
6607 if test -x /sbin/sysconfig; then
6608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610 esac
6611 fi
6612 ;;
6613 sco3.2v5*)
6614 lt_cv_sys_max_cmd_len=102400
6615 ;;
6616 sysv5* | sco5v6* | sysv4.2uw2*)
6617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618 if test -n "$kargmax"; then
6619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6620 else
6621 lt_cv_sys_max_cmd_len=32768
6622 fi
6623 ;;
6624 *)
6625 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6626 if test -n "$lt_cv_sys_max_cmd_len"; then
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629 else
6630 # Make teststring a little bigger before we do anything with it.
6631 # a 1K string should be a reasonable start.
6632 for i in 1 2 3 4 5 6 7 8 ; do
6633 teststring=$teststring$teststring
6634 done
6635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6636 # If test is not a shell built-in, we'll probably end up computing a
6637 # maximum length that is only half of the actual maximum length, but
6638 # we can't tell.
6639 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6640 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6641 test $i != 17 # 1/2 MB should be enough
6642 do
6643 i=`expr $i + 1`
6644 teststring=$teststring$teststring
6645 done
6646 # Only check the string length outside the loop.
6647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6648 teststring=
6649 # Add a significant safety factor because C++ compilers can tack on
6650 # massive amounts of additional arguments before passing them to the
6651 # linker. It appears as though 1/2 is a usable value.
6652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6653 fi
6654 ;;
6655 esac
6656
6657 fi
6658
6659 if test -n $lt_cv_sys_max_cmd_len ; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6664 $as_echo "none" >&6; }
6665 fi
6666 max_cmd_len=$lt_cv_sys_max_cmd_len
6667
6668
6669
6670
6671
6672
6673 : ${CP="cp -f"}
6674 : ${MV="mv -f"}
6675 : ${RM="rm -f"}
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6679 # Try some XSI features
6680 xsi_shell=no
6681 ( _lt_dummy="a/b/c"
6682 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6683 = c,a/b,, \
6684 && eval 'test $(( 1 + 1 )) -eq 2 \
6685 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6686 && xsi_shell=yes
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6688 $as_echo "$xsi_shell" >&6; }
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6693 lt_shell_append=no
6694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6695 >/dev/null 2>&1 \
6696 && lt_shell_append=yes
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6698 $as_echo "$lt_shell_append" >&6; }
6699
6700
6701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6702 lt_unset=unset
6703 else
6704 lt_unset=false
6705 fi
6706
6707
6708
6709
6710
6711 # test EBCDIC or ASCII
6712 case `echo X|tr X '\101'` in
6713 A) # ASCII based system
6714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6715 lt_SP2NL='tr \040 \012'
6716 lt_NL2SP='tr \015\012 \040\040'
6717 ;;
6718 *) # EBCDIC based system
6719 lt_SP2NL='tr \100 \n'
6720 lt_NL2SP='tr \r\n \100\100'
6721 ;;
6722 esac
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6733 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6734 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 lt_cv_ld_reload_flag='-r'
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6740 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6741 reload_flag=$lt_cv_ld_reload_flag
6742 case $reload_flag in
6743 "" | " "*) ;;
6744 *) reload_flag=" $reload_flag" ;;
6745 esac
6746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6747 case $host_os in
6748 darwin*)
6749 if test "$GCC" = yes; then
6750 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6751 else
6752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6753 fi
6754 ;;
6755 esac
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$OBJDUMP"; then
6774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 OBJDUMP=$ac_cv_prog_OBJDUMP
6794 if test -n "$OBJDUMP"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6796 $as_echo "$OBJDUMP" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_OBJDUMP"; then
6805 ac_ct_OBJDUMP=$OBJDUMP
6806 # Extract the first word of "objdump", so it can be a program name with args.
6807 set dummy objdump; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$ac_ct_OBJDUMP"; then
6814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6834 if test -n "$ac_ct_OBJDUMP"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6836 $as_echo "$ac_ct_OBJDUMP" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842 if test "x$ac_ct_OBJDUMP" = x; then
6843 OBJDUMP="false"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851 OBJDUMP=$ac_ct_OBJDUMP
6852 fi
6853 else
6854 OBJDUMP="$ac_cv_prog_OBJDUMP"
6855 fi
6856
6857 test -z "$OBJDUMP" && OBJDUMP=objdump
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6868 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6869 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 lt_cv_file_magic_cmd='$MAGIC_CMD'
6873 lt_cv_file_magic_test_file=
6874 lt_cv_deplibs_check_method='unknown'
6875 # Need to set the preceding variable on all platforms that support
6876 # interlibrary dependencies.
6877 # 'none' -- dependencies not supported.
6878 # `unknown' -- same as none, but documents that we really don't know.
6879 # 'pass_all' -- all dependencies passed with no checks.
6880 # 'test_compile' -- check by making test program.
6881 # 'file_magic [[regex]]' -- check by looking for files in library path
6882 # which responds to the $file_magic_cmd with a given extended regex.
6883 # If you have `file' or equivalent on your system and you're not sure
6884 # whether `pass_all' will *always* work, you probably want this one.
6885
6886 case $host_os in
6887 aix[4-9]*)
6888 lt_cv_deplibs_check_method=pass_all
6889 ;;
6890
6891 beos*)
6892 lt_cv_deplibs_check_method=pass_all
6893 ;;
6894
6895 bsdi[45]*)
6896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6897 lt_cv_file_magic_cmd='/usr/bin/file -L'
6898 lt_cv_file_magic_test_file=/shlib/libc.so
6899 ;;
6900
6901 cygwin*)
6902 # func_win32_libid is a shell function defined in ltmain.sh
6903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6904 lt_cv_file_magic_cmd='func_win32_libid'
6905 ;;
6906
6907 mingw* | pw32*)
6908 # Base MSYS/MinGW do not provide the 'file' command needed by
6909 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6910 # unless we find 'file', for example because we are cross-compiling.
6911 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6912 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6914 lt_cv_file_magic_cmd='func_win32_libid'
6915 else
6916 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6917 lt_cv_file_magic_cmd='$OBJDUMP -f'
6918 fi
6919 ;;
6920
6921 cegcc*)
6922 # use the weaker test based on 'objdump'. See mingw*.
6923 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6924 lt_cv_file_magic_cmd='$OBJDUMP -f'
6925 ;;
6926
6927 darwin* | rhapsody*)
6928 lt_cv_deplibs_check_method=pass_all
6929 ;;
6930
6931 freebsd* | dragonfly*)
6932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6933 case $host_cpu in
6934 i*86 )
6935 # Not sure whether the presence of OpenBSD here was a mistake.
6936 # Let's accept both of them until this is cleared up.
6937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6938 lt_cv_file_magic_cmd=/usr/bin/file
6939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6940 ;;
6941 esac
6942 else
6943 lt_cv_deplibs_check_method=pass_all
6944 fi
6945 ;;
6946
6947 gnu*)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950
6951 haiku*)
6952 lt_cv_deplibs_check_method=pass_all
6953 ;;
6954
6955 hpux10.20* | hpux11*)
6956 lt_cv_file_magic_cmd=/usr/bin/file
6957 case $host_cpu in
6958 ia64*)
6959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6960 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6961 ;;
6962 hppa*64*)
6963 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]'
6964 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6965 ;;
6966 *)
6967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6968 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6969 ;;
6970 esac
6971 ;;
6972
6973 interix[3-9]*)
6974 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6976 ;;
6977
6978 irix5* | irix6* | nonstopux*)
6979 case $LD in
6980 *-32|*"-32 ") libmagic=32-bit;;
6981 *-n32|*"-n32 ") libmagic=N32;;
6982 *-64|*"-64 ") libmagic=64-bit;;
6983 *) libmagic=never-match;;
6984 esac
6985 lt_cv_deplibs_check_method=pass_all
6986 ;;
6987
6988 # This must be Linux ELF.
6989 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6990 lt_cv_deplibs_check_method=pass_all
6991 ;;
6992
6993 netbsd*)
6994 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6996 else
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6998 fi
6999 ;;
7000
7001 newos6*)
7002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7003 lt_cv_file_magic_cmd=/usr/bin/file
7004 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7005 ;;
7006
7007 *nto* | *qnx*)
7008 lt_cv_deplibs_check_method=pass_all
7009 ;;
7010
7011 openbsd*)
7012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7014 else
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7016 fi
7017 ;;
7018
7019 osf3* | osf4* | osf5*)
7020 lt_cv_deplibs_check_method=pass_all
7021 ;;
7022
7023 rdos*)
7024 lt_cv_deplibs_check_method=pass_all
7025 ;;
7026
7027 solaris*)
7028 lt_cv_deplibs_check_method=pass_all
7029 ;;
7030
7031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
7034
7035 sysv4 | sysv4.3*)
7036 case $host_vendor in
7037 motorola)
7038 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]'
7039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7040 ;;
7041 ncr)
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7044 sequent)
7045 lt_cv_file_magic_cmd='/bin/file'
7046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7047 ;;
7048 sni)
7049 lt_cv_file_magic_cmd='/bin/file'
7050 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7051 lt_cv_file_magic_test_file=/lib/libc.so
7052 ;;
7053 siemens)
7054 lt_cv_deplibs_check_method=pass_all
7055 ;;
7056 pc)
7057 lt_cv_deplibs_check_method=pass_all
7058 ;;
7059 esac
7060 ;;
7061
7062 tpf*)
7063 lt_cv_deplibs_check_method=pass_all
7064 ;;
7065 esac
7066
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7069 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7070 file_magic_cmd=$lt_cv_file_magic_cmd
7071 deplibs_check_method=$lt_cv_deplibs_check_method
7072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}ar; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if test "${ac_cv_prog_AR+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$AR"; then
7094 ac_cv_prog_AR="$AR" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_AR="${ac_tool_prefix}ar"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 AR=$ac_cv_prog_AR
7114 if test -n "$AR"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7116 $as_echo "$AR" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122
7123 fi
7124 if test -z "$ac_cv_prog_AR"; then
7125 ac_ct_AR=$AR
7126 # Extract the first word of "ar", so it can be a program name with args.
7127 set dummy ar; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$ac_ct_AR"; then
7134 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_ac_ct_AR="ar"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7154 if test -n "$ac_ct_AR"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7156 $as_echo "$ac_ct_AR" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_AR" = x; then
7163 AR="false"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 AR=$ac_ct_AR
7172 fi
7173 else
7174 AR="$ac_cv_prog_AR"
7175 fi
7176
7177 test -z "$AR" && AR=ar
7178 test -z "$AR_FLAGS" && AR_FLAGS=cru
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}strip; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_STRIP+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$STRIP"; then
7199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 STRIP=$ac_cv_prog_STRIP
7219 if test -n "$STRIP"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7221 $as_echo "$STRIP" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 fi
7229 if test -z "$ac_cv_prog_STRIP"; then
7230 ac_ct_STRIP=$STRIP
7231 # Extract the first word of "strip", so it can be a program name with args.
7232 set dummy strip; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$ac_ct_STRIP"; then
7239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_STRIP="strip"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7259 if test -n "$ac_ct_STRIP"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7261 $as_echo "$ac_ct_STRIP" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267 if test "x$ac_ct_STRIP" = x; then
7268 STRIP=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276 STRIP=$ac_ct_STRIP
7277 fi
7278 else
7279 STRIP="$ac_cv_prog_STRIP"
7280 fi
7281
7282 test -z "$STRIP" && STRIP=:
7283
7284
7285
7286
7287
7288
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 if test -n "$RANLIB"; then
7298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 RANLIB=$ac_cv_prog_RANLIB
7318 if test -n "$RANLIB"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7320 $as_echo "$RANLIB" >&6; }
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_RANLIB"; then
7329 ac_ct_RANLIB=$RANLIB
7330 # Extract the first word of "ranlib", so it can be a program name with args.
7331 set dummy ranlib; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 if test -n "$ac_ct_RANLIB"; then
7338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_prog_ac_ct_RANLIB="ranlib"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7358 if test -n "$ac_ct_RANLIB"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7360 $as_echo "$ac_ct_RANLIB" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366 if test "x$ac_ct_RANLIB" = x; then
7367 RANLIB=":"
7368 else
7369 case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375 RANLIB=$ac_ct_RANLIB
7376 fi
7377 else
7378 RANLIB="$ac_cv_prog_RANLIB"
7379 fi
7380
7381 test -z "$RANLIB" && RANLIB=:
7382
7383
7384
7385
7386
7387
7388 # Determine commands to create old-style static archives.
7389 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7390 old_postinstall_cmds='chmod 644 $oldlib'
7391 old_postuninstall_cmds=
7392
7393 if test -n "$RANLIB"; then
7394 case $host_os in
7395 openbsd*)
7396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7397 ;;
7398 *)
7399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7400 ;;
7401 esac
7402 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7403 fi
7404
7405 case $host_os in
7406 darwin*)
7407 lock_old_archive_extraction=yes ;;
7408 *)
7409 lock_old_archive_extraction=no ;;
7410 esac
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 # If no C compiler was specified, use CC.
7451 LTCC=${LTCC-"$CC"}
7452
7453 # If no C compiler flags were specified, use CFLAGS.
7454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7455
7456 # Allow CC to be a program name with arguments.
7457 compiler=$CC
7458
7459
7460 # Check for command to grab the raw symbol name followed by C symbol from nm.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466
7467 # These are sane defaults that work on at least a few old systems.
7468 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7469
7470 # Character class describing NM global symbol codes.
7471 symcode='[BCDEGRST]'
7472
7473 # Regexp to match symbols that can be accessed directly from C.
7474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7475
7476 # Define system-specific variables.
7477 case $host_os in
7478 aix*)
7479 symcode='[BCDT]'
7480 ;;
7481 cygwin* | mingw* | pw32* | cegcc*)
7482 symcode='[ABCDGISTW]'
7483 ;;
7484 hpux*)
7485 if test "$host_cpu" = ia64; then
7486 symcode='[ABCDEGRST]'
7487 fi
7488 ;;
7489 irix* | nonstopux*)
7490 symcode='[BCDEGRST]'
7491 ;;
7492 osf*)
7493 symcode='[BCDEGQRST]'
7494 ;;
7495 solaris*)
7496 symcode='[BDRT]'
7497 ;;
7498 sco3.2v5*)
7499 symcode='[DT]'
7500 ;;
7501 sysv4.2uw2*)
7502 symcode='[DT]'
7503 ;;
7504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7505 symcode='[ABDT]'
7506 ;;
7507 sysv4)
7508 symcode='[DFNSTU]'
7509 ;;
7510 esac
7511
7512 # If we're using GNU nm, then use its standard symbol codes.
7513 case `$NM -V 2>&1` in
7514 *GNU* | *'with BFD'*)
7515 symcode='[ABCDGIRSTW]' ;;
7516 esac
7517
7518 # Transform an extracted symbol line into a proper C declaration.
7519 # Some systems (esp. on ia64) link data and code symbols differently,
7520 # so use this general approach.
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7522
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7525 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'"
7526
7527 # Handle CRLF in mingw tool chain
7528 opt_cr=
7529 case $build_os in
7530 mingw*)
7531 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7532 ;;
7533 esac
7534
7535 # Try without a prefix underscore, then with it.
7536 for ac_symprfx in "" "_"; do
7537
7538 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7539 symxfrm="\\1 $ac_symprfx\\2 \\2"
7540
7541 # Write the raw and C identifiers.
7542 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543 # Fake it for dumpbin and say T for any non-static function
7544 # and D for any global variable.
7545 # Also find C++ and __fastcall symbols from MSVC++,
7546 # which start with @ or ?.
7547 lt_cv_sys_global_symbol_pipe="$AWK '"\
7548 " {last_section=section; section=\$ 3};"\
7549 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7550 " \$ 0!~/External *\|/{next};"\
7551 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 " {if(hide[section]) next};"\
7553 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7554 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7555 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7556 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7557 " ' prfx=^$ac_symprfx"
7558 else
7559 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7560 fi
7561
7562 # Check to see that the pipe works correctly.
7563 pipe_works=no
7564
7565 rm -f conftest*
7566 cat > conftest.$ac_ext <<_LT_EOF
7567 #ifdef __cplusplus
7568 extern "C" {
7569 #endif
7570 char nm_test_var;
7571 void nm_test_func(void);
7572 void nm_test_func(void){}
7573 #ifdef __cplusplus
7574 }
7575 #endif
7576 int main(){nm_test_var='a';nm_test_func();return(0);}
7577 _LT_EOF
7578
7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580 (eval $ac_compile) 2>&5
7581 ac_status=$?
7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583 test $ac_status = 0; }; then
7584 # Now try to grab the symbols.
7585 nlist=conftest.nm
7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7587 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7588 ac_status=$?
7589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 test $ac_status = 0; } && test -s "$nlist"; then
7591 # Try sorting and uniquifying the output.
7592 if sort "$nlist" | uniq > "$nlist"T; then
7593 mv -f "$nlist"T "$nlist"
7594 else
7595 rm -f "$nlist"T
7596 fi
7597
7598 # Make sure that we snagged all the symbols we need.
7599 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7600 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7601 cat <<_LT_EOF > conftest.$ac_ext
7602 #ifdef __cplusplus
7603 extern "C" {
7604 #endif
7605
7606 _LT_EOF
7607 # Now generate the symbol file.
7608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7609
7610 cat <<_LT_EOF >> conftest.$ac_ext
7611
7612 /* The mapping between symbol names and symbols. */
7613 const struct {
7614 const char *name;
7615 void *address;
7616 }
7617 lt__PROGRAM__LTX_preloaded_symbols[] =
7618 {
7619 { "@PROGRAM@", (void *) 0 },
7620 _LT_EOF
7621 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7622 cat <<\_LT_EOF >> conftest.$ac_ext
7623 {0, (void *) 0}
7624 };
7625
7626 /* This works around a problem in FreeBSD linker */
7627 #ifdef FREEBSD_WORKAROUND
7628 static const void *lt_preloaded_setup() {
7629 return lt__PROGRAM__LTX_preloaded_symbols;
7630 }
7631 #endif
7632
7633 #ifdef __cplusplus
7634 }
7635 #endif
7636 _LT_EOF
7637 # Now try linking the two files.
7638 mv conftest.$ac_objext conftstm.$ac_objext
7639 lt_save_LIBS="$LIBS"
7640 lt_save_CFLAGS="$CFLAGS"
7641 LIBS="conftstm.$ac_objext"
7642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7644 (eval $ac_link) 2>&5
7645 ac_status=$?
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7648 pipe_works=yes
7649 fi
7650 LIBS="$lt_save_LIBS"
7651 CFLAGS="$lt_save_CFLAGS"
7652 else
7653 echo "cannot find nm_test_func in $nlist" >&5
7654 fi
7655 else
7656 echo "cannot find nm_test_var in $nlist" >&5
7657 fi
7658 else
7659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7660 fi
7661 else
7662 echo "$progname: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7664 fi
7665 rm -rf conftest* conftst*
7666
7667 # Do not use the global_symbol_pipe unless it works.
7668 if test "$pipe_works" = yes; then
7669 break
7670 else
7671 lt_cv_sys_global_symbol_pipe=
7672 fi
7673 done
7674
7675 fi
7676
7677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7678 lt_cv_sys_global_symbol_to_cdecl=
7679 fi
7680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7682 $as_echo "failed" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7685 $as_echo "ok" >&6; }
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # Check whether --enable-libtool-lock was given.
7710 if test "${enable_libtool_lock+set}" = set; then :
7711 enableval=$enable_libtool_lock;
7712 fi
7713
7714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7715
7716 # Some flags need to be propagated to the compiler or linker for good
7717 # libtool support.
7718 case $host in
7719 ia64-*-hpux*)
7720 # Find out which ABI we are using.
7721 echo 'int i;' > conftest.$ac_ext
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723 (eval $ac_compile) 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; then
7727 case `/usr/bin/file conftest.$ac_objext` in
7728 *ELF-32*)
7729 HPUX_IA64_MODE="32"
7730 ;;
7731 *ELF-64*)
7732 HPUX_IA64_MODE="64"
7733 ;;
7734 esac
7735 fi
7736 rm -rf conftest*
7737 ;;
7738 *-*-irix6*)
7739 # Find out which ABI we are using.
7740 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 if test "$lt_cv_prog_gnu_ld" = yes; then
7747 case `/usr/bin/file conftest.$ac_objext` in
7748 *32-bit*)
7749 LD="${LD-ld} -melf32bsmip"
7750 ;;
7751 *N32*)
7752 LD="${LD-ld} -melf32bmipn32"
7753 ;;
7754 *64-bit*)
7755 LD="${LD-ld} -melf64bmip"
7756 ;;
7757 esac
7758 else
7759 case `/usr/bin/file conftest.$ac_objext` in
7760 *32-bit*)
7761 LD="${LD-ld} -32"
7762 ;;
7763 *N32*)
7764 LD="${LD-ld} -n32"
7765 ;;
7766 *64-bit*)
7767 LD="${LD-ld} -64"
7768 ;;
7769 esac
7770 fi
7771 fi
7772 rm -rf conftest*
7773 ;;
7774
7775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7777 # Find out which ABI we are using.
7778 echo 'int i;' > conftest.$ac_ext
7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780 (eval $ac_compile) 2>&5
7781 ac_status=$?
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }; then
7784 case `/usr/bin/file conftest.o` in
7785 *32-bit*)
7786 case $host in
7787 x86_64-*kfreebsd*-gnu)
7788 LD="${LD-ld} -m elf_i386_fbsd"
7789 ;;
7790 x86_64-*linux*)
7791 case `/usr/bin/file conftest.o` in
7792 *x86-64*)
7793 LD="${LD-ld} -m elf32_x86_64"
7794 ;;
7795 *)
7796 LD="${LD-ld} -m elf_i386"
7797 ;;
7798 esac
7799 ;;
7800 powerpc64le-*linux*)
7801 LD="${LD-ld} -m elf32lppclinux"
7802 ;;
7803 powerpc64-*linux*)
7804 LD="${LD-ld} -m elf32ppclinux"
7805 ;;
7806 s390x-*linux*)
7807 LD="${LD-ld} -m elf_s390"
7808 ;;
7809 sparc64-*linux*)
7810 LD="${LD-ld} -m elf32_sparc"
7811 ;;
7812 esac
7813 ;;
7814 *64-bit*)
7815 case $host in
7816 x86_64-*kfreebsd*-gnu)
7817 LD="${LD-ld} -m elf_x86_64_fbsd"
7818 ;;
7819 x86_64-*linux*)
7820 LD="${LD-ld} -m elf_x86_64"
7821 ;;
7822 powerpcle-*linux*)
7823 LD="${LD-ld} -m elf64lppc"
7824 ;;
7825 powerpc-*linux*)
7826 LD="${LD-ld} -m elf64ppc"
7827 ;;
7828 s390*-*linux*|s390*-*tpf*)
7829 LD="${LD-ld} -m elf64_s390"
7830 ;;
7831 sparc*-*linux*)
7832 LD="${LD-ld} -m elf64_sparc"
7833 ;;
7834 esac
7835 ;;
7836 esac
7837 fi
7838 rm -rf conftest*
7839 ;;
7840
7841 *-*-sco3.2v5*)
7842 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7843 SAVE_CFLAGS="$CFLAGS"
7844 CFLAGS="$CFLAGS -belf"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7846 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7847 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858
7859 int
7860 main ()
7861 {
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 lt_cv_cc_needs_belf=yes
7869 else
7870 lt_cv_cc_needs_belf=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7874 ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7882 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7885 CFLAGS="$SAVE_CFLAGS"
7886 fi
7887 ;;
7888 sparc*-*solaris*)
7889 # Find out which ABI we are using.
7890 echo 'int i;' > conftest.$ac_ext
7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }; then
7896 case `/usr/bin/file conftest.o` in
7897 *64-bit*)
7898 case $lt_cv_prog_gnu_ld in
7899 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7900 *)
7901 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7902 LD="${LD-ld} -64"
7903 fi
7904 ;;
7905 esac
7906 ;;
7907 esac
7908 fi
7909 rm -rf conftest*
7910 ;;
7911 esac
7912
7913 need_locks="$enable_libtool_lock"
7914
7915
7916 case $host_os in
7917 rhapsody* | darwin*)
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$DSYMUTIL"; then
7927 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7947 if test -n "$DSYMUTIL"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7949 $as_echo "$DSYMUTIL" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955
7956 fi
7957 if test -z "$ac_cv_prog_DSYMUTIL"; then
7958 ac_ct_DSYMUTIL=$DSYMUTIL
7959 # Extract the first word of "dsymutil", so it can be a program name with args.
7960 set dummy dsymutil; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$ac_ct_DSYMUTIL"; then
7967 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7987 if test -n "$ac_ct_DSYMUTIL"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7989 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994
7995 if test "x$ac_ct_DSYMUTIL" = x; then
7996 DSYMUTIL=":"
7997 else
7998 case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned=yes ;;
8003 esac
8004 DSYMUTIL=$ac_ct_DSYMUTIL
8005 fi
8006 else
8007 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8008 fi
8009
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$NMEDIT"; then
8019 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 NMEDIT=$ac_cv_prog_NMEDIT
8039 if test -n "$NMEDIT"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8041 $as_echo "$NMEDIT" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048 fi
8049 if test -z "$ac_cv_prog_NMEDIT"; then
8050 ac_ct_NMEDIT=$NMEDIT
8051 # Extract the first word of "nmedit", so it can be a program name with args.
8052 set dummy nmedit; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$ac_ct_NMEDIT"; then
8059 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072 done
8073 done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8079 if test -n "$ac_ct_NMEDIT"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8081 $as_echo "$ac_ct_NMEDIT" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087 if test "x$ac_ct_NMEDIT" = x; then
8088 NMEDIT=":"
8089 else
8090 case $cross_compiling:$ac_tool_warned in
8091 yes:)
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8095 esac
8096 NMEDIT=$ac_ct_NMEDIT
8097 fi
8098 else
8099 NMEDIT="$ac_cv_prog_NMEDIT"
8100 fi
8101
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8104 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_LIPO+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$LIPO"; then
8111 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8123 fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128 fi
8129 fi
8130 LIPO=$ac_cv_prog_LIPO
8131 if test -n "$LIPO"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8133 $as_echo "$LIPO" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 fi
8138
8139
8140 fi
8141 if test -z "$ac_cv_prog_LIPO"; then
8142 ac_ct_LIPO=$LIPO
8143 # Extract the first word of "lipo", so it can be a program name with args.
8144 set dummy lipo; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 if test -n "$ac_ct_LIPO"; then
8151 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8160 ac_cv_prog_ac_ct_LIPO="lipo"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 break 2
8163 fi
8164 done
8165 done
8166 IFS=$as_save_IFS
8167
8168 fi
8169 fi
8170 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8171 if test -n "$ac_ct_LIPO"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8173 $as_echo "$ac_ct_LIPO" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179 if test "x$ac_ct_LIPO" = x; then
8180 LIPO=":"
8181 else
8182 case $cross_compiling:$ac_tool_warned in
8183 yes:)
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8186 ac_tool_warned=yes ;;
8187 esac
8188 LIPO=$ac_ct_LIPO
8189 fi
8190 else
8191 LIPO="$ac_cv_prog_LIPO"
8192 fi
8193
8194 if test -n "$ac_tool_prefix"; then
8195 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8196 set dummy ${ac_tool_prefix}otool; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$OTOOL"; then
8203 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 OTOOL=$ac_cv_prog_OTOOL
8223 if test -n "$OTOOL"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8225 $as_echo "$OTOOL" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_OTOOL"; then
8234 ac_ct_OTOOL=$OTOOL
8235 # Extract the first word of "otool", so it can be a program name with args.
8236 set dummy otool; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 if test -n "$ac_ct_OTOOL"; then
8243 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8252 ac_cv_prog_ac_ct_OTOOL="otool"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 break 2
8255 fi
8256 done
8257 done
8258 IFS=$as_save_IFS
8259
8260 fi
8261 fi
8262 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8263 if test -n "$ac_ct_OTOOL"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8265 $as_echo "$ac_ct_OTOOL" >&6; }
8266 else
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271 if test "x$ac_ct_OTOOL" = x; then
8272 OTOOL=":"
8273 else
8274 case $cross_compiling:$ac_tool_warned in
8275 yes:)
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8278 ac_tool_warned=yes ;;
8279 esac
8280 OTOOL=$ac_ct_OTOOL
8281 fi
8282 else
8283 OTOOL="$ac_cv_prog_OTOOL"
8284 fi
8285
8286 if test -n "$ac_tool_prefix"; then
8287 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8288 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 if test -n "$OTOOL64"; then
8295 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308 done
8309 done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 OTOOL64=$ac_cv_prog_OTOOL64
8315 if test -n "$OTOOL64"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8317 $as_echo "$OTOOL64" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324 fi
8325 if test -z "$ac_cv_prog_OTOOL64"; then
8326 ac_ct_OTOOL64=$OTOOL64
8327 # Extract the first word of "otool64", so it can be a program name with args.
8328 set dummy otool64; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 if test -n "$ac_ct_OTOOL64"; then
8335 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8344 ac_cv_prog_ac_ct_OTOOL64="otool64"
8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8347 fi
8348 done
8349 done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8355 if test -n "$ac_ct_OTOOL64"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8357 $as_echo "$ac_ct_OTOOL64" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363 if test "x$ac_ct_OTOOL64" = x; then
8364 OTOOL64=":"
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367 yes:)
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370 ac_tool_warned=yes ;;
8371 esac
8372 OTOOL64=$ac_ct_OTOOL64
8373 fi
8374 else
8375 OTOOL64="$ac_cv_prog_OTOOL64"
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8405 $as_echo_n "checking for -single_module linker flag... " >&6; }
8406 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 lt_cv_apple_cc_single_mod=no
8410 if test -z "${LT_MULTI_MODULE}"; then
8411 # By default we will add the -single_module flag. You can override
8412 # by either setting the environment variable LT_MULTI_MODULE
8413 # non-empty at configure time, or by adding -multi_module to the
8414 # link flags.
8415 rm -rf libconftest.dylib*
8416 echo "int foo(void){return 1;}" > conftest.c
8417 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8418 -dynamiclib -Wl,-single_module conftest.c" >&5
8419 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8420 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8421 _lt_result=$?
8422 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8423 lt_cv_apple_cc_single_mod=yes
8424 else
8425 cat conftest.err >&5
8426 fi
8427 rm -rf libconftest.dylib*
8428 rm -f conftest.*
8429 fi
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8435 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 lt_cv_ld_exported_symbols_list=no
8439 save_LDFLAGS=$LDFLAGS
8440 echo "_main" > conftest.sym
8441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 lt_cv_ld_exported_symbols_list=yes
8455 else
8456 lt_cv_ld_exported_symbols_list=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LDFLAGS="$save_LDFLAGS"
8461
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8466 $as_echo_n "checking for -force_load linker flag... " >&6; }
8467 if test "${lt_cv_ld_force_load+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 lt_cv_ld_force_load=no
8471 cat > conftest.c << _LT_EOF
8472 int forced_loaded() { return 2;}
8473 _LT_EOF
8474 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8475 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8476 echo "$AR cru libconftest.a conftest.o" >&5
8477 $AR cru libconftest.a conftest.o 2>&5
8478 cat > conftest.c << _LT_EOF
8479 int main() { return 0;}
8480 _LT_EOF
8481 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8482 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8483 _lt_result=$?
8484 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8485 lt_cv_ld_force_load=yes
8486 else
8487 cat conftest.err >&5
8488 fi
8489 rm -f conftest.err libconftest.a conftest conftest.c
8490 rm -rf conftest.dSYM
8491
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8494 $as_echo "$lt_cv_ld_force_load" >&6; }
8495 case $host_os in
8496 rhapsody* | darwin1.[012])
8497 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8498 darwin1.*)
8499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8500 darwin*) # darwin 5.x on
8501 # if running on 10.5 or later, the deployment target defaults
8502 # to the OS version, if on x86, and 10.4, the deployment
8503 # target defaults to 10.4. Don't you love it?
8504 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8505 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8507 10.[012]*)
8508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8509 10.*)
8510 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8511 esac
8512 ;;
8513 esac
8514 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8515 _lt_dar_single_mod='$single_module'
8516 fi
8517 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8518 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8519 else
8520 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8521 fi
8522 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8523 _lt_dsymutil='~$DSYMUTIL $lib || :'
8524 else
8525 _lt_dsymutil=
8526 fi
8527 ;;
8528 esac
8529
8530 for ac_header in dlfcn.h
8531 do :
8532 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8533 "
8534 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8535 cat >>confdefs.h <<_ACEOF
8536 #define HAVE_DLFCN_H 1
8537 _ACEOF
8538
8539 fi
8540
8541 done
8542
8543
8544
8545
8546
8547
8548 # Set options
8549
8550
8551
8552
8553 enable_win32_dll=no
8554
8555
8556 # Check whether --enable-shared was given.
8557 if test "${enable_shared+set}" = set; then :
8558 enableval=$enable_shared; p=${PACKAGE-default}
8559 case $enableval in
8560 yes) enable_shared=yes ;;
8561 no) enable_shared=no ;;
8562 *)
8563 enable_shared=no
8564 # Look at the argument we got. We use all the common list separators.
8565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8566 for pkg in $enableval; do
8567 IFS="$lt_save_ifs"
8568 if test "X$pkg" = "X$p"; then
8569 enable_shared=yes
8570 fi
8571 done
8572 IFS="$lt_save_ifs"
8573 ;;
8574 esac
8575 else
8576 enable_shared=yes
8577 fi
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587 # Check whether --enable-static was given.
8588 if test "${enable_static+set}" = set; then :
8589 enableval=$enable_static; p=${PACKAGE-default}
8590 case $enableval in
8591 yes) enable_static=yes ;;
8592 no) enable_static=no ;;
8593 *)
8594 enable_static=no
8595 # Look at the argument we got. We use all the common list separators.
8596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8597 for pkg in $enableval; do
8598 IFS="$lt_save_ifs"
8599 if test "X$pkg" = "X$p"; then
8600 enable_static=yes
8601 fi
8602 done
8603 IFS="$lt_save_ifs"
8604 ;;
8605 esac
8606 else
8607 enable_static=yes
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619 # Check whether --with-pic was given.
8620 if test "${with_pic+set}" = set; then :
8621 withval=$with_pic; pic_mode="$withval"
8622 else
8623 pic_mode=default
8624 fi
8625
8626
8627 test -z "$pic_mode" && pic_mode=default
8628
8629
8630
8631
8632
8633
8634
8635 # Check whether --enable-fast-install was given.
8636 if test "${enable_fast_install+set}" = set; then :
8637 enableval=$enable_fast_install; p=${PACKAGE-default}
8638 case $enableval in
8639 yes) enable_fast_install=yes ;;
8640 no) enable_fast_install=no ;;
8641 *)
8642 enable_fast_install=no
8643 # Look at the argument we got. We use all the common list separators.
8644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8645 for pkg in $enableval; do
8646 IFS="$lt_save_ifs"
8647 if test "X$pkg" = "X$p"; then
8648 enable_fast_install=yes
8649 fi
8650 done
8651 IFS="$lt_save_ifs"
8652 ;;
8653 esac
8654 else
8655 enable_fast_install=yes
8656 fi
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 # This can be used to rebuild libtool when needed
8669 LIBTOOL_DEPS="$ltmain"
8670
8671 # Always use our own libtool.
8672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 test -z "$LN_S" && LN_S="ln -s"
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 if test -n "${ZSH_VERSION+set}" ; then
8715 setopt NO_GLOB_SUBST
8716 fi
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8719 $as_echo_n "checking for objdir... " >&6; }
8720 if test "${lt_cv_objdir+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 rm -f .libs 2>/dev/null
8724 mkdir .libs 2>/dev/null
8725 if test -d .libs; then
8726 lt_cv_objdir=.libs
8727 else
8728 # MS-DOS does not allow filenames that begin with a dot.
8729 lt_cv_objdir=_libs
8730 fi
8731 rmdir .libs 2>/dev/null
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8734 $as_echo "$lt_cv_objdir" >&6; }
8735 objdir=$lt_cv_objdir
8736
8737
8738
8739
8740
8741 cat >>confdefs.h <<_ACEOF
8742 #define LT_OBJDIR "$lt_cv_objdir/"
8743 _ACEOF
8744
8745
8746
8747
8748 case $host_os in
8749 aix3*)
8750 # AIX sometimes has problems with the GCC collect2 program. For some
8751 # reason, if we set the COLLECT_NAMES environment variable, the problems
8752 # vanish in a puff of smoke.
8753 if test "X${COLLECT_NAMES+set}" != Xset; then
8754 COLLECT_NAMES=
8755 export COLLECT_NAMES
8756 fi
8757 ;;
8758 esac
8759
8760 # Global variables:
8761 ofile=libtool
8762 can_build_shared=yes
8763
8764 # All known linkers require a `.a' archive for static linking (except MSVC,
8765 # which needs '.lib').
8766 libext=a
8767
8768 with_gnu_ld="$lt_cv_prog_gnu_ld"
8769
8770 old_CC="$CC"
8771 old_CFLAGS="$CFLAGS"
8772
8773 # Set sane defaults for various variables
8774 test -z "$CC" && CC=cc
8775 test -z "$LTCC" && LTCC=$CC
8776 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8777 test -z "$LD" && LD=ld
8778 test -z "$ac_objext" && ac_objext=o
8779
8780 for cc_temp in $compiler""; do
8781 case $cc_temp in
8782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8784 \-*) ;;
8785 *) break;;
8786 esac
8787 done
8788 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8789
8790
8791 # Only perform the check for file, if the check method requires it
8792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8793 case $deplibs_check_method in
8794 file_magic*)
8795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8797 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8798 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 case $MAGIC_CMD in
8802 [\\/*] | ?:[\\/]*)
8803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8804 ;;
8805 *)
8806 lt_save_MAGIC_CMD="$MAGIC_CMD"
8807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8809 for ac_dir in $ac_dummy; do
8810 IFS="$lt_save_ifs"
8811 test -z "$ac_dir" && ac_dir=.
8812 if test -f $ac_dir/${ac_tool_prefix}file; then
8813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8814 if test -n "$file_magic_test_file"; then
8815 case $deplibs_check_method in
8816 "file_magic "*)
8817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8820 $EGREP "$file_magic_regex" > /dev/null; then
8821 :
8822 else
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: the command libtool uses to detect shared libraries,
8826 *** $file_magic_cmd, produces output that libtool cannot recognize.
8827 *** The result is that libtool may fail to recognize shared libraries
8828 *** as such. This will affect the creation of libtool libraries that
8829 *** depend on shared libraries, but programs linked with such libtool
8830 *** libraries will work regardless of this problem. Nevertheless, you
8831 *** may want to report the problem to your system manager and/or to
8832 *** bug-libtool@gnu.org
8833
8834 _LT_EOF
8835 fi ;;
8836 esac
8837 fi
8838 break
8839 fi
8840 done
8841 IFS="$lt_save_ifs"
8842 MAGIC_CMD="$lt_save_MAGIC_CMD"
8843 ;;
8844 esac
8845 fi
8846
8847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8848 if test -n "$MAGIC_CMD"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8850 $as_echo "$MAGIC_CMD" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856
8857
8858
8859
8860 if test -z "$lt_cv_path_MAGIC_CMD"; then
8861 if test -n "$ac_tool_prefix"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8863 $as_echo_n "checking for file... " >&6; }
8864 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 case $MAGIC_CMD in
8868 [\\/*] | ?:[\\/]*)
8869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8870 ;;
8871 *)
8872 lt_save_MAGIC_CMD="$MAGIC_CMD"
8873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875 for ac_dir in $ac_dummy; do
8876 IFS="$lt_save_ifs"
8877 test -z "$ac_dir" && ac_dir=.
8878 if test -f $ac_dir/file; then
8879 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8880 if test -n "$file_magic_test_file"; then
8881 case $deplibs_check_method in
8882 "file_magic "*)
8883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886 $EGREP "$file_magic_regex" > /dev/null; then
8887 :
8888 else
8889 cat <<_LT_EOF 1>&2
8890
8891 *** Warning: the command libtool uses to detect shared libraries,
8892 *** $file_magic_cmd, produces output that libtool cannot recognize.
8893 *** The result is that libtool may fail to recognize shared libraries
8894 *** as such. This will affect the creation of libtool libraries that
8895 *** depend on shared libraries, but programs linked with such libtool
8896 *** libraries will work regardless of this problem. Nevertheless, you
8897 *** may want to report the problem to your system manager and/or to
8898 *** bug-libtool@gnu.org
8899
8900 _LT_EOF
8901 fi ;;
8902 esac
8903 fi
8904 break
8905 fi
8906 done
8907 IFS="$lt_save_ifs"
8908 MAGIC_CMD="$lt_save_MAGIC_CMD"
8909 ;;
8910 esac
8911 fi
8912
8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914 if test -n "$MAGIC_CMD"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8916 $as_echo "$MAGIC_CMD" >&6; }
8917 else
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8920 fi
8921
8922
8923 else
8924 MAGIC_CMD=:
8925 fi
8926 fi
8927
8928 fi
8929 ;;
8930 esac
8931
8932 # Use C for the default configuration in the libtool script
8933
8934 lt_save_CC="$CC"
8935 ac_ext=c
8936 ac_cpp='$CPP $CPPFLAGS'
8937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941
8942 # Source file extension for C test sources.
8943 ac_ext=c
8944
8945 # Object file extension for compiled C test sources.
8946 objext=o
8947 objext=$objext
8948
8949 # Code to be used in simple compile tests
8950 lt_simple_compile_test_code="int some_variable = 0;"
8951
8952 # Code to be used in simple link tests
8953 lt_simple_link_test_code='int main(){return(0);}'
8954
8955
8956
8957
8958
8959
8960
8961 # If no C compiler was specified, use CC.
8962 LTCC=${LTCC-"$CC"}
8963
8964 # If no C compiler flags were specified, use CFLAGS.
8965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8966
8967 # Allow CC to be a program name with arguments.
8968 compiler=$CC
8969
8970 # Save the default compiler, since it gets overwritten when the other
8971 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8972 compiler_DEFAULT=$CC
8973
8974 # save warnings/boilerplate of simple test code
8975 ac_outfile=conftest.$ac_objext
8976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8978 _lt_compiler_boilerplate=`cat conftest.err`
8979 $RM conftest*
8980
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8984 _lt_linker_boilerplate=`cat conftest.err`
8985 $RM -r conftest*
8986
8987
8988 ## CAVEAT EMPTOR:
8989 ## There is no encapsulation within the following macros, do not change
8990 ## the running order or otherwise move them around unless you know exactly
8991 ## what you are doing...
8992 if test -n "$compiler"; then
8993
8994 lt_prog_compiler_no_builtin_flag=
8995
8996 if test "$GCC" = yes; then
8997 case $cc_basename in
8998 nvcc*)
8999 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9000 *)
9001 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9002 esac
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9005 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 lt_cv_prog_compiler_rtti_exceptions=no
9010 ac_outfile=conftest.$ac_objext
9011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012 lt_compiler_flag="-fno-rtti -fno-exceptions"
9013 # Insert the option either (1) after the last *FLAGS variable, or
9014 # (2) before a word containing "conftest.", or (3) at the end.
9015 # Note that $ac_compile itself does not contain backslashes and begins
9016 # with a dollar sign (not a hyphen), so the echo should work correctly.
9017 # The option is referenced via a variable to avoid confusing sed.
9018 lt_compile=`echo "$ac_compile" | $SED \
9019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9021 -e 's:$: $lt_compiler_flag:'`
9022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9023 (eval "$lt_compile" 2>conftest.err)
9024 ac_status=$?
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 if (exit $ac_status) && test -s "$ac_outfile"; then
9028 # The compiler can only warn and ignore the option if not recognized
9029 # So say no if there are warnings other than the usual output.
9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9033 lt_cv_prog_compiler_rtti_exceptions=yes
9034 fi
9035 fi
9036 $RM conftest*
9037
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9040 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9041
9042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9044 else
9045 :
9046 fi
9047
9048 fi
9049
9050
9051
9052
9053
9054
9055 lt_prog_compiler_wl=
9056 lt_prog_compiler_pic=
9057 lt_prog_compiler_static=
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9061
9062 if test "$GCC" = yes; then
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_static='-static'
9065
9066 case $host_os in
9067 aix*)
9068 # All AIX code is PIC.
9069 if test "$host_cpu" = ia64; then
9070 # AIX 5 now supports IA64 processor
9071 lt_prog_compiler_static='-Bstatic'
9072 fi
9073 lt_prog_compiler_pic='-fPIC'
9074 ;;
9075
9076 amigaos*)
9077 case $host_cpu in
9078 powerpc)
9079 # see comment about AmigaOS4 .so support
9080 lt_prog_compiler_pic='-fPIC'
9081 ;;
9082 m68k)
9083 # FIXME: we need at least 68020 code to build shared libraries, but
9084 # adding the `-m68020' flag to GCC prevents building anything better,
9085 # like `-m68040'.
9086 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9087 ;;
9088 esac
9089 ;;
9090
9091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9092 # PIC is the default for these OSes.
9093 ;;
9094
9095 mingw* | cygwin* | pw32* | os2* | cegcc*)
9096 # This hack is so that the source file can tell whether it is being
9097 # built for inclusion in a dll (and should export symbols for example).
9098 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9099 # (--disable-auto-import) libraries
9100 lt_prog_compiler_pic='-DDLL_EXPORT'
9101 ;;
9102
9103 darwin* | rhapsody*)
9104 # PIC is the default on this platform
9105 # Common symbols not allowed in MH_DYLIB files
9106 lt_prog_compiler_pic='-fno-common'
9107 ;;
9108
9109 haiku*)
9110 # PIC is the default for Haiku.
9111 # The "-static" flag exists, but is broken.
9112 lt_prog_compiler_static=
9113 ;;
9114
9115 hpux*)
9116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9118 # sets the default TLS model and affects inlining.
9119 case $host_cpu in
9120 hppa*64*)
9121 # +Z the default
9122 ;;
9123 *)
9124 lt_prog_compiler_pic='-fPIC'
9125 ;;
9126 esac
9127 ;;
9128
9129 interix[3-9]*)
9130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9131 # Instead, we relocate shared libraries at runtime.
9132 ;;
9133
9134 msdosdjgpp*)
9135 # Just because we use GCC doesn't mean we suddenly get shared libraries
9136 # on systems that don't support them.
9137 lt_prog_compiler_can_build_shared=no
9138 enable_shared=no
9139 ;;
9140
9141 *nto* | *qnx*)
9142 # QNX uses GNU C++, but need to define -shared option too, otherwise
9143 # it will coredump.
9144 lt_prog_compiler_pic='-fPIC -shared'
9145 ;;
9146
9147 sysv4*MP*)
9148 if test -d /usr/nec; then
9149 lt_prog_compiler_pic=-Kconform_pic
9150 fi
9151 ;;
9152
9153 *)
9154 lt_prog_compiler_pic='-fPIC'
9155 ;;
9156 esac
9157
9158 case $cc_basename in
9159 nvcc*) # Cuda Compiler Driver 2.2
9160 lt_prog_compiler_wl='-Xlinker '
9161 lt_prog_compiler_pic='-Xcompiler -fPIC'
9162 ;;
9163 esac
9164 else
9165 # PORTME Check for flag to pass linker flags through the system compiler.
9166 case $host_os in
9167 aix*)
9168 lt_prog_compiler_wl='-Wl,'
9169 if test "$host_cpu" = ia64; then
9170 # AIX 5 now supports IA64 processor
9171 lt_prog_compiler_static='-Bstatic'
9172 else
9173 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9174 fi
9175 ;;
9176
9177 mingw* | cygwin* | pw32* | os2* | cegcc*)
9178 # This hack is so that the source file can tell whether it is being
9179 # built for inclusion in a dll (and should export symbols for example).
9180 lt_prog_compiler_pic='-DDLL_EXPORT'
9181 ;;
9182
9183 hpux9* | hpux10* | hpux11*)
9184 lt_prog_compiler_wl='-Wl,'
9185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9186 # not for PA HP-UX.
9187 case $host_cpu in
9188 hppa*64*|ia64*)
9189 # +Z the default
9190 ;;
9191 *)
9192 lt_prog_compiler_pic='+Z'
9193 ;;
9194 esac
9195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9196 lt_prog_compiler_static='${wl}-a ${wl}archive'
9197 ;;
9198
9199 irix5* | irix6* | nonstopux*)
9200 lt_prog_compiler_wl='-Wl,'
9201 # PIC (with -KPIC) is the default.
9202 lt_prog_compiler_static='-non_shared'
9203 ;;
9204
9205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9206 case $cc_basename in
9207 # old Intel for x86_64 which still supported -KPIC.
9208 ecc*)
9209 lt_prog_compiler_wl='-Wl,'
9210 lt_prog_compiler_pic='-KPIC'
9211 lt_prog_compiler_static='-static'
9212 ;;
9213 # icc used to be incompatible with GCC.
9214 # ICC 10 doesn't accept -KPIC any more.
9215 icc* | ifort*)
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-fPIC'
9218 lt_prog_compiler_static='-static'
9219 ;;
9220 # Lahey Fortran 8.1.
9221 lf95*)
9222 lt_prog_compiler_wl='-Wl,'
9223 lt_prog_compiler_pic='--shared'
9224 lt_prog_compiler_static='--static'
9225 ;;
9226 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9227 # Portland Group compilers (*not* the Pentium gcc compiler,
9228 # which looks to be a dead project)
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_pic='-fpic'
9231 lt_prog_compiler_static='-Bstatic'
9232 ;;
9233 ccc*)
9234 lt_prog_compiler_wl='-Wl,'
9235 # All Alpha code is PIC.
9236 lt_prog_compiler_static='-non_shared'
9237 ;;
9238 xl* | bgxl* | bgf* | mpixl*)
9239 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-qpic'
9242 lt_prog_compiler_static='-qstaticlink'
9243 ;;
9244 *)
9245 case `$CC -V 2>&1 | sed 5q` in
9246 *Sun\ F* | *Sun*Fortran*)
9247 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9248 lt_prog_compiler_pic='-KPIC'
9249 lt_prog_compiler_static='-Bstatic'
9250 lt_prog_compiler_wl=''
9251 ;;
9252 *Sun\ C*)
9253 # Sun C 5.9
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9256 lt_prog_compiler_wl='-Wl,'
9257 ;;
9258 esac
9259 ;;
9260 esac
9261 ;;
9262
9263 newsos6)
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267
9268 *nto* | *qnx*)
9269 # QNX uses GNU C++, but need to define -shared option too, otherwise
9270 # it will coredump.
9271 lt_prog_compiler_pic='-fPIC -shared'
9272 ;;
9273
9274 osf3* | osf4* | osf5*)
9275 lt_prog_compiler_wl='-Wl,'
9276 # All OSF/1 code is PIC.
9277 lt_prog_compiler_static='-non_shared'
9278 ;;
9279
9280 rdos*)
9281 lt_prog_compiler_static='-non_shared'
9282 ;;
9283
9284 solaris*)
9285 lt_prog_compiler_pic='-KPIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 case $cc_basename in
9288 f77* | f90* | f95*)
9289 lt_prog_compiler_wl='-Qoption ld ';;
9290 *)
9291 lt_prog_compiler_wl='-Wl,';;
9292 esac
9293 ;;
9294
9295 sunos4*)
9296 lt_prog_compiler_wl='-Qoption ld '
9297 lt_prog_compiler_pic='-PIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300
9301 sysv4 | sysv4.2uw2* | sysv4.3*)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 ;;
9306
9307 sysv4*MP*)
9308 if test -d /usr/nec ;then
9309 lt_prog_compiler_pic='-Kconform_pic'
9310 lt_prog_compiler_static='-Bstatic'
9311 fi
9312 ;;
9313
9314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9315 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 ;;
9319
9320 unicos*)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_can_build_shared=no
9323 ;;
9324
9325 uts4*)
9326 lt_prog_compiler_pic='-pic'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329
9330 *)
9331 lt_prog_compiler_can_build_shared=no
9332 ;;
9333 esac
9334 fi
9335
9336 case $host_os in
9337 # For platforms which do not support PIC, -DPIC is meaningless:
9338 *djgpp*)
9339 lt_prog_compiler_pic=
9340 ;;
9341 *)
9342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9343 ;;
9344 esac
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9346 $as_echo "$lt_prog_compiler_pic" >&6; }
9347
9348
9349
9350
9351
9352
9353 #
9354 # Check to make sure the PIC flag actually works.
9355 #
9356 if test -n "$lt_prog_compiler_pic"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9358 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9359 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 lt_cv_prog_compiler_pic_works=no
9363 ac_outfile=conftest.$ac_objext
9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9365 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9366 # Insert the option either (1) after the last *FLAGS variable, or
9367 # (2) before a word containing "conftest.", or (3) at the end.
9368 # Note that $ac_compile itself does not contain backslashes and begins
9369 # with a dollar sign (not a hyphen), so the echo should work correctly.
9370 # The option is referenced via a variable to avoid confusing sed.
9371 lt_compile=`echo "$ac_compile" | $SED \
9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9374 -e 's:$: $lt_compiler_flag:'`
9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9376 (eval "$lt_compile" 2>conftest.err)
9377 ac_status=$?
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 if (exit $ac_status) && test -s "$ac_outfile"; then
9381 # The compiler can only warn and ignore the option if not recognized
9382 # So say no if there are warnings other than the usual output.
9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9386 lt_cv_prog_compiler_pic_works=yes
9387 fi
9388 fi
9389 $RM conftest*
9390
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9393 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9394
9395 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9396 case $lt_prog_compiler_pic in
9397 "" | " "*) ;;
9398 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9399 esac
9400 else
9401 lt_prog_compiler_pic=
9402 lt_prog_compiler_can_build_shared=no
9403 fi
9404
9405 fi
9406
9407
9408
9409
9410
9411
9412 #
9413 # Check to make sure the static flag actually works.
9414 #
9415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9418 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 lt_cv_prog_compiler_static_works=no
9422 save_LDFLAGS="$LDFLAGS"
9423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426 # The linker can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 if test -s conftest.err; then
9429 # Append any errors to the config.log.
9430 cat conftest.err 1>&5
9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler_static_works=yes
9435 fi
9436 else
9437 lt_cv_prog_compiler_static_works=yes
9438 fi
9439 fi
9440 $RM -r conftest*
9441 LDFLAGS="$save_LDFLAGS"
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9446
9447 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9448 :
9449 else
9450 lt_prog_compiler_static=
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9461 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 lt_cv_prog_compiler_c_o=no
9465 $RM -r conftest 2>/dev/null
9466 mkdir conftest
9467 cd conftest
9468 mkdir out
9469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9470
9471 lt_compiler_flag="-o out/conftest2.$ac_objext"
9472 # Insert the option either (1) after the last *FLAGS variable, or
9473 # (2) before a word containing "conftest.", or (3) at the end.
9474 # Note that $ac_compile itself does not contain backslashes and begins
9475 # with a dollar sign (not a hyphen), so the echo should work correctly.
9476 lt_compile=`echo "$ac_compile" | $SED \
9477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9479 -e 's:$: $lt_compiler_flag:'`
9480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9481 (eval "$lt_compile" 2>out/conftest.err)
9482 ac_status=$?
9483 cat out/conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9486 then
9487 # The compiler can only warn and ignore the option if not recognized
9488 # So say no if there are warnings
9489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9492 lt_cv_prog_compiler_c_o=yes
9493 fi
9494 fi
9495 chmod u+w . 2>&5
9496 $RM conftest*
9497 # SGI C++ compiler will create directory out/ii_files/ for
9498 # template instantiation
9499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9500 $RM out/* && rmdir out
9501 cd ..
9502 $RM -r conftest
9503 $RM conftest*
9504
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9508
9509
9510
9511
9512
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 lt_cv_prog_compiler_c_o=no
9520 $RM -r conftest 2>/dev/null
9521 mkdir conftest
9522 cd conftest
9523 mkdir out
9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525
9526 lt_compiler_flag="-o out/conftest2.$ac_objext"
9527 # Insert the option either (1) after the last *FLAGS variable, or
9528 # (2) before a word containing "conftest.", or (3) at the end.
9529 # Note that $ac_compile itself does not contain backslashes and begins
9530 # with a dollar sign (not a hyphen), so the echo should work correctly.
9531 lt_compile=`echo "$ac_compile" | $SED \
9532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9534 -e 's:$: $lt_compiler_flag:'`
9535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9536 (eval "$lt_compile" 2>out/conftest.err)
9537 ac_status=$?
9538 cat out/conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9541 then
9542 # The compiler can only warn and ignore the option if not recognized
9543 # So say no if there are warnings
9544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_c_o=yes
9548 fi
9549 fi
9550 chmod u+w . 2>&5
9551 $RM conftest*
9552 # SGI C++ compiler will create directory out/ii_files/ for
9553 # template instantiation
9554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9555 $RM out/* && rmdir out
9556 cd ..
9557 $RM -r conftest
9558 $RM conftest*
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9563
9564
9565
9566
9567 hard_links="nottested"
9568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9569 # do not overwrite the value of need_locks provided by the user
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9571 $as_echo_n "checking if we can lock with hard links... " >&6; }
9572 hard_links=yes
9573 $RM conftest*
9574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9575 touch conftest.a
9576 ln conftest.a conftest.b 2>&5 || hard_links=no
9577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9579 $as_echo "$hard_links" >&6; }
9580 if test "$hard_links" = no; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9582 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9583 need_locks=warn
9584 fi
9585 else
9586 need_locks=no
9587 fi
9588
9589
9590
9591
9592
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9596
9597 runpath_var=
9598 allow_undefined_flag=
9599 always_export_symbols=no
9600 archive_cmds=
9601 archive_expsym_cmds=
9602 compiler_needs_object=no
9603 enable_shared_with_static_runtimes=no
9604 export_dynamic_flag_spec=
9605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9606 hardcode_automatic=no
9607 hardcode_direct=no
9608 hardcode_direct_absolute=no
9609 hardcode_libdir_flag_spec=
9610 hardcode_libdir_flag_spec_ld=
9611 hardcode_libdir_separator=
9612 hardcode_minus_L=no
9613 hardcode_shlibpath_var=unsupported
9614 inherit_rpath=no
9615 link_all_deplibs=unknown
9616 module_cmds=
9617 module_expsym_cmds=
9618 old_archive_from_new_cmds=
9619 old_archive_from_expsyms_cmds=
9620 thread_safe_flag_spec=
9621 whole_archive_flag_spec=
9622 # include_expsyms should be a list of space-separated symbols to be *always*
9623 # included in the symbol list
9624 include_expsyms=
9625 # exclude_expsyms can be an extended regexp of symbols to exclude
9626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9628 # as well as any symbol that contains `d'.
9629 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9631 # platforms (ab)use it in PIC code, but their linkers get confused if
9632 # the symbol is explicitly referenced. Since portable code cannot
9633 # rely on this symbol name, it's probably fine to never include it in
9634 # preloaded symbol tables.
9635 # Exclude shared library initialization/finalization symbols.
9636 extract_expsyms_cmds=
9637
9638 case $host_os in
9639 cygwin* | mingw* | pw32* | cegcc*)
9640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9641 # When not using gcc, we currently assume that we are using
9642 # Microsoft Visual C++.
9643 if test "$GCC" != yes; then
9644 with_gnu_ld=no
9645 fi
9646 ;;
9647 interix*)
9648 # we just hope/assume this is gcc and not c89 (= MSVC++)
9649 with_gnu_ld=yes
9650 ;;
9651 openbsd*)
9652 with_gnu_ld=no
9653 ;;
9654 esac
9655
9656 ld_shlibs=yes
9657
9658 # On some targets, GNU ld is compatible enough with the native linker
9659 # that we're better off using the native interface for both.
9660 lt_use_gnu_ld_interface=no
9661 if test "$with_gnu_ld" = yes; then
9662 case $host_os in
9663 aix*)
9664 # The AIX port of GNU ld has always aspired to compatibility
9665 # with the native linker. However, as the warning in the GNU ld
9666 # block says, versions before 2.19.5* couldn't really create working
9667 # shared libraries, regardless of the interface used.
9668 case `$LD -v 2>&1` in
9669 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9670 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9671 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9672 *)
9673 lt_use_gnu_ld_interface=yes
9674 ;;
9675 esac
9676 ;;
9677 *)
9678 lt_use_gnu_ld_interface=yes
9679 ;;
9680 esac
9681 fi
9682
9683 if test "$lt_use_gnu_ld_interface" = yes; then
9684 # If archive_cmds runs LD, not CC, wlarc should be empty
9685 wlarc='${wl}'
9686
9687 # Set some defaults for GNU ld with shared library support. These
9688 # are reset later if shared libraries are not supported. Putting them
9689 # here allows them to be overridden if necessary.
9690 runpath_var=LD_RUN_PATH
9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692 export_dynamic_flag_spec='${wl}--export-dynamic'
9693 # ancient GNU ld didn't support --whole-archive et. al.
9694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9696 else
9697 whole_archive_flag_spec=
9698 fi
9699 supports_anon_versioning=no
9700 case `$LD -v 2>&1` in
9701 *GNU\ gold*) supports_anon_versioning=yes ;;
9702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9705 *\ 2.11.*) ;; # other 2.11 versions
9706 *) supports_anon_versioning=yes ;;
9707 esac
9708
9709 # See if GNU ld supports shared libraries.
9710 case $host_os in
9711 aix[3-9]*)
9712 # On AIX/PPC, the GNU linker is very broken
9713 if test "$host_cpu" != ia64; then
9714 ld_shlibs=no
9715 cat <<_LT_EOF 1>&2
9716
9717 *** Warning: the GNU linker, at least up to release 2.19, is reported
9718 *** to be unable to reliably create shared libraries on AIX.
9719 *** Therefore, libtool is disabling shared libraries support. If you
9720 *** really care for shared libraries, you may want to install binutils
9721 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9722 *** You will then need to restart the configuration process.
9723
9724 _LT_EOF
9725 fi
9726 ;;
9727
9728 amigaos*)
9729 case $host_cpu in
9730 powerpc)
9731 # see comment about AmigaOS4 .so support
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds=''
9734 ;;
9735 m68k)
9736 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)'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_minus_L=yes
9739 ;;
9740 esac
9741 ;;
9742
9743 beos*)
9744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9745 allow_undefined_flag=unsupported
9746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9747 # support --undefined. This deserves some investigation. FIXME
9748 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 else
9750 ld_shlibs=no
9751 fi
9752 ;;
9753
9754 cygwin* | mingw* | pw32* | cegcc*)
9755 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9756 # as there is no search path for DLLs.
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 export_dynamic_flag_spec='${wl}--export-all-symbols'
9759 allow_undefined_flag=unsupported
9760 always_export_symbols=no
9761 enable_shared_with_static_runtimes=yes
9762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9763
9764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9766 # If the export-symbols file already is a .def file (1st line
9767 # is EXPORTS), use it as is; otherwise, prepend...
9768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9769 cp $export_symbols $output_objdir/$soname.def;
9770 else
9771 echo EXPORTS > $output_objdir/$soname.def;
9772 cat $export_symbols >> $output_objdir/$soname.def;
9773 fi~
9774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775 else
9776 ld_shlibs=no
9777 fi
9778 ;;
9779
9780 haiku*)
9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782 link_all_deplibs=yes
9783 ;;
9784
9785 interix[3-9]*)
9786 hardcode_direct=no
9787 hardcode_shlibpath_var=no
9788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9789 export_dynamic_flag_spec='${wl}-E'
9790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9791 # Instead, shared libraries are loaded at an image base (0x10000000 by
9792 # default) and relocated if they conflict, which is a slow very memory
9793 # consuming and fragmenting process. To avoid this, we pick a random,
9794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9797 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'
9798 ;;
9799
9800 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9801 tmp_diet=no
9802 if test "$host_os" = linux-dietlibc; then
9803 case $cc_basename in
9804 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9805 esac
9806 fi
9807 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9808 && test "$tmp_diet" = no
9809 then
9810 tmp_addflag=
9811 tmp_sharedflag='-shared'
9812 case $cc_basename,$host_cpu in
9813 pgcc*) # Portland Group C compiler
9814 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'
9815 tmp_addflag=' $pic_flag'
9816 ;;
9817 pgf77* | pgf90* | pgf95* | pgfortran*)
9818 # Portland Group f77 and f90 compilers
9819 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'
9820 tmp_addflag=' $pic_flag -Mnomain' ;;
9821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9822 tmp_addflag=' -i_dynamic' ;;
9823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9824 tmp_addflag=' -i_dynamic -nofor_main' ;;
9825 ifc* | ifort*) # Intel Fortran compiler
9826 tmp_addflag=' -nofor_main' ;;
9827 lf95*) # Lahey Fortran 8.1
9828 whole_archive_flag_spec=
9829 tmp_sharedflag='--shared' ;;
9830 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9831 tmp_sharedflag='-qmkshrobj'
9832 tmp_addflag= ;;
9833 nvcc*) # Cuda Compiler Driver 2.2
9834 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'
9835 compiler_needs_object=yes
9836 ;;
9837 esac
9838 case `$CC -V 2>&1 | sed 5q` in
9839 *Sun\ C*) # Sun C 5.9
9840 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'
9841 compiler_needs_object=yes
9842 tmp_sharedflag='-G' ;;
9843 *Sun\ F*) # Sun Fortran 8.3
9844 tmp_sharedflag='-G' ;;
9845 esac
9846 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9847
9848 if test "x$supports_anon_versioning" = xyes; then
9849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9851 echo "local: *; };" >> $output_objdir/$libname.ver~
9852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9853 fi
9854
9855 case $cc_basename in
9856 xlf* | bgf* | bgxlf* | mpixlf*)
9857 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9858 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9859 hardcode_libdir_flag_spec=
9860 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9861 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9862 if test "x$supports_anon_versioning" = xyes; then
9863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9865 echo "local: *; };" >> $output_objdir/$libname.ver~
9866 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9867 fi
9868 ;;
9869 esac
9870 else
9871 ld_shlibs=no
9872 fi
9873 ;;
9874
9875 netbsd*)
9876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9878 wlarc=
9879 else
9880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9882 fi
9883 ;;
9884
9885 solaris*)
9886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9887 ld_shlibs=no
9888 cat <<_LT_EOF 1>&2
9889
9890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9891 *** create shared libraries on Solaris systems. Therefore, libtool
9892 *** is disabling shared libraries support. We urge you to upgrade GNU
9893 *** binutils to release 2.9.1 or newer. Another option is to modify
9894 *** your PATH or compiler configuration so that the native linker is
9895 *** used, and then restart.
9896
9897 _LT_EOF
9898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9901 else
9902 ld_shlibs=no
9903 fi
9904 ;;
9905
9906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9907 case `$LD -v 2>&1` in
9908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9909 ld_shlibs=no
9910 cat <<_LT_EOF 1>&2
9911
9912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9913 *** reliably create shared libraries on SCO systems. Therefore, libtool
9914 *** is disabling shared libraries support. We urge you to upgrade GNU
9915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9916 *** your PATH or compiler configuration so that the native linker is
9917 *** used, and then restart.
9918
9919 _LT_EOF
9920 ;;
9921 *)
9922 # For security reasons, it is highly recommended that you always
9923 # use absolute paths for naming shared libraries, and exclude the
9924 # DT_RUNPATH tag from executables and libraries. But doing so
9925 # requires that you compile everything twice, which is a pain.
9926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9930 else
9931 ld_shlibs=no
9932 fi
9933 ;;
9934 esac
9935 ;;
9936
9937 sunos4*)
9938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9939 wlarc=
9940 hardcode_direct=yes
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 *)
9945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9948 else
9949 ld_shlibs=no
9950 fi
9951 ;;
9952 esac
9953
9954 if test "$ld_shlibs" = no; then
9955 runpath_var=
9956 hardcode_libdir_flag_spec=
9957 export_dynamic_flag_spec=
9958 whole_archive_flag_spec=
9959 fi
9960 else
9961 # PORTME fill in a description of your system's linker (not GNU ld)
9962 case $host_os in
9963 aix3*)
9964 allow_undefined_flag=unsupported
9965 always_export_symbols=yes
9966 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'
9967 # Note: this linker hardcodes the directories in LIBPATH if there
9968 # are no directories specified by -L.
9969 hardcode_minus_L=yes
9970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9971 # Neither direct hardcoding nor static linking is supported with a
9972 # broken collect2.
9973 hardcode_direct=unsupported
9974 fi
9975 ;;
9976
9977 aix[4-9]*)
9978 if test "$host_cpu" = ia64; then
9979 # On IA64, the linker does run time linking by default, so we don't
9980 # have to do anything special.
9981 aix_use_runtimelinking=no
9982 exp_sym_flag='-Bexport'
9983 no_entry_flag=""
9984 else
9985 # If we're using GNU nm, then we don't want the "-C" option.
9986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9987 # Also, AIX nm treats weak defined symbols like other global
9988 # defined symbols, whereas GNU nm marks them as "W".
9989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9990 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'
9991 else
9992 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9993 fi
9994 aix_use_runtimelinking=no
9995
9996 # Test if we are trying to use run time linking or normal
9997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9998 # need to do runtime linking.
9999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10000 for ld_flag in $LDFLAGS; do
10001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10002 aix_use_runtimelinking=yes
10003 break
10004 fi
10005 done
10006 ;;
10007 esac
10008
10009 exp_sym_flag='-bexport'
10010 no_entry_flag='-bnoentry'
10011 fi
10012
10013 # When large executables or shared objects are built, AIX ld can
10014 # have problems creating the table of contents. If linking a library
10015 # or program results in "error TOC overflow" add -mminimal-toc to
10016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10018
10019 archive_cmds=''
10020 hardcode_direct=yes
10021 hardcode_direct_absolute=yes
10022 hardcode_libdir_separator=':'
10023 link_all_deplibs=yes
10024 file_list_spec='${wl}-f,'
10025
10026 if test "$GCC" = yes; then
10027 case $host_os in aix4.[012]|aix4.[012].*)
10028 # We only want to do this on AIX 4.2 and lower, the check
10029 # below for broken collect2 doesn't work under 4.3+
10030 collect2name=`${CC} -print-prog-name=collect2`
10031 if test -f "$collect2name" &&
10032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10033 then
10034 # We have reworked collect2
10035 :
10036 else
10037 # We have old collect2
10038 hardcode_direct=unsupported
10039 # It fails to find uninstalled libraries when the uninstalled
10040 # path is not listed in the libpath. Setting hardcode_minus_L
10041 # to unsupported forces relinking
10042 hardcode_minus_L=yes
10043 hardcode_libdir_flag_spec='-L$libdir'
10044 hardcode_libdir_separator=
10045 fi
10046 ;;
10047 esac
10048 shared_flag='-shared'
10049 if test "$aix_use_runtimelinking" = yes; then
10050 shared_flag="$shared_flag "'${wl}-G'
10051 fi
10052 else
10053 # not using gcc
10054 if test "$host_cpu" = ia64; then
10055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10056 # chokes on -Wl,-G. The following line is correct:
10057 shared_flag='-G'
10058 else
10059 if test "$aix_use_runtimelinking" = yes; then
10060 shared_flag='${wl}-G'
10061 else
10062 shared_flag='${wl}-bM:SRE'
10063 fi
10064 fi
10065 fi
10066
10067 export_dynamic_flag_spec='${wl}-bexpall'
10068 # It seems that -bexpall does not export symbols beginning with
10069 # underscore (_), so it is better to generate a list of symbols to export.
10070 always_export_symbols=yes
10071 if test "$aix_use_runtimelinking" = yes; then
10072 # Warning - without using the other runtime loading flags (-brtl),
10073 # -berok will link without error, but may produce a broken library.
10074 allow_undefined_flag='-berok'
10075 # Determine the default libpath from the value encoded in an
10076 # empty executable.
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079
10080 int
10081 main ()
10082 {
10083
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089
10090 lt_aix_libpath_sed='
10091 /Import File Strings/,/^$/ {
10092 /^0/ {
10093 s/^0 *\(.*\)$/\1/
10094 p
10095 }
10096 }'
10097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098 # Check for a 64-bit object if we didn't find anything.
10099 if test -z "$aix_libpath"; then
10100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 fi
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10106
10107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10108 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"
10109 else
10110 if test "$host_cpu" = ia64; then
10111 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10112 allow_undefined_flag="-z nodefs"
10113 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"
10114 else
10115 # Determine the default libpath from the value encoded in an
10116 # empty executable.
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119
10120 int
10121 main ()
10122 {
10123
10124 ;
10125 return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129
10130 lt_aix_libpath_sed='
10131 /Import File Strings/,/^$/ {
10132 /^0/ {
10133 s/^0 *\(.*\)$/\1/
10134 p
10135 }
10136 }'
10137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138 # Check for a 64-bit object if we didn't find anything.
10139 if test -z "$aix_libpath"; then
10140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10141 fi
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10146
10147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10148 # Warning - without using the other run time loading flags,
10149 # -berok will link without error, but may produce a broken library.
10150 no_undefined_flag=' ${wl}-bernotok'
10151 allow_undefined_flag=' ${wl}-berok'
10152 if test "$with_gnu_ld" = yes; then
10153 # We only use this code for GNU lds that support --whole-archive.
10154 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10155 else
10156 # Exported symbols can be pulled into shared objects from archives
10157 whole_archive_flag_spec='$convenience'
10158 fi
10159 archive_cmds_need_lc=yes
10160 # This is similar to how AIX traditionally builds its shared libraries.
10161 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'
10162 fi
10163 fi
10164 ;;
10165
10166 amigaos*)
10167 case $host_cpu in
10168 powerpc)
10169 # see comment about AmigaOS4 .so support
10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 archive_expsym_cmds=''
10172 ;;
10173 m68k)
10174 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)'
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_minus_L=yes
10177 ;;
10178 esac
10179 ;;
10180
10181 bsdi[45]*)
10182 export_dynamic_flag_spec=-rdynamic
10183 ;;
10184
10185 cygwin* | mingw* | pw32* | cegcc*)
10186 # When not using gcc, we currently assume that we are using
10187 # Microsoft Visual C++.
10188 # hardcode_libdir_flag_spec is actually meaningless, as there is
10189 # no search path for DLLs.
10190 hardcode_libdir_flag_spec=' '
10191 allow_undefined_flag=unsupported
10192 # Tell ltmain to make .lib files, not .a files.
10193 libext=lib
10194 # Tell ltmain to make .dll files, not .so files.
10195 shrext_cmds=".dll"
10196 # FIXME: Setting linknames here is a bad hack.
10197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10198 # The linker will automatically build a .lib file if we build a DLL.
10199 old_archive_from_new_cmds='true'
10200 # FIXME: Should let the user specify the lib program.
10201 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10202 fix_srcfile_path='`cygpath -w "$srcfile"`'
10203 enable_shared_with_static_runtimes=yes
10204 ;;
10205
10206 darwin* | rhapsody*)
10207
10208
10209 archive_cmds_need_lc=no
10210 hardcode_direct=no
10211 hardcode_automatic=yes
10212 hardcode_shlibpath_var=unsupported
10213 if test "$lt_cv_ld_force_load" = "yes"; then
10214 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\"`'
10215 else
10216 whole_archive_flag_spec=''
10217 fi
10218 link_all_deplibs=yes
10219 allow_undefined_flag="$_lt_dar_allow_undefined"
10220 case $cc_basename in
10221 ifort*) _lt_dar_can_shared=yes ;;
10222 *) _lt_dar_can_shared=$GCC ;;
10223 esac
10224 if test "$_lt_dar_can_shared" = "yes"; then
10225 output_verbose_link_cmd=func_echo_all
10226 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10227 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10228 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}"
10229 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}"
10230
10231 else
10232 ld_shlibs=no
10233 fi
10234
10235 ;;
10236
10237 dgux*)
10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-L$libdir'
10240 hardcode_shlibpath_var=no
10241 ;;
10242
10243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10244 # support. Future versions do this automatically, but an explicit c++rt0.o
10245 # does not break anything, and helps significantly (at the cost of a little
10246 # extra space).
10247 freebsd2.2*)
10248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10249 hardcode_libdir_flag_spec='-R$libdir'
10250 hardcode_direct=yes
10251 hardcode_shlibpath_var=no
10252 ;;
10253
10254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10255 freebsd2.*)
10256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_direct=yes
10258 hardcode_minus_L=yes
10259 hardcode_shlibpath_var=no
10260 ;;
10261
10262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10263 freebsd* | dragonfly*)
10264 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10265 hardcode_libdir_flag_spec='-R$libdir'
10266 hardcode_direct=yes
10267 hardcode_shlibpath_var=no
10268 ;;
10269
10270 hpux9*)
10271 if test "$GCC" = yes; then
10272 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'
10273 else
10274 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'
10275 fi
10276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10277 hardcode_libdir_separator=:
10278 hardcode_direct=yes
10279
10280 # hardcode_minus_L: Not really in the search PATH,
10281 # but as the default location of the library.
10282 hardcode_minus_L=yes
10283 export_dynamic_flag_spec='${wl}-E'
10284 ;;
10285
10286 hpux10*)
10287 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10288 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10289 else
10290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10291 fi
10292 if test "$with_gnu_ld" = no; then
10293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10294 hardcode_libdir_flag_spec_ld='+b $libdir'
10295 hardcode_libdir_separator=:
10296 hardcode_direct=yes
10297 hardcode_direct_absolute=yes
10298 export_dynamic_flag_spec='${wl}-E'
10299 # hardcode_minus_L: Not really in the search PATH,
10300 # but as the default location of the library.
10301 hardcode_minus_L=yes
10302 fi
10303 ;;
10304
10305 hpux11*)
10306 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10307 case $host_cpu in
10308 hppa*64*)
10309 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 ;;
10311 ia64*)
10312 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10313 ;;
10314 *)
10315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10316 ;;
10317 esac
10318 else
10319 case $host_cpu in
10320 hppa*64*)
10321 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 ;;
10323 ia64*)
10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10325 ;;
10326 *)
10327
10328 # Older versions of the 11.00 compiler do not understand -b yet
10329 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10331 $as_echo_n "checking if $CC understands -b... " >&6; }
10332 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 lt_cv_prog_compiler__b=no
10336 save_LDFLAGS="$LDFLAGS"
10337 LDFLAGS="$LDFLAGS -b"
10338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10340 # The linker can only warn and ignore the option if not recognized
10341 # So say no if there are warnings
10342 if test -s conftest.err; then
10343 # Append any errors to the config.log.
10344 cat conftest.err 1>&5
10345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10347 if diff conftest.exp conftest.er2 >/dev/null; then
10348 lt_cv_prog_compiler__b=yes
10349 fi
10350 else
10351 lt_cv_prog_compiler__b=yes
10352 fi
10353 fi
10354 $RM -r conftest*
10355 LDFLAGS="$save_LDFLAGS"
10356
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10359 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10360
10361 if test x"$lt_cv_prog_compiler__b" = xyes; then
10362 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10363 else
10364 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10365 fi
10366
10367 ;;
10368 esac
10369 fi
10370 if test "$with_gnu_ld" = no; then
10371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10372 hardcode_libdir_separator=:
10373
10374 case $host_cpu in
10375 hppa*64*|ia64*)
10376 hardcode_direct=no
10377 hardcode_shlibpath_var=no
10378 ;;
10379 *)
10380 hardcode_direct=yes
10381 hardcode_direct_absolute=yes
10382 export_dynamic_flag_spec='${wl}-E'
10383
10384 # hardcode_minus_L: Not really in the search PATH,
10385 # but as the default location of the library.
10386 hardcode_minus_L=yes
10387 ;;
10388 esac
10389 fi
10390 ;;
10391
10392 irix5* | irix6* | nonstopux*)
10393 if test "$GCC" = yes; then
10394 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'
10395 # Try to use the -exported_symbol ld option, if it does not
10396 # work, assume that -exports_file does not work either and
10397 # implicitly export all symbols.
10398 save_LDFLAGS="$LDFLAGS"
10399 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 int foo(void) {}
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 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'
10406
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 LDFLAGS="$save_LDFLAGS"
10411 else
10412 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'
10413 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'
10414 fi
10415 archive_cmds_need_lc='no'
10416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10417 hardcode_libdir_separator=:
10418 inherit_rpath=yes
10419 link_all_deplibs=yes
10420 ;;
10421
10422 netbsd*)
10423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10425 else
10426 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10427 fi
10428 hardcode_libdir_flag_spec='-R$libdir'
10429 hardcode_direct=yes
10430 hardcode_shlibpath_var=no
10431 ;;
10432
10433 newsos6)
10434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10435 hardcode_direct=yes
10436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10437 hardcode_libdir_separator=:
10438 hardcode_shlibpath_var=no
10439 ;;
10440
10441 *nto* | *qnx*)
10442 ;;
10443
10444 openbsd*)
10445 if test -f /usr/libexec/ld.so; then
10446 hardcode_direct=yes
10447 hardcode_shlibpath_var=no
10448 hardcode_direct_absolute=yes
10449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10451 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10452 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10453 export_dynamic_flag_spec='${wl}-E'
10454 else
10455 case $host_os in
10456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_libdir_flag_spec='-R$libdir'
10459 ;;
10460 *)
10461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463 ;;
10464 esac
10465 fi
10466 else
10467 ld_shlibs=no
10468 fi
10469 ;;
10470
10471 os2*)
10472 hardcode_libdir_flag_spec='-L$libdir'
10473 hardcode_minus_L=yes
10474 allow_undefined_flag=unsupported
10475 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'
10476 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10477 ;;
10478
10479 osf3*)
10480 if test "$GCC" = yes; then
10481 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10482 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'
10483 else
10484 allow_undefined_flag=' -expect_unresolved \*'
10485 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'
10486 fi
10487 archive_cmds_need_lc='no'
10488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator=:
10490 ;;
10491
10492 osf4* | osf5*) # as osf3* with the addition of -msym flag
10493 if test "$GCC" = yes; then
10494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10495 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'
10496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10497 else
10498 allow_undefined_flag=' -expect_unresolved \*'
10499 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'
10500 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~
10501 $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'
10502
10503 # Both c and cxx compiler support -rpath directly
10504 hardcode_libdir_flag_spec='-rpath $libdir'
10505 fi
10506 archive_cmds_need_lc='no'
10507 hardcode_libdir_separator=:
10508 ;;
10509
10510 solaris*)
10511 no_undefined_flag=' -z defs'
10512 if test "$GCC" = yes; then
10513 wlarc='${wl}'
10514 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10516 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10517 else
10518 case `$CC -V 2>&1` in
10519 *"Compilers 5.0"*)
10520 wlarc=''
10521 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10524 ;;
10525 *)
10526 wlarc='${wl}'
10527 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10529 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10530 ;;
10531 esac
10532 fi
10533 hardcode_libdir_flag_spec='-R$libdir'
10534 hardcode_shlibpath_var=no
10535 case $host_os in
10536 solaris2.[0-5] | solaris2.[0-5].*) ;;
10537 *)
10538 # The compiler driver will combine and reorder linker options,
10539 # but understands `-z linker_flag'. GCC discards it without `$wl',
10540 # but is careful enough not to reorder.
10541 # Supported since Solaris 2.6 (maybe 2.5.1?)
10542 if test "$GCC" = yes; then
10543 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10544 else
10545 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10546 fi
10547 ;;
10548 esac
10549 link_all_deplibs=yes
10550 ;;
10551
10552 sunos4*)
10553 if test "x$host_vendor" = xsequent; then
10554 # Use $CC to link under sequent, because it throws in some extra .o
10555 # files that make .init and .fini sections work.
10556 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10557 else
10558 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10559 fi
10560 hardcode_libdir_flag_spec='-L$libdir'
10561 hardcode_direct=yes
10562 hardcode_minus_L=yes
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 sysv4)
10567 case $host_vendor in
10568 sni)
10569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570 hardcode_direct=yes # is this really true???
10571 ;;
10572 siemens)
10573 ## LD is ld it makes a PLAMLIB
10574 ## CC just makes a GrossModule.
10575 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10576 reload_cmds='$CC -r -o $output$reload_objs'
10577 hardcode_direct=no
10578 ;;
10579 motorola)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10582 ;;
10583 esac
10584 runpath_var='LD_RUN_PATH'
10585 hardcode_shlibpath_var=no
10586 ;;
10587
10588 sysv4.3*)
10589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10590 hardcode_shlibpath_var=no
10591 export_dynamic_flag_spec='-Bexport'
10592 ;;
10593
10594 sysv4*MP*)
10595 if test -d /usr/nec; then
10596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_shlibpath_var=no
10598 runpath_var=LD_RUN_PATH
10599 hardcode_runpath_var=yes
10600 ld_shlibs=yes
10601 fi
10602 ;;
10603
10604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10605 no_undefined_flag='${wl}-z,text'
10606 archive_cmds_need_lc=no
10607 hardcode_shlibpath_var=no
10608 runpath_var='LD_RUN_PATH'
10609
10610 if test "$GCC" = yes; then
10611 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 else
10614 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 fi
10617 ;;
10618
10619 sysv5* | sco3.2v5* | sco5v6*)
10620 # Note: We can NOT use -z defs as we might desire, because we do not
10621 # link with -lc, and that would cause any symbols used from libc to
10622 # always be unresolved, which means just about no library would
10623 # ever link correctly. If we're not using GNU ld we use -z text
10624 # though, which does catch some bad symbols but isn't as heavy-handed
10625 # as -z defs.
10626 no_undefined_flag='${wl}-z,text'
10627 allow_undefined_flag='${wl}-z,nodefs'
10628 archive_cmds_need_lc=no
10629 hardcode_shlibpath_var=no
10630 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10631 hardcode_libdir_separator=':'
10632 link_all_deplibs=yes
10633 export_dynamic_flag_spec='${wl}-Bexport'
10634 runpath_var='LD_RUN_PATH'
10635
10636 if test "$GCC" = yes; then
10637 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 else
10640 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 fi
10643 ;;
10644
10645 uts4*)
10646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_shlibpath_var=no
10649 ;;
10650
10651 *)
10652 ld_shlibs=no
10653 ;;
10654 esac
10655
10656 if test x$host_vendor = xsni; then
10657 case $host in
10658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10659 export_dynamic_flag_spec='${wl}-Blargedynsym'
10660 ;;
10661 esac
10662 fi
10663 fi
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10666 $as_echo "$ld_shlibs" >&6; }
10667 test "$ld_shlibs" = no && can_build_shared=no
10668
10669 with_gnu_ld=$with_gnu_ld
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685 #
10686 # Do we need to explicitly link libc?
10687 #
10688 case "x$archive_cmds_need_lc" in
10689 x|xyes)
10690 # Assume -lc should be added
10691 archive_cmds_need_lc=yes
10692
10693 if test "$enable_shared" = yes && test "$GCC" = yes; then
10694 case $archive_cmds in
10695 *'~'*)
10696 # FIXME: we may have to deal with multi-command sequences.
10697 ;;
10698 '$CC '*)
10699 # Test whether the compiler implicitly links with -lc since on some
10700 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10701 # to ld, don't add -lc before -lgcc.
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10704 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 $RM conftest*
10708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10709
10710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10711 (eval $ac_compile) 2>&5
10712 ac_status=$?
10713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714 test $ac_status = 0; } 2>conftest.err; then
10715 soname=conftest
10716 lib=conftest
10717 libobjs=conftest.$ac_objext
10718 deplibs=
10719 wl=$lt_prog_compiler_wl
10720 pic_flag=$lt_prog_compiler_pic
10721 compiler_flags=-v
10722 linker_flags=-v
10723 verstring=
10724 output_objdir=.
10725 libname=conftest
10726 lt_save_allow_undefined_flag=$allow_undefined_flag
10727 allow_undefined_flag=
10728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10729 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10730 ac_status=$?
10731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732 test $ac_status = 0; }
10733 then
10734 lt_cv_archive_cmds_need_lc=no
10735 else
10736 lt_cv_archive_cmds_need_lc=yes
10737 fi
10738 allow_undefined_flag=$lt_save_allow_undefined_flag
10739 else
10740 cat conftest.err 1>&5
10741 fi
10742 $RM conftest*
10743
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10746 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10747 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10748 ;;
10749 esac
10750 fi
10751 ;;
10752 esac
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10911 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10912
10913 if test "$GCC" = yes; then
10914 case $host_os in
10915 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10916 *) lt_awk_arg="/^libraries:/" ;;
10917 esac
10918 case $host_os in
10919 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10920 *) lt_sed_strip_eq="s,=/,/,g" ;;
10921 esac
10922 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10923 case $lt_search_path_spec in
10924 *\;*)
10925 # if the path contains ";" then we assume it to be the separator
10926 # otherwise default to the standard path separator (i.e. ":") - it is
10927 # assumed that no part of a normal pathname contains ";" but that should
10928 # okay in the real world where ";" in dirpaths is itself problematic.
10929 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10930 ;;
10931 *)
10932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10933 ;;
10934 esac
10935 # Ok, now we have the path, separated by spaces, we can step through it
10936 # and add multilib dir if necessary.
10937 lt_tmp_lt_search_path_spec=
10938 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10939 for lt_sys_path in $lt_search_path_spec; do
10940 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10941 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10942 else
10943 test -d "$lt_sys_path" && \
10944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10945 fi
10946 done
10947 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10948 BEGIN {RS=" "; FS="/|\n";} {
10949 lt_foo="";
10950 lt_count=0;
10951 for (lt_i = NF; lt_i > 0; lt_i--) {
10952 if ($lt_i != "" && $lt_i != ".") {
10953 if ($lt_i == "..") {
10954 lt_count++;
10955 } else {
10956 if (lt_count == 0) {
10957 lt_foo="/" $lt_i lt_foo;
10958 } else {
10959 lt_count--;
10960 }
10961 }
10962 }
10963 }
10964 if (lt_foo != "") { lt_freq[lt_foo]++; }
10965 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10966 }'`
10967 # AWK program above erroneously prepends '/' to C:/dos/paths
10968 # for these hosts.
10969 case $host_os in
10970 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10971 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10972 esac
10973 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10974 else
10975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10976 fi
10977 library_names_spec=
10978 libname_spec='lib$name'
10979 soname_spec=
10980 shrext_cmds=".so"
10981 postinstall_cmds=
10982 postuninstall_cmds=
10983 finish_cmds=
10984 finish_eval=
10985 shlibpath_var=
10986 shlibpath_overrides_runpath=unknown
10987 version_type=none
10988 dynamic_linker="$host_os ld.so"
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10990 need_lib_prefix=unknown
10991 hardcode_into_libs=no
10992
10993 # when you set need_version to no, make sure it does not cause -set_version
10994 # flags to be left without arguments
10995 need_version=unknown
10996
10997 case $host_os in
10998 aix3*)
10999 version_type=linux
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11001 shlibpath_var=LIBPATH
11002
11003 # AIX 3 has no versioning support, so we append a major version to the name.
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 ;;
11006
11007 aix[4-9]*)
11008 version_type=linux
11009 need_lib_prefix=no
11010 need_version=no
11011 hardcode_into_libs=yes
11012 if test "$host_cpu" = ia64; then
11013 # AIX 5 supports IA64
11014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 else
11017 # With GCC up to 2.95.x, collect2 would create an import file
11018 # for dependence libraries. The import file would start with
11019 # the line `#! .'. This would cause the generated library to
11020 # depend on `.', always an invalid library. This was fixed in
11021 # development snapshots of GCC prior to 3.0.
11022 case $host_os in
11023 aix4 | aix4.[01] | aix4.[01].*)
11024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11025 echo ' yes '
11026 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11027 :
11028 else
11029 can_build_shared=no
11030 fi
11031 ;;
11032 esac
11033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11034 # soname into executable. Probably we can add versioning support to
11035 # collect2, so additional links can be useful in future.
11036 if test "$aix_use_runtimelinking" = yes; then
11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11038 # instead of lib<name>.a to let people know that these are not
11039 # typical AIX shared libraries.
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 else
11042 # We preserve .a as extension for shared libraries through AIX4.2
11043 # and later when we are not doing run time linking.
11044 library_names_spec='${libname}${release}.a $libname.a'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 fi
11047 shlibpath_var=LIBPATH
11048 fi
11049 ;;
11050
11051 amigaos*)
11052 case $host_cpu in
11053 powerpc)
11054 # Since July 2007 AmigaOS4 officially supports .so libraries.
11055 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 ;;
11058 m68k)
11059 library_names_spec='$libname.ixlibrary $libname.a'
11060 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11061 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'
11062 ;;
11063 esac
11064 ;;
11065
11066 beos*)
11067 library_names_spec='${libname}${shared_ext}'
11068 dynamic_linker="$host_os ld.so"
11069 shlibpath_var=LIBRARY_PATH
11070 ;;
11071
11072 bsdi[45]*)
11073 version_type=linux
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11081 # the default ld.so.conf also contains /usr/contrib/lib and
11082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11083 # libtool to hard-code these into programs
11084 ;;
11085
11086 cygwin* | mingw* | pw32* | cegcc*)
11087 version_type=windows
11088 shrext_cmds=".dll"
11089 need_version=no
11090 need_lib_prefix=no
11091
11092 case $GCC,$host_os in
11093 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11094 library_names_spec='$libname.dll.a'
11095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11096 postinstall_cmds='base_file=`basename \${file}`~
11097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11098 dldir=$destdir/`dirname \$dlpath`~
11099 test -d \$dldir || mkdir -p \$dldir~
11100 $install_prog $dir/$dlname \$dldir/$dlname~
11101 chmod a+x \$dldir/$dlname~
11102 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11103 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11104 fi'
11105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11106 dlpath=$dir/\$dldll~
11107 $RM \$dlpath'
11108 shlibpath_overrides_runpath=yes
11109
11110 case $host_os in
11111 cygwin*)
11112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11114
11115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11116 ;;
11117 mingw* | cegcc*)
11118 # MinGW DLLs use traditional 'lib' prefix
11119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11120 ;;
11121 pw32*)
11122 # pw32 DLLs use 'pw' prefix rather than 'lib'
11123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124 ;;
11125 esac
11126 ;;
11127
11128 *)
11129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11130 ;;
11131 esac
11132 dynamic_linker='Win32 ld.exe'
11133 # FIXME: first we should search . and the directory the executable is in
11134 shlibpath_var=PATH
11135 ;;
11136
11137 darwin* | rhapsody*)
11138 dynamic_linker="$host_os dyld"
11139 version_type=darwin
11140 need_lib_prefix=no
11141 need_version=no
11142 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11143 soname_spec='${libname}${release}${major}$shared_ext'
11144 shlibpath_overrides_runpath=yes
11145 shlibpath_var=DYLD_LIBRARY_PATH
11146 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11147
11148 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11150 ;;
11151
11152 dgux*)
11153 version_type=linux
11154 need_lib_prefix=no
11155 need_version=no
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 ;;
11160
11161 freebsd* | dragonfly*)
11162 # DragonFly does not have aout. When/if they implement a new
11163 # versioning mechanism, adjust this.
11164 if test -x /usr/bin/objformat; then
11165 objformat=`/usr/bin/objformat`
11166 else
11167 case $host_os in
11168 freebsd[23].*) objformat=aout ;;
11169 *) objformat=elf ;;
11170 esac
11171 fi
11172 version_type=freebsd-$objformat
11173 case $version_type in
11174 freebsd-elf*)
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176 need_version=no
11177 need_lib_prefix=no
11178 ;;
11179 freebsd-*)
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11181 need_version=yes
11182 ;;
11183 esac
11184 shlibpath_var=LD_LIBRARY_PATH
11185 case $host_os in
11186 freebsd2.*)
11187 shlibpath_overrides_runpath=yes
11188 ;;
11189 freebsd3.[01]* | freebsdelf3.[01]*)
11190 shlibpath_overrides_runpath=yes
11191 hardcode_into_libs=yes
11192 ;;
11193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11195 shlibpath_overrides_runpath=no
11196 hardcode_into_libs=yes
11197 ;;
11198 *) # from 4.6 on, and DragonFly
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11201 ;;
11202 esac
11203 ;;
11204
11205 gnu*)
11206 version_type=linux
11207 need_lib_prefix=no
11208 need_version=no
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 hardcode_into_libs=yes
11213 ;;
11214
11215 haiku*)
11216 version_type=linux
11217 need_lib_prefix=no
11218 need_version=no
11219 dynamic_linker="$host_os runtime_loader"
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LIBRARY_PATH
11223 shlibpath_overrides_runpath=yes
11224 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11225 hardcode_into_libs=yes
11226 ;;
11227
11228 hpux9* | hpux10* | hpux11*)
11229 # Give a soname corresponding to the major version so that dld.sl refuses to
11230 # link against other versions.
11231 version_type=sunos
11232 need_lib_prefix=no
11233 need_version=no
11234 case $host_cpu in
11235 ia64*)
11236 shrext_cmds='.so'
11237 hardcode_into_libs=yes
11238 dynamic_linker="$host_os dld.so"
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 if test "X$HPUX_IA64_MODE" = X32; then
11244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245 else
11246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247 fi
11248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11249 ;;
11250 hppa*64*)
11251 shrext_cmds='.sl'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.sl"
11254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11260 ;;
11261 *)
11262 shrext_cmds='.sl'
11263 dynamic_linker="$host_os dld.sl"
11264 shlibpath_var=SHLIB_PATH
11265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 ;;
11269 esac
11270 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11271 postinstall_cmds='chmod 555 $lib'
11272 # or fails outright, so override atomically:
11273 install_override_mode=555
11274 ;;
11275
11276 interix[3-9]*)
11277 version_type=linux
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 shlibpath_overrides_runpath=no
11285 hardcode_into_libs=yes
11286 ;;
11287
11288 irix5* | irix6* | nonstopux*)
11289 case $host_os in
11290 nonstopux*) version_type=nonstopux ;;
11291 *)
11292 if test "$lt_cv_prog_gnu_ld" = yes; then
11293 version_type=linux
11294 else
11295 version_type=irix
11296 fi ;;
11297 esac
11298 need_lib_prefix=no
11299 need_version=no
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11302 case $host_os in
11303 irix5* | nonstopux*)
11304 libsuff= shlibsuff=
11305 ;;
11306 *)
11307 case $LD in # libtool.m4 will add one of these switches to LD
11308 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11309 libsuff= shlibsuff= libmagic=32-bit;;
11310 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11311 libsuff=32 shlibsuff=N32 libmagic=N32;;
11312 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11313 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11314 *) libsuff= shlibsuff= libmagic=never-match;;
11315 esac
11316 ;;
11317 esac
11318 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11319 shlibpath_overrides_runpath=no
11320 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11321 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11322 hardcode_into_libs=yes
11323 ;;
11324
11325 # No shared lib support for Linux oldld, aout, or coff.
11326 linux*oldld* | linux*aout* | linux*coff*)
11327 dynamic_linker=no
11328 ;;
11329
11330 # This must be Linux ELF.
11331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11332 version_type=linux
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=no
11340
11341 # Some binutils ld are patched to set DT_RUNPATH
11342 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 lt_cv_shlibpath_overrides_runpath=no
11346 save_LDFLAGS=$LDFLAGS
11347 save_libdir=$libdir
11348 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11349 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352
11353 int
11354 main ()
11355 {
11356
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11363 lt_cv_shlibpath_overrides_runpath=yes
11364 fi
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LDFLAGS=$save_LDFLAGS
11369 libdir=$save_libdir
11370
11371 fi
11372
11373 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11374
11375 # This implies no fast_install, which is unacceptable.
11376 # Some rework will be needed to allow for fast_install
11377 # before this can be enabled.
11378 hardcode_into_libs=yes
11379
11380 # Append ld.so.conf contents to the search path
11381 if test -f /etc/ld.so.conf; then
11382 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' ' '`
11383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11384 fi
11385
11386 # We used to test for /lib/ld.so.1 and disable shared libraries on
11387 # powerpc, because MkLinux only supported shared libraries with the
11388 # GNU dynamic linker. Since this was broken with cross compilers,
11389 # most powerpc-linux boxes support dynamic linking these days and
11390 # people can always --disable-shared, the test was removed, and we
11391 # assume the GNU/Linux dynamic linker is in use.
11392 dynamic_linker='GNU/Linux ld.so'
11393 ;;
11394
11395 netbsd*)
11396 version_type=sunos
11397 need_lib_prefix=no
11398 need_version=no
11399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402 dynamic_linker='NetBSD (a.out) ld.so'
11403 else
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 dynamic_linker='NetBSD ld.elf_so'
11407 fi
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11411 ;;
11412
11413 newsos6)
11414 version_type=linux
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 shlibpath_overrides_runpath=yes
11418 ;;
11419
11420 *nto* | *qnx*)
11421 version_type=qnx
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=no
11428 hardcode_into_libs=yes
11429 dynamic_linker='ldqnx.so'
11430 ;;
11431
11432 openbsd*)
11433 version_type=sunos
11434 sys_lib_dlsearch_path_spec="/usr/lib"
11435 need_lib_prefix=no
11436 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11437 case $host_os in
11438 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11439 *) need_version=no ;;
11440 esac
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11445 case $host_os in
11446 openbsd2.[89] | openbsd2.[89].*)
11447 shlibpath_overrides_runpath=no
11448 ;;
11449 *)
11450 shlibpath_overrides_runpath=yes
11451 ;;
11452 esac
11453 else
11454 shlibpath_overrides_runpath=yes
11455 fi
11456 ;;
11457
11458 os2*)
11459 libname_spec='$name'
11460 shrext_cmds=".dll"
11461 need_lib_prefix=no
11462 library_names_spec='$libname${shared_ext} $libname.a'
11463 dynamic_linker='OS/2 ld.exe'
11464 shlibpath_var=LIBPATH
11465 ;;
11466
11467 osf3* | osf4* | osf5*)
11468 version_type=osf
11469 need_lib_prefix=no
11470 need_version=no
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11476 ;;
11477
11478 rdos*)
11479 dynamic_linker=no
11480 ;;
11481
11482 solaris*)
11483 version_type=linux
11484 need_lib_prefix=no
11485 need_version=no
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11491 # ldd complains unless libraries are executable
11492 postinstall_cmds='chmod +x $lib'
11493 ;;
11494
11495 sunos4*)
11496 version_type=sunos
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 if test "$with_gnu_ld" = yes; then
11502 need_lib_prefix=no
11503 fi
11504 need_version=yes
11505 ;;
11506
11507 sysv4 | sysv4.3*)
11508 version_type=linux
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 case $host_vendor in
11513 sni)
11514 shlibpath_overrides_runpath=no
11515 need_lib_prefix=no
11516 runpath_var=LD_RUN_PATH
11517 ;;
11518 siemens)
11519 need_lib_prefix=no
11520 ;;
11521 motorola)
11522 need_lib_prefix=no
11523 need_version=no
11524 shlibpath_overrides_runpath=no
11525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11526 ;;
11527 esac
11528 ;;
11529
11530 sysv4*MP*)
11531 if test -d /usr/nec ;then
11532 version_type=linux
11533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11534 soname_spec='$libname${shared_ext}.$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 fi
11537 ;;
11538
11539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11540 version_type=freebsd-elf
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11547 hardcode_into_libs=yes
11548 if test "$with_gnu_ld" = yes; then
11549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11550 else
11551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11552 case $host_os in
11553 sco3.2v5*)
11554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11555 ;;
11556 esac
11557 fi
11558 sys_lib_dlsearch_path_spec='/usr/lib'
11559 ;;
11560
11561 tpf*)
11562 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11563 version_type=linux
11564 need_lib_prefix=no
11565 need_version=no
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=no
11569 hardcode_into_libs=yes
11570 ;;
11571
11572 uts4*)
11573 version_type=linux
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 ;;
11578
11579 *)
11580 dynamic_linker=no
11581 ;;
11582 esac
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11584 $as_echo "$dynamic_linker" >&6; }
11585 test "$dynamic_linker" = no && can_build_shared=no
11586
11587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11588 if test "$GCC" = yes; then
11589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11590 fi
11591
11592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11593 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11594 fi
11595 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11597 fi
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11692 hardcode_action=
11693 if test -n "$hardcode_libdir_flag_spec" ||
11694 test -n "$runpath_var" ||
11695 test "X$hardcode_automatic" = "Xyes" ; then
11696
11697 # We can hardcode non-existent directories.
11698 if test "$hardcode_direct" != no &&
11699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11700 # have to relink, otherwise we might link with an installed library
11701 # when we should be linking with a yet-to-be-installed one
11702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11703 test "$hardcode_minus_L" != no; then
11704 # Linking always hardcodes the temporary library directory.
11705 hardcode_action=relink
11706 else
11707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11708 hardcode_action=immediate
11709 fi
11710 else
11711 # We cannot hardcode anything, or else we can only hardcode existing
11712 # directories.
11713 hardcode_action=unsupported
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11716 $as_echo "$hardcode_action" >&6; }
11717
11718 if test "$hardcode_action" = relink ||
11719 test "$inherit_rpath" = yes; then
11720 # Fast installation is not supported
11721 enable_fast_install=no
11722 elif test "$shlibpath_overrides_runpath" = yes ||
11723 test "$enable_shared" = no; then
11724 # Fast installation is not necessary
11725 enable_fast_install=needless
11726 fi
11727
11728
11729
11730
11731
11732
11733 if test "x$enable_dlopen" != xyes; then
11734 enable_dlopen=unknown
11735 enable_dlopen_self=unknown
11736 enable_dlopen_self_static=unknown
11737 else
11738 lt_cv_dlopen=no
11739 lt_cv_dlopen_libs=
11740
11741 case $host_os in
11742 beos*)
11743 lt_cv_dlopen="load_add_on"
11744 lt_cv_dlopen_libs=
11745 lt_cv_dlopen_self=yes
11746 ;;
11747
11748 mingw* | pw32* | cegcc*)
11749 lt_cv_dlopen="LoadLibrary"
11750 lt_cv_dlopen_libs=
11751 ;;
11752
11753 cygwin*)
11754 lt_cv_dlopen="dlopen"
11755 lt_cv_dlopen_libs=
11756 ;;
11757
11758 darwin*)
11759 # if libdl is installed we need to link against it
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-ldl $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char dlopen ();
11777 int
11778 main ()
11779 {
11780 return dlopen ();
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_dl_dlopen=yes
11787 else
11788 ac_cv_lib_dl_dlopen=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11796 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11798 else
11799
11800 lt_cv_dlopen="dyld"
11801 lt_cv_dlopen_libs=
11802 lt_cv_dlopen_self=yes
11803
11804 fi
11805
11806 ;;
11807
11808 *)
11809 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11810 if test "x$ac_cv_func_shl_load" = x""yes; then :
11811 lt_cv_dlopen="shl_load"
11812 else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11814 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 ac_check_lib_save_LIBS=$LIBS
11819 LIBS="-ldld $LIBS"
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822
11823 /* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char shl_load ();
11830 int
11831 main ()
11832 {
11833 return shl_load ();
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_c_try_link "$LINENO"; then :
11839 ac_cv_lib_dld_shl_load=yes
11840 else
11841 ac_cv_lib_dld_shl_load=no
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11848 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11849 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11851 else
11852 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11853 if test "x$ac_cv_func_dlopen" = x""yes; then :
11854 lt_cv_dlopen="dlopen"
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11857 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 ac_check_lib_save_LIBS=$LIBS
11862 LIBS="-ldl $LIBS"
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char dlopen ();
11873 int
11874 main ()
11875 {
11876 return dlopen ();
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_c_try_link "$LINENO"; then :
11882 ac_cv_lib_dl_dlopen=yes
11883 else
11884 ac_cv_lib_dl_dlopen=no
11885 fi
11886 rm -f core conftest.err conftest.$ac_objext \
11887 conftest$ac_exeext conftest.$ac_ext
11888 LIBS=$ac_check_lib_save_LIBS
11889 fi
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11892 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11896 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11897 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-lsvld $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 return dlopen ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_svld_dlopen=yes
11922 else
11923 ac_cv_lib_svld_dlopen=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11930 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11931 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11935 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11936 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-ldld $LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11943
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char dld_link ();
11951 int
11952 main ()
11953 {
11954 return dld_link ();
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_dld_dld_link=yes
11961 else
11962 ac_cv_lib_dld_dld_link=no
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11969 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11970 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11972 fi
11973
11974
11975 fi
11976
11977
11978 fi
11979
11980
11981 fi
11982
11983
11984 fi
11985
11986
11987 fi
11988
11989 ;;
11990 esac
11991
11992 if test "x$lt_cv_dlopen" != xno; then
11993 enable_dlopen=yes
11994 else
11995 enable_dlopen=no
11996 fi
11997
11998 case $lt_cv_dlopen in
11999 dlopen)
12000 save_CPPFLAGS="$CPPFLAGS"
12001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12002
12003 save_LDFLAGS="$LDFLAGS"
12004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12005
12006 save_LIBS="$LIBS"
12007 LIBS="$lt_cv_dlopen_libs $LIBS"
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12010 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12011 if test "${lt_cv_dlopen_self+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test "$cross_compiling" = yes; then :
12015 lt_cv_dlopen_self=cross
12016 else
12017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12018 lt_status=$lt_dlunknown
12019 cat > conftest.$ac_ext <<_LT_EOF
12020 #line 12020 "configure"
12021 #include "confdefs.h"
12022
12023 #if HAVE_DLFCN_H
12024 #include <dlfcn.h>
12025 #endif
12026
12027 #include <stdio.h>
12028
12029 #ifdef RTLD_GLOBAL
12030 # define LT_DLGLOBAL RTLD_GLOBAL
12031 #else
12032 # ifdef DL_GLOBAL
12033 # define LT_DLGLOBAL DL_GLOBAL
12034 # else
12035 # define LT_DLGLOBAL 0
12036 # endif
12037 #endif
12038
12039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12040 find out it does not work in some platform. */
12041 #ifndef LT_DLLAZY_OR_NOW
12042 # ifdef RTLD_LAZY
12043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12044 # else
12045 # ifdef DL_LAZY
12046 # define LT_DLLAZY_OR_NOW DL_LAZY
12047 # else
12048 # ifdef RTLD_NOW
12049 # define LT_DLLAZY_OR_NOW RTLD_NOW
12050 # else
12051 # ifdef DL_NOW
12052 # define LT_DLLAZY_OR_NOW DL_NOW
12053 # else
12054 # define LT_DLLAZY_OR_NOW 0
12055 # endif
12056 # endif
12057 # endif
12058 # endif
12059 #endif
12060
12061 /* When -fvisbility=hidden is used, assume the code has been annotated
12062 correspondingly for the symbols needed. */
12063 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12064 void fnord () __attribute__((visibility("default")));
12065 #endif
12066
12067 void fnord () { int i=42; }
12068 int main ()
12069 {
12070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12071 int status = $lt_dlunknown;
12072
12073 if (self)
12074 {
12075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12076 else
12077 {
12078 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12079 else puts (dlerror ());
12080 }
12081 /* dlclose (self); */
12082 }
12083 else
12084 puts (dlerror ());
12085
12086 return status;
12087 }
12088 _LT_EOF
12089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12090 (eval $ac_link) 2>&5
12091 ac_status=$?
12092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12093 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12094 (./conftest; exit; ) >&5 2>/dev/null
12095 lt_status=$?
12096 case x$lt_status in
12097 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12098 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12099 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12100 esac
12101 else :
12102 # compilation failed
12103 lt_cv_dlopen_self=no
12104 fi
12105 fi
12106 rm -fr conftest*
12107
12108
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12111 $as_echo "$lt_cv_dlopen_self" >&6; }
12112
12113 if test "x$lt_cv_dlopen_self" = xyes; then
12114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12116 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12117 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 if test "$cross_compiling" = yes; then :
12121 lt_cv_dlopen_self_static=cross
12122 else
12123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12124 lt_status=$lt_dlunknown
12125 cat > conftest.$ac_ext <<_LT_EOF
12126 #line 12126 "configure"
12127 #include "confdefs.h"
12128
12129 #if HAVE_DLFCN_H
12130 #include <dlfcn.h>
12131 #endif
12132
12133 #include <stdio.h>
12134
12135 #ifdef RTLD_GLOBAL
12136 # define LT_DLGLOBAL RTLD_GLOBAL
12137 #else
12138 # ifdef DL_GLOBAL
12139 # define LT_DLGLOBAL DL_GLOBAL
12140 # else
12141 # define LT_DLGLOBAL 0
12142 # endif
12143 #endif
12144
12145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12146 find out it does not work in some platform. */
12147 #ifndef LT_DLLAZY_OR_NOW
12148 # ifdef RTLD_LAZY
12149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12150 # else
12151 # ifdef DL_LAZY
12152 # define LT_DLLAZY_OR_NOW DL_LAZY
12153 # else
12154 # ifdef RTLD_NOW
12155 # define LT_DLLAZY_OR_NOW RTLD_NOW
12156 # else
12157 # ifdef DL_NOW
12158 # define LT_DLLAZY_OR_NOW DL_NOW
12159 # else
12160 # define LT_DLLAZY_OR_NOW 0
12161 # endif
12162 # endif
12163 # endif
12164 # endif
12165 #endif
12166
12167 /* When -fvisbility=hidden is used, assume the code has been annotated
12168 correspondingly for the symbols needed. */
12169 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12170 void fnord () __attribute__((visibility("default")));
12171 #endif
12172
12173 void fnord () { int i=42; }
12174 int main ()
12175 {
12176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12177 int status = $lt_dlunknown;
12178
12179 if (self)
12180 {
12181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12182 else
12183 {
12184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12185 else puts (dlerror ());
12186 }
12187 /* dlclose (self); */
12188 }
12189 else
12190 puts (dlerror ());
12191
12192 return status;
12193 }
12194 _LT_EOF
12195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12196 (eval $ac_link) 2>&5
12197 ac_status=$?
12198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12199 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12200 (./conftest; exit; ) >&5 2>/dev/null
12201 lt_status=$?
12202 case x$lt_status in
12203 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12204 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12205 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12206 esac
12207 else :
12208 # compilation failed
12209 lt_cv_dlopen_self_static=no
12210 fi
12211 fi
12212 rm -fr conftest*
12213
12214
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12217 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12218 fi
12219
12220 CPPFLAGS="$save_CPPFLAGS"
12221 LDFLAGS="$save_LDFLAGS"
12222 LIBS="$save_LIBS"
12223 ;;
12224 esac
12225
12226 case $lt_cv_dlopen_self in
12227 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12228 *) enable_dlopen_self=unknown ;;
12229 esac
12230
12231 case $lt_cv_dlopen_self_static in
12232 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12233 *) enable_dlopen_self_static=unknown ;;
12234 esac
12235 fi
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253 striplib=
12254 old_striplib=
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12256 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12257 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12258 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12259 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12261 $as_echo "yes" >&6; }
12262 else
12263 # FIXME - insert some real tests, host_os isn't really good enough
12264 case $host_os in
12265 darwin*)
12266 if test -n "$STRIP" ; then
12267 striplib="$STRIP -x"
12268 old_striplib="$STRIP -S"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 $as_echo "yes" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12274 fi
12275 ;;
12276 *)
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 ;;
12280 esac
12281 fi
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294 # Report which library types will actually be built
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12296 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12298 $as_echo "$can_build_shared" >&6; }
12299
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12301 $as_echo_n "checking whether to build shared libraries... " >&6; }
12302 test "$can_build_shared" = "no" && enable_shared=no
12303
12304 # On AIX, shared libraries and static libraries use the same namespace, and
12305 # are all built from PIC.
12306 case $host_os in
12307 aix3*)
12308 test "$enable_shared" = yes && enable_static=no
12309 if test -n "$RANLIB"; then
12310 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12311 postinstall_cmds='$RANLIB $lib'
12312 fi
12313 ;;
12314
12315 aix[4-9]*)
12316 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12317 test "$enable_shared" = yes && enable_static=no
12318 fi
12319 ;;
12320 esac
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12322 $as_echo "$enable_shared" >&6; }
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12325 $as_echo_n "checking whether to build static libraries... " >&6; }
12326 # Make sure either enable_shared or enable_static is yes.
12327 test "$enable_shared" = yes || enable_static=yes
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12329 $as_echo "$enable_static" >&6; }
12330
12331
12332
12333
12334 fi
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 CC="$lt_save_CC"
12342
12343 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12344 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12345 (test "X$CXX" != "Xg++"))) ; then
12346 ac_ext=cpp
12347 ac_cpp='$CXXCPP $CPPFLAGS'
12348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12352 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12353 if test -z "$CXXCPP"; then
12354 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 # Double quotes because CXXCPP needs to be expanded
12358 for CXXCPP in "$CXX -E" "/lib/cpp"
12359 do
12360 ac_preproc_ok=false
12361 for ac_cxx_preproc_warn_flag in '' yes
12362 do
12363 # Use a header file that comes with gcc, so configuring glibc
12364 # with a fresh cross-compiler works.
12365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 # <limits.h> exists even on freestanding compilers.
12367 # On the NeXT, cc -E runs the code through the compiler's parser,
12368 # not just through cpp. "Syntax error" is here to catch this case.
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12376 Syntax error
12377 _ACEOF
12378 if ac_fn_cxx_try_cpp "$LINENO"; then :
12379
12380 else
12381 # Broken: fails on valid input.
12382 continue
12383 fi
12384 rm -f conftest.err conftest.$ac_ext
12385
12386 # OK, works on sane cases. Now check whether nonexistent headers
12387 # can be detected and how.
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390 #include <ac_nonexistent.h>
12391 _ACEOF
12392 if ac_fn_cxx_try_cpp "$LINENO"; then :
12393 # Broken: success on invalid input.
12394 continue
12395 else
12396 # Passes both tests.
12397 ac_preproc_ok=:
12398 break
12399 fi
12400 rm -f conftest.err conftest.$ac_ext
12401
12402 done
12403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12404 rm -f conftest.err conftest.$ac_ext
12405 if $ac_preproc_ok; then :
12406 break
12407 fi
12408
12409 done
12410 ac_cv_prog_CXXCPP=$CXXCPP
12411
12412 fi
12413 CXXCPP=$ac_cv_prog_CXXCPP
12414 else
12415 ac_cv_prog_CXXCPP=$CXXCPP
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12418 $as_echo "$CXXCPP" >&6; }
12419 ac_preproc_ok=false
12420 for ac_cxx_preproc_warn_flag in '' yes
12421 do
12422 # Use a header file that comes with gcc, so configuring glibc
12423 # with a fresh cross-compiler works.
12424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12425 # <limits.h> exists even on freestanding compilers.
12426 # On the NeXT, cc -E runs the code through the compiler's parser,
12427 # not just through cpp. "Syntax error" is here to catch this case.
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #ifdef __STDC__
12431 # include <limits.h>
12432 #else
12433 # include <assert.h>
12434 #endif
12435 Syntax error
12436 _ACEOF
12437 if ac_fn_cxx_try_cpp "$LINENO"; then :
12438
12439 else
12440 # Broken: fails on valid input.
12441 continue
12442 fi
12443 rm -f conftest.err conftest.$ac_ext
12444
12445 # OK, works on sane cases. Now check whether nonexistent headers
12446 # can be detected and how.
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 #include <ac_nonexistent.h>
12450 _ACEOF
12451 if ac_fn_cxx_try_cpp "$LINENO"; then :
12452 # Broken: success on invalid input.
12453 continue
12454 else
12455 # Passes both tests.
12456 ac_preproc_ok=:
12457 break
12458 fi
12459 rm -f conftest.err conftest.$ac_ext
12460
12461 done
12462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12463 rm -f conftest.err conftest.$ac_ext
12464 if $ac_preproc_ok; then :
12465
12466 else
12467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12469 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12470 See \`config.log' for more details." "$LINENO" 5; }
12471 fi
12472
12473 ac_ext=c
12474 ac_cpp='$CPP $CPPFLAGS'
12475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12478
12479 else
12480 _lt_caught_CXX_error=yes
12481 fi
12482
12483 ac_ext=cpp
12484 ac_cpp='$CXXCPP $CPPFLAGS'
12485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12488
12489 archive_cmds_need_lc_CXX=no
12490 allow_undefined_flag_CXX=
12491 always_export_symbols_CXX=no
12492 archive_expsym_cmds_CXX=
12493 compiler_needs_object_CXX=no
12494 export_dynamic_flag_spec_CXX=
12495 hardcode_direct_CXX=no
12496 hardcode_direct_absolute_CXX=no
12497 hardcode_libdir_flag_spec_CXX=
12498 hardcode_libdir_flag_spec_ld_CXX=
12499 hardcode_libdir_separator_CXX=
12500 hardcode_minus_L_CXX=no
12501 hardcode_shlibpath_var_CXX=unsupported
12502 hardcode_automatic_CXX=no
12503 inherit_rpath_CXX=no
12504 module_cmds_CXX=
12505 module_expsym_cmds_CXX=
12506 link_all_deplibs_CXX=unknown
12507 old_archive_cmds_CXX=$old_archive_cmds
12508 reload_flag_CXX=$reload_flag
12509 reload_cmds_CXX=$reload_cmds
12510 no_undefined_flag_CXX=
12511 whole_archive_flag_spec_CXX=
12512 enable_shared_with_static_runtimes_CXX=no
12513
12514 # Source file extension for C++ test sources.
12515 ac_ext=cpp
12516
12517 # Object file extension for compiled C++ test sources.
12518 objext=o
12519 objext_CXX=$objext
12520
12521 # No sense in running all these tests if we already determined that
12522 # the CXX compiler isn't working. Some variables (like enable_shared)
12523 # are currently assumed to apply to all compilers on this platform,
12524 # and will be corrupted by setting them based on a non-working compiler.
12525 if test "$_lt_caught_CXX_error" != yes; then
12526 # Code to be used in simple compile tests
12527 lt_simple_compile_test_code="int some_variable = 0;"
12528
12529 # Code to be used in simple link tests
12530 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12531
12532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12533
12534
12535
12536
12537
12538
12539 # If no C compiler was specified, use CC.
12540 LTCC=${LTCC-"$CC"}
12541
12542 # If no C compiler flags were specified, use CFLAGS.
12543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12544
12545 # Allow CC to be a program name with arguments.
12546 compiler=$CC
12547
12548
12549 # save warnings/boilerplate of simple test code
12550 ac_outfile=conftest.$ac_objext
12551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12553 _lt_compiler_boilerplate=`cat conftest.err`
12554 $RM conftest*
12555
12556 ac_outfile=conftest.$ac_objext
12557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12559 _lt_linker_boilerplate=`cat conftest.err`
12560 $RM -r conftest*
12561
12562
12563 # Allow CC to be a program name with arguments.
12564 lt_save_CC=$CC
12565 lt_save_LD=$LD
12566 lt_save_GCC=$GCC
12567 GCC=$GXX
12568 lt_save_with_gnu_ld=$with_gnu_ld
12569 lt_save_path_LD=$lt_cv_path_LD
12570 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12571 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12572 else
12573 $as_unset lt_cv_prog_gnu_ld
12574 fi
12575 if test -n "${lt_cv_path_LDCXX+set}"; then
12576 lt_cv_path_LD=$lt_cv_path_LDCXX
12577 else
12578 $as_unset lt_cv_path_LD
12579 fi
12580 test -z "${LDCXX+set}" || LD=$LDCXX
12581 CC=${CXX-"c++"}
12582 compiler=$CC
12583 compiler_CXX=$CC
12584 for cc_temp in $compiler""; do
12585 case $cc_temp in
12586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12588 \-*) ;;
12589 *) break;;
12590 esac
12591 done
12592 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12593
12594
12595 if test -n "$compiler"; then
12596 # We don't want -fno-exception when compiling C++ code, so set the
12597 # no_builtin_flag separately
12598 if test "$GXX" = yes; then
12599 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12600 else
12601 lt_prog_compiler_no_builtin_flag_CXX=
12602 fi
12603
12604 if test "$GXX" = yes; then
12605 # Set up default GNU C++ configuration
12606
12607
12608
12609 # Check whether --with-gnu-ld was given.
12610 if test "${with_gnu_ld+set}" = set; then :
12611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12612 else
12613 with_gnu_ld=no
12614 fi
12615
12616 ac_prog=ld
12617 if test "$GCC" = yes; then
12618 # Check if gcc -print-prog-name=ld gives a path.
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12620 $as_echo_n "checking for ld used by $CC... " >&6; }
12621 case $host in
12622 *-*-mingw*)
12623 # gcc leaves a trailing carriage return which upsets mingw
12624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12625 *)
12626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12627 esac
12628 case $ac_prog in
12629 # Accept absolute paths.
12630 [\\/]* | ?:[\\/]*)
12631 re_direlt='/[^/][^/]*/\.\./'
12632 # Canonicalize the pathname of ld
12633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12636 done
12637 test -z "$LD" && LD="$ac_prog"
12638 ;;
12639 "")
12640 # If it fails, then pretend we aren't using GCC.
12641 ac_prog=ld
12642 ;;
12643 *)
12644 # If it is relative, then search for the first ld in PATH.
12645 with_gnu_ld=unknown
12646 ;;
12647 esac
12648 elif test "$with_gnu_ld" = yes; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12650 $as_echo_n "checking for GNU ld... " >&6; }
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12653 $as_echo_n "checking for non-GNU ld... " >&6; }
12654 fi
12655 if test "${lt_cv_path_LD+set}" = set; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 if test -z "$LD"; then
12659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12660 for ac_dir in $PATH; do
12661 IFS="$lt_save_ifs"
12662 test -z "$ac_dir" && ac_dir=.
12663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12664 lt_cv_path_LD="$ac_dir/$ac_prog"
12665 # Check to see if the program is GNU ld. I'd rather use --version,
12666 # but apparently some variants of GNU ld only accept -v.
12667 # Break only if it was the GNU/non-GNU ld that we prefer.
12668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12669 *GNU* | *'with BFD'*)
12670 test "$with_gnu_ld" != no && break
12671 ;;
12672 *)
12673 test "$with_gnu_ld" != yes && break
12674 ;;
12675 esac
12676 fi
12677 done
12678 IFS="$lt_save_ifs"
12679 else
12680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12681 fi
12682 fi
12683
12684 LD="$lt_cv_path_LD"
12685 if test -n "$LD"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12687 $as_echo "$LD" >&6; }
12688 else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 fi
12692 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12694 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12695 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12699 case `$LD -v 2>&1 </dev/null` in
12700 *GNU* | *'with BFD'*)
12701 lt_cv_prog_gnu_ld=yes
12702 ;;
12703 *)
12704 lt_cv_prog_gnu_ld=no
12705 ;;
12706 esac
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12709 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12710 with_gnu_ld=$lt_cv_prog_gnu_ld
12711
12712
12713
12714
12715
12716
12717
12718 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12719 # archiving commands below assume that GNU ld is being used.
12720 if test "$with_gnu_ld" = yes; then
12721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12722 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12723
12724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12726
12727 # If archive_cmds runs LD, not CC, wlarc should be empty
12728 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12729 # investigate it a little bit more. (MM)
12730 wlarc='${wl}'
12731
12732 # ancient GNU ld didn't support --whole-archive et. al.
12733 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12734 $GREP 'no-whole-archive' > /dev/null; then
12735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12736 else
12737 whole_archive_flag_spec_CXX=
12738 fi
12739 else
12740 with_gnu_ld=no
12741 wlarc=
12742
12743 # A generic and very simple default shared library creation
12744 # command for GNU C++ for the case where it uses the native
12745 # linker, instead of GNU ld. If possible, this setting should
12746 # overridden to take advantage of the native linker features on
12747 # the platform it is being used on.
12748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12749 fi
12750
12751 # Commands to make compiler produce verbose output that lists
12752 # what "hidden" libraries, object files and flags are used when
12753 # linking a shared library.
12754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12755
12756 else
12757 GXX=no
12758 with_gnu_ld=no
12759 wlarc=
12760 fi
12761
12762 # PORTME: fill in a description of your system's C++ link characteristics
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12765 ld_shlibs_CXX=yes
12766 case $host_os in
12767 aix3*)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12770 ;;
12771 aix[4-9]*)
12772 if test "$host_cpu" = ia64; then
12773 # On IA64, the linker does run time linking by default, so we don't
12774 # have to do anything special.
12775 aix_use_runtimelinking=no
12776 exp_sym_flag='-Bexport'
12777 no_entry_flag=""
12778 else
12779 aix_use_runtimelinking=no
12780
12781 # Test if we are trying to use run time linking or normal
12782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12783 # need to do runtime linking.
12784 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12785 for ld_flag in $LDFLAGS; do
12786 case $ld_flag in
12787 *-brtl*)
12788 aix_use_runtimelinking=yes
12789 break
12790 ;;
12791 esac
12792 done
12793 ;;
12794 esac
12795
12796 exp_sym_flag='-bexport'
12797 no_entry_flag='-bnoentry'
12798 fi
12799
12800 # When large executables or shared objects are built, AIX ld can
12801 # have problems creating the table of contents. If linking a library
12802 # or program results in "error TOC overflow" add -mminimal-toc to
12803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12805
12806 archive_cmds_CXX=''
12807 hardcode_direct_CXX=yes
12808 hardcode_direct_absolute_CXX=yes
12809 hardcode_libdir_separator_CXX=':'
12810 link_all_deplibs_CXX=yes
12811 file_list_spec_CXX='${wl}-f,'
12812
12813 if test "$GXX" = yes; then
12814 case $host_os in aix4.[012]|aix4.[012].*)
12815 # We only want to do this on AIX 4.2 and lower, the check
12816 # below for broken collect2 doesn't work under 4.3+
12817 collect2name=`${CC} -print-prog-name=collect2`
12818 if test -f "$collect2name" &&
12819 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12820 then
12821 # We have reworked collect2
12822 :
12823 else
12824 # We have old collect2
12825 hardcode_direct_CXX=unsupported
12826 # It fails to find uninstalled libraries when the uninstalled
12827 # path is not listed in the libpath. Setting hardcode_minus_L
12828 # to unsupported forces relinking
12829 hardcode_minus_L_CXX=yes
12830 hardcode_libdir_flag_spec_CXX='-L$libdir'
12831 hardcode_libdir_separator_CXX=
12832 fi
12833 esac
12834 shared_flag='-shared'
12835 if test "$aix_use_runtimelinking" = yes; then
12836 shared_flag="$shared_flag "'${wl}-G'
12837 fi
12838 else
12839 # not using gcc
12840 if test "$host_cpu" = ia64; then
12841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12842 # chokes on -Wl,-G. The following line is correct:
12843 shared_flag='-G'
12844 else
12845 if test "$aix_use_runtimelinking" = yes; then
12846 shared_flag='${wl}-G'
12847 else
12848 shared_flag='${wl}-bM:SRE'
12849 fi
12850 fi
12851 fi
12852
12853 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12854 # It seems that -bexpall does not export symbols beginning with
12855 # underscore (_), so it is better to generate a list of symbols to
12856 # export.
12857 always_export_symbols_CXX=yes
12858 if test "$aix_use_runtimelinking" = yes; then
12859 # Warning - without using the other runtime loading flags (-brtl),
12860 # -berok will link without error, but may produce a broken library.
12861 allow_undefined_flag_CXX='-berok'
12862 # Determine the default libpath from the value encoded in an empty
12863 # executable.
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866
12867 int
12868 main ()
12869 {
12870
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_cxx_try_link "$LINENO"; then :
12876
12877 lt_aix_libpath_sed='
12878 /Import File Strings/,/^$/ {
12879 /^0/ {
12880 s/^0 *\(.*\)$/\1/
12881 p
12882 }
12883 }'
12884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12885 # Check for a 64-bit object if we didn't find anything.
12886 if test -z "$aix_libpath"; then
12887 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12888 fi
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12893
12894 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12895
12896 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"
12897 else
12898 if test "$host_cpu" = ia64; then
12899 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12900 allow_undefined_flag_CXX="-z nodefs"
12901 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"
12902 else
12903 # Determine the default libpath from the value encoded in an
12904 # empty executable.
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907
12908 int
12909 main ()
12910 {
12911
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_cxx_try_link "$LINENO"; then :
12917
12918 lt_aix_libpath_sed='
12919 /Import File Strings/,/^$/ {
12920 /^0/ {
12921 s/^0 *\(.*\)$/\1/
12922 p
12923 }
12924 }'
12925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12926 # Check for a 64-bit object if we didn't find anything.
12927 if test -z "$aix_libpath"; then
12928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12929 fi
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12934
12935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12936 # Warning - without using the other run time loading flags,
12937 # -berok will link without error, but may produce a broken library.
12938 no_undefined_flag_CXX=' ${wl}-bernotok'
12939 allow_undefined_flag_CXX=' ${wl}-berok'
12940 if test "$with_gnu_ld" = yes; then
12941 # We only use this code for GNU lds that support --whole-archive.
12942 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12943 else
12944 # Exported symbols can be pulled into shared objects from archives
12945 whole_archive_flag_spec_CXX='$convenience'
12946 fi
12947 archive_cmds_need_lc_CXX=yes
12948 # This is similar to how AIX traditionally builds its shared
12949 # libraries.
12950 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'
12951 fi
12952 fi
12953 ;;
12954
12955 beos*)
12956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12957 allow_undefined_flag_CXX=unsupported
12958 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12959 # support --undefined. This deserves some investigation. FIXME
12960 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961 else
12962 ld_shlibs_CXX=no
12963 fi
12964 ;;
12965
12966 chorus*)
12967 case $cc_basename in
12968 *)
12969 # FIXME: insert proper C++ library support
12970 ld_shlibs_CXX=no
12971 ;;
12972 esac
12973 ;;
12974
12975 cygwin* | mingw* | pw32* | cegcc*)
12976 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12977 # as there is no search path for DLLs.
12978 hardcode_libdir_flag_spec_CXX='-L$libdir'
12979 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12980 allow_undefined_flag_CXX=unsupported
12981 always_export_symbols_CXX=no
12982 enable_shared_with_static_runtimes_CXX=yes
12983
12984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12985 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'
12986 # If the export-symbols file already is a .def file (1st line
12987 # is EXPORTS), use it as is; otherwise, prepend...
12988 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12989 cp $export_symbols $output_objdir/$soname.def;
12990 else
12991 echo EXPORTS > $output_objdir/$soname.def;
12992 cat $export_symbols >> $output_objdir/$soname.def;
12993 fi~
12994 $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'
12995 else
12996 ld_shlibs_CXX=no
12997 fi
12998 ;;
12999 darwin* | rhapsody*)
13000
13001
13002 archive_cmds_need_lc_CXX=no
13003 hardcode_direct_CXX=no
13004 hardcode_automatic_CXX=yes
13005 hardcode_shlibpath_var_CXX=unsupported
13006 if test "$lt_cv_ld_force_load" = "yes"; then
13007 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\"`'
13008 else
13009 whole_archive_flag_spec_CXX=''
13010 fi
13011 link_all_deplibs_CXX=yes
13012 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13013 case $cc_basename in
13014 ifort*) _lt_dar_can_shared=yes ;;
13015 *) _lt_dar_can_shared=$GCC ;;
13016 esac
13017 if test "$_lt_dar_can_shared" = "yes"; then
13018 output_verbose_link_cmd=func_echo_all
13019 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}"
13020 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13021 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}"
13022 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}"
13023 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13024 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}"
13025 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}"
13026 fi
13027
13028 else
13029 ld_shlibs_CXX=no
13030 fi
13031
13032 ;;
13033
13034 dgux*)
13035 case $cc_basename in
13036 ec++*)
13037 # FIXME: insert proper C++ library support
13038 ld_shlibs_CXX=no
13039 ;;
13040 ghcx*)
13041 # Green Hills C++ Compiler
13042 # FIXME: insert proper C++ library support
13043 ld_shlibs_CXX=no
13044 ;;
13045 *)
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13048 ;;
13049 esac
13050 ;;
13051
13052 freebsd2.*)
13053 # C++ shared libraries reported to be fairly broken before
13054 # switch to ELF
13055 ld_shlibs_CXX=no
13056 ;;
13057
13058 freebsd-elf*)
13059 archive_cmds_need_lc_CXX=no
13060 ;;
13061
13062 freebsd* | dragonfly*)
13063 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13064 # conventions
13065 ld_shlibs_CXX=yes
13066 ;;
13067
13068 gnu*)
13069 ;;
13070
13071 haiku*)
13072 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073 link_all_deplibs_CXX=yes
13074 ;;
13075
13076 hpux9*)
13077 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13078 hardcode_libdir_separator_CXX=:
13079 export_dynamic_flag_spec_CXX='${wl}-E'
13080 hardcode_direct_CXX=yes
13081 hardcode_minus_L_CXX=yes # Not in the search PATH,
13082 # but as the default
13083 # location of the library.
13084
13085 case $cc_basename in
13086 CC*)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 aCC*)
13091 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'
13092 # Commands to make compiler produce verbose output that lists
13093 # what "hidden" libraries, object files and flags are used when
13094 # linking a shared library.
13095 #
13096 # There doesn't appear to be a way to prevent this compiler from
13097 # explicitly linking system object files so we need to strip them
13098 # from the output so that they don't get included in the library
13099 # dependencies.
13100 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"'
13101 ;;
13102 *)
13103 if test "$GXX" = yes; then
13104 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'
13105 else
13106 # FIXME: insert proper C++ library support
13107 ld_shlibs_CXX=no
13108 fi
13109 ;;
13110 esac
13111 ;;
13112
13113 hpux10*|hpux11*)
13114 if test $with_gnu_ld = no; then
13115 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13116 hardcode_libdir_separator_CXX=:
13117
13118 case $host_cpu in
13119 hppa*64*|ia64*)
13120 ;;
13121 *)
13122 export_dynamic_flag_spec_CXX='${wl}-E'
13123 ;;
13124 esac
13125 fi
13126 case $host_cpu in
13127 hppa*64*|ia64*)
13128 hardcode_direct_CXX=no
13129 hardcode_shlibpath_var_CXX=no
13130 ;;
13131 *)
13132 hardcode_direct_CXX=yes
13133 hardcode_direct_absolute_CXX=yes
13134 hardcode_minus_L_CXX=yes # Not in the search PATH,
13135 # but as the default
13136 # location of the library.
13137 ;;
13138 esac
13139
13140 case $cc_basename in
13141 CC*)
13142 # FIXME: insert proper C++ library support
13143 ld_shlibs_CXX=no
13144 ;;
13145 aCC*)
13146 case $host_cpu in
13147 hppa*64*)
13148 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13149 ;;
13150 ia64*)
13151 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152 ;;
13153 *)
13154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13155 ;;
13156 esac
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13160 #
13161 # There doesn't appear to be a way to prevent this compiler from
13162 # explicitly linking system object files so we need to strip them
13163 # from the output so that they don't get included in the library
13164 # dependencies.
13165 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"'
13166 ;;
13167 *)
13168 if test "$GXX" = yes; then
13169 if test $with_gnu_ld = no; then
13170 case $host_cpu in
13171 hppa*64*)
13172 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13173 ;;
13174 ia64*)
13175 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176 ;;
13177 *)
13178 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'
13179 ;;
13180 esac
13181 fi
13182 else
13183 # FIXME: insert proper C++ library support
13184 ld_shlibs_CXX=no
13185 fi
13186 ;;
13187 esac
13188 ;;
13189
13190 interix[3-9]*)
13191 hardcode_direct_CXX=no
13192 hardcode_shlibpath_var_CXX=no
13193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13194 export_dynamic_flag_spec_CXX='${wl}-E'
13195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13196 # Instead, shared libraries are loaded at an image base (0x10000000 by
13197 # default) and relocated if they conflict, which is a slow very memory
13198 # consuming and fragmenting process. To avoid this, we pick a random,
13199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13201 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'
13202 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'
13203 ;;
13204 irix5* | irix6*)
13205 case $cc_basename in
13206 CC*)
13207 # SGI C++
13208 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'
13209
13210 # Archives containing C++ object files must be created using
13211 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13212 # necessary to make sure instantiated templates are included
13213 # in the archive.
13214 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13215 ;;
13216 *)
13217 if test "$GXX" = yes; then
13218 if test "$with_gnu_ld" = no; then
13219 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'
13220 else
13221 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'
13222 fi
13223 fi
13224 link_all_deplibs_CXX=yes
13225 ;;
13226 esac
13227 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13228 hardcode_libdir_separator_CXX=:
13229 inherit_rpath_CXX=yes
13230 ;;
13231
13232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13233 case $cc_basename in
13234 KCC*)
13235 # Kuck and Associates, Inc. (KAI) C++ Compiler
13236
13237 # KCC will only create a shared library if the output file
13238 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239 # to its proper name (with version) after linking.
13240 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'
13241 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'
13242 # Commands to make compiler produce verbose output that lists
13243 # what "hidden" libraries, object files and flags are used when
13244 # linking a shared library.
13245 #
13246 # There doesn't appear to be a way to prevent this compiler from
13247 # explicitly linking system object files so we need to strip them
13248 # from the output so that they don't get included in the library
13249 # dependencies.
13250 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"'
13251
13252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13254
13255 # Archives containing C++ object files must be created using
13256 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13257 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13258 ;;
13259 icpc* | ecpc* )
13260 # Intel C++
13261 with_gnu_ld=yes
13262 # version 8.0 and above of icpc choke on multiply defined symbols
13263 # if we add $predep_objects and $postdep_objects, however 7.1 and
13264 # earlier do not add the objects themselves.
13265 case `$CC -V 2>&1` in
13266 *"Version 7."*)
13267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 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'
13269 ;;
13270 *) # Version 8.0 or newer
13271 tmp_idyn=
13272 case $host_cpu in
13273 ia64*) tmp_idyn=' -i_dynamic';;
13274 esac
13275 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 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'
13277 ;;
13278 esac
13279 archive_cmds_need_lc_CXX=no
13280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13282 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13283 ;;
13284 pgCC* | pgcpp*)
13285 # Portland Group C++ compiler
13286 case `$CC -V` in
13287 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13288 prelink_cmds_CXX='tpldir=Template.dir~
13289 rm -rf $tpldir~
13290 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13291 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13292 old_archive_cmds_CXX='tpldir=Template.dir~
13293 rm -rf $tpldir~
13294 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13295 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13296 $RANLIB $oldlib'
13297 archive_cmds_CXX='tpldir=Template.dir~
13298 rm -rf $tpldir~
13299 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13300 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13301 archive_expsym_cmds_CXX='tpldir=Template.dir~
13302 rm -rf $tpldir~
13303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13304 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13305 ;;
13306 *) # Version 6 and above use weak symbols
13307 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13308 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'
13309 ;;
13310 esac
13311
13312 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13313 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13314 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'
13315 ;;
13316 cxx*)
13317 # Compaq C++
13318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319 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'
13320
13321 runpath_var=LD_RUN_PATH
13322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323 hardcode_libdir_separator_CXX=:
13324
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13328 #
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13332 # dependencies.
13333 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'
13334 ;;
13335 xl* | mpixl* | bgxl*)
13336 # IBM XL 8.0 on PPC, with GNU ld
13337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13339 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 if test "x$supports_anon_versioning" = xyes; then
13341 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13343 echo "local: *; };" >> $output_objdir/$libname.ver~
13344 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13345 fi
13346 ;;
13347 *)
13348 case `$CC -V 2>&1 | sed 5q` in
13349 *Sun\ C*)
13350 # Sun C++ 5.9
13351 no_undefined_flag_CXX=' -zdefs'
13352 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353 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'
13354 hardcode_libdir_flag_spec_CXX='-R$libdir'
13355 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'
13356 compiler_needs_object_CXX=yes
13357
13358 # Not sure whether something based on
13359 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13360 # would be better.
13361 output_verbose_link_cmd='func_echo_all'
13362
13363 # Archives containing C++ object files must be created using
13364 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13365 # necessary to make sure instantiated templates are included
13366 # in the archive.
13367 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13368 ;;
13369 esac
13370 ;;
13371 esac
13372 ;;
13373
13374 lynxos*)
13375 # FIXME: insert proper C++ library support
13376 ld_shlibs_CXX=no
13377 ;;
13378
13379 m88k*)
13380 # FIXME: insert proper C++ library support
13381 ld_shlibs_CXX=no
13382 ;;
13383
13384 mvs*)
13385 case $cc_basename in
13386 cxx*)
13387 # FIXME: insert proper C++ library support
13388 ld_shlibs_CXX=no
13389 ;;
13390 *)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394 esac
13395 ;;
13396
13397 netbsd*)
13398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13399 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13400 wlarc=
13401 hardcode_libdir_flag_spec_CXX='-R$libdir'
13402 hardcode_direct_CXX=yes
13403 hardcode_shlibpath_var_CXX=no
13404 fi
13405 # Workaround some broken pre-1.5 toolchains
13406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13407 ;;
13408
13409 *nto* | *qnx*)
13410 ld_shlibs_CXX=yes
13411 ;;
13412
13413 openbsd2*)
13414 # C++ shared libraries are fairly broken
13415 ld_shlibs_CXX=no
13416 ;;
13417
13418 openbsd*)
13419 if test -f /usr/libexec/ld.so; then
13420 hardcode_direct_CXX=yes
13421 hardcode_shlibpath_var_CXX=no
13422 hardcode_direct_absolute_CXX=yes
13423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13427 export_dynamic_flag_spec_CXX='${wl}-E'
13428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13429 fi
13430 output_verbose_link_cmd=func_echo_all
13431 else
13432 ld_shlibs_CXX=no
13433 fi
13434 ;;
13435
13436 osf3* | osf4* | osf5*)
13437 case $cc_basename in
13438 KCC*)
13439 # Kuck and Associates, Inc. (KAI) C++ Compiler
13440
13441 # KCC will only create a shared library if the output file
13442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13443 # to its proper name (with version) after linking.
13444 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'
13445
13446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447 hardcode_libdir_separator_CXX=:
13448
13449 # Archives containing C++ object files must be created using
13450 # the KAI C++ compiler.
13451 case $host in
13452 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13453 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13454 esac
13455 ;;
13456 RCC*)
13457 # Rational C++ 2.4.1
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 ;;
13461 cxx*)
13462 case $host in
13463 osf3*)
13464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13467 ;;
13468 *)
13469 allow_undefined_flag_CXX=' -expect_unresolved \*'
13470 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'
13471 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13472 echo "-hidden">> $lib.exp~
13473 $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~
13474 $RM $lib.exp'
13475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13476 ;;
13477 esac
13478
13479 hardcode_libdir_separator_CXX=:
13480
13481 # Commands to make compiler produce verbose output that lists
13482 # what "hidden" libraries, object files and flags are used when
13483 # linking a shared library.
13484 #
13485 # There doesn't appear to be a way to prevent this compiler from
13486 # explicitly linking system object files so we need to strip them
13487 # from the output so that they don't get included in the library
13488 # dependencies.
13489 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"'
13490 ;;
13491 *)
13492 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13494 case $host in
13495 osf3*)
13496 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'
13497 ;;
13498 *)
13499 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'
13500 ;;
13501 esac
13502
13503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13504 hardcode_libdir_separator_CXX=:
13505
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13510
13511 else
13512 # FIXME: insert proper C++ library support
13513 ld_shlibs_CXX=no
13514 fi
13515 ;;
13516 esac
13517 ;;
13518
13519 psos*)
13520 # FIXME: insert proper C++ library support
13521 ld_shlibs_CXX=no
13522 ;;
13523
13524 sunos4*)
13525 case $cc_basename in
13526 CC*)
13527 # Sun C++ 4.x
13528 # FIXME: insert proper C++ library support
13529 ld_shlibs_CXX=no
13530 ;;
13531 lcc*)
13532 # Lucid
13533 # FIXME: insert proper C++ library support
13534 ld_shlibs_CXX=no
13535 ;;
13536 *)
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13539 ;;
13540 esac
13541 ;;
13542
13543 solaris*)
13544 case $cc_basename in
13545 CC*)
13546 # Sun C++ 4.2, 5.x and Centerline C++
13547 archive_cmds_need_lc_CXX=yes
13548 no_undefined_flag_CXX=' -zdefs'
13549 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13550 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551 $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'
13552
13553 hardcode_libdir_flag_spec_CXX='-R$libdir'
13554 hardcode_shlibpath_var_CXX=no
13555 case $host_os in
13556 solaris2.[0-5] | solaris2.[0-5].*) ;;
13557 *)
13558 # The compiler driver will combine and reorder linker options,
13559 # but understands `-z linker_flag'.
13560 # Supported since Solaris 2.6 (maybe 2.5.1?)
13561 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13562 ;;
13563 esac
13564 link_all_deplibs_CXX=yes
13565
13566 output_verbose_link_cmd='func_echo_all'
13567
13568 # Archives containing C++ object files must be created using
13569 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13570 # necessary to make sure instantiated templates are included
13571 # in the archive.
13572 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13573 ;;
13574 gcx*)
13575 # Green Hills C++ Compiler
13576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13577
13578 # The C++ compiler must be used to create the archive.
13579 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13580 ;;
13581 *)
13582 # GNU C++ compiler with Solaris linker
13583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13584 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13585 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13586 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13587 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13588 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13589
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13594 else
13595 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13596 # platform.
13597 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13598 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13599 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13600
13601 # Commands to make compiler produce verbose output that lists
13602 # what "hidden" libraries, object files and flags are used when
13603 # linking a shared library.
13604 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13605 fi
13606
13607 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13608 case $host_os in
13609 solaris2.[0-5] | solaris2.[0-5].*) ;;
13610 *)
13611 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13612 ;;
13613 esac
13614 fi
13615 ;;
13616 esac
13617 ;;
13618
13619 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13620 no_undefined_flag_CXX='${wl}-z,text'
13621 archive_cmds_need_lc_CXX=no
13622 hardcode_shlibpath_var_CXX=no
13623 runpath_var='LD_RUN_PATH'
13624
13625 case $cc_basename in
13626 CC*)
13627 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13629 ;;
13630 *)
13631 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13632 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633 ;;
13634 esac
13635 ;;
13636
13637 sysv5* | sco3.2v5* | sco5v6*)
13638 # Note: We can NOT use -z defs as we might desire, because we do not
13639 # link with -lc, and that would cause any symbols used from libc to
13640 # always be unresolved, which means just about no library would
13641 # ever link correctly. If we're not using GNU ld we use -z text
13642 # though, which does catch some bad symbols but isn't as heavy-handed
13643 # as -z defs.
13644 no_undefined_flag_CXX='${wl}-z,text'
13645 allow_undefined_flag_CXX='${wl}-z,nodefs'
13646 archive_cmds_need_lc_CXX=no
13647 hardcode_shlibpath_var_CXX=no
13648 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13649 hardcode_libdir_separator_CXX=':'
13650 link_all_deplibs_CXX=yes
13651 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13652 runpath_var='LD_RUN_PATH'
13653
13654 case $cc_basename in
13655 CC*)
13656 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13659 '"$old_archive_cmds_CXX"
13660 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13661 '"$reload_cmds_CXX"
13662 ;;
13663 *)
13664 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13666 ;;
13667 esac
13668 ;;
13669
13670 tandem*)
13671 case $cc_basename in
13672 NCC*)
13673 # NonStop-UX NCC 3.20
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
13677 *)
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13680 ;;
13681 esac
13682 ;;
13683
13684 vxworks*)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688
13689 *)
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13692 ;;
13693 esac
13694
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13696 $as_echo "$ld_shlibs_CXX" >&6; }
13697 test "$ld_shlibs_CXX" = no && can_build_shared=no
13698
13699 GCC_CXX="$GXX"
13700 LD_CXX="$LD"
13701
13702 ## CAVEAT EMPTOR:
13703 ## There is no encapsulation within the following macros, do not change
13704 ## the running order or otherwise move them around unless you know exactly
13705 ## what you are doing...
13706 # Dependencies to place before and after the object being linked:
13707 predep_objects_CXX=
13708 postdep_objects_CXX=
13709 predeps_CXX=
13710 postdeps_CXX=
13711 compiler_lib_search_path_CXX=
13712
13713 cat > conftest.$ac_ext <<_LT_EOF
13714 class Foo
13715 {
13716 public:
13717 Foo (void) { a = 0; }
13718 private:
13719 int a;
13720 };
13721 _LT_EOF
13722
13723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13724 (eval $ac_compile) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; }; then
13728 # Parse the compiler output and extract the necessary
13729 # objects, libraries and library flags.
13730
13731 # Sentinel used to keep track of whether or not we are before
13732 # the conftest object file.
13733 pre_test_object_deps_done=no
13734
13735 for p in `eval "$output_verbose_link_cmd"`; do
13736 case $p in
13737
13738 -L* | -R* | -l*)
13739 # Some compilers place space between "-{L,R}" and the path.
13740 # Remove the space.
13741 if test $p = "-L" ||
13742 test $p = "-R"; then
13743 prev=$p
13744 continue
13745 else
13746 prev=
13747 fi
13748
13749 if test "$pre_test_object_deps_done" = no; then
13750 case $p in
13751 -L* | -R*)
13752 # Internal compiler library paths should come after those
13753 # provided the user. The postdeps already come after the
13754 # user supplied libs so there is no need to process them.
13755 if test -z "$compiler_lib_search_path_CXX"; then
13756 compiler_lib_search_path_CXX="${prev}${p}"
13757 else
13758 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13759 fi
13760 ;;
13761 # The "-l" case would never come before the object being
13762 # linked, so don't bother handling this case.
13763 esac
13764 else
13765 if test -z "$postdeps_CXX"; then
13766 postdeps_CXX="${prev}${p}"
13767 else
13768 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13769 fi
13770 fi
13771 ;;
13772
13773 *.$objext)
13774 # This assumes that the test object file only shows up
13775 # once in the compiler output.
13776 if test "$p" = "conftest.$objext"; then
13777 pre_test_object_deps_done=yes
13778 continue
13779 fi
13780
13781 if test "$pre_test_object_deps_done" = no; then
13782 if test -z "$predep_objects_CXX"; then
13783 predep_objects_CXX="$p"
13784 else
13785 predep_objects_CXX="$predep_objects_CXX $p"
13786 fi
13787 else
13788 if test -z "$postdep_objects_CXX"; then
13789 postdep_objects_CXX="$p"
13790 else
13791 postdep_objects_CXX="$postdep_objects_CXX $p"
13792 fi
13793 fi
13794 ;;
13795
13796 *) ;; # Ignore the rest.
13797
13798 esac
13799 done
13800
13801 # Clean up.
13802 rm -f a.out a.exe
13803 else
13804 echo "libtool.m4: error: problem compiling CXX test program"
13805 fi
13806
13807 $RM -f confest.$objext
13808
13809 # PORTME: override above test on systems where it is broken
13810 case $host_os in
13811 interix[3-9]*)
13812 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13813 # hack all around it, let's just trust "g++" to DTRT.
13814 predep_objects_CXX=
13815 postdep_objects_CXX=
13816 postdeps_CXX=
13817 ;;
13818
13819 linux*)
13820 case `$CC -V 2>&1 | sed 5q` in
13821 *Sun\ C*)
13822 # Sun C++ 5.9
13823
13824 # The more standards-conforming stlport4 library is
13825 # incompatible with the Cstd library. Avoid specifying
13826 # it if it's in CXXFLAGS. Ignore libCrun as
13827 # -library=stlport4 depends on it.
13828 case " $CXX $CXXFLAGS " in
13829 *" -library=stlport4 "*)
13830 solaris_use_stlport4=yes
13831 ;;
13832 esac
13833
13834 if test "$solaris_use_stlport4" != yes; then
13835 postdeps_CXX='-library=Cstd -library=Crun'
13836 fi
13837 ;;
13838 esac
13839 ;;
13840
13841 solaris*)
13842 case $cc_basename in
13843 CC*)
13844 # The more standards-conforming stlport4 library is
13845 # incompatible with the Cstd library. Avoid specifying
13846 # it if it's in CXXFLAGS. Ignore libCrun as
13847 # -library=stlport4 depends on it.
13848 case " $CXX $CXXFLAGS " in
13849 *" -library=stlport4 "*)
13850 solaris_use_stlport4=yes
13851 ;;
13852 esac
13853
13854 # Adding this requires a known-good setup of shared libraries for
13855 # Sun compiler versions before 5.6, else PIC objects from an old
13856 # archive will be linked into the output, leading to subtle bugs.
13857 if test "$solaris_use_stlport4" != yes; then
13858 postdeps_CXX='-library=Cstd -library=Crun'
13859 fi
13860 ;;
13861 esac
13862 ;;
13863 esac
13864
13865
13866 case " $postdeps_CXX " in
13867 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13868 esac
13869 compiler_lib_search_dirs_CXX=
13870 if test -n "${compiler_lib_search_path_CXX}"; then
13871 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13872 fi
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904 lt_prog_compiler_wl_CXX=
13905 lt_prog_compiler_pic_CXX=
13906 lt_prog_compiler_static_CXX=
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13910
13911 # C++ specific cases for pic, static, wl, etc.
13912 if test "$GXX" = yes; then
13913 lt_prog_compiler_wl_CXX='-Wl,'
13914 lt_prog_compiler_static_CXX='-static'
13915
13916 case $host_os in
13917 aix*)
13918 # All AIX code is PIC.
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_CXX='-Bstatic'
13922 fi
13923 lt_prog_compiler_pic_CXX='-fPIC'
13924 ;;
13925
13926 amigaos*)
13927 case $host_cpu in
13928 powerpc)
13929 # see comment about AmigaOS4 .so support
13930 lt_prog_compiler_pic_CXX='-fPIC'
13931 ;;
13932 m68k)
13933 # FIXME: we need at least 68020 code to build shared libraries, but
13934 # adding the `-m68020' flag to GCC prevents building anything better,
13935 # like `-m68040'.
13936 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13937 ;;
13938 esac
13939 ;;
13940
13941 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13942 # PIC is the default for these OSes.
13943 ;;
13944 mingw* | cygwin* | os2* | pw32* | cegcc*)
13945 # This hack is so that the source file can tell whether it is being
13946 # built for inclusion in a dll (and should export symbols for example).
13947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13948 # (--disable-auto-import) libraries
13949 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13950 ;;
13951 darwin* | rhapsody*)
13952 # PIC is the default on this platform
13953 # Common symbols not allowed in MH_DYLIB files
13954 lt_prog_compiler_pic_CXX='-fno-common'
13955 ;;
13956 *djgpp*)
13957 # DJGPP does not support shared libraries at all
13958 lt_prog_compiler_pic_CXX=
13959 ;;
13960 haiku*)
13961 # PIC is the default for Haiku.
13962 # The "-static" flag exists, but is broken.
13963 lt_prog_compiler_static_CXX=
13964 ;;
13965 interix[3-9]*)
13966 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13967 # Instead, we relocate shared libraries at runtime.
13968 ;;
13969 sysv4*MP*)
13970 if test -d /usr/nec; then
13971 lt_prog_compiler_pic_CXX=-Kconform_pic
13972 fi
13973 ;;
13974 hpux*)
13975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13977 # sets the default TLS model and affects inlining.
13978 case $host_cpu in
13979 hppa*64*)
13980 ;;
13981 *)
13982 lt_prog_compiler_pic_CXX='-fPIC'
13983 ;;
13984 esac
13985 ;;
13986 *qnx* | *nto*)
13987 # QNX uses GNU C++, but need to define -shared option too, otherwise
13988 # it will coredump.
13989 lt_prog_compiler_pic_CXX='-fPIC -shared'
13990 ;;
13991 *)
13992 lt_prog_compiler_pic_CXX='-fPIC'
13993 ;;
13994 esac
13995 else
13996 case $host_os in
13997 aix[4-9]*)
13998 # All AIX code is PIC.
13999 if test "$host_cpu" = ia64; then
14000 # AIX 5 now supports IA64 processor
14001 lt_prog_compiler_static_CXX='-Bstatic'
14002 else
14003 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14004 fi
14005 ;;
14006 chorus*)
14007 case $cc_basename in
14008 cxch68*)
14009 # Green Hills C++ Compiler
14010 # _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"
14011 ;;
14012 esac
14013 ;;
14014 dgux*)
14015 case $cc_basename in
14016 ec++*)
14017 lt_prog_compiler_pic_CXX='-KPIC'
14018 ;;
14019 ghcx*)
14020 # Green Hills C++ Compiler
14021 lt_prog_compiler_pic_CXX='-pic'
14022 ;;
14023 *)
14024 ;;
14025 esac
14026 ;;
14027 freebsd* | dragonfly*)
14028 # FreeBSD uses GNU C++
14029 ;;
14030 hpux9* | hpux10* | hpux11*)
14031 case $cc_basename in
14032 CC*)
14033 lt_prog_compiler_wl_CXX='-Wl,'
14034 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14035 if test "$host_cpu" != ia64; then
14036 lt_prog_compiler_pic_CXX='+Z'
14037 fi
14038 ;;
14039 aCC*)
14040 lt_prog_compiler_wl_CXX='-Wl,'
14041 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14042 case $host_cpu in
14043 hppa*64*|ia64*)
14044 # +Z the default
14045 ;;
14046 *)
14047 lt_prog_compiler_pic_CXX='+Z'
14048 ;;
14049 esac
14050 ;;
14051 *)
14052 ;;
14053 esac
14054 ;;
14055 interix*)
14056 # This is c89, which is MS Visual C++ (no shared libs)
14057 # Anyone wants to do a port?
14058 ;;
14059 irix5* | irix6* | nonstopux*)
14060 case $cc_basename in
14061 CC*)
14062 lt_prog_compiler_wl_CXX='-Wl,'
14063 lt_prog_compiler_static_CXX='-non_shared'
14064 # CC pic flag -KPIC is the default.
14065 ;;
14066 *)
14067 ;;
14068 esac
14069 ;;
14070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14071 case $cc_basename in
14072 KCC*)
14073 # KAI C++ Compiler
14074 lt_prog_compiler_wl_CXX='--backend -Wl,'
14075 lt_prog_compiler_pic_CXX='-fPIC'
14076 ;;
14077 ecpc* )
14078 # old Intel C++ for x86_64 which still supported -KPIC.
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_pic_CXX='-KPIC'
14081 lt_prog_compiler_static_CXX='-static'
14082 ;;
14083 icpc* )
14084 # Intel C++, used to be incompatible with GCC.
14085 # ICC 10 doesn't accept -KPIC any more.
14086 lt_prog_compiler_wl_CXX='-Wl,'
14087 lt_prog_compiler_pic_CXX='-fPIC'
14088 lt_prog_compiler_static_CXX='-static'
14089 ;;
14090 pgCC* | pgcpp*)
14091 # Portland Group C++ compiler
14092 lt_prog_compiler_wl_CXX='-Wl,'
14093 lt_prog_compiler_pic_CXX='-fpic'
14094 lt_prog_compiler_static_CXX='-Bstatic'
14095 ;;
14096 cxx*)
14097 # Compaq C++
14098 # Make sure the PIC flag is empty. It appears that all Alpha
14099 # Linux and Compaq Tru64 Unix objects are PIC.
14100 lt_prog_compiler_pic_CXX=
14101 lt_prog_compiler_static_CXX='-non_shared'
14102 ;;
14103 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14104 # IBM XL 8.0, 9.0 on PPC and BlueGene
14105 lt_prog_compiler_wl_CXX='-Wl,'
14106 lt_prog_compiler_pic_CXX='-qpic'
14107 lt_prog_compiler_static_CXX='-qstaticlink'
14108 ;;
14109 *)
14110 case `$CC -V 2>&1 | sed 5q` in
14111 *Sun\ C*)
14112 # Sun C++ 5.9
14113 lt_prog_compiler_pic_CXX='-KPIC'
14114 lt_prog_compiler_static_CXX='-Bstatic'
14115 lt_prog_compiler_wl_CXX='-Qoption ld '
14116 ;;
14117 esac
14118 ;;
14119 esac
14120 ;;
14121 lynxos*)
14122 ;;
14123 m88k*)
14124 ;;
14125 mvs*)
14126 case $cc_basename in
14127 cxx*)
14128 lt_prog_compiler_pic_CXX='-W c,exportall'
14129 ;;
14130 *)
14131 ;;
14132 esac
14133 ;;
14134 netbsd*)
14135 ;;
14136 *qnx* | *nto*)
14137 # QNX uses GNU C++, but need to define -shared option too, otherwise
14138 # it will coredump.
14139 lt_prog_compiler_pic_CXX='-fPIC -shared'
14140 ;;
14141 osf3* | osf4* | osf5*)
14142 case $cc_basename in
14143 KCC*)
14144 lt_prog_compiler_wl_CXX='--backend -Wl,'
14145 ;;
14146 RCC*)
14147 # Rational C++ 2.4.1
14148 lt_prog_compiler_pic_CXX='-pic'
14149 ;;
14150 cxx*)
14151 # Digital/Compaq C++
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 # Make sure the PIC flag is empty. It appears that all Alpha
14154 # Linux and Compaq Tru64 Unix objects are PIC.
14155 lt_prog_compiler_pic_CXX=
14156 lt_prog_compiler_static_CXX='-non_shared'
14157 ;;
14158 *)
14159 ;;
14160 esac
14161 ;;
14162 psos*)
14163 ;;
14164 solaris*)
14165 case $cc_basename in
14166 CC*)
14167 # Sun C++ 4.2, 5.x and Centerline C++
14168 lt_prog_compiler_pic_CXX='-KPIC'
14169 lt_prog_compiler_static_CXX='-Bstatic'
14170 lt_prog_compiler_wl_CXX='-Qoption ld '
14171 ;;
14172 gcx*)
14173 # Green Hills C++ Compiler
14174 lt_prog_compiler_pic_CXX='-PIC'
14175 ;;
14176 *)
14177 ;;
14178 esac
14179 ;;
14180 sunos4*)
14181 case $cc_basename in
14182 CC*)
14183 # Sun C++ 4.x
14184 lt_prog_compiler_pic_CXX='-pic'
14185 lt_prog_compiler_static_CXX='-Bstatic'
14186 ;;
14187 lcc*)
14188 # Lucid
14189 lt_prog_compiler_pic_CXX='-pic'
14190 ;;
14191 *)
14192 ;;
14193 esac
14194 ;;
14195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14196 case $cc_basename in
14197 CC*)
14198 lt_prog_compiler_wl_CXX='-Wl,'
14199 lt_prog_compiler_pic_CXX='-KPIC'
14200 lt_prog_compiler_static_CXX='-Bstatic'
14201 ;;
14202 esac
14203 ;;
14204 tandem*)
14205 case $cc_basename in
14206 NCC*)
14207 # NonStop-UX NCC 3.20
14208 lt_prog_compiler_pic_CXX='-KPIC'
14209 ;;
14210 *)
14211 ;;
14212 esac
14213 ;;
14214 vxworks*)
14215 ;;
14216 *)
14217 lt_prog_compiler_can_build_shared_CXX=no
14218 ;;
14219 esac
14220 fi
14221
14222 case $host_os in
14223 # For platforms which do not support PIC, -DPIC is meaningless:
14224 *djgpp*)
14225 lt_prog_compiler_pic_CXX=
14226 ;;
14227 *)
14228 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14229 ;;
14230 esac
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14232 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14233
14234
14235
14236 #
14237 # Check to make sure the PIC flag actually works.
14238 #
14239 if test -n "$lt_prog_compiler_pic_CXX"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14242 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 lt_cv_prog_compiler_pic_works_CXX=no
14246 ac_outfile=conftest.$ac_objext
14247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14248 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14249 # Insert the option either (1) after the last *FLAGS variable, or
14250 # (2) before a word containing "conftest.", or (3) at the end.
14251 # Note that $ac_compile itself does not contain backslashes and begins
14252 # with a dollar sign (not a hyphen), so the echo should work correctly.
14253 # The option is referenced via a variable to avoid confusing sed.
14254 lt_compile=`echo "$ac_compile" | $SED \
14255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14257 -e 's:$: $lt_compiler_flag:'`
14258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14259 (eval "$lt_compile" 2>conftest.err)
14260 ac_status=$?
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 if (exit $ac_status) && test -s "$ac_outfile"; then
14264 # The compiler can only warn and ignore the option if not recognized
14265 # So say no if there are warnings other than the usual output.
14266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14269 lt_cv_prog_compiler_pic_works_CXX=yes
14270 fi
14271 fi
14272 $RM conftest*
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14276 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14277
14278 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14279 case $lt_prog_compiler_pic_CXX in
14280 "" | " "*) ;;
14281 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14282 esac
14283 else
14284 lt_prog_compiler_pic_CXX=
14285 lt_prog_compiler_can_build_shared_CXX=no
14286 fi
14287
14288 fi
14289
14290
14291
14292 #
14293 # Check to make sure the static flag actually works.
14294 #
14295 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14297 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14298 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 lt_cv_prog_compiler_static_works_CXX=no
14302 save_LDFLAGS="$LDFLAGS"
14303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14306 # The linker can only warn and ignore the option if not recognized
14307 # So say no if there are warnings
14308 if test -s conftest.err; then
14309 # Append any errors to the config.log.
14310 cat conftest.err 1>&5
14311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14313 if diff conftest.exp conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_static_works_CXX=yes
14315 fi
14316 else
14317 lt_cv_prog_compiler_static_works_CXX=yes
14318 fi
14319 fi
14320 $RM -r conftest*
14321 LDFLAGS="$save_LDFLAGS"
14322
14323 fi
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14325 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14326
14327 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14328 :
14329 else
14330 lt_prog_compiler_static_CXX=
14331 fi
14332
14333
14334
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14338 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 lt_cv_prog_compiler_c_o_CXX=no
14342 $RM -r conftest 2>/dev/null
14343 mkdir conftest
14344 cd conftest
14345 mkdir out
14346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14347
14348 lt_compiler_flag="-o out/conftest2.$ac_objext"
14349 # Insert the option either (1) after the last *FLAGS variable, or
14350 # (2) before a word containing "conftest.", or (3) at the end.
14351 # Note that $ac_compile itself does not contain backslashes and begins
14352 # with a dollar sign (not a hyphen), so the echo should work correctly.
14353 lt_compile=`echo "$ac_compile" | $SED \
14354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14356 -e 's:$: $lt_compiler_flag:'`
14357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14358 (eval "$lt_compile" 2>out/conftest.err)
14359 ac_status=$?
14360 cat out/conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14363 then
14364 # The compiler can only warn and ignore the option if not recognized
14365 # So say no if there are warnings
14366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14369 lt_cv_prog_compiler_c_o_CXX=yes
14370 fi
14371 fi
14372 chmod u+w . 2>&5
14373 $RM conftest*
14374 # SGI C++ compiler will create directory out/ii_files/ for
14375 # template instantiation
14376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14377 $RM out/* && rmdir out
14378 cd ..
14379 $RM -r conftest
14380 $RM conftest*
14381
14382 fi
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14384 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14385
14386
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14390 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_prog_compiler_c_o_CXX=no
14394 $RM -r conftest 2>/dev/null
14395 mkdir conftest
14396 cd conftest
14397 mkdir out
14398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14399
14400 lt_compiler_flag="-o out/conftest2.$ac_objext"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 lt_compile=`echo "$ac_compile" | $SED \
14406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408 -e 's:$: $lt_compiler_flag:'`
14409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14410 (eval "$lt_compile" 2>out/conftest.err)
14411 ac_status=$?
14412 cat out/conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14415 then
14416 # The compiler can only warn and ignore the option if not recognized
14417 # So say no if there are warnings
14418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14421 lt_cv_prog_compiler_c_o_CXX=yes
14422 fi
14423 fi
14424 chmod u+w . 2>&5
14425 $RM conftest*
14426 # SGI C++ compiler will create directory out/ii_files/ for
14427 # template instantiation
14428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14429 $RM out/* && rmdir out
14430 cd ..
14431 $RM -r conftest
14432 $RM conftest*
14433
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14436 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14437
14438
14439
14440
14441 hard_links="nottested"
14442 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14443 # do not overwrite the value of need_locks provided by the user
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14445 $as_echo_n "checking if we can lock with hard links... " >&6; }
14446 hard_links=yes
14447 $RM conftest*
14448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14449 touch conftest.a
14450 ln conftest.a conftest.b 2>&5 || hard_links=no
14451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14453 $as_echo "$hard_links" >&6; }
14454 if test "$hard_links" = no; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14456 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14457 need_locks=warn
14458 fi
14459 else
14460 need_locks=no
14461 fi
14462
14463
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14466 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14467
14468 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14469 case $host_os in
14470 aix[4-9]*)
14471 # If we're using GNU nm, then we don't want the "-C" option.
14472 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14473 # Also, AIX nm treats weak defined symbols like other global defined
14474 # symbols, whereas GNU nm marks them as "W".
14475 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14476 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'
14477 else
14478 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14479 fi
14480 ;;
14481 pw32*)
14482 export_symbols_cmds_CXX="$ltdll_cmds"
14483 ;;
14484 cygwin* | mingw* | cegcc*)
14485 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'
14486 ;;
14487 *)
14488 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14489 ;;
14490 esac
14491 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14494 $as_echo "$ld_shlibs_CXX" >&6; }
14495 test "$ld_shlibs_CXX" = no && can_build_shared=no
14496
14497 with_gnu_ld_CXX=$with_gnu_ld
14498
14499
14500
14501
14502
14503
14504 #
14505 # Do we need to explicitly link libc?
14506 #
14507 case "x$archive_cmds_need_lc_CXX" in
14508 x|xyes)
14509 # Assume -lc should be added
14510 archive_cmds_need_lc_CXX=yes
14511
14512 if test "$enable_shared" = yes && test "$GCC" = yes; then
14513 case $archive_cmds_CXX in
14514 *'~'*)
14515 # FIXME: we may have to deal with multi-command sequences.
14516 ;;
14517 '$CC '*)
14518 # Test whether the compiler implicitly links with -lc since on some
14519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14520 # to ld, don't add -lc before -lgcc.
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14523 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 $RM conftest*
14527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528
14529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530 (eval $ac_compile) 2>&5
14531 ac_status=$?
14532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533 test $ac_status = 0; } 2>conftest.err; then
14534 soname=conftest
14535 lib=conftest
14536 libobjs=conftest.$ac_objext
14537 deplibs=
14538 wl=$lt_prog_compiler_wl_CXX
14539 pic_flag=$lt_prog_compiler_pic_CXX
14540 compiler_flags=-v
14541 linker_flags=-v
14542 verstring=
14543 output_objdir=.
14544 libname=conftest
14545 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14546 allow_undefined_flag_CXX=
14547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14548 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14549 ac_status=$?
14550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551 test $ac_status = 0; }
14552 then
14553 lt_cv_archive_cmds_need_lc_CXX=no
14554 else
14555 lt_cv_archive_cmds_need_lc_CXX=yes
14556 fi
14557 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14558 else
14559 cat conftest.err 1>&5
14560 fi
14561 $RM conftest*
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14565 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14566 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14567 ;;
14568 esac
14569 fi
14570 ;;
14571 esac
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14637 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14638
14639 library_names_spec=
14640 libname_spec='lib$name'
14641 soname_spec=
14642 shrext_cmds=".so"
14643 postinstall_cmds=
14644 postuninstall_cmds=
14645 finish_cmds=
14646 finish_eval=
14647 shlibpath_var=
14648 shlibpath_overrides_runpath=unknown
14649 version_type=none
14650 dynamic_linker="$host_os ld.so"
14651 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14652 need_lib_prefix=unknown
14653 hardcode_into_libs=no
14654
14655 # when you set need_version to no, make sure it does not cause -set_version
14656 # flags to be left without arguments
14657 need_version=unknown
14658
14659 case $host_os in
14660 aix3*)
14661 version_type=linux
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14663 shlibpath_var=LIBPATH
14664
14665 # AIX 3 has no versioning support, so we append a major version to the name.
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 ;;
14668
14669 aix[4-9]*)
14670 version_type=linux
14671 need_lib_prefix=no
14672 need_version=no
14673 hardcode_into_libs=yes
14674 if test "$host_cpu" = ia64; then
14675 # AIX 5 supports IA64
14676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 else
14679 # With GCC up to 2.95.x, collect2 would create an import file
14680 # for dependence libraries. The import file would start with
14681 # the line `#! .'. This would cause the generated library to
14682 # depend on `.', always an invalid library. This was fixed in
14683 # development snapshots of GCC prior to 3.0.
14684 case $host_os in
14685 aix4 | aix4.[01] | aix4.[01].*)
14686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14687 echo ' yes '
14688 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14689 :
14690 else
14691 can_build_shared=no
14692 fi
14693 ;;
14694 esac
14695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14696 # soname into executable. Probably we can add versioning support to
14697 # collect2, so additional links can be useful in future.
14698 if test "$aix_use_runtimelinking" = yes; then
14699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14700 # instead of lib<name>.a to let people know that these are not
14701 # typical AIX shared libraries.
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 else
14704 # We preserve .a as extension for shared libraries through AIX4.2
14705 # and later when we are not doing run time linking.
14706 library_names_spec='${libname}${release}.a $libname.a'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 fi
14709 shlibpath_var=LIBPATH
14710 fi
14711 ;;
14712
14713 amigaos*)
14714 case $host_cpu in
14715 powerpc)
14716 # Since July 2007 AmigaOS4 officially supports .so libraries.
14717 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 ;;
14720 m68k)
14721 library_names_spec='$libname.ixlibrary $libname.a'
14722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14723 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'
14724 ;;
14725 esac
14726 ;;
14727
14728 beos*)
14729 library_names_spec='${libname}${shared_ext}'
14730 dynamic_linker="$host_os ld.so"
14731 shlibpath_var=LIBRARY_PATH
14732 ;;
14733
14734 bsdi[45]*)
14735 version_type=linux
14736 need_version=no
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14743 # the default ld.so.conf also contains /usr/contrib/lib and
14744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14745 # libtool to hard-code these into programs
14746 ;;
14747
14748 cygwin* | mingw* | pw32* | cegcc*)
14749 version_type=windows
14750 shrext_cmds=".dll"
14751 need_version=no
14752 need_lib_prefix=no
14753
14754 case $GCC,$host_os in
14755 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14756 library_names_spec='$libname.dll.a'
14757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14758 postinstall_cmds='base_file=`basename \${file}`~
14759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14760 dldir=$destdir/`dirname \$dlpath`~
14761 test -d \$dldir || mkdir -p \$dldir~
14762 $install_prog $dir/$dlname \$dldir/$dlname~
14763 chmod a+x \$dldir/$dlname~
14764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14766 fi'
14767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14768 dlpath=$dir/\$dldll~
14769 $RM \$dlpath'
14770 shlibpath_overrides_runpath=yes
14771
14772 case $host_os in
14773 cygwin*)
14774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14776
14777 ;;
14778 mingw* | cegcc*)
14779 # MinGW DLLs use traditional 'lib' prefix
14780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14781 ;;
14782 pw32*)
14783 # pw32 DLLs use 'pw' prefix rather than 'lib'
14784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785 ;;
14786 esac
14787 ;;
14788
14789 *)
14790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14791 ;;
14792 esac
14793 dynamic_linker='Win32 ld.exe'
14794 # FIXME: first we should search . and the directory the executable is in
14795 shlibpath_var=PATH
14796 ;;
14797
14798 darwin* | rhapsody*)
14799 dynamic_linker="$host_os dyld"
14800 version_type=darwin
14801 need_lib_prefix=no
14802 need_version=no
14803 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14804 soname_spec='${libname}${release}${major}$shared_ext'
14805 shlibpath_overrides_runpath=yes
14806 shlibpath_var=DYLD_LIBRARY_PATH
14807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14808
14809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14810 ;;
14811
14812 dgux*)
14813 version_type=linux
14814 need_lib_prefix=no
14815 need_version=no
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 ;;
14820
14821 freebsd* | dragonfly*)
14822 # DragonFly does not have aout. When/if they implement a new
14823 # versioning mechanism, adjust this.
14824 if test -x /usr/bin/objformat; then
14825 objformat=`/usr/bin/objformat`
14826 else
14827 case $host_os in
14828 freebsd[23].*) objformat=aout ;;
14829 *) objformat=elf ;;
14830 esac
14831 fi
14832 version_type=freebsd-$objformat
14833 case $version_type in
14834 freebsd-elf*)
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14836 need_version=no
14837 need_lib_prefix=no
14838 ;;
14839 freebsd-*)
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14841 need_version=yes
14842 ;;
14843 esac
14844 shlibpath_var=LD_LIBRARY_PATH
14845 case $host_os in
14846 freebsd2.*)
14847 shlibpath_overrides_runpath=yes
14848 ;;
14849 freebsd3.[01]* | freebsdelf3.[01]*)
14850 shlibpath_overrides_runpath=yes
14851 hardcode_into_libs=yes
14852 ;;
14853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14855 shlibpath_overrides_runpath=no
14856 hardcode_into_libs=yes
14857 ;;
14858 *) # from 4.6 on, and DragonFly
14859 shlibpath_overrides_runpath=yes
14860 hardcode_into_libs=yes
14861 ;;
14862 esac
14863 ;;
14864
14865 gnu*)
14866 version_type=linux
14867 need_lib_prefix=no
14868 need_version=no
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 hardcode_into_libs=yes
14873 ;;
14874
14875 haiku*)
14876 version_type=linux
14877 need_lib_prefix=no
14878 need_version=no
14879 dynamic_linker="$host_os runtime_loader"
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes
14884 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14885 hardcode_into_libs=yes
14886 ;;
14887
14888 hpux9* | hpux10* | hpux11*)
14889 # Give a soname corresponding to the major version so that dld.sl refuses to
14890 # link against other versions.
14891 version_type=sunos
14892 need_lib_prefix=no
14893 need_version=no
14894 case $host_cpu in
14895 ia64*)
14896 shrext_cmds='.so'
14897 hardcode_into_libs=yes
14898 dynamic_linker="$host_os dld.so"
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 if test "X$HPUX_IA64_MODE" = X32; then
14904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14905 else
14906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14907 fi
14908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14909 ;;
14910 hppa*64*)
14911 shrext_cmds='.sl'
14912 hardcode_into_libs=yes
14913 dynamic_linker="$host_os dld.sl"
14914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14920 ;;
14921 *)
14922 shrext_cmds='.sl'
14923 dynamic_linker="$host_os dld.sl"
14924 shlibpath_var=SHLIB_PATH
14925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 ;;
14929 esac
14930 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14931 postinstall_cmds='chmod 555 $lib'
14932 # or fails outright, so override atomically:
14933 install_override_mode=555
14934 ;;
14935
14936 interix[3-9]*)
14937 version_type=linux
14938 need_lib_prefix=no
14939 need_version=no
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=no
14945 hardcode_into_libs=yes
14946 ;;
14947
14948 irix5* | irix6* | nonstopux*)
14949 case $host_os in
14950 nonstopux*) version_type=nonstopux ;;
14951 *)
14952 if test "$lt_cv_prog_gnu_ld" = yes; then
14953 version_type=linux
14954 else
14955 version_type=irix
14956 fi ;;
14957 esac
14958 need_lib_prefix=no
14959 need_version=no
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14962 case $host_os in
14963 irix5* | nonstopux*)
14964 libsuff= shlibsuff=
14965 ;;
14966 *)
14967 case $LD in # libtool.m4 will add one of these switches to LD
14968 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14969 libsuff= shlibsuff= libmagic=32-bit;;
14970 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14971 libsuff=32 shlibsuff=N32 libmagic=N32;;
14972 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14973 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14974 *) libsuff= shlibsuff= libmagic=never-match;;
14975 esac
14976 ;;
14977 esac
14978 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14979 shlibpath_overrides_runpath=no
14980 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14981 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14982 hardcode_into_libs=yes
14983 ;;
14984
14985 # No shared lib support for Linux oldld, aout, or coff.
14986 linux*oldld* | linux*aout* | linux*coff*)
14987 dynamic_linker=no
14988 ;;
14989
14990 # This must be Linux ELF.
14991 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14992 version_type=linux
14993 need_lib_prefix=no
14994 need_version=no
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 shlibpath_overrides_runpath=no
15000
15001 # Some binutils ld are patched to set DT_RUNPATH
15002 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 lt_cv_shlibpath_overrides_runpath=no
15006 save_LDFLAGS=$LDFLAGS
15007 save_libdir=$libdir
15008 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15009 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012
15013 int
15014 main ()
15015 {
15016
15017 ;
15018 return 0;
15019 }
15020 _ACEOF
15021 if ac_fn_cxx_try_link "$LINENO"; then :
15022 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15023 lt_cv_shlibpath_overrides_runpath=yes
15024 fi
15025 fi
15026 rm -f core conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LDFLAGS=$save_LDFLAGS
15029 libdir=$save_libdir
15030
15031 fi
15032
15033 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15034
15035 # This implies no fast_install, which is unacceptable.
15036 # Some rework will be needed to allow for fast_install
15037 # before this can be enabled.
15038 hardcode_into_libs=yes
15039
15040 # Append ld.so.conf contents to the search path
15041 if test -f /etc/ld.so.conf; then
15042 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' ' '`
15043 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15044 fi
15045
15046 # We used to test for /lib/ld.so.1 and disable shared libraries on
15047 # powerpc, because MkLinux only supported shared libraries with the
15048 # GNU dynamic linker. Since this was broken with cross compilers,
15049 # most powerpc-linux boxes support dynamic linking these days and
15050 # people can always --disable-shared, the test was removed, and we
15051 # assume the GNU/Linux dynamic linker is in use.
15052 dynamic_linker='GNU/Linux ld.so'
15053 ;;
15054
15055 netbsd*)
15056 version_type=sunos
15057 need_lib_prefix=no
15058 need_version=no
15059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15062 dynamic_linker='NetBSD (a.out) ld.so'
15063 else
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 dynamic_linker='NetBSD ld.elf_so'
15067 fi
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes
15070 hardcode_into_libs=yes
15071 ;;
15072
15073 newsos6)
15074 version_type=linux
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=yes
15078 ;;
15079
15080 *nto* | *qnx*)
15081 version_type=qnx
15082 need_lib_prefix=no
15083 need_version=no
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=no
15088 hardcode_into_libs=yes
15089 dynamic_linker='ldqnx.so'
15090 ;;
15091
15092 openbsd*)
15093 version_type=sunos
15094 sys_lib_dlsearch_path_spec="/usr/lib"
15095 need_lib_prefix=no
15096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15097 case $host_os in
15098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15099 *) need_version=no ;;
15100 esac
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15105 case $host_os in
15106 openbsd2.[89] | openbsd2.[89].*)
15107 shlibpath_overrides_runpath=no
15108 ;;
15109 *)
15110 shlibpath_overrides_runpath=yes
15111 ;;
15112 esac
15113 else
15114 shlibpath_overrides_runpath=yes
15115 fi
15116 ;;
15117
15118 os2*)
15119 libname_spec='$name'
15120 shrext_cmds=".dll"
15121 need_lib_prefix=no
15122 library_names_spec='$libname${shared_ext} $libname.a'
15123 dynamic_linker='OS/2 ld.exe'
15124 shlibpath_var=LIBPATH
15125 ;;
15126
15127 osf3* | osf4* | osf5*)
15128 version_type=osf
15129 need_lib_prefix=no
15130 need_version=no
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15136 ;;
15137
15138 rdos*)
15139 dynamic_linker=no
15140 ;;
15141
15142 solaris*)
15143 version_type=linux
15144 need_lib_prefix=no
15145 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15150 hardcode_into_libs=yes
15151 # ldd complains unless libraries are executable
15152 postinstall_cmds='chmod +x $lib'
15153 ;;
15154
15155 sunos4*)
15156 version_type=sunos
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=yes
15161 if test "$with_gnu_ld" = yes; then
15162 need_lib_prefix=no
15163 fi
15164 need_version=yes
15165 ;;
15166
15167 sysv4 | sysv4.3*)
15168 version_type=linux
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 shlibpath_var=LD_LIBRARY_PATH
15172 case $host_vendor in
15173 sni)
15174 shlibpath_overrides_runpath=no
15175 need_lib_prefix=no
15176 runpath_var=LD_RUN_PATH
15177 ;;
15178 siemens)
15179 need_lib_prefix=no
15180 ;;
15181 motorola)
15182 need_lib_prefix=no
15183 need_version=no
15184 shlibpath_overrides_runpath=no
15185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15186 ;;
15187 esac
15188 ;;
15189
15190 sysv4*MP*)
15191 if test -d /usr/nec ;then
15192 version_type=linux
15193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15194 soname_spec='$libname${shared_ext}.$major'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 fi
15197 ;;
15198
15199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15200 version_type=freebsd-elf
15201 need_lib_prefix=no
15202 need_version=no
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15207 hardcode_into_libs=yes
15208 if test "$with_gnu_ld" = yes; then
15209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15210 else
15211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15212 case $host_os in
15213 sco3.2v5*)
15214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15215 ;;
15216 esac
15217 fi
15218 sys_lib_dlsearch_path_spec='/usr/lib'
15219 ;;
15220
15221 tpf*)
15222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=no
15229 hardcode_into_libs=yes
15230 ;;
15231
15232 uts4*)
15233 version_type=linux
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 ;;
15238
15239 *)
15240 dynamic_linker=no
15241 ;;
15242 esac
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15244 $as_echo "$dynamic_linker" >&6; }
15245 test "$dynamic_linker" = no && can_build_shared=no
15246
15247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15248 if test "$GCC" = yes; then
15249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15250 fi
15251
15252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15254 fi
15255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15256 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15257 fi
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15298 hardcode_action_CXX=
15299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15300 test -n "$runpath_var_CXX" ||
15301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15302
15303 # We can hardcode non-existent directories.
15304 if test "$hardcode_direct_CXX" != no &&
15305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15306 # have to relink, otherwise we might link with an installed library
15307 # when we should be linking with a yet-to-be-installed one
15308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15309 test "$hardcode_minus_L_CXX" != no; then
15310 # Linking always hardcodes the temporary library directory.
15311 hardcode_action_CXX=relink
15312 else
15313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15314 hardcode_action_CXX=immediate
15315 fi
15316 else
15317 # We cannot hardcode anything, or else we can only hardcode existing
15318 # directories.
15319 hardcode_action_CXX=unsupported
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15322 $as_echo "$hardcode_action_CXX" >&6; }
15323
15324 if test "$hardcode_action_CXX" = relink ||
15325 test "$inherit_rpath_CXX" = yes; then
15326 # Fast installation is not supported
15327 enable_fast_install=no
15328 elif test "$shlibpath_overrides_runpath" = yes ||
15329 test "$enable_shared" = no; then
15330 # Fast installation is not necessary
15331 enable_fast_install=needless
15332 fi
15333
15334
15335
15336
15337
15338
15339
15340 fi # test -n "$compiler"
15341
15342 CC=$lt_save_CC
15343 LDCXX=$LD
15344 LD=$lt_save_LD
15345 GCC=$lt_save_GCC
15346 with_gnu_ld=$lt_save_with_gnu_ld
15347 lt_cv_path_LDCXX=$lt_cv_path_LD
15348 lt_cv_path_LD=$lt_save_path_LD
15349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15351 fi # test "$_lt_caught_CXX_error" != yes
15352
15353 ac_ext=c
15354 ac_cpp='$CPP $CPPFLAGS'
15355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371 ac_config_commands="$ac_config_commands libtool"
15372
15373
15374
15375
15376 # Only expand once:
15377
15378
15379
15380 for ac_prog in gawk mawk nawk awk
15381 do
15382 # Extract the first word of "$ac_prog", so it can be a program name with args.
15383 set dummy $ac_prog; ac_word=$2
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15385 $as_echo_n "checking for $ac_word... " >&6; }
15386 if test "${ac_cv_prog_AWK+set}" = set; then :
15387 $as_echo_n "(cached) " >&6
15388 else
15389 if test -n "$AWK"; then
15390 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15391 else
15392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15393 for as_dir in $PATH
15394 do
15395 IFS=$as_save_IFS
15396 test -z "$as_dir" && as_dir=.
15397 for ac_exec_ext in '' $ac_executable_extensions; do
15398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15399 ac_cv_prog_AWK="$ac_prog"
15400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 break 2
15402 fi
15403 done
15404 done
15405 IFS=$as_save_IFS
15406
15407 fi
15408 fi
15409 AWK=$ac_cv_prog_AWK
15410 if test -n "$AWK"; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15412 $as_echo "$AWK" >&6; }
15413 else
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15416 fi
15417
15418
15419 test -n "$AWK" && break
15420 done
15421
15422 case "$AWK" in
15423 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15424 esac
15425
15426
15427
15428
15429 # The cast to long int works around a bug in the HP C Compiler
15430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15432 # This bug is HP SR number 8606223364.
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15434 $as_echo_n "checking size of void *... " >&6; }
15435 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15439
15440 else
15441 if test "$ac_cv_type_void_p" = yes; then
15442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15444 { as_fn_set_status 77
15445 as_fn_error "cannot compute sizeof (void *)
15446 See \`config.log' for more details." "$LINENO" 5; }; }
15447 else
15448 ac_cv_sizeof_void_p=0
15449 fi
15450 fi
15451
15452 fi
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15454 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15455
15456
15457
15458 cat >>confdefs.h <<_ACEOF
15459 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15460 _ACEOF
15461
15462
15463
15464 if test "${multilib}" = "yes"; then
15465 multilib_arg="--enable-multilib"
15466 else
15467 multilib_arg=
15468 fi
15469
15470 # Get target configury.
15471 unset TSAN_SUPPORTED
15472 unset LSAN_SUPPORTED
15473 . ${srcdir}/configure.tgt
15474 if test "x$TSAN_SUPPORTED" = "xyes"; then
15475 TSAN_SUPPORTED_TRUE=
15476 TSAN_SUPPORTED_FALSE='#'
15477 else
15478 TSAN_SUPPORTED_TRUE='#'
15479 TSAN_SUPPORTED_FALSE=
15480 fi
15481
15482 if test "x$LSAN_SUPPORTED" = "xyes"; then
15483 LSAN_SUPPORTED_TRUE=
15484 LSAN_SUPPORTED_FALSE='#'
15485 else
15486 LSAN_SUPPORTED_TRUE='#'
15487 LSAN_SUPPORTED_FALSE=
15488 fi
15489
15490
15491 # Check for functions needed.
15492 for ac_func in clock_getres clock_gettime clock_settime
15493 do :
15494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15496 eval as_val=\$$as_ac_var
15497 if test "x$as_val" = x""yes; then :
15498 cat >>confdefs.h <<_ACEOF
15499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15500 _ACEOF
15501
15502 fi
15503 done
15504
15505
15506 # Common libraries that we need to link against for all sanitizer libs.
15507 link_sanitizer_common='-lpthread -ldl -lm'
15508
15509 # Set up the set of additional libraries that we need to link against for libasan.
15510 link_libasan=$link_sanitizer_common
15511
15512
15513 # Set up the set of additional libraries that we need to link against for libtsan.
15514 link_libtsan=$link_sanitizer_common
15515
15516
15517 # Set up the set of additional libraries that we need to link against for libubsan.
15518 link_libubsan=$link_sanitizer_common
15519
15520
15521 # Set up the set of additional libraries that we need to link against for liblsan.
15522 link_liblsan=$link_sanitizer_common
15523
15524
15525 # At least for glibc, clock_gettime is in librt. But don't pull that
15526 # in if it still doesn't give us the function we want. This
15527 # test is copied from libgomp.
15528 if test $ac_cv_func_clock_gettime = no; then
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15530 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15531 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lrt $LIBS"
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538
15539 /* Override any GCC internal prototype to avoid an error.
15540 Use char because int might match the return type of a GCC
15541 builtin and then its argument prototype would still apply. */
15542 #ifdef __cplusplus
15543 extern "C"
15544 #endif
15545 char clock_gettime ();
15546 int
15547 main ()
15548 {
15549 return clock_gettime ();
15550 ;
15551 return 0;
15552 }
15553 _ACEOF
15554 if ac_fn_c_try_link "$LINENO"; then :
15555 ac_cv_lib_rt_clock_gettime=yes
15556 else
15557 ac_cv_lib_rt_clock_gettime=no
15558 fi
15559 rm -f core conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
15561 LIBS=$ac_check_lib_save_LIBS
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15564 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15565 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15566 link_libasan="-lrt $link_libasan"
15567 link_libtsan="-lrt $link_libtsan"
15568 # Other sanitizers do not override clock_* API
15569
15570 fi
15571
15572 fi
15573
15574 case "$host" in
15575 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15576 *) MAC_INTERPOSE=false ;;
15577 esac
15578 if $MAC_INTERPOSE; then
15579 USING_MAC_INTERPOSE_TRUE=
15580 USING_MAC_INTERPOSE_FALSE='#'
15581 else
15582 USING_MAC_INTERPOSE_TRUE='#'
15583 USING_MAC_INTERPOSE_FALSE=
15584 fi
15585
15586
15587 backtrace_supported=yes
15588
15589 # Test for __sync support.
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15591 $as_echo_n "checking __sync extensions... " >&6; }
15592 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 if test -n "${with_target_subdir}"; then
15596 libsanitizer_cv_sys_sync=yes
15597 else
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 int i;
15601 int
15602 main ()
15603 {
15604 __sync_bool_compare_and_swap (&i, i, i);
15605 __sync_lock_test_and_set (&i, 1);
15606 __sync_lock_release (&i);
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_link "$LINENO"; then :
15612 libsanitizer_cv_sys_sync=yes
15613 else
15614 libsanitizer_cv_sys_sync=no
15615 fi
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15618 fi
15619 fi
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15621 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15622 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15623
15624 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15625
15626 fi
15627
15628 # Test for __atomic support.
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15630 $as_echo_n "checking __atomic extensions... " >&6; }
15631 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 if test -n "${with_target_subdir}"; then
15635 libsanitizer_cv_sys_atomic=yes
15636 else
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 int i;
15640 int
15641 main ()
15642 {
15643 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15644 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650 libsanitizer_cv_sys_atomic=yes
15651 else
15652 libsanitizer_cv_sys_atomic=no
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656 fi
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15659 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15660 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15661
15662 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15663
15664 fi
15665
15666 # The library needs to be able to read the executable itself. Compile
15667 # a file to determine the executable format. The awk script
15668 # filetype.awk prints out the file type.
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15670 $as_echo_n "checking output filetype... " >&6; }
15671 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 filetype=
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 int i;
15678 int
15679 main ()
15680 {
15681 int j;
15682 ;
15683 return 0;
15684 }
15685 _ACEOF
15686 if ac_fn_c_try_compile "$LINENO"; then :
15687 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15688 else
15689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15691 as_fn_error "compiler failed
15692 See \`config.log' for more details." "$LINENO" 5; }
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695 libsanitizer_cv_sys_filetype=$filetype
15696 fi
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15698 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15699
15700 # Match the file type to decide what files to compile.
15701 FORMAT_FILE=
15702 case "$libsanitizer_cv_sys_filetype" in
15703 elf*) FORMAT_FILE="elf.lo" ;;
15704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15705 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15706 FORMAT_FILE="unknown.lo"
15707 backtrace_supported=no
15708 ;;
15709 esac
15710
15711
15712 # ELF defines.
15713 elfsize=
15714 case "$libsanitizer_cv_sys_filetype" in
15715 elf32) elfsize=32 ;;
15716 elf64) elfsize=64 ;;
15717 esac
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define BACKTRACE_ELF_SIZE $elfsize
15721 _ACEOF
15722
15723
15724 BACKTRACE_SUPPORTED=0
15725 if test "$backtrace_supported" = "yes"; then
15726 BACKTRACE_SUPPORTED=1
15727 fi
15728
15729
15730
15731
15732 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15733
15734 acx_cv_header_stdint=stddef.h
15735 acx_cv_header_stdint_kind="(already complete)"
15736 for i in stdint.h $inttype_headers; do
15737 unset ac_cv_type_uintptr_t
15738 unset ac_cv_type_uintmax_t
15739 unset ac_cv_type_int_least32_t
15740 unset ac_cv_type_int_fast32_t
15741 unset ac_cv_type_uint64_t
15742 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15743 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15744 #include <$i>
15745 "
15746 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15747 acx_cv_header_stdint=$i
15748 else
15749 continue
15750 fi
15751
15752 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15753 #include <$i>
15754 "
15755 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15756
15757 else
15758 acx_cv_header_stdint_kind="(mostly complete)"
15759 fi
15760
15761 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15762 #include <$i>
15763 "
15764 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15765
15766 else
15767 acx_cv_header_stdint_kind="(mostly complete)"
15768 fi
15769
15770 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15771 #include <$i>
15772 "
15773 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15774
15775 else
15776 acx_cv_header_stdint_kind="(mostly complete)"
15777 fi
15778
15779 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15780 #include <$i>
15781 "
15782 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15783
15784 else
15785 acx_cv_header_stdint_kind="(lacks uint64_t)"
15786 fi
15787
15788 break
15789 done
15790 if test "$acx_cv_header_stdint" = stddef.h; then
15791 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15792 for i in stdint.h $inttype_headers; do
15793 unset ac_cv_type_uintptr_t
15794 unset ac_cv_type_uint32_t
15795 unset ac_cv_type_uint64_t
15796 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15797 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15798 #include <$i>
15799 "
15800 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15801 acx_cv_header_stdint=$i
15802 else
15803 continue
15804 fi
15805
15806 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15807 #include <$i>
15808 "
15809 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15810
15811 fi
15812
15813 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15814 #include <$i>
15815 "
15816 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15817
15818 fi
15819
15820 break
15821 done
15822 fi
15823 if test "$acx_cv_header_stdint" = stddef.h; then
15824 acx_cv_header_stdint_kind="(u_intXX_t style)"
15825 for i in sys/types.h $inttype_headers; do
15826 unset ac_cv_type_u_int32_t
15827 unset ac_cv_type_u_int64_t
15828 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15829 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15830 #include <$i>
15831 "
15832 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15833 acx_cv_header_stdint=$i
15834 else
15835 continue
15836 fi
15837
15838 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15839 #include <$i>
15840 "
15841 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15842
15843 fi
15844
15845 break
15846 done
15847 fi
15848 if test "$acx_cv_header_stdint" = stddef.h; then
15849 acx_cv_header_stdint_kind="(using manual detection)"
15850 fi
15851
15852 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15853 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15854 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15855 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15856 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15857
15858 # ----------------- Summarize what we found so far
15859
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15861 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15862
15863 case `$as_basename -- gstdint.h ||
15864 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15865 Xgstdint.h : 'X\(//\)$' \| \
15866 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15867 $as_echo X/gstdint.h |
15868 sed '/^.*\/\([^/][^/]*\)\/*$/{
15869 s//\1/
15870 q
15871 }
15872 /^X\/\(\/\/\)$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\/\(\/\).*/{
15877 s//\1/
15878 q
15879 }
15880 s/.*/./; q'` in
15881 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15882 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15883 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15884 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15885 *) ;;
15886 esac
15887
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15889 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15890
15891 # ----------------- done included file, check C basic types --------
15892
15893 # Lacking an uintptr_t? Test size of void *
15894 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15895 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15898 # This bug is HP SR number 8606223364.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15900 $as_echo_n "checking size of void *... " >&6; }
15901 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15905
15906 else
15907 if test "$ac_cv_type_void_p" = yes; then
15908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15910 { as_fn_set_status 77
15911 as_fn_error "cannot compute sizeof (void *)
15912 See \`config.log' for more details." "$LINENO" 5; }; }
15913 else
15914 ac_cv_sizeof_void_p=0
15915 fi
15916 fi
15917
15918 fi
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15920 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15921
15922
15923
15924 cat >>confdefs.h <<_ACEOF
15925 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15926 _ACEOF
15927
15928 ;;
15929 esac
15930
15931 # Lacking an uint64_t? Test size of long
15932 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15933 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15936 # This bug is HP SR number 8606223364.
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15938 $as_echo_n "checking size of long... " >&6; }
15939 if test "${ac_cv_sizeof_long+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15943
15944 else
15945 if test "$ac_cv_type_long" = yes; then
15946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15948 { as_fn_set_status 77
15949 as_fn_error "cannot compute sizeof (long)
15950 See \`config.log' for more details." "$LINENO" 5; }; }
15951 else
15952 ac_cv_sizeof_long=0
15953 fi
15954 fi
15955
15956 fi
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15958 $as_echo "$ac_cv_sizeof_long" >&6; }
15959
15960
15961
15962 cat >>confdefs.h <<_ACEOF
15963 #define SIZEOF_LONG $ac_cv_sizeof_long
15964 _ACEOF
15965
15966 ;;
15967 esac
15968
15969 if test $acx_cv_header_stdint = stddef.h; then
15970 # Lacking a good header? Test size of everything and deduce all types.
15971 # The cast to long int works around a bug in the HP C Compiler
15972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15974 # This bug is HP SR number 8606223364.
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15976 $as_echo_n "checking size of int... " >&6; }
15977 if test "${ac_cv_sizeof_int+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15981
15982 else
15983 if test "$ac_cv_type_int" = yes; then
15984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15986 { as_fn_set_status 77
15987 as_fn_error "cannot compute sizeof (int)
15988 See \`config.log' for more details." "$LINENO" 5; }; }
15989 else
15990 ac_cv_sizeof_int=0
15991 fi
15992 fi
15993
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15996 $as_echo "$ac_cv_sizeof_int" >&6; }
15997
15998
15999
16000 cat >>confdefs.h <<_ACEOF
16001 #define SIZEOF_INT $ac_cv_sizeof_int
16002 _ACEOF
16003
16004
16005 # The cast to long int works around a bug in the HP C Compiler
16006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16008 # This bug is HP SR number 8606223364.
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16010 $as_echo_n "checking size of short... " >&6; }
16011 if test "${ac_cv_sizeof_short+set}" = set; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16015
16016 else
16017 if test "$ac_cv_type_short" = yes; then
16018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16020 { as_fn_set_status 77
16021 as_fn_error "cannot compute sizeof (short)
16022 See \`config.log' for more details." "$LINENO" 5; }; }
16023 else
16024 ac_cv_sizeof_short=0
16025 fi
16026 fi
16027
16028 fi
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16030 $as_echo "$ac_cv_sizeof_short" >&6; }
16031
16032
16033
16034 cat >>confdefs.h <<_ACEOF
16035 #define SIZEOF_SHORT $ac_cv_sizeof_short
16036 _ACEOF
16037
16038
16039 # The cast to long int works around a bug in the HP C Compiler
16040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16042 # This bug is HP SR number 8606223364.
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16044 $as_echo_n "checking size of char... " >&6; }
16045 if test "${ac_cv_sizeof_char+set}" = set; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16049
16050 else
16051 if test "$ac_cv_type_char" = yes; then
16052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16054 { as_fn_set_status 77
16055 as_fn_error "cannot compute sizeof (char)
16056 See \`config.log' for more details." "$LINENO" 5; }; }
16057 else
16058 ac_cv_sizeof_char=0
16059 fi
16060 fi
16061
16062 fi
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16064 $as_echo "$ac_cv_sizeof_char" >&6; }
16065
16066
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define SIZEOF_CHAR $ac_cv_sizeof_char
16070 _ACEOF
16071
16072
16073
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16075 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16076 case "$ac_cv_sizeof_char" in
16077 1) acx_cv_type_int8_t=char ;;
16078 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16079 esac
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16081 $as_echo "$acx_cv_type_int8_t" >&6; }
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16084 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16085 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16086 2:*) acx_cv_type_int16_t=int ;;
16087 *:2) acx_cv_type_int16_t=short ;;
16088 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16089 esac
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16091 $as_echo "$acx_cv_type_int16_t" >&6; }
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16094 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16095 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16096 4:*) acx_cv_type_int32_t=int ;;
16097 *:4) acx_cv_type_int32_t=long ;;
16098 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16099 esac
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16101 $as_echo "$acx_cv_type_int32_t" >&6; }
16102 fi
16103
16104 # These tests are here to make the output prettier
16105
16106 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16107 case "$ac_cv_sizeof_long" in
16108 8) acx_cv_type_int64_t=long ;;
16109 esac
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16111 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16113 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16114 fi
16115
16116 # Now we can use the above types
16117
16118 if test "$ac_cv_type_uintptr_t" != yes; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16120 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16121 case $ac_cv_sizeof_void_p in
16122 2) acx_cv_type_intptr_t=int16_t ;;
16123 4) acx_cv_type_intptr_t=int32_t ;;
16124 8) acx_cv_type_intptr_t=int64_t ;;
16125 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16126 esac
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16128 $as_echo "$acx_cv_type_intptr_t" >&6; }
16129 fi
16130
16131 # ----------------- done all checks, emit header -------------
16132 ac_config_commands="$ac_config_commands gstdint.h"
16133
16134
16135
16136
16137 for ac_header in sys/mman.h alloca.h
16138 do :
16139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16140 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16141 eval as_val=\$$as_ac_Header
16142 if test "x$as_val" = x""yes; then :
16143 cat >>confdefs.h <<_ACEOF
16144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 _ACEOF
16146
16147 fi
16148
16149 done
16150
16151 if test "$ac_cv_header_sys_mman_h" = "no"; then
16152 have_mmap=no
16153 else
16154 if test -n "${with_target_subdir}"; then
16155 # When built as a GCC target library, we can't do a link test. We
16156 # simply assume that if we have mman.h, we have mmap.
16157 have_mmap=yes
16158 else
16159 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16160 if test "x$ac_cv_func_mmap" = x""yes; then :
16161 have_mmap=yes
16162 else
16163 have_mmap=no
16164 fi
16165
16166 fi
16167 fi
16168 if test "$have_mmap" = "no"; then
16169 VIEW_FILE=read.lo
16170 ALLOC_FILE=alloc.lo
16171 else
16172 VIEW_FILE=mmapio.lo
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175
16176 #include <sys/mman.h>
16177 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16178 #error no MAP_ANONYMOUS
16179 #endif
16180
16181 _ACEOF
16182 if ac_fn_c_try_cpp "$LINENO"; then :
16183 ALLOC_FILE=mmap.lo
16184 else
16185 ALLOC_FILE=alloc.lo
16186 fi
16187 rm -f conftest.err conftest.$ac_ext
16188 fi
16189
16190
16191
16192 BACKTRACE_USES_MALLOC=0
16193 if test "$ALLOC_FILE" = "alloc.lo"; then
16194 BACKTRACE_USES_MALLOC=1
16195 fi
16196
16197
16198 # Don't care about thread support
16199 BACKTRACE_SUPPORTS_THREADS=0
16200
16201
16202 # Check for dl_iterate_phdr.
16203 for ac_header in link.h
16204 do :
16205 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16206 if test "x$ac_cv_header_link_h" = x""yes; then :
16207 cat >>confdefs.h <<_ACEOF
16208 #define HAVE_LINK_H 1
16209 _ACEOF
16210
16211 fi
16212
16213 done
16214
16215 if test "$ac_cv_header_link_h" = "no"; then
16216 have_dl_iterate_phdr=no
16217 else
16218 # When built as a GCC target library, we can't do a link test.
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 #include <link.h>
16222
16223 _ACEOF
16224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16225 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16226 have_dl_iterate_phdr=yes
16227 else
16228 have_dl_iterate_phdr=no
16229 fi
16230 rm -f conftest*
16231
16232 case "${host}" in
16233 *-*-solaris2.10*)
16234 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16235 # header file but is only in -ldl.
16236 have_dl_iterate_phdr=no ;;
16237 esac
16238 fi
16239 if test "$have_dl_iterate_phdr" = "yes"; then
16240
16241 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16242
16243 fi
16244
16245 # Check for the fcntl function.
16246 if test -n "${with_target_subdir}"; then
16247 case "${host}" in
16248 *-*-mingw*) have_fcntl=no ;;
16249 *) have_fcntl=yes ;;
16250 esac
16251 else
16252 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16253 if test "x$ac_cv_func_fcntl" = x""yes; then :
16254 have_fcntl=yes
16255 else
16256 have_fcntl=no
16257 fi
16258
16259 fi
16260 if test "$have_fcntl" = "yes"; then
16261
16262 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16263
16264 fi
16265
16266 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16267 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16268 ac_have_decl=1
16269 else
16270 ac_have_decl=0
16271 fi
16272
16273 cat >>confdefs.h <<_ACEOF
16274 #define HAVE_DECL_STRNLEN $ac_have_decl
16275 _ACEOF
16276
16277
16278 # Check for getexecname function.
16279 if test -n "${with_target_subdir}"; then
16280 case "${host}" in
16281 *-*-solaris2*) have_getexecname=yes ;;
16282 *) have_getexecname=no ;;
16283 esac
16284 else
16285 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16286 if test "x$ac_cv_func_getexecname" = x""yes; then :
16287 have_getexecname=yes
16288 else
16289 have_getexecname=no
16290 fi
16291
16292 fi
16293 if test "$have_getexecname" = "yes"; then
16294
16295 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16296
16297 fi
16298
16299 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16300 LIBBACKTRACE_SUPPORTED_TRUE=
16301 LIBBACKTRACE_SUPPORTED_FALSE='#'
16302 else
16303 LIBBACKTRACE_SUPPORTED_TRUE='#'
16304 LIBBACKTRACE_SUPPORTED_FALSE=
16305 fi
16306
16307
16308
16309 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16310
16311 ac_config_headers="$ac_config_headers config.h"
16312
16313
16314 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16315
16316
16317 if test "x$TSAN_SUPPORTED" = "xyes"; then
16318 ac_config_files="$ac_config_files tsan/Makefile"
16319
16320 fi
16321
16322 cat >confcache <<\_ACEOF
16323 # This file is a shell script that caches the results of configure
16324 # tests run on this system so they can be shared between configure
16325 # scripts and configure runs, see configure's option --config-cache.
16326 # It is not useful on other systems. If it contains results you don't
16327 # want to keep, you may remove or edit it.
16328 #
16329 # config.status only pays attention to the cache file if you give it
16330 # the --recheck option to rerun configure.
16331 #
16332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16334 # following values.
16335
16336 _ACEOF
16337
16338 # The following way of writing the cache mishandles newlines in values,
16339 # but we know of no workaround that is simple, portable, and efficient.
16340 # So, we kill variables containing newlines.
16341 # Ultrix sh set writes to stderr and can't be redirected directly,
16342 # and sets the high bit in the cache file unless we assign to the vars.
16343 (
16344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16345 eval ac_val=\$$ac_var
16346 case $ac_val in #(
16347 *${as_nl}*)
16348 case $ac_var in #(
16349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16351 esac
16352 case $ac_var in #(
16353 _ | IFS | as_nl) ;; #(
16354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16355 *) { eval $ac_var=; unset $ac_var;} ;;
16356 esac ;;
16357 esac
16358 done
16359
16360 (set) 2>&1 |
16361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16362 *${as_nl}ac_space=\ *)
16363 # `set' does not quote correctly, so add quotes: double-quote
16364 # substitution turns \\\\ into \\, and sed turns \\ into \.
16365 sed -n \
16366 "s/'/'\\\\''/g;
16367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16368 ;; #(
16369 *)
16370 # `set' quotes correctly as required by POSIX, so do not add quotes.
16371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16372 ;;
16373 esac |
16374 sort
16375 ) |
16376 sed '
16377 /^ac_cv_env_/b end
16378 t clear
16379 :clear
16380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16381 t end
16382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16383 :end' >>confcache
16384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16385 if test -w "$cache_file"; then
16386 test "x$cache_file" != "x/dev/null" &&
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16388 $as_echo "$as_me: updating cache $cache_file" >&6;}
16389 cat confcache >$cache_file
16390 else
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16392 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16393 fi
16394 fi
16395 rm -f confcache
16396
16397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16398 # Let make expand exec_prefix.
16399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16400
16401 DEFS=-DHAVE_CONFIG_H
16402
16403 ac_libobjs=
16404 ac_ltlibobjs=
16405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16406 # 1. Remove the extension, and $U if already installed.
16407 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16408 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16410 # will be set to the directory where LIBOBJS objects are built.
16411 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16412 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16413 done
16414 LIBOBJS=$ac_libobjs
16415
16416 LTLIBOBJS=$ac_ltlibobjs
16417
16418
16419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16420 as_fn_error "conditional \"AMDEP\" was never defined.
16421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 fi
16423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16424 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16426 fi
16427 if test -n "$EXEEXT"; then
16428 am__EXEEXT_TRUE=
16429 am__EXEEXT_FALSE='#'
16430 else
16431 am__EXEEXT_TRUE='#'
16432 am__EXEEXT_FALSE=
16433 fi
16434
16435 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16436 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16438 fi
16439 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16440 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16442 fi
16443 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16444 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16446 fi
16447 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16448 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16450 fi
16451 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16452 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16454 fi
16455 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16456 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16458 fi
16459 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16460 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16462 fi
16463
16464 : ${CONFIG_STATUS=./config.status}
16465 ac_write_fail=0
16466 ac_clean_files_save=$ac_clean_files
16467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16469 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16470 as_write_fail=0
16471 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16472 #! $SHELL
16473 # Generated by $as_me.
16474 # Run this file to recreate the current configuration.
16475 # Compiler output produced by configure, useful for debugging
16476 # configure, is in config.log if it exists.
16477
16478 debug=false
16479 ac_cs_recheck=false
16480 ac_cs_silent=false
16481
16482 SHELL=\${CONFIG_SHELL-$SHELL}
16483 export SHELL
16484 _ASEOF
16485 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16486 ## -------------------- ##
16487 ## M4sh Initialization. ##
16488 ## -------------------- ##
16489
16490 # Be more Bourne compatible
16491 DUALCASE=1; export DUALCASE # for MKS sh
16492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16493 emulate sh
16494 NULLCMD=:
16495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16496 # is contrary to our usage. Disable this feature.
16497 alias -g '${1+"$@"}'='"$@"'
16498 setopt NO_GLOB_SUBST
16499 else
16500 case `(set -o) 2>/dev/null` in #(
16501 *posix*) :
16502 set -o posix ;; #(
16503 *) :
16504 ;;
16505 esac
16506 fi
16507
16508
16509 as_nl='
16510 '
16511 export as_nl
16512 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16513 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16516 # Prefer a ksh shell builtin over an external printf program on Solaris,
16517 # but without wasting forks for bash or zsh.
16518 if test -z "$BASH_VERSION$ZSH_VERSION" \
16519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16520 as_echo='print -r --'
16521 as_echo_n='print -rn --'
16522 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16523 as_echo='printf %s\n'
16524 as_echo_n='printf %s'
16525 else
16526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16527 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16528 as_echo_n='/usr/ucb/echo -n'
16529 else
16530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16531 as_echo_n_body='eval
16532 arg=$1;
16533 case $arg in #(
16534 *"$as_nl"*)
16535 expr "X$arg" : "X\\(.*\\)$as_nl";
16536 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16537 esac;
16538 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16539 '
16540 export as_echo_n_body
16541 as_echo_n='sh -c $as_echo_n_body as_echo'
16542 fi
16543 export as_echo_body
16544 as_echo='sh -c $as_echo_body as_echo'
16545 fi
16546
16547 # The user is always right.
16548 if test "${PATH_SEPARATOR+set}" != set; then
16549 PATH_SEPARATOR=:
16550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16551 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16552 PATH_SEPARATOR=';'
16553 }
16554 fi
16555
16556
16557 # IFS
16558 # We need space, tab and new line, in precisely that order. Quoting is
16559 # there to prevent editors from complaining about space-tab.
16560 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16561 # splitting by setting IFS to empty value.)
16562 IFS=" "" $as_nl"
16563
16564 # Find who we are. Look in the path if we contain no directory separator.
16565 case $0 in #((
16566 *[\\/]* ) as_myself=$0 ;;
16567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570 IFS=$as_save_IFS
16571 test -z "$as_dir" && as_dir=.
16572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16573 done
16574 IFS=$as_save_IFS
16575
16576 ;;
16577 esac
16578 # We did not find ourselves, most probably we were run as `sh COMMAND'
16579 # in which case we are not to be found in the path.
16580 if test "x$as_myself" = x; then
16581 as_myself=$0
16582 fi
16583 if test ! -f "$as_myself"; then
16584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16585 exit 1
16586 fi
16587
16588 # Unset variables that we do not need and which cause bugs (e.g. in
16589 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16590 # suppresses any "Segmentation fault" message there. '((' could
16591 # trigger a bug in pdksh 5.2.14.
16592 for as_var in BASH_ENV ENV MAIL MAILPATH
16593 do eval test x\${$as_var+set} = xset \
16594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16595 done
16596 PS1='$ '
16597 PS2='> '
16598 PS4='+ '
16599
16600 # NLS nuisances.
16601 LC_ALL=C
16602 export LC_ALL
16603 LANGUAGE=C
16604 export LANGUAGE
16605
16606 # CDPATH.
16607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16608
16609
16610 # as_fn_error ERROR [LINENO LOG_FD]
16611 # ---------------------------------
16612 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16613 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16614 # script with status $?, using 1 if that was 0.
16615 as_fn_error ()
16616 {
16617 as_status=$?; test $as_status -eq 0 && as_status=1
16618 if test "$3"; then
16619 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16621 fi
16622 $as_echo "$as_me: error: $1" >&2
16623 as_fn_exit $as_status
16624 } # as_fn_error
16625
16626
16627 # as_fn_set_status STATUS
16628 # -----------------------
16629 # Set $? to STATUS, without forking.
16630 as_fn_set_status ()
16631 {
16632 return $1
16633 } # as_fn_set_status
16634
16635 # as_fn_exit STATUS
16636 # -----------------
16637 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16638 as_fn_exit ()
16639 {
16640 set +e
16641 as_fn_set_status $1
16642 exit $1
16643 } # as_fn_exit
16644
16645 # as_fn_unset VAR
16646 # ---------------
16647 # Portably unset VAR.
16648 as_fn_unset ()
16649 {
16650 { eval $1=; unset $1;}
16651 }
16652 as_unset=as_fn_unset
16653 # as_fn_append VAR VALUE
16654 # ----------------------
16655 # Append the text in VALUE to the end of the definition contained in VAR. Take
16656 # advantage of any shell optimizations that allow amortized linear growth over
16657 # repeated appends, instead of the typical quadratic growth present in naive
16658 # implementations.
16659 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16660 eval 'as_fn_append ()
16661 {
16662 eval $1+=\$2
16663 }'
16664 else
16665 as_fn_append ()
16666 {
16667 eval $1=\$$1\$2
16668 }
16669 fi # as_fn_append
16670
16671 # as_fn_arith ARG...
16672 # ------------------
16673 # Perform arithmetic evaluation on the ARGs, and store the result in the
16674 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16675 # must be portable across $(()) and expr.
16676 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16677 eval 'as_fn_arith ()
16678 {
16679 as_val=$(( $* ))
16680 }'
16681 else
16682 as_fn_arith ()
16683 {
16684 as_val=`expr "$@" || test $? -eq 1`
16685 }
16686 fi # as_fn_arith
16687
16688
16689 if expr a : '\(a\)' >/dev/null 2>&1 &&
16690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16691 as_expr=expr
16692 else
16693 as_expr=false
16694 fi
16695
16696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16697 as_basename=basename
16698 else
16699 as_basename=false
16700 fi
16701
16702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16703 as_dirname=dirname
16704 else
16705 as_dirname=false
16706 fi
16707
16708 as_me=`$as_basename -- "$0" ||
16709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16710 X"$0" : 'X\(//\)$' \| \
16711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16712 $as_echo X/"$0" |
16713 sed '/^.*\/\([^/][^/]*\)\/*$/{
16714 s//\1/
16715 q
16716 }
16717 /^X\/\(\/\/\)$/{
16718 s//\1/
16719 q
16720 }
16721 /^X\/\(\/\).*/{
16722 s//\1/
16723 q
16724 }
16725 s/.*/./; q'`
16726
16727 # Avoid depending upon Character Ranges.
16728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16731 as_cr_digits='0123456789'
16732 as_cr_alnum=$as_cr_Letters$as_cr_digits
16733
16734 ECHO_C= ECHO_N= ECHO_T=
16735 case `echo -n x` in #(((((
16736 -n*)
16737 case `echo 'xy\c'` in
16738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16739 xy) ECHO_C='\c';;
16740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16741 ECHO_T=' ';;
16742 esac;;
16743 *)
16744 ECHO_N='-n';;
16745 esac
16746
16747 rm -f conf$$ conf$$.exe conf$$.file
16748 if test -d conf$$.dir; then
16749 rm -f conf$$.dir/conf$$.file
16750 else
16751 rm -f conf$$.dir
16752 mkdir conf$$.dir 2>/dev/null
16753 fi
16754 if (echo >conf$$.file) 2>/dev/null; then
16755 if ln -s conf$$.file conf$$ 2>/dev/null; then
16756 as_ln_s='ln -s'
16757 # ... but there are two gotchas:
16758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16760 # In both cases, we have to default to `cp -p'.
16761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16762 as_ln_s='cp -p'
16763 elif ln conf$$.file conf$$ 2>/dev/null; then
16764 as_ln_s=ln
16765 else
16766 as_ln_s='cp -p'
16767 fi
16768 else
16769 as_ln_s='cp -p'
16770 fi
16771 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16772 rmdir conf$$.dir 2>/dev/null
16773
16774
16775 # as_fn_mkdir_p
16776 # -------------
16777 # Create "$as_dir" as a directory, including parents if necessary.
16778 as_fn_mkdir_p ()
16779 {
16780
16781 case $as_dir in #(
16782 -*) as_dir=./$as_dir;;
16783 esac
16784 test -d "$as_dir" || eval $as_mkdir_p || {
16785 as_dirs=
16786 while :; do
16787 case $as_dir in #(
16788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16789 *) as_qdir=$as_dir;;
16790 esac
16791 as_dirs="'$as_qdir' $as_dirs"
16792 as_dir=`$as_dirname -- "$as_dir" ||
16793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794 X"$as_dir" : 'X\(//\)[^/]' \| \
16795 X"$as_dir" : 'X\(//\)$' \| \
16796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16797 $as_echo X"$as_dir" |
16798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16799 s//\1/
16800 q
16801 }
16802 /^X\(\/\/\)[^/].*/{
16803 s//\1/
16804 q
16805 }
16806 /^X\(\/\/\)$/{
16807 s//\1/
16808 q
16809 }
16810 /^X\(\/\).*/{
16811 s//\1/
16812 q
16813 }
16814 s/.*/./; q'`
16815 test -d "$as_dir" && break
16816 done
16817 test -z "$as_dirs" || eval "mkdir $as_dirs"
16818 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16819
16820
16821 } # as_fn_mkdir_p
16822 if mkdir -p . 2>/dev/null; then
16823 as_mkdir_p='mkdir -p "$as_dir"'
16824 else
16825 test -d ./-p && rmdir ./-p
16826 as_mkdir_p=false
16827 fi
16828
16829 if test -x / >/dev/null 2>&1; then
16830 as_test_x='test -x'
16831 else
16832 if ls -dL / >/dev/null 2>&1; then
16833 as_ls_L_option=L
16834 else
16835 as_ls_L_option=
16836 fi
16837 as_test_x='
16838 eval sh -c '\''
16839 if test -d "$1"; then
16840 test -d "$1/.";
16841 else
16842 case $1 in #(
16843 -*)set "./$1";;
16844 esac;
16845 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16846 ???[sx]*):;;*)false;;esac;fi
16847 '\'' sh
16848 '
16849 fi
16850 as_executable_p=$as_test_x
16851
16852 # Sed expression to map a string onto a valid CPP name.
16853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16854
16855 # Sed expression to map a string onto a valid variable name.
16856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16857
16858
16859 exec 6>&1
16860 ## ----------------------------------- ##
16861 ## Main body of $CONFIG_STATUS script. ##
16862 ## ----------------------------------- ##
16863 _ASEOF
16864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16865
16866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16867 # Save the log message, to keep $0 and so on meaningful, and to
16868 # report actual input values of CONFIG_FILES etc. instead of their
16869 # values after options handling.
16870 ac_log="
16871 This file was extended by package-unused $as_me version-unused, which was
16872 generated by GNU Autoconf 2.64. Invocation command line was
16873
16874 CONFIG_FILES = $CONFIG_FILES
16875 CONFIG_HEADERS = $CONFIG_HEADERS
16876 CONFIG_LINKS = $CONFIG_LINKS
16877 CONFIG_COMMANDS = $CONFIG_COMMANDS
16878 $ $0 $@
16879
16880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16881 "
16882
16883 _ACEOF
16884
16885 case $ac_config_files in *"
16886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16887 esac
16888
16889 case $ac_config_headers in *"
16890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16891 esac
16892
16893
16894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16895 # Files that config.status was made for.
16896 config_files="$ac_config_files"
16897 config_headers="$ac_config_headers"
16898 config_commands="$ac_config_commands"
16899
16900 _ACEOF
16901
16902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16903 ac_cs_usage="\
16904 \`$as_me' instantiates files and other configuration actions
16905 from templates according to the current configuration. Unless the files
16906 and actions are specified as TAGs, all are instantiated by default.
16907
16908 Usage: $0 [OPTION]... [TAG]...
16909
16910 -h, --help print this help, then exit
16911 -V, --version print version number and configuration settings, then exit
16912 -q, --quiet, --silent
16913 do not print progress messages
16914 -d, --debug don't remove temporary files
16915 --recheck update $as_me by reconfiguring in the same conditions
16916 --file=FILE[:TEMPLATE]
16917 instantiate the configuration file FILE
16918 --header=FILE[:TEMPLATE]
16919 instantiate the configuration header FILE
16920
16921 Configuration files:
16922 $config_files
16923
16924 Configuration headers:
16925 $config_headers
16926
16927 Configuration commands:
16928 $config_commands
16929
16930 Report bugs to <libsanitizer>."
16931
16932 _ACEOF
16933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16934 ac_cs_version="\\
16935 package-unused config.status version-unused
16936 configured by $0, generated by GNU Autoconf 2.64,
16937 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16938
16939 Copyright (C) 2009 Free Software Foundation, Inc.
16940 This config.status script is free software; the Free Software Foundation
16941 gives unlimited permission to copy, distribute and modify it."
16942
16943 ac_pwd='$ac_pwd'
16944 srcdir='$srcdir'
16945 INSTALL='$INSTALL'
16946 MKDIR_P='$MKDIR_P'
16947 AWK='$AWK'
16948 test -n "\$AWK" || AWK=awk
16949 _ACEOF
16950
16951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16952 # The default lists apply if the user does not specify any file.
16953 ac_need_defaults=:
16954 while test $# != 0
16955 do
16956 case $1 in
16957 --*=*)
16958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16960 ac_shift=:
16961 ;;
16962 *)
16963 ac_option=$1
16964 ac_optarg=$2
16965 ac_shift=shift
16966 ;;
16967 esac
16968
16969 case $ac_option in
16970 # Handling of the options.
16971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16972 ac_cs_recheck=: ;;
16973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16974 $as_echo "$ac_cs_version"; exit ;;
16975 --debug | --debu | --deb | --de | --d | -d )
16976 debug=: ;;
16977 --file | --fil | --fi | --f )
16978 $ac_shift
16979 case $ac_optarg in
16980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16981 esac
16982 as_fn_append CONFIG_FILES " '$ac_optarg'"
16983 ac_need_defaults=false;;
16984 --header | --heade | --head | --hea )
16985 $ac_shift
16986 case $ac_optarg in
16987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16988 esac
16989 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16990 ac_need_defaults=false;;
16991 --he | --h)
16992 # Conflict between --help and --header
16993 as_fn_error "ambiguous option: \`$1'
16994 Try \`$0 --help' for more information.";;
16995 --help | --hel | -h )
16996 $as_echo "$ac_cs_usage"; exit ;;
16997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16999 ac_cs_silent=: ;;
17000
17001 # This is an error.
17002 -*) as_fn_error "unrecognized option: \`$1'
17003 Try \`$0 --help' for more information." ;;
17004
17005 *) as_fn_append ac_config_targets " $1"
17006 ac_need_defaults=false ;;
17007
17008 esac
17009 shift
17010 done
17011
17012 ac_configure_extra_args=
17013
17014 if $ac_cs_silent; then
17015 exec 6>/dev/null
17016 ac_configure_extra_args="$ac_configure_extra_args --silent"
17017 fi
17018
17019 _ACEOF
17020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17021 if \$ac_cs_recheck; then
17022 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17023 shift
17024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17025 CONFIG_SHELL='$SHELL'
17026 export CONFIG_SHELL
17027 exec "\$@"
17028 fi
17029
17030 _ACEOF
17031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17032 exec 5>>config.log
17033 {
17034 echo
17035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17036 ## Running $as_me. ##
17037 _ASBOX
17038 $as_echo "$ac_log"
17039 } >&5
17040
17041 _ACEOF
17042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17043 #
17044 # INIT-COMMANDS
17045 #
17046 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17047
17048 srcdir="$srcdir"
17049 host="$host"
17050 target="$target"
17051 with_multisubdir="$with_multisubdir"
17052 with_multisrctop="$with_multisrctop"
17053 with_target_subdir="$with_target_subdir"
17054 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17055 multi_basedir="$multi_basedir"
17056 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17057 CC="$CC"
17058 CXX="$CXX"
17059 GFORTRAN="$GFORTRAN"
17060 GCJ="$GCJ"
17061
17062
17063 # The HP-UX ksh and POSIX shell print the target directory to stdout
17064 # if CDPATH is set.
17065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17066
17067 sed_quote_subst='$sed_quote_subst'
17068 double_quote_subst='$double_quote_subst'
17069 delay_variable_subst='$delay_variable_subst'
17070 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17071 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17072 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17073 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17074 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17075 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17076 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17077 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17078 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17079 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17080 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17081 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17082 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17083 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17084 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17085 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17086 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17087 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17088 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17089 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17090 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17091 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17092 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17093 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17094 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17095 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17096 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17097 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17098 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17099 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17100 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17101 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17102 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17103 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17104 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17117 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17118 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"`'
17119 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17120 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17121 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17122 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17123 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17124 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17125 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17126 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17127 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17128 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17129 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17130 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17131 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17132 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17133 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17134 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17135 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17136 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17137 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17138 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17139 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17140 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17141 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17142 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17143 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17144 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17145 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17146 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17147 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17148 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17149 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17150 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17151 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17152 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17153 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17154 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17155 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17156 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17157 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17158 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17159 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17160 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17161 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17162 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17163 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17164 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17165 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17166 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17167 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17168 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17169 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17170 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17171 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17172 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17173 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17174 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17175 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17176 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17177 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17178 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17179 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17180 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17181 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17182 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17183 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17184 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17185 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17186 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17187 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17188 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17189 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17190 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17191 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17192 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17193 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17194 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17195 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17196 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17197 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17198 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17199 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17200 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17201 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17202 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17203 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17204 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17205 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17206 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17207 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17208 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17209 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17210 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17211 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17212 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17213 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17214 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17215 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17216 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17217 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17218 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17219 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17220 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17221 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17222 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17223 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17224 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17225 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17226 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17227 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17228 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17229 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17230 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17231 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17232 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17233 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17234 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17235 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17236 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17237 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17238 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17239 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17240 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17241 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17242 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17243 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17244 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17245
17246 LTCC='$LTCC'
17247 LTCFLAGS='$LTCFLAGS'
17248 compiler='$compiler_DEFAULT'
17249
17250 # A function that is used when there is no print builtin or printf.
17251 func_fallback_echo ()
17252 {
17253 eval 'cat <<_LTECHO_EOF
17254 \$1
17255 _LTECHO_EOF'
17256 }
17257
17258 # Quote evaled strings.
17259 for var in SHELL \
17260 ECHO \
17261 SED \
17262 GREP \
17263 EGREP \
17264 FGREP \
17265 LD \
17266 NM \
17267 LN_S \
17268 lt_SP2NL \
17269 lt_NL2SP \
17270 reload_flag \
17271 OBJDUMP \
17272 deplibs_check_method \
17273 file_magic_cmd \
17274 AR \
17275 AR_FLAGS \
17276 STRIP \
17277 RANLIB \
17278 CC \
17279 CFLAGS \
17280 compiler \
17281 lt_cv_sys_global_symbol_pipe \
17282 lt_cv_sys_global_symbol_to_cdecl \
17283 lt_cv_sys_global_symbol_to_c_name_address \
17284 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17285 lt_prog_compiler_no_builtin_flag \
17286 lt_prog_compiler_wl \
17287 lt_prog_compiler_pic \
17288 lt_prog_compiler_static \
17289 lt_cv_prog_compiler_c_o \
17290 need_locks \
17291 DSYMUTIL \
17292 NMEDIT \
17293 LIPO \
17294 OTOOL \
17295 OTOOL64 \
17296 shrext_cmds \
17297 export_dynamic_flag_spec \
17298 whole_archive_flag_spec \
17299 compiler_needs_object \
17300 with_gnu_ld \
17301 allow_undefined_flag \
17302 no_undefined_flag \
17303 hardcode_libdir_flag_spec \
17304 hardcode_libdir_flag_spec_ld \
17305 hardcode_libdir_separator \
17306 fix_srcfile_path \
17307 exclude_expsyms \
17308 include_expsyms \
17309 file_list_spec \
17310 variables_saved_for_relink \
17311 libname_spec \
17312 library_names_spec \
17313 soname_spec \
17314 install_override_mode \
17315 finish_eval \
17316 old_striplib \
17317 striplib \
17318 compiler_lib_search_dirs \
17319 predep_objects \
17320 postdep_objects \
17321 predeps \
17322 postdeps \
17323 compiler_lib_search_path \
17324 LD_CXX \
17325 reload_flag_CXX \
17326 compiler_CXX \
17327 lt_prog_compiler_no_builtin_flag_CXX \
17328 lt_prog_compiler_wl_CXX \
17329 lt_prog_compiler_pic_CXX \
17330 lt_prog_compiler_static_CXX \
17331 lt_cv_prog_compiler_c_o_CXX \
17332 export_dynamic_flag_spec_CXX \
17333 whole_archive_flag_spec_CXX \
17334 compiler_needs_object_CXX \
17335 with_gnu_ld_CXX \
17336 allow_undefined_flag_CXX \
17337 no_undefined_flag_CXX \
17338 hardcode_libdir_flag_spec_CXX \
17339 hardcode_libdir_flag_spec_ld_CXX \
17340 hardcode_libdir_separator_CXX \
17341 fix_srcfile_path_CXX \
17342 exclude_expsyms_CXX \
17343 include_expsyms_CXX \
17344 file_list_spec_CXX \
17345 compiler_lib_search_dirs_CXX \
17346 predep_objects_CXX \
17347 postdep_objects_CXX \
17348 predeps_CXX \
17349 postdeps_CXX \
17350 compiler_lib_search_path_CXX; do
17351 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17352 *[\\\\\\\`\\"\\\$]*)
17353 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17354 ;;
17355 *)
17356 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17357 ;;
17358 esac
17359 done
17360
17361 # Double-quote double-evaled strings.
17362 for var in reload_cmds \
17363 old_postinstall_cmds \
17364 old_postuninstall_cmds \
17365 old_archive_cmds \
17366 extract_expsyms_cmds \
17367 old_archive_from_new_cmds \
17368 old_archive_from_expsyms_cmds \
17369 archive_cmds \
17370 archive_expsym_cmds \
17371 module_cmds \
17372 module_expsym_cmds \
17373 export_symbols_cmds \
17374 prelink_cmds \
17375 postinstall_cmds \
17376 postuninstall_cmds \
17377 finish_cmds \
17378 sys_lib_search_path_spec \
17379 sys_lib_dlsearch_path_spec \
17380 reload_cmds_CXX \
17381 old_archive_cmds_CXX \
17382 old_archive_from_new_cmds_CXX \
17383 old_archive_from_expsyms_cmds_CXX \
17384 archive_cmds_CXX \
17385 archive_expsym_cmds_CXX \
17386 module_cmds_CXX \
17387 module_expsym_cmds_CXX \
17388 export_symbols_cmds_CXX \
17389 prelink_cmds_CXX; do
17390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17391 *[\\\\\\\`\\"\\\$]*)
17392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17393 ;;
17394 *)
17395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17396 ;;
17397 esac
17398 done
17399
17400 ac_aux_dir='$ac_aux_dir'
17401 xsi_shell='$xsi_shell'
17402 lt_shell_append='$lt_shell_append'
17403
17404 # See if we are running on zsh, and set the options which allow our
17405 # commands through without removal of \ escapes INIT.
17406 if test -n "\${ZSH_VERSION+set}" ; then
17407 setopt NO_GLOB_SUBST
17408 fi
17409
17410
17411 PACKAGE='$PACKAGE'
17412 VERSION='$VERSION'
17413 TIMESTAMP='$TIMESTAMP'
17414 RM='$RM'
17415 ofile='$ofile'
17416
17417
17418
17419
17420
17421
17422 GCC="$GCC"
17423 CC="$CC"
17424 acx_cv_header_stdint="$acx_cv_header_stdint"
17425 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17426 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17427 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17428 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17429 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17430 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17431 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17432 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17433 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17434 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17435 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17436 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17437 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17438
17439
17440 _ACEOF
17441
17442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17443
17444 # Handling of arguments.
17445 for ac_config_target in $ac_config_targets
17446 do
17447 case $ac_config_target in
17448 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17449 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17450 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17451 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17453 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17454 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17455 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17456 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17457 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17458 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17459 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17460 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17461 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17462 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17463
17464 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17465 esac
17466 done
17467
17468
17469 # If the user did not use the arguments to specify the items to instantiate,
17470 # then the envvar interface is used. Set only those that are not.
17471 # We use the long form for the default assignment because of an extremely
17472 # bizarre bug on SunOS 4.1.3.
17473 if $ac_need_defaults; then
17474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17477 fi
17478
17479 # Have a temporary directory for convenience. Make it in the build tree
17480 # simply because there is no reason against having it here, and in addition,
17481 # creating and moving files from /tmp can sometimes cause problems.
17482 # Hook for its removal unless debugging.
17483 # Note that there is a small window in which the directory will not be cleaned:
17484 # after its creation but before its name has been assigned to `$tmp'.
17485 $debug ||
17486 {
17487 tmp=
17488 trap 'exit_status=$?
17489 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17490 ' 0
17491 trap 'as_fn_exit 1' 1 2 13 15
17492 }
17493 # Create a (secure) tmp directory for tmp files.
17494
17495 {
17496 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17497 test -n "$tmp" && test -d "$tmp"
17498 } ||
17499 {
17500 tmp=./conf$$-$RANDOM
17501 (umask 077 && mkdir "$tmp")
17502 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17503
17504 # Set up the scripts for CONFIG_FILES section.
17505 # No need to generate them if there are no CONFIG_FILES.
17506 # This happens for instance with `./config.status config.h'.
17507 if test -n "$CONFIG_FILES"; then
17508
17509
17510 ac_cr=`echo X | tr X '\015'`
17511 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17512 # But we know of no other shell where ac_cr would be empty at this
17513 # point, so we can use a bashism as a fallback.
17514 if test "x$ac_cr" = x; then
17515 eval ac_cr=\$\'\\r\'
17516 fi
17517 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17518 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17519 ac_cs_awk_cr='\r'
17520 else
17521 ac_cs_awk_cr=$ac_cr
17522 fi
17523
17524 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17525 _ACEOF
17526
17527
17528 {
17529 echo "cat >conf$$subs.awk <<_ACEOF" &&
17530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17531 echo "_ACEOF"
17532 } >conf$$subs.sh ||
17533 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17534 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17535 ac_delim='%!_!# '
17536 for ac_last_try in false false false false false :; do
17537 . ./conf$$subs.sh ||
17538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17539
17540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17541 if test $ac_delim_n = $ac_delim_num; then
17542 break
17543 elif $ac_last_try; then
17544 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17545 else
17546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17547 fi
17548 done
17549 rm -f conf$$subs.sh
17550
17551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17552 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17553 _ACEOF
17554 sed -n '
17555 h
17556 s/^/S["/; s/!.*/"]=/
17557 p
17558 g
17559 s/^[^!]*!//
17560 :repl
17561 t repl
17562 s/'"$ac_delim"'$//
17563 t delim
17564 :nl
17565 h
17566 s/\(.\{148\}\).*/\1/
17567 t more1
17568 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17569 p
17570 n
17571 b repl
17572 :more1
17573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17574 p
17575 g
17576 s/.\{148\}//
17577 t nl
17578 :delim
17579 h
17580 s/\(.\{148\}\).*/\1/
17581 t more2
17582 s/["\\]/\\&/g; s/^/"/; s/$/"/
17583 p
17584 b
17585 :more2
17586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17587 p
17588 g
17589 s/.\{148\}//
17590 t delim
17591 ' <conf$$subs.awk | sed '
17592 /^[^""]/{
17593 N
17594 s/\n//
17595 }
17596 ' >>$CONFIG_STATUS || ac_write_fail=1
17597 rm -f conf$$subs.awk
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599 _ACAWK
17600 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17601 for (key in S) S_is_set[key] = 1
17602 FS = "\a"
17603
17604 }
17605 {
17606 line = $ 0
17607 nfields = split(line, field, "@")
17608 substed = 0
17609 len = length(field[1])
17610 for (i = 2; i < nfields; i++) {
17611 key = field[i]
17612 keylen = length(key)
17613 if (S_is_set[key]) {
17614 value = S[key]
17615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17616 len += length(value) + length(field[++i])
17617 substed = 1
17618 } else
17619 len += 1 + keylen
17620 }
17621
17622 print line
17623 }
17624
17625 _ACAWK
17626 _ACEOF
17627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17628 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17630 else
17631 cat
17632 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17633 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17634 _ACEOF
17635
17636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17638 # trailing colons and then remove the whole line if VPATH becomes empty
17639 # (actually we leave an empty line to preserve line numbers).
17640 if test "x$srcdir" = x.; then
17641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17642 s/:*\$(srcdir):*/:/
17643 s/:*\${srcdir}:*/:/
17644 s/:*@srcdir@:*/:/
17645 s/^\([^=]*=[ ]*\):*/\1/
17646 s/:*$//
17647 s/^[^=]*=[ ]*$//
17648 }'
17649 fi
17650
17651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17652 fi # test -n "$CONFIG_FILES"
17653
17654 # Set up the scripts for CONFIG_HEADERS section.
17655 # No need to generate them if there are no CONFIG_HEADERS.
17656 # This happens for instance with `./config.status Makefile'.
17657 if test -n "$CONFIG_HEADERS"; then
17658 cat >"$tmp/defines.awk" <<\_ACAWK ||
17659 BEGIN {
17660 _ACEOF
17661
17662 # Transform confdefs.h into an awk script `defines.awk', embedded as
17663 # here-document in config.status, that substitutes the proper values into
17664 # config.h.in to produce config.h.
17665
17666 # Create a delimiter string that does not exist in confdefs.h, to ease
17667 # handling of long lines.
17668 ac_delim='%!_!# '
17669 for ac_last_try in false false :; do
17670 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17671 if test -z "$ac_t"; then
17672 break
17673 elif $ac_last_try; then
17674 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17675 else
17676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17677 fi
17678 done
17679
17680 # For the awk script, D is an array of macro values keyed by name,
17681 # likewise P contains macro parameters if any. Preserve backslash
17682 # newline sequences.
17683
17684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17685 sed -n '
17686 s/.\{148\}/&'"$ac_delim"'/g
17687 t rset
17688 :rset
17689 s/^[ ]*#[ ]*define[ ][ ]*/ /
17690 t def
17691 d
17692 :def
17693 s/\\$//
17694 t bsnl
17695 s/["\\]/\\&/g
17696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17697 D["\1"]=" \3"/p
17698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17699 d
17700 :bsnl
17701 s/["\\]/\\&/g
17702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17703 D["\1"]=" \3\\\\\\n"\\/p
17704 t cont
17705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17706 t cont
17707 d
17708 :cont
17709 n
17710 s/.\{148\}/&'"$ac_delim"'/g
17711 t clear
17712 :clear
17713 s/\\$//
17714 t bsnlc
17715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17716 d
17717 :bsnlc
17718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17719 b cont
17720 ' <confdefs.h | sed '
17721 s/'"$ac_delim"'/"\\\
17722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17723
17724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17725 for (key in D) D_is_set[key] = 1
17726 FS = "\a"
17727 }
17728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17729 line = \$ 0
17730 split(line, arg, " ")
17731 if (arg[1] == "#") {
17732 defundef = arg[2]
17733 mac1 = arg[3]
17734 } else {
17735 defundef = substr(arg[1], 2)
17736 mac1 = arg[2]
17737 }
17738 split(mac1, mac2, "(") #)
17739 macro = mac2[1]
17740 prefix = substr(line, 1, index(line, defundef) - 1)
17741 if (D_is_set[macro]) {
17742 # Preserve the white space surrounding the "#".
17743 print prefix "define", macro P[macro] D[macro]
17744 next
17745 } else {
17746 # Replace #undef with comments. This is necessary, for example,
17747 # in the case of _POSIX_SOURCE, which is predefined and required
17748 # on some systems where configure will not decide to define it.
17749 if (defundef == "undef") {
17750 print "/*", prefix defundef, macro, "*/"
17751 next
17752 }
17753 }
17754 }
17755 { print }
17756 _ACAWK
17757 _ACEOF
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17760 fi # test -n "$CONFIG_HEADERS"
17761
17762
17763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17764 shift
17765 for ac_tag
17766 do
17767 case $ac_tag in
17768 :[FHLC]) ac_mode=$ac_tag; continue;;
17769 esac
17770 case $ac_mode$ac_tag in
17771 :[FHL]*:*);;
17772 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17773 :[FH]-) ac_tag=-:-;;
17774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17775 esac
17776 ac_save_IFS=$IFS
17777 IFS=:
17778 set x $ac_tag
17779 IFS=$ac_save_IFS
17780 shift
17781 ac_file=$1
17782 shift
17783
17784 case $ac_mode in
17785 :L) ac_source=$1;;
17786 :[FH])
17787 ac_file_inputs=
17788 for ac_f
17789 do
17790 case $ac_f in
17791 -) ac_f="$tmp/stdin";;
17792 *) # Look for the file first in the build tree, then in the source tree
17793 # (if the path is not absolute). The absolute path cannot be DOS-style,
17794 # because $ac_f cannot contain `:'.
17795 test -f "$ac_f" ||
17796 case $ac_f in
17797 [\\/$]*) false;;
17798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17799 esac ||
17800 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17801 esac
17802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17803 as_fn_append ac_file_inputs " '$ac_f'"
17804 done
17805
17806 # Let's still pretend it is `configure' which instantiates (i.e., don't
17807 # use $as_me), people would be surprised to read:
17808 # /* config.h. Generated by config.status. */
17809 configure_input='Generated from '`
17810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17811 `' by configure.'
17812 if test x"$ac_file" != x-; then
17813 configure_input="$ac_file. $configure_input"
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17815 $as_echo "$as_me: creating $ac_file" >&6;}
17816 fi
17817 # Neutralize special characters interpreted by sed in replacement strings.
17818 case $configure_input in #(
17819 *\&* | *\|* | *\\* )
17820 ac_sed_conf_input=`$as_echo "$configure_input" |
17821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17822 *) ac_sed_conf_input=$configure_input;;
17823 esac
17824
17825 case $ac_tag in
17826 *:-:* | *:-) cat >"$tmp/stdin" \
17827 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17828 esac
17829 ;;
17830 esac
17831
17832 ac_dir=`$as_dirname -- "$ac_file" ||
17833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17834 X"$ac_file" : 'X\(//\)[^/]' \| \
17835 X"$ac_file" : 'X\(//\)$' \| \
17836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17837 $as_echo X"$ac_file" |
17838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17839 s//\1/
17840 q
17841 }
17842 /^X\(\/\/\)[^/].*/{
17843 s//\1/
17844 q
17845 }
17846 /^X\(\/\/\)$/{
17847 s//\1/
17848 q
17849 }
17850 /^X\(\/\).*/{
17851 s//\1/
17852 q
17853 }
17854 s/.*/./; q'`
17855 as_dir="$ac_dir"; as_fn_mkdir_p
17856 ac_builddir=.
17857
17858 case "$ac_dir" in
17859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17860 *)
17861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17862 # A ".." for each directory in $ac_dir_suffix.
17863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17864 case $ac_top_builddir_sub in
17865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17867 esac ;;
17868 esac
17869 ac_abs_top_builddir=$ac_pwd
17870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17871 # for backward compatibility:
17872 ac_top_builddir=$ac_top_build_prefix
17873
17874 case $srcdir in
17875 .) # We are building in place.
17876 ac_srcdir=.
17877 ac_top_srcdir=$ac_top_builddir_sub
17878 ac_abs_top_srcdir=$ac_pwd ;;
17879 [\\/]* | ?:[\\/]* ) # Absolute name.
17880 ac_srcdir=$srcdir$ac_dir_suffix;
17881 ac_top_srcdir=$srcdir
17882 ac_abs_top_srcdir=$srcdir ;;
17883 *) # Relative name.
17884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17885 ac_top_srcdir=$ac_top_build_prefix$srcdir
17886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17887 esac
17888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17889
17890
17891 case $ac_mode in
17892 :F)
17893 #
17894 # CONFIG_FILE
17895 #
17896
17897 case $INSTALL in
17898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17900 esac
17901 ac_MKDIR_P=$MKDIR_P
17902 case $MKDIR_P in
17903 [\\/$]* | ?:[\\/]* ) ;;
17904 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17905 esac
17906 _ACEOF
17907
17908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17909 # If the template does not know about datarootdir, expand it.
17910 # FIXME: This hack should be removed a few years after 2.60.
17911 ac_datarootdir_hack=; ac_datarootdir_seen=
17912 ac_sed_dataroot='
17913 /datarootdir/ {
17914 p
17915 q
17916 }
17917 /@datadir@/p
17918 /@docdir@/p
17919 /@infodir@/p
17920 /@localedir@/p
17921 /@mandir@/p'
17922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17923 *datarootdir*) ac_datarootdir_seen=yes;;
17924 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17926 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17927 _ACEOF
17928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17929 ac_datarootdir_hack='
17930 s&@datadir@&$datadir&g
17931 s&@docdir@&$docdir&g
17932 s&@infodir@&$infodir&g
17933 s&@localedir@&$localedir&g
17934 s&@mandir@&$mandir&g
17935 s&\\\${datarootdir}&$datarootdir&g' ;;
17936 esac
17937 _ACEOF
17938
17939 # Neutralize VPATH when `$srcdir' = `.'.
17940 # Shell code in configure.ac might set extrasub.
17941 # FIXME: do we really want to maintain this feature?
17942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17943 ac_sed_extra="$ac_vpsub
17944 $extrasub
17945 _ACEOF
17946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17947 :t
17948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17949 s|@configure_input@|$ac_sed_conf_input|;t t
17950 s&@top_builddir@&$ac_top_builddir_sub&;t t
17951 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17952 s&@srcdir@&$ac_srcdir&;t t
17953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17954 s&@top_srcdir@&$ac_top_srcdir&;t t
17955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17956 s&@builddir@&$ac_builddir&;t t
17957 s&@abs_builddir@&$ac_abs_builddir&;t t
17958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17959 s&@INSTALL@&$ac_INSTALL&;t t
17960 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17961 $ac_datarootdir_hack
17962 "
17963 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17964 || as_fn_error "could not create $ac_file" "$LINENO" 5
17965
17966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17970 which seems to be undefined. Please make sure it is defined." >&5
17971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17972 which seems to be undefined. Please make sure it is defined." >&2;}
17973
17974 rm -f "$tmp/stdin"
17975 case $ac_file in
17976 -) cat "$tmp/out" && rm -f "$tmp/out";;
17977 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17978 esac \
17979 || as_fn_error "could not create $ac_file" "$LINENO" 5
17980 ;;
17981 :H)
17982 #
17983 # CONFIG_HEADER
17984 #
17985 if test x"$ac_file" != x-; then
17986 {
17987 $as_echo "/* $configure_input */" \
17988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17989 } >"$tmp/config.h" \
17990 || as_fn_error "could not create $ac_file" "$LINENO" 5
17991 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17993 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17994 else
17995 rm -f "$ac_file"
17996 mv "$tmp/config.h" "$ac_file" \
17997 || as_fn_error "could not create $ac_file" "$LINENO" 5
17998 fi
17999 else
18000 $as_echo "/* $configure_input */" \
18001 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18002 || as_fn_error "could not create -" "$LINENO" 5
18003 fi
18004 # Compute "$ac_file"'s index in $config_headers.
18005 _am_arg="$ac_file"
18006 _am_stamp_count=1
18007 for _am_header in $config_headers :; do
18008 case $_am_header in
18009 $_am_arg | $_am_arg:* )
18010 break ;;
18011 * )
18012 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18013 esac
18014 done
18015 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18016 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18017 X"$_am_arg" : 'X\(//\)[^/]' \| \
18018 X"$_am_arg" : 'X\(//\)$' \| \
18019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18020 $as_echo X"$_am_arg" |
18021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18022 s//\1/
18023 q
18024 }
18025 /^X\(\/\/\)[^/].*/{
18026 s//\1/
18027 q
18028 }
18029 /^X\(\/\/\)$/{
18030 s//\1/
18031 q
18032 }
18033 /^X\(\/\).*/{
18034 s//\1/
18035 q
18036 }
18037 s/.*/./; q'`/stamp-h$_am_stamp_count
18038 ;;
18039
18040 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18041 $as_echo "$as_me: executing $ac_file commands" >&6;}
18042 ;;
18043 esac
18044
18045
18046 case $ac_file$ac_mode in
18047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18048 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18049 # are listed without --file. Let's play safe and only enable the eval
18050 # if we detect the quoting.
18051 case $CONFIG_FILES in
18052 *\'*) eval set x "$CONFIG_FILES" ;;
18053 *) set x $CONFIG_FILES ;;
18054 esac
18055 shift
18056 for mf
18057 do
18058 # Strip MF so we end up with the name of the file.
18059 mf=`echo "$mf" | sed -e 's/:.*$//'`
18060 # Check whether this is an Automake generated Makefile or not.
18061 # We used to match only the files named `Makefile.in', but
18062 # some people rename them; so instead we look at the file content.
18063 # Grep'ing the first line is not enough: some people post-process
18064 # each Makefile.in and add a new line on top of each file to say so.
18065 # Grep'ing the whole file is not good either: AIX grep has a line
18066 # limit of 2048, but all sed's we know have understand at least 4000.
18067 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18068 dirpart=`$as_dirname -- "$mf" ||
18069 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18070 X"$mf" : 'X\(//\)[^/]' \| \
18071 X"$mf" : 'X\(//\)$' \| \
18072 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18073 $as_echo X"$mf" |
18074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18075 s//\1/
18076 q
18077 }
18078 /^X\(\/\/\)[^/].*/{
18079 s//\1/
18080 q
18081 }
18082 /^X\(\/\/\)$/{
18083 s//\1/
18084 q
18085 }
18086 /^X\(\/\).*/{
18087 s//\1/
18088 q
18089 }
18090 s/.*/./; q'`
18091 else
18092 continue
18093 fi
18094 # Extract the definition of DEPDIR, am__include, and am__quote
18095 # from the Makefile without running `make'.
18096 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18097 test -z "$DEPDIR" && continue
18098 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18099 test -z "am__include" && continue
18100 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18101 # When using ansi2knr, U may be empty or an underscore; expand it
18102 U=`sed -n 's/^U = //p' < "$mf"`
18103 # Find all dependency output files, they are included files with
18104 # $(DEPDIR) in their names. We invoke sed twice because it is the
18105 # simplest approach to changing $(DEPDIR) to its actual value in the
18106 # expansion.
18107 for file in `sed -n "
18108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18110 # Make sure the directory exists.
18111 test -f "$dirpart/$file" && continue
18112 fdir=`$as_dirname -- "$file" ||
18113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$file" : 'X\(//\)[^/]' \| \
18115 X"$file" : 'X\(//\)$' \| \
18116 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18117 $as_echo X"$file" |
18118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18119 s//\1/
18120 q
18121 }
18122 /^X\(\/\/\)[^/].*/{
18123 s//\1/
18124 q
18125 }
18126 /^X\(\/\/\)$/{
18127 s//\1/
18128 q
18129 }
18130 /^X\(\/\).*/{
18131 s//\1/
18132 q
18133 }
18134 s/.*/./; q'`
18135 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18136 # echo "creating $dirpart/$file"
18137 echo '# dummy' > "$dirpart/$file"
18138 done
18139 done
18140 }
18141 ;;
18142 "default-1":C)
18143 # Only add multilib support code if we just rebuilt the top-level
18144 # Makefile.
18145 case " $CONFIG_FILES " in
18146 *" Makefile "*)
18147 ac_file=Makefile . ${multi_basedir}/config-ml.in
18148 ;;
18149 esac ;;
18150 "libtool":C)
18151
18152 # See if we are running on zsh, and set the options which allow our
18153 # commands through without removal of \ escapes.
18154 if test -n "${ZSH_VERSION+set}" ; then
18155 setopt NO_GLOB_SUBST
18156 fi
18157
18158 cfgfile="${ofile}T"
18159 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18160 $RM "$cfgfile"
18161
18162 cat <<_LT_EOF >> "$cfgfile"
18163 #! $SHELL
18164
18165 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18166 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18168 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18169 #
18170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18171 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18172 # Written by Gordon Matzigkeit, 1996
18173 #
18174 # This file is part of GNU Libtool.
18175 #
18176 # GNU Libtool is free software; you can redistribute it and/or
18177 # modify it under the terms of the GNU General Public License as
18178 # published by the Free Software Foundation; either version 2 of
18179 # the License, or (at your option) any later version.
18180 #
18181 # As a special exception to the GNU General Public License,
18182 # if you distribute this file as part of a program or library that
18183 # is built using GNU Libtool, you may include this file under the
18184 # same distribution terms that you use for the rest of that program.
18185 #
18186 # GNU Libtool is distributed in the hope that it will be useful,
18187 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18189 # GNU General Public License for more details.
18190 #
18191 # You should have received a copy of the GNU General Public License
18192 # along with GNU Libtool; see the file COPYING. If not, a copy
18193 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18194 # obtained by writing to the Free Software Foundation, Inc.,
18195 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18196
18197
18198 # The names of the tagged configurations supported by this script.
18199 available_tags="CXX "
18200
18201 # ### BEGIN LIBTOOL CONFIG
18202
18203 # Which release of libtool.m4 was used?
18204 macro_version=$macro_version
18205 macro_revision=$macro_revision
18206
18207 # Whether or not to build shared libraries.
18208 build_libtool_libs=$enable_shared
18209
18210 # Whether or not to build static libraries.
18211 build_old_libs=$enable_static
18212
18213 # What type of objects to build.
18214 pic_mode=$pic_mode
18215
18216 # Whether or not to optimize for fast installation.
18217 fast_install=$enable_fast_install
18218
18219 # Shell to use when invoking shell scripts.
18220 SHELL=$lt_SHELL
18221
18222 # An echo program that protects backslashes.
18223 ECHO=$lt_ECHO
18224
18225 # The host system.
18226 host_alias=$host_alias
18227 host=$host
18228 host_os=$host_os
18229
18230 # The build system.
18231 build_alias=$build_alias
18232 build=$build
18233 build_os=$build_os
18234
18235 # A sed program that does not truncate output.
18236 SED=$lt_SED
18237
18238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18239 Xsed="\$SED -e 1s/^X//"
18240
18241 # A grep program that handles long lines.
18242 GREP=$lt_GREP
18243
18244 # An ERE matcher.
18245 EGREP=$lt_EGREP
18246
18247 # A literal string matcher.
18248 FGREP=$lt_FGREP
18249
18250 # A BSD- or MS-compatible name lister.
18251 NM=$lt_NM
18252
18253 # Whether we need soft or hard links.
18254 LN_S=$lt_LN_S
18255
18256 # What is the maximum length of a command?
18257 max_cmd_len=$max_cmd_len
18258
18259 # Object file suffix (normally "o").
18260 objext=$ac_objext
18261
18262 # Executable file suffix (normally "").
18263 exeext=$exeext
18264
18265 # whether the shell understands "unset".
18266 lt_unset=$lt_unset
18267
18268 # turn spaces into newlines.
18269 SP2NL=$lt_lt_SP2NL
18270
18271 # turn newlines into spaces.
18272 NL2SP=$lt_lt_NL2SP
18273
18274 # An object symbol dumper.
18275 OBJDUMP=$lt_OBJDUMP
18276
18277 # Method to check whether dependent libraries are shared objects.
18278 deplibs_check_method=$lt_deplibs_check_method
18279
18280 # Command to use when deplibs_check_method == "file_magic".
18281 file_magic_cmd=$lt_file_magic_cmd
18282
18283 # The archiver.
18284 AR=$lt_AR
18285 AR_FLAGS=$lt_AR_FLAGS
18286
18287 # A symbol stripping program.
18288 STRIP=$lt_STRIP
18289
18290 # Commands used to install an old-style archive.
18291 RANLIB=$lt_RANLIB
18292 old_postinstall_cmds=$lt_old_postinstall_cmds
18293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18294
18295 # Whether to use a lock for old archive extraction.
18296 lock_old_archive_extraction=$lock_old_archive_extraction
18297
18298 # A C compiler.
18299 LTCC=$lt_CC
18300
18301 # LTCC compiler flags.
18302 LTCFLAGS=$lt_CFLAGS
18303
18304 # Take the output of nm and produce a listing of raw symbols and C names.
18305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18306
18307 # Transform the output of nm in a proper C declaration.
18308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18309
18310 # Transform the output of nm in a C name address pair.
18311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18312
18313 # Transform the output of nm in a C name address pair when lib prefix is needed.
18314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18315
18316 # The name of the directory that contains temporary libtool files.
18317 objdir=$objdir
18318
18319 # Used to examine libraries when file_magic_cmd begins with "file".
18320 MAGIC_CMD=$MAGIC_CMD
18321
18322 # Must we lock files when doing compilation?
18323 need_locks=$lt_need_locks
18324
18325 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18326 DSYMUTIL=$lt_DSYMUTIL
18327
18328 # Tool to change global to local symbols on Mac OS X.
18329 NMEDIT=$lt_NMEDIT
18330
18331 # Tool to manipulate fat objects and archives on Mac OS X.
18332 LIPO=$lt_LIPO
18333
18334 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18335 OTOOL=$lt_OTOOL
18336
18337 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18338 OTOOL64=$lt_OTOOL64
18339
18340 # Old archive suffix (normally "a").
18341 libext=$libext
18342
18343 # Shared library suffix (normally ".so").
18344 shrext_cmds=$lt_shrext_cmds
18345
18346 # The commands to extract the exported symbol list from a shared archive.
18347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18348
18349 # Variables whose values should be saved in libtool wrapper scripts and
18350 # restored at link time.
18351 variables_saved_for_relink=$lt_variables_saved_for_relink
18352
18353 # Do we need the "lib" prefix for modules?
18354 need_lib_prefix=$need_lib_prefix
18355
18356 # Do we need a version for libraries?
18357 need_version=$need_version
18358
18359 # Library versioning type.
18360 version_type=$version_type
18361
18362 # Shared library runtime path variable.
18363 runpath_var=$runpath_var
18364
18365 # Shared library path variable.
18366 shlibpath_var=$shlibpath_var
18367
18368 # Is shlibpath searched before the hard-coded library search path?
18369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18370
18371 # Format of library name prefix.
18372 libname_spec=$lt_libname_spec
18373
18374 # List of archive names. First name is the real one, the rest are links.
18375 # The last name is the one that the linker finds with -lNAME
18376 library_names_spec=$lt_library_names_spec
18377
18378 # The coded name of the library, if different from the real name.
18379 soname_spec=$lt_soname_spec
18380
18381 # Permission mode override for installation of shared libraries.
18382 install_override_mode=$lt_install_override_mode
18383
18384 # Command to use after installation of a shared archive.
18385 postinstall_cmds=$lt_postinstall_cmds
18386
18387 # Command to use after uninstallation of a shared archive.
18388 postuninstall_cmds=$lt_postuninstall_cmds
18389
18390 # Commands used to finish a libtool library installation in a directory.
18391 finish_cmds=$lt_finish_cmds
18392
18393 # As "finish_cmds", except a single script fragment to be evaled but
18394 # not shown.
18395 finish_eval=$lt_finish_eval
18396
18397 # Whether we should hardcode library paths into libraries.
18398 hardcode_into_libs=$hardcode_into_libs
18399
18400 # Compile-time system search path for libraries.
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403 # Run-time system search path for libraries.
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406 # Whether dlopen is supported.
18407 dlopen_support=$enable_dlopen
18408
18409 # Whether dlopen of programs is supported.
18410 dlopen_self=$enable_dlopen_self
18411
18412 # Whether dlopen of statically linked programs is supported.
18413 dlopen_self_static=$enable_dlopen_self_static
18414
18415 # Commands to strip libraries.
18416 old_striplib=$lt_old_striplib
18417 striplib=$lt_striplib
18418
18419
18420 # The linker used to build libraries.
18421 LD=$lt_LD
18422
18423 # How to create reloadable object files.
18424 reload_flag=$lt_reload_flag
18425 reload_cmds=$lt_reload_cmds
18426
18427 # Commands used to build an old-style archive.
18428 old_archive_cmds=$lt_old_archive_cmds
18429
18430 # A language specific compiler.
18431 CC=$lt_compiler
18432
18433 # Is the compiler the GNU compiler?
18434 with_gcc=$GCC
18435
18436 # Compiler flag to turn off builtin functions.
18437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18438
18439 # How to pass a linker flag through the compiler.
18440 wl=$lt_lt_prog_compiler_wl
18441
18442 # Additional compiler flags for building library objects.
18443 pic_flag=$lt_lt_prog_compiler_pic
18444
18445 # Compiler flag to prevent dynamic linking.
18446 link_static_flag=$lt_lt_prog_compiler_static
18447
18448 # Does compiler simultaneously support -c and -o options?
18449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18450
18451 # Whether or not to add -lc for building shared libraries.
18452 build_libtool_need_lc=$archive_cmds_need_lc
18453
18454 # Whether or not to disallow shared libs when runtime libs are static.
18455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18456
18457 # Compiler flag to allow reflexive dlopens.
18458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18459
18460 # Compiler flag to generate shared objects directly from archives.
18461 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18462
18463 # Whether the compiler copes with passing no objects directly.
18464 compiler_needs_object=$lt_compiler_needs_object
18465
18466 # Create an old-style archive from a shared archive.
18467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18468
18469 # Create a temporary old-style archive to link instead of a shared archive.
18470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18471
18472 # Commands used to build a shared archive.
18473 archive_cmds=$lt_archive_cmds
18474 archive_expsym_cmds=$lt_archive_expsym_cmds
18475
18476 # Commands used to build a loadable module if different from building
18477 # a shared archive.
18478 module_cmds=$lt_module_cmds
18479 module_expsym_cmds=$lt_module_expsym_cmds
18480
18481 # Whether we are building with GNU ld or not.
18482 with_gnu_ld=$lt_with_gnu_ld
18483
18484 # Flag that allows shared libraries with undefined symbols to be built.
18485 allow_undefined_flag=$lt_allow_undefined_flag
18486
18487 # Flag that enforces no undefined symbols.
18488 no_undefined_flag=$lt_no_undefined_flag
18489
18490 # Flag to hardcode \$libdir into a binary during linking.
18491 # This must work even if \$libdir does not exist
18492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18493
18494 # If ld is used when linking, flag to hardcode \$libdir into a binary
18495 # during linking. This must work even if \$libdir does not exist.
18496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18497
18498 # Whether we need a single "-rpath" flag with a separated argument.
18499 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18500
18501 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18502 # DIR into the resulting binary.
18503 hardcode_direct=$hardcode_direct
18504
18505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18506 # DIR into the resulting binary and the resulting library dependency is
18507 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18508 # library is relocated.
18509 hardcode_direct_absolute=$hardcode_direct_absolute
18510
18511 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18512 # into the resulting binary.
18513 hardcode_minus_L=$hardcode_minus_L
18514
18515 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18516 # into the resulting binary.
18517 hardcode_shlibpath_var=$hardcode_shlibpath_var
18518
18519 # Set to "yes" if building a shared library automatically hardcodes DIR
18520 # into the library and all subsequent libraries and executables linked
18521 # against it.
18522 hardcode_automatic=$hardcode_automatic
18523
18524 # Set to yes if linker adds runtime paths of dependent libraries
18525 # to runtime path list.
18526 inherit_rpath=$inherit_rpath
18527
18528 # Whether libtool must link a program against all its dependency libraries.
18529 link_all_deplibs=$link_all_deplibs
18530
18531 # Fix the shell variable \$srcfile for the compiler.
18532 fix_srcfile_path=$lt_fix_srcfile_path
18533
18534 # Set to "yes" if exported symbols are required.
18535 always_export_symbols=$always_export_symbols
18536
18537 # The commands to list exported symbols.
18538 export_symbols_cmds=$lt_export_symbols_cmds
18539
18540 # Symbols that should not be listed in the preloaded symbols.
18541 exclude_expsyms=$lt_exclude_expsyms
18542
18543 # Symbols that must always be exported.
18544 include_expsyms=$lt_include_expsyms
18545
18546 # Commands necessary for linking programs (against libraries) with templates.
18547 prelink_cmds=$lt_prelink_cmds
18548
18549 # Specify filename containing input files.
18550 file_list_spec=$lt_file_list_spec
18551
18552 # How to hardcode a shared library path into an executable.
18553 hardcode_action=$hardcode_action
18554
18555 # The directories searched by this compiler when creating a shared library.
18556 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18557
18558 # Dependencies to place before and after the objects being linked to
18559 # create a shared library.
18560 predep_objects=$lt_predep_objects
18561 postdep_objects=$lt_postdep_objects
18562 predeps=$lt_predeps
18563 postdeps=$lt_postdeps
18564
18565 # The library search path used internally by the compiler when linking
18566 # a shared library.
18567 compiler_lib_search_path=$lt_compiler_lib_search_path
18568
18569 # ### END LIBTOOL CONFIG
18570
18571 _LT_EOF
18572
18573 case $host_os in
18574 aix3*)
18575 cat <<\_LT_EOF >> "$cfgfile"
18576 # AIX sometimes has problems with the GCC collect2 program. For some
18577 # reason, if we set the COLLECT_NAMES environment variable, the problems
18578 # vanish in a puff of smoke.
18579 if test "X${COLLECT_NAMES+set}" != Xset; then
18580 COLLECT_NAMES=
18581 export COLLECT_NAMES
18582 fi
18583 _LT_EOF
18584 ;;
18585 esac
18586
18587
18588 ltmain="$ac_aux_dir/ltmain.sh"
18589
18590
18591 # We use sed instead of cat because bash on DJGPP gets confused if
18592 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18593 # text mode, it properly converts lines to CR/LF. This bash problem
18594 # is reportedly fixed, but why not run on old versions too?
18595 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18596 || (rm -f "$cfgfile"; exit 1)
18597
18598 case $xsi_shell in
18599 yes)
18600 cat << \_LT_EOF >> "$cfgfile"
18601
18602 # func_dirname file append nondir_replacement
18603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18604 # otherwise set result to NONDIR_REPLACEMENT.
18605 func_dirname ()
18606 {
18607 case ${1} in
18608 */*) func_dirname_result="${1%/*}${2}" ;;
18609 * ) func_dirname_result="${3}" ;;
18610 esac
18611 }
18612
18613 # func_basename file
18614 func_basename ()
18615 {
18616 func_basename_result="${1##*/}"
18617 }
18618
18619 # func_dirname_and_basename file append nondir_replacement
18620 # perform func_basename and func_dirname in a single function
18621 # call:
18622 # dirname: Compute the dirname of FILE. If nonempty,
18623 # add APPEND to the result, otherwise set result
18624 # to NONDIR_REPLACEMENT.
18625 # value returned in "$func_dirname_result"
18626 # basename: Compute filename of FILE.
18627 # value retuned in "$func_basename_result"
18628 # Implementation must be kept synchronized with func_dirname
18629 # and func_basename. For efficiency, we do not delegate to
18630 # those functions but instead duplicate the functionality here.
18631 func_dirname_and_basename ()
18632 {
18633 case ${1} in
18634 */*) func_dirname_result="${1%/*}${2}" ;;
18635 * ) func_dirname_result="${3}" ;;
18636 esac
18637 func_basename_result="${1##*/}"
18638 }
18639
18640 # func_stripname prefix suffix name
18641 # strip PREFIX and SUFFIX off of NAME.
18642 # PREFIX and SUFFIX must not contain globbing or regex special
18643 # characters, hashes, percent signs, but SUFFIX may contain a leading
18644 # dot (in which case that matches only a dot).
18645 func_stripname ()
18646 {
18647 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18648 # positional parameters, so assign one to ordinary parameter first.
18649 func_stripname_result=${3}
18650 func_stripname_result=${func_stripname_result#"${1}"}
18651 func_stripname_result=${func_stripname_result%"${2}"}
18652 }
18653
18654 # func_opt_split
18655 func_opt_split ()
18656 {
18657 func_opt_split_opt=${1%%=*}
18658 func_opt_split_arg=${1#*=}
18659 }
18660
18661 # func_lo2o object
18662 func_lo2o ()
18663 {
18664 case ${1} in
18665 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18666 *) func_lo2o_result=${1} ;;
18667 esac
18668 }
18669
18670 # func_xform libobj-or-source
18671 func_xform ()
18672 {
18673 func_xform_result=${1%.*}.lo
18674 }
18675
18676 # func_arith arithmetic-term...
18677 func_arith ()
18678 {
18679 func_arith_result=$(( $* ))
18680 }
18681
18682 # func_len string
18683 # STRING may not start with a hyphen.
18684 func_len ()
18685 {
18686 func_len_result=${#1}
18687 }
18688
18689 _LT_EOF
18690 ;;
18691 *) # Bourne compatible functions.
18692 cat << \_LT_EOF >> "$cfgfile"
18693
18694 # func_dirname file append nondir_replacement
18695 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18696 # otherwise set result to NONDIR_REPLACEMENT.
18697 func_dirname ()
18698 {
18699 # Extract subdirectory from the argument.
18700 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18701 if test "X$func_dirname_result" = "X${1}"; then
18702 func_dirname_result="${3}"
18703 else
18704 func_dirname_result="$func_dirname_result${2}"
18705 fi
18706 }
18707
18708 # func_basename file
18709 func_basename ()
18710 {
18711 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18712 }
18713
18714
18715 # func_stripname prefix suffix name
18716 # strip PREFIX and SUFFIX off of NAME.
18717 # PREFIX and SUFFIX must not contain globbing or regex special
18718 # characters, hashes, percent signs, but SUFFIX may contain a leading
18719 # dot (in which case that matches only a dot).
18720 # func_strip_suffix prefix name
18721 func_stripname ()
18722 {
18723 case ${2} in
18724 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18725 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18726 esac
18727 }
18728
18729 # sed scripts:
18730 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18731 my_sed_long_arg='1s/^-[^=]*=//'
18732
18733 # func_opt_split
18734 func_opt_split ()
18735 {
18736 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18737 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18738 }
18739
18740 # func_lo2o object
18741 func_lo2o ()
18742 {
18743 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18744 }
18745
18746 # func_xform libobj-or-source
18747 func_xform ()
18748 {
18749 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18750 }
18751
18752 # func_arith arithmetic-term...
18753 func_arith ()
18754 {
18755 func_arith_result=`expr "$@"`
18756 }
18757
18758 # func_len string
18759 # STRING may not start with a hyphen.
18760 func_len ()
18761 {
18762 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18763 }
18764
18765 _LT_EOF
18766 esac
18767
18768 case $lt_shell_append in
18769 yes)
18770 cat << \_LT_EOF >> "$cfgfile"
18771
18772 # func_append var value
18773 # Append VALUE to the end of shell variable VAR.
18774 func_append ()
18775 {
18776 eval "$1+=\$2"
18777 }
18778 _LT_EOF
18779 ;;
18780 *)
18781 cat << \_LT_EOF >> "$cfgfile"
18782
18783 # func_append var value
18784 # Append VALUE to the end of shell variable VAR.
18785 func_append ()
18786 {
18787 eval "$1=\$$1\$2"
18788 }
18789
18790 _LT_EOF
18791 ;;
18792 esac
18793
18794
18795 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18796 || (rm -f "$cfgfile"; exit 1)
18797
18798 mv -f "$cfgfile" "$ofile" ||
18799 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18800 chmod +x "$ofile"
18801
18802
18803 cat <<_LT_EOF >> "$ofile"
18804
18805 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18806
18807 # The linker used to build libraries.
18808 LD=$lt_LD_CXX
18809
18810 # How to create reloadable object files.
18811 reload_flag=$lt_reload_flag_CXX
18812 reload_cmds=$lt_reload_cmds_CXX
18813
18814 # Commands used to build an old-style archive.
18815 old_archive_cmds=$lt_old_archive_cmds_CXX
18816
18817 # A language specific compiler.
18818 CC=$lt_compiler_CXX
18819
18820 # Is the compiler the GNU compiler?
18821 with_gcc=$GCC_CXX
18822
18823 # Compiler flag to turn off builtin functions.
18824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18825
18826 # How to pass a linker flag through the compiler.
18827 wl=$lt_lt_prog_compiler_wl_CXX
18828
18829 # Additional compiler flags for building library objects.
18830 pic_flag=$lt_lt_prog_compiler_pic_CXX
18831
18832 # Compiler flag to prevent dynamic linking.
18833 link_static_flag=$lt_lt_prog_compiler_static_CXX
18834
18835 # Does compiler simultaneously support -c and -o options?
18836 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18837
18838 # Whether or not to add -lc for building shared libraries.
18839 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18840
18841 # Whether or not to disallow shared libs when runtime libs are static.
18842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18843
18844 # Compiler flag to allow reflexive dlopens.
18845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18846
18847 # Compiler flag to generate shared objects directly from archives.
18848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18849
18850 # Whether the compiler copes with passing no objects directly.
18851 compiler_needs_object=$lt_compiler_needs_object_CXX
18852
18853 # Create an old-style archive from a shared archive.
18854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18855
18856 # Create a temporary old-style archive to link instead of a shared archive.
18857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18858
18859 # Commands used to build a shared archive.
18860 archive_cmds=$lt_archive_cmds_CXX
18861 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18862
18863 # Commands used to build a loadable module if different from building
18864 # a shared archive.
18865 module_cmds=$lt_module_cmds_CXX
18866 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18867
18868 # Whether we are building with GNU ld or not.
18869 with_gnu_ld=$lt_with_gnu_ld_CXX
18870
18871 # Flag that allows shared libraries with undefined symbols to be built.
18872 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18873
18874 # Flag that enforces no undefined symbols.
18875 no_undefined_flag=$lt_no_undefined_flag_CXX
18876
18877 # Flag to hardcode \$libdir into a binary during linking.
18878 # This must work even if \$libdir does not exist
18879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18880
18881 # If ld is used when linking, flag to hardcode \$libdir into a binary
18882 # during linking. This must work even if \$libdir does not exist.
18883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18884
18885 # Whether we need a single "-rpath" flag with a separated argument.
18886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18887
18888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18889 # DIR into the resulting binary.
18890 hardcode_direct=$hardcode_direct_CXX
18891
18892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18893 # DIR into the resulting binary and the resulting library dependency is
18894 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18895 # library is relocated.
18896 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18897
18898 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18899 # into the resulting binary.
18900 hardcode_minus_L=$hardcode_minus_L_CXX
18901
18902 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18903 # into the resulting binary.
18904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18905
18906 # Set to "yes" if building a shared library automatically hardcodes DIR
18907 # into the library and all subsequent libraries and executables linked
18908 # against it.
18909 hardcode_automatic=$hardcode_automatic_CXX
18910
18911 # Set to yes if linker adds runtime paths of dependent libraries
18912 # to runtime path list.
18913 inherit_rpath=$inherit_rpath_CXX
18914
18915 # Whether libtool must link a program against all its dependency libraries.
18916 link_all_deplibs=$link_all_deplibs_CXX
18917
18918 # Fix the shell variable \$srcfile for the compiler.
18919 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18920
18921 # Set to "yes" if exported symbols are required.
18922 always_export_symbols=$always_export_symbols_CXX
18923
18924 # The commands to list exported symbols.
18925 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18926
18927 # Symbols that should not be listed in the preloaded symbols.
18928 exclude_expsyms=$lt_exclude_expsyms_CXX
18929
18930 # Symbols that must always be exported.
18931 include_expsyms=$lt_include_expsyms_CXX
18932
18933 # Commands necessary for linking programs (against libraries) with templates.
18934 prelink_cmds=$lt_prelink_cmds_CXX
18935
18936 # Specify filename containing input files.
18937 file_list_spec=$lt_file_list_spec_CXX
18938
18939 # How to hardcode a shared library path into an executable.
18940 hardcode_action=$hardcode_action_CXX
18941
18942 # The directories searched by this compiler when creating a shared library.
18943 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18944
18945 # Dependencies to place before and after the objects being linked to
18946 # create a shared library.
18947 predep_objects=$lt_predep_objects_CXX
18948 postdep_objects=$lt_postdep_objects_CXX
18949 predeps=$lt_predeps_CXX
18950 postdeps=$lt_postdeps_CXX
18951
18952 # The library search path used internally by the compiler when linking
18953 # a shared library.
18954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18955
18956 # ### END LIBTOOL TAG CONFIG: CXX
18957 _LT_EOF
18958
18959 ;;
18960 "gstdint.h":C)
18961 if test "$GCC" = yes; then
18962 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18963 else
18964 echo "/* generated for $CC */" > tmp-stdint.h
18965 fi
18966
18967 sed 's/^ *//' >> tmp-stdint.h <<EOF
18968
18969 #ifndef GCC_GENERATED_STDINT_H
18970 #define GCC_GENERATED_STDINT_H 1
18971
18972 #include <sys/types.h>
18973 EOF
18974
18975 if test "$acx_cv_header_stdint" != stdint.h; then
18976 echo "#include <stddef.h>" >> tmp-stdint.h
18977 fi
18978 if test "$acx_cv_header_stdint" != stddef.h; then
18979 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18980 fi
18981
18982 sed 's/^ *//' >> tmp-stdint.h <<EOF
18983 /* glibc uses these symbols as guards to prevent redefinitions. */
18984 #ifdef __int8_t_defined
18985 #define _INT8_T
18986 #define _INT16_T
18987 #define _INT32_T
18988 #endif
18989 #ifdef __uint32_t_defined
18990 #define _UINT32_T
18991 #endif
18992
18993 EOF
18994
18995 # ----------------- done header, emit basic int types -------------
18996 if test "$acx_cv_header_stdint" = stddef.h; then
18997 sed 's/^ *//' >> tmp-stdint.h <<EOF
18998
18999 #ifndef _UINT8_T
19000 #define _UINT8_T
19001 #ifndef __uint8_t_defined
19002 #define __uint8_t_defined
19003 #ifndef uint8_t
19004 typedef unsigned $acx_cv_type_int8_t uint8_t;
19005 #endif
19006 #endif
19007 #endif
19008
19009 #ifndef _UINT16_T
19010 #define _UINT16_T
19011 #ifndef __uint16_t_defined
19012 #define __uint16_t_defined
19013 #ifndef uint16_t
19014 typedef unsigned $acx_cv_type_int16_t uint16_t;
19015 #endif
19016 #endif
19017 #endif
19018
19019 #ifndef _UINT32_T
19020 #define _UINT32_T
19021 #ifndef __uint32_t_defined
19022 #define __uint32_t_defined
19023 #ifndef uint32_t
19024 typedef unsigned $acx_cv_type_int32_t uint32_t;
19025 #endif
19026 #endif
19027 #endif
19028
19029 #ifndef _INT8_T
19030 #define _INT8_T
19031 #ifndef __int8_t_defined
19032 #define __int8_t_defined
19033 #ifndef int8_t
19034 typedef $acx_cv_type_int8_t int8_t;
19035 #endif
19036 #endif
19037 #endif
19038
19039 #ifndef _INT16_T
19040 #define _INT16_T
19041 #ifndef __int16_t_defined
19042 #define __int16_t_defined
19043 #ifndef int16_t
19044 typedef $acx_cv_type_int16_t int16_t;
19045 #endif
19046 #endif
19047 #endif
19048
19049 #ifndef _INT32_T
19050 #define _INT32_T
19051 #ifndef __int32_t_defined
19052 #define __int32_t_defined
19053 #ifndef int32_t
19054 typedef $acx_cv_type_int32_t int32_t;
19055 #endif
19056 #endif
19057 #endif
19058 EOF
19059 elif test "$ac_cv_type_u_int32_t" = yes; then
19060 sed 's/^ *//' >> tmp-stdint.h <<EOF
19061
19062 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19063 #ifndef _INT8_T
19064 #define _INT8_T
19065 #endif
19066 #ifndef _INT16_T
19067 #define _INT16_T
19068 #endif
19069 #ifndef _INT32_T
19070 #define _INT32_T
19071 #endif
19072
19073 #ifndef _UINT8_T
19074 #define _UINT8_T
19075 #ifndef __uint8_t_defined
19076 #define __uint8_t_defined
19077 #ifndef uint8_t
19078 typedef u_int8_t uint8_t;
19079 #endif
19080 #endif
19081 #endif
19082
19083 #ifndef _UINT16_T
19084 #define _UINT16_T
19085 #ifndef __uint16_t_defined
19086 #define __uint16_t_defined
19087 #ifndef uint16_t
19088 typedef u_int16_t uint16_t;
19089 #endif
19090 #endif
19091 #endif
19092
19093 #ifndef _UINT32_T
19094 #define _UINT32_T
19095 #ifndef __uint32_t_defined
19096 #define __uint32_t_defined
19097 #ifndef uint32_t
19098 typedef u_int32_t uint32_t;
19099 #endif
19100 #endif
19101 #endif
19102 EOF
19103 else
19104 sed 's/^ *//' >> tmp-stdint.h <<EOF
19105
19106 /* Some systems have guard macros to prevent redefinitions, define them. */
19107 #ifndef _INT8_T
19108 #define _INT8_T
19109 #endif
19110 #ifndef _INT16_T
19111 #define _INT16_T
19112 #endif
19113 #ifndef _INT32_T
19114 #define _INT32_T
19115 #endif
19116 #ifndef _UINT8_T
19117 #define _UINT8_T
19118 #endif
19119 #ifndef _UINT16_T
19120 #define _UINT16_T
19121 #endif
19122 #ifndef _UINT32_T
19123 #define _UINT32_T
19124 #endif
19125 EOF
19126 fi
19127
19128 # ------------- done basic int types, emit int64_t types ------------
19129 if test "$ac_cv_type_uint64_t" = yes; then
19130 sed 's/^ *//' >> tmp-stdint.h <<EOF
19131
19132 /* system headers have good uint64_t and int64_t */
19133 #ifndef _INT64_T
19134 #define _INT64_T
19135 #endif
19136 #ifndef _UINT64_T
19137 #define _UINT64_T
19138 #endif
19139 EOF
19140 elif test "$ac_cv_type_u_int64_t" = yes; then
19141 sed 's/^ *//' >> tmp-stdint.h <<EOF
19142
19143 /* system headers have an u_int64_t (and int64_t) */
19144 #ifndef _INT64_T
19145 #define _INT64_T
19146 #endif
19147 #ifndef _UINT64_T
19148 #define _UINT64_T
19149 #ifndef __uint64_t_defined
19150 #define __uint64_t_defined
19151 #ifndef uint64_t
19152 typedef u_int64_t uint64_t;
19153 #endif
19154 #endif
19155 #endif
19156 EOF
19157 elif test -n "$acx_cv_type_int64_t"; then
19158 sed 's/^ *//' >> tmp-stdint.h <<EOF
19159
19160 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19161 #ifndef _INT64_T
19162 #define _INT64_T
19163 #ifndef int64_t
19164 typedef $acx_cv_type_int64_t int64_t;
19165 #endif
19166 #endif
19167 #ifndef _UINT64_T
19168 #define _UINT64_T
19169 #ifndef __uint64_t_defined
19170 #define __uint64_t_defined
19171 #ifndef uint64_t
19172 typedef unsigned $acx_cv_type_int64_t uint64_t;
19173 #endif
19174 #endif
19175 #endif
19176 EOF
19177 else
19178 sed 's/^ *//' >> tmp-stdint.h <<EOF
19179
19180 /* some common heuristics for int64_t, using compiler-specific tests */
19181 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19182 #ifndef _INT64_T
19183 #define _INT64_T
19184 #ifndef __int64_t_defined
19185 #ifndef int64_t
19186 typedef long long int64_t;
19187 #endif
19188 #endif
19189 #endif
19190 #ifndef _UINT64_T
19191 #define _UINT64_T
19192 #ifndef uint64_t
19193 typedef unsigned long long uint64_t;
19194 #endif
19195 #endif
19196
19197 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19198 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19199 does not implement __extension__. But that compiler doesn't define
19200 __GNUC_MINOR__. */
19201 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19202 # define __extension__
19203 # endif
19204
19205 # ifndef _INT64_T
19206 # define _INT64_T
19207 # ifndef int64_t
19208 __extension__ typedef long long int64_t;
19209 # endif
19210 # endif
19211 # ifndef _UINT64_T
19212 # define _UINT64_T
19213 # ifndef uint64_t
19214 __extension__ typedef unsigned long long uint64_t;
19215 # endif
19216 # endif
19217
19218 #elif !defined __STRICT_ANSI__
19219 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19220
19221 # ifndef _INT64_T
19222 # define _INT64_T
19223 # ifndef int64_t
19224 typedef __int64 int64_t;
19225 # endif
19226 # endif
19227 # ifndef _UINT64_T
19228 # define _UINT64_T
19229 # ifndef uint64_t
19230 typedef unsigned __int64 uint64_t;
19231 # endif
19232 # endif
19233 # endif /* compiler */
19234
19235 #endif /* ANSI version */
19236 EOF
19237 fi
19238
19239 # ------------- done int64_t types, emit intptr types ------------
19240 if test "$ac_cv_type_uintptr_t" != yes; then
19241 sed 's/^ *//' >> tmp-stdint.h <<EOF
19242
19243 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19244 #ifndef __uintptr_t_defined
19245 #ifndef uintptr_t
19246 typedef u$acx_cv_type_intptr_t uintptr_t;
19247 #endif
19248 #endif
19249 #ifndef __intptr_t_defined
19250 #ifndef intptr_t
19251 typedef $acx_cv_type_intptr_t intptr_t;
19252 #endif
19253 #endif
19254 EOF
19255 fi
19256
19257 # ------------- done intptr types, emit int_least types ------------
19258 if test "$ac_cv_type_int_least32_t" != yes; then
19259 sed 's/^ *//' >> tmp-stdint.h <<EOF
19260
19261 /* Define int_least types */
19262 typedef int8_t int_least8_t;
19263 typedef int16_t int_least16_t;
19264 typedef int32_t int_least32_t;
19265 #ifdef _INT64_T
19266 typedef int64_t int_least64_t;
19267 #endif
19268
19269 typedef uint8_t uint_least8_t;
19270 typedef uint16_t uint_least16_t;
19271 typedef uint32_t uint_least32_t;
19272 #ifdef _UINT64_T
19273 typedef uint64_t uint_least64_t;
19274 #endif
19275 EOF
19276 fi
19277
19278 # ------------- done intptr types, emit int_fast types ------------
19279 if test "$ac_cv_type_int_fast32_t" != yes; then
19280 sed 's/^ *//' >> tmp-stdint.h <<EOF
19281
19282 /* Define int_fast types. short is often slow */
19283 typedef int8_t int_fast8_t;
19284 typedef int int_fast16_t;
19285 typedef int32_t int_fast32_t;
19286 #ifdef _INT64_T
19287 typedef int64_t int_fast64_t;
19288 #endif
19289
19290 typedef uint8_t uint_fast8_t;
19291 typedef unsigned int uint_fast16_t;
19292 typedef uint32_t uint_fast32_t;
19293 #ifdef _UINT64_T
19294 typedef uint64_t uint_fast64_t;
19295 #endif
19296 EOF
19297 fi
19298
19299 if test "$ac_cv_type_uintmax_t" != yes; then
19300 sed 's/^ *//' >> tmp-stdint.h <<EOF
19301
19302 /* Define intmax based on what we found */
19303 #ifndef intmax_t
19304 #ifdef _INT64_T
19305 typedef int64_t intmax_t;
19306 #else
19307 typedef long intmax_t;
19308 #endif
19309 #endif
19310 #ifndef uintmax_t
19311 #ifdef _UINT64_T
19312 typedef uint64_t uintmax_t;
19313 #else
19314 typedef unsigned long uintmax_t;
19315 #endif
19316 #endif
19317 EOF
19318 fi
19319
19320 sed 's/^ *//' >> tmp-stdint.h <<EOF
19321
19322 #endif /* GCC_GENERATED_STDINT_H */
19323 EOF
19324
19325 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19326 rm -f tmp-stdint.h
19327 else
19328 mv -f tmp-stdint.h gstdint.h
19329 fi
19330
19331 ;;
19332 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19333 s!`test -f '$<' || echo '$(srcdir)/'`!!
19334 _EOF
19335 sed -f vpsed$$ $ac_file > tmp$$
19336 mv tmp$$ $ac_file
19337 rm vpsed$$
19338 echo 'MULTISUBDIR =' >> $ac_file
19339 ml_norecursion=yes
19340 . ${multi_basedir}/config-ml.in
19341 { ml_norecursion=; unset ml_norecursion;}
19342 ;;
19343 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19344 s!`test -f '$<' || echo '$(srcdir)/'`!!
19345 _EOF
19346 sed -f vpsed$$ $ac_file > tmp$$
19347 mv tmp$$ $ac_file
19348 rm vpsed$$
19349 echo 'MULTISUBDIR =' >> $ac_file
19350 ml_norecursion=yes
19351 . ${multi_basedir}/config-ml.in
19352 { ml_norecursion=; unset ml_norecursion;}
19353 ;;
19354 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19355 s!`test -f '$<' || echo '$(srcdir)/'`!!
19356 _EOF
19357 sed -f vpsed$$ $ac_file > tmp$$
19358 mv tmp$$ $ac_file
19359 rm vpsed$$
19360 echo 'MULTISUBDIR =' >> $ac_file
19361 ml_norecursion=yes
19362 . ${multi_basedir}/config-ml.in
19363 { ml_norecursion=; unset ml_norecursion;}
19364 ;;
19365 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19366 s!`test -f '$<' || echo '$(srcdir)/'`!!
19367 _EOF
19368 sed -f vpsed$$ $ac_file > tmp$$
19369 mv tmp$$ $ac_file
19370 rm vpsed$$
19371 echo 'MULTISUBDIR =' >> $ac_file
19372 ml_norecursion=yes
19373 . ${multi_basedir}/config-ml.in
19374 { ml_norecursion=; unset ml_norecursion;}
19375 ;;
19376 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19377 s!`test -f '$<' || echo '$(srcdir)/'`!!
19378 _EOF
19379 sed -f vpsed$$ $ac_file > tmp$$
19380 mv tmp$$ $ac_file
19381 rm vpsed$$
19382 echo 'MULTISUBDIR =' >> $ac_file
19383 ml_norecursion=yes
19384 . ${multi_basedir}/config-ml.in
19385 { ml_norecursion=; unset ml_norecursion;}
19386 ;;
19387 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19388 s!`test -f '$<' || echo '$(srcdir)/'`!!
19389 _EOF
19390 sed -f vpsed$$ $ac_file > tmp$$
19391 mv tmp$$ $ac_file
19392 rm vpsed$$
19393 echo 'MULTISUBDIR =' >> $ac_file
19394 ml_norecursion=yes
19395 . ${multi_basedir}/config-ml.in
19396 { ml_norecursion=; unset ml_norecursion;}
19397 ;;
19398 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19399 s!`test -f '$<' || echo '$(srcdir)/'`!!
19400 _EOF
19401 sed -f vpsed$$ $ac_file > tmp$$
19402 mv tmp$$ $ac_file
19403 rm vpsed$$
19404 echo 'MULTISUBDIR =' >> $ac_file
19405 ml_norecursion=yes
19406 . ${multi_basedir}/config-ml.in
19407 { ml_norecursion=; unset ml_norecursion;}
19408 ;;
19409
19410 esac
19411 done # for ac_tag
19412
19413
19414 as_fn_exit 0
19415 _ACEOF
19416 ac_clean_files=$ac_clean_files_save
19417
19418 test $ac_write_fail = 0 ||
19419 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19420
19421
19422 # configure is writing to config.log, and then calls config.status.
19423 # config.status does its own redirection, appending to config.log.
19424 # Unfortunately, on DOS this fails, as config.log is still kept open
19425 # by configure, so config.status won't be able to write to it; its
19426 # output is simply discarded. So we exec the FD to /dev/null,
19427 # effectively closing config.log, so it can be properly (re)opened and
19428 # appended to by config.status. When coming back to configure, we
19429 # need to make the FD available again.
19430 if test "$no_create" != yes; then
19431 ac_cs_success=:
19432 ac_config_status_args=
19433 test "$silent" = yes &&
19434 ac_config_status_args="$ac_config_status_args --quiet"
19435 exec 5>/dev/null
19436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19437 exec 5>>config.log
19438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19439 # would make configure fail if this is the last instruction.
19440 $ac_cs_success || as_fn_exit $?
19441 fi
19442 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19444 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19445 fi
19446