]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
re PR sanitizer/77631 (no symbols in backtrace shown by ASan when debug info is split)
[thirdparty/gcc.git] / libbacktrace / 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 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libbacktrace'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="backtrace.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NATIVE_FALSE
606 NATIVE_TRUE
607 HAVE_OBJCOPY_DEBUGLINK_FALSE
608 HAVE_OBJCOPY_DEBUGLINK_TRUE
609 OBJCOPY
610 HAVE_PTHREAD_FALSE
611 HAVE_PTHREAD_TRUE
612 PTHREAD_CFLAGS
613 BACKTRACE_USES_MALLOC
614 ALLOC_FILE
615 VIEW_FILE
616 BACKTRACE_SUPPORTS_DATA
617 BACKTRACE_SUPPORTED
618 FORMAT_FILE
619 BACKTRACE_SUPPORTS_THREADS
620 PIC_FLAG
621 WARN_FLAGS
622 EXTRA_FLAGS
623 BACKTRACE_FILE
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 AR
630 OBJDUMP
631 LN_S
632 NM
633 ac_ct_DUMPBIN
634 DUMPBIN
635 LD
636 FGREP
637 SED
638 LIBTOOL
639 RANLIB
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
648 AWK
649 mkdir_p
650 MKDIR_P
651 INSTALL_STRIP_PROGRAM
652 STRIP
653 install_sh
654 MAKEINFO
655 AUTOHEADER
656 AUTOMAKE
657 AUTOCONF
658 ACLOCAL
659 VERSION
660 PACKAGE
661 CYGPATH_W
662 am__isrc
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 libtool_VERSION
667 EGREP
668 GREP
669 CPP
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 multi_basedir
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_multilib
732 enable_maintainer_mode
733 with_target_subdir
734 enable_shared
735 enable_static
736 with_pic
737 enable_fast_install
738 with_gnu_ld
739 enable_libtool_lock
740 enable_largefile
741 with_system_libunwind
742 enable_host_shared
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 OBJCOPY'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *) ac_optarg=yes ;;
818 esac
819
820 # Accept the important Cygnus configure options, so we can diagnose typos.
821
822 case $ac_dashdash$ac_option in
823 --)
824 ac_dashdash=yes ;;
825
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
830
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
835
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
842
843 --config-cache | -C)
844 cache_file=config.cache ;;
845
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
850
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
857
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=no ;;
873
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
878
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
883
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=\$ac_optarg ;;
899
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
908
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
911 with_gas=yes ;;
912
913 -help | --help | --hel | --he | -h)
914 ac_init_help=long ;;
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
919
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
924
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 ac_prev=htmldir ;;
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 | --ht=*)
929 htmldir=$ac_optarg ;;
930
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
937
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 ac_prev=infodir ;;
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
942
943 -libdir | --libdir | --libdi | --libd)
944 ac_prev=libdir ;;
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 libdir=$ac_optarg ;;
947
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
954
955 -localedir | --localedir | --localedi | --localed | --locale)
956 ac_prev=localedir ;;
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
959
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
966
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 ac_prev=mandir ;;
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 mandir=$ac_optarg ;;
971
972 -nfp | --nfp | --nf)
973 # Obsolete; use --without-fp.
974 with_fp=no ;;
975
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
978 no_create=yes ;;
979
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 no_recursion=yes ;;
983
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
992
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 ac_prev=prefix ;;
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 prefix=$ac_optarg ;;
997
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1004
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1011
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1028
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 ac_prev=pdfdir ;;
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1033
1034 -psdir | --psdir | --psdi | --psd | --ps)
1035 ac_prev=psdir ;;
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 psdir=$ac_optarg ;;
1038
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 silent=yes ;;
1042
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
1103
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
1119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
1138 -*) as_fn_error "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information."
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148 esac
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 ;;
1159
1160 esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1181 do
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
1190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
1194 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used." >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1212 fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\).*/{
1252 s//\1/
1253 q
1254 }
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1259 fi
1260 else
1261 ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356
1357 System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 --target=TARGET configure for building compilers for TARGET [HOST]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of package-unused version-unused:";;
1367 esac
1368 cat <<\_ACEOF
1369
1370 Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-multilib build many library versions (default)
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --enable-shared[=PKGS] build shared libraries [default=yes]
1378 --enable-static[=PKGS] build static libraries [default=yes]
1379 --enable-fast-install[=PKGS]
1380 optimize for fast installation [default=yes]
1381 --disable-libtool-lock avoid locking (might break parallel builds)
1382 --disable-largefile omit support for large files
1383 --enable-host-shared build host code as shared libraries
1384
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1389 --with-pic try to use only PIC/non-PIC objects [default=use
1390 both]
1391 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1392 --with-system-libunwind use installed libunwind
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 OBJCOPY location of objcopy
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to the package provider.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418 continue
1419 ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438 .) # We are building in place.
1439 ac_srcdir=.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1461 else
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1465 done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470 cat <<\_ACEOF
1471 package-unused configure version-unused
1472 generated by GNU Autoconf 2.64
1473
1474 Copyright (C) 2009 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478 exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1505 fi
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516 ac_retval=1
1517 fi
1518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1519 return $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_c_try_cpp LINENO
1524 # ----------------------
1525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_cpp ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 if { { ac_try="$ac_cpp conftest.$ac_ext"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } >/dev/null && {
1545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 }; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553 ac_retval=1
1554 fi
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1557
1558 } # ac_fn_c_try_cpp
1559
1560 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1563 # the include files in INCLUDES and setting the cache variable VAR
1564 # accordingly.
1565 ac_fn_c_check_header_mongrel ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 $as_echo_n "checking for $2... " >&6; }
1571 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572 $as_echo_n "(cached) " >&6
1573 fi
1574 eval ac_res=\$$3
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 $as_echo "$ac_res" >&6; }
1577 else
1578 # Is the header compilable?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1580 $as_echo_n "checking $2 usability... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 $4
1584 #include <$2>
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587 ac_header_compiler=yes
1588 else
1589 ac_header_compiler=no
1590 fi
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1593 $as_echo "$ac_header_compiler" >&6; }
1594
1595 # Is the header present?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1597 $as_echo_n "checking $2 presence... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_cpp "$LINENO"; then :
1603 ac_header_preproc=yes
1604 else
1605 ac_header_preproc=no
1606 fi
1607 rm -f conftest.err conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1609 $as_echo "$ac_header_preproc" >&6; }
1610
1611 # So? What about this header?
1612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1613 yes:no: )
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1615 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618 ;;
1619 no:yes:* )
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1621 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1623 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1625 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1627 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630 ;;
1631 esac
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1635 $as_echo_n "(cached) " >&6
1636 else
1637 eval "$3=\$ac_header_compiler"
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 fi
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644
1645 } # ac_fn_c_check_header_mongrel
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=$ac_status
1682 fi
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685 return $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1699 $as_echo_n "(cached) " >&6
1700 else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 eval "$3=yes"
1708 else
1709 eval "$3=no"
1710 fi
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717
1718 } # ac_fn_c_check_header_compile
1719
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 $as_test_x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 return $ac_retval
1763
1764 } # ac_fn_c_try_link
1765
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1782
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1787
1788 #ifdef __STDC__
1789 # include <limits.h>
1790 #else
1791 # include <assert.h>
1792 #endif
1793
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 ();
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main ()
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831 } # ac_fn_c_check_func
1832
1833 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1834 # -------------------------------------------
1835 # Tests whether TYPE exists after having included INCLUDES, setting cache
1836 # variable VAR accordingly.
1837 ac_fn_c_check_type ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=no"
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 int
1850 main ()
1851 {
1852 if (sizeof ($2))
1853 return 0;
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main ()
1864 {
1865 if (sizeof (($2)))
1866 return 0;
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872
1873 else
1874 eval "$3=yes"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_type
1886
1887 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1888 # --------------------------------------------
1889 # Tries to find the compile-time value of EXPR in a program that includes
1890 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1891 # computed
1892 ac_fn_c_compute_int ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if test "$cross_compiling" = yes; then
1896 # Depending upon the size, compute the lo and hi bounds.
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main ()
1902 {
1903 static int test_array [1 - 2 * !(($2) >= 0)];
1904 test_array [0] = 0
1905
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 ac_lo=0 ac_mid=0
1912 while :; do
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main ()
1918 {
1919 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1920 test_array [0] = 0
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_hi=$ac_mid; break
1928 else
1929 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1930 if test $ac_lo -le $ac_mid; then
1931 ac_lo= ac_hi=
1932 break
1933 fi
1934 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 done
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 static int test_array [1 - 2 * !(($2) < 0)];
1946 test_array [0] = 0
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_hi=-1 ac_mid=-1
1954 while :; do
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main ()
1960 {
1961 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 test_array [0] = 0
1963
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_lo=$ac_mid; break
1970 else
1971 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1972 if test $ac_mid -le $ac_hi; then
1973 ac_lo= ac_hi=
1974 break
1975 fi
1976 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 done
1980 else
1981 ac_lo= ac_hi=
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 # Binary search between lo and hi bounds.
1987 while test "x$ac_lo" != "x$ac_hi"; do
1988 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main ()
1994 {
1995 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996 test_array [0] = 0
1997
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=$ac_mid
2004 else
2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 case $ac_lo in #((
2010 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2011 '') ac_retval=1 ;;
2012 esac
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 static long int longval () { return $2; }
2018 static unsigned long int ulongval () { return $2; }
2019 #include <stdio.h>
2020 #include <stdlib.h>
2021 int
2022 main ()
2023 {
2024
2025 FILE *f = fopen ("conftest.val", "w");
2026 if (! f)
2027 return 1;
2028 if (($2) < 0)
2029 {
2030 long int i = longval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%ld", i);
2034 }
2035 else
2036 {
2037 unsigned long int i = ulongval ();
2038 if (i != ($2))
2039 return 1;
2040 fprintf (f, "%lu", i);
2041 }
2042 /* Do not output a trailing newline, as this causes \r\n confusion
2043 on some platforms. */
2044 return ferror (f) || fclose (f) != 0;
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_run "$LINENO"; then :
2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2052 else
2053 ac_retval=1
2054 fi
2055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2056 conftest.$ac_objext conftest.beam conftest.$ac_ext
2057 rm -f conftest.val
2058
2059 fi
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 return $ac_retval
2062
2063 } # ac_fn_c_compute_int
2064
2065 # ac_fn_c_check_decl LINENO SYMBOL VAR
2066 # ------------------------------------
2067 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2068 ac_fn_c_check_decl ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 as_decl_name=`echo $2|sed 's/ *(.*//'`
2072 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2074 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 int
2082 main ()
2083 {
2084 #ifndef $as_decl_name
2085 #ifdef __cplusplus
2086 (void) $as_decl_use;
2087 #else
2088 (void) $as_decl_name;
2089 #endif
2090 #endif
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 eval "$3=yes"
2098 else
2099 eval "$3=no"
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_c_check_decl
2109 cat >config.log <<_ACEOF
2110 This file contains any messages produced by compilers while
2111 running configure, to aid debugging if configure makes a mistake.
2112
2113 It was created by package-unused $as_me version-unused, which was
2114 generated by GNU Autoconf 2.64. Invocation command line was
2115
2116 $ $0 $@
2117
2118 _ACEOF
2119 exec 5>>config.log
2120 {
2121 cat <<_ASUNAME
2122 ## --------- ##
2123 ## Platform. ##
2124 ## --------- ##
2125
2126 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2127 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2128 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2129 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2130 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2131
2132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2133 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2134
2135 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2136 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2137 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2138 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2139 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2140 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2141 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2142
2143 _ASUNAME
2144
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 $as_echo "PATH: $as_dir"
2151 done
2152 IFS=$as_save_IFS
2153
2154 } >&5
2155
2156 cat >&5 <<_ACEOF
2157
2158
2159 ## ----------- ##
2160 ## Core tests. ##
2161 ## ----------- ##
2162
2163 _ACEOF
2164
2165
2166 # Keep a trace of the command line.
2167 # Strip out --no-create and --no-recursion so they do not pile up.
2168 # Strip out --silent because we don't want to record it for future runs.
2169 # Also quote any args containing shell meta-characters.
2170 # Make two passes to allow for proper duplicate-argument suppression.
2171 ac_configure_args=
2172 ac_configure_args0=
2173 ac_configure_args1=
2174 ac_must_keep_next=false
2175 for ac_pass in 1 2
2176 do
2177 for ac_arg
2178 do
2179 case $ac_arg in
2180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182 | -silent | --silent | --silen | --sile | --sil)
2183 continue ;;
2184 *\'*)
2185 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 esac
2187 case $ac_pass in
2188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2189 2)
2190 as_fn_append ac_configure_args1 " '$ac_arg'"
2191 if test $ac_must_keep_next = true; then
2192 ac_must_keep_next=false # Got value, back to normal.
2193 else
2194 case $ac_arg in
2195 *=* | --config-cache | -C | -disable-* | --disable-* \
2196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198 | -with-* | --with-* | -without-* | --without-* | --x)
2199 case "$ac_configure_args0 " in
2200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 esac
2202 ;;
2203 -* ) ac_must_keep_next=true ;;
2204 esac
2205 fi
2206 as_fn_append ac_configure_args " '$ac_arg'"
2207 ;;
2208 esac
2209 done
2210 done
2211 { ac_configure_args0=; unset ac_configure_args0;}
2212 { ac_configure_args1=; unset ac_configure_args1;}
2213
2214 # When interrupted or exit'd, cleanup temporary files, and complete
2215 # config.log. We remove comments because anyway the quotes in there
2216 # would cause problems or look ugly.
2217 # WARNING: Use '\'' to represent an apostrophe within the trap.
2218 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2219 trap 'exit_status=$?
2220 # Save into config.log some information that might help in debugging.
2221 {
2222 echo
2223
2224 cat <<\_ASBOX
2225 ## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##
2228 _ASBOX
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2231 (
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243 *) { eval $ac_var=; unset $ac_var;} ;;
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2254 *)
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 ;;
2257 esac |
2258 sort
2259 )
2260 echo
2261
2262 cat <<\_ASBOX
2263 ## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##
2266 _ASBOX
2267 echo
2268 for ac_var in $ac_subst_vars
2269 do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2277
2278 if test -n "$ac_subst_files"; then
2279 cat <<\_ASBOX
2280 ## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##
2283 _ASBOX
2284 echo
2285 for ac_var in $ac_subst_files
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294 fi
2295
2296 if test -s confdefs.h; then
2297 cat <<\_ASBOX
2298 ## ----------- ##
2299 ## confdefs.h. ##
2300 ## ----------- ##
2301 _ASBOX
2302 echo
2303 cat confdefs.h
2304 echo
2305 fi
2306 test "$ac_signal" != 0 &&
2307 $as_echo "$as_me: caught signal $ac_signal"
2308 $as_echo "$as_me: exit $exit_status"
2309 } >&5
2310 rm -f core *.core core.conftest.* &&
2311 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 exit $exit_status
2313 ' 0
2314 for ac_signal in 1 2 13 15; do
2315 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2318
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2321
2322 $as_echo "/* confdefs.h */" > confdefs.h
2323
2324 # Predefined preprocessor variables.
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2349
2350
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356 ac_site_file1=$CONFIG_SITE
2357 elif test "x$prefix" != xNONE; then
2358 ac_site_file1=$prefix/share/config.site
2359 ac_site_file2=$prefix/etc/config.site
2360 else
2361 ac_site_file1=$ac_default_prefix/share/config.site
2362 ac_site_file2=$ac_default_prefix/etc/config.site
2363 fi
2364 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 do
2366 test "x$ac_site_file" = xNONE && continue
2367 if test -r "$ac_site_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file"
2372 fi
2373 done
2374
2375 if test -r "$cache_file"; then
2376 # Some versions of bash will fail to source /dev/null (special
2377 # files actually), so we avoid doing that.
2378 if test -f "$cache_file"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2380 $as_echo "$as_me: loading cache $cache_file" >&6;}
2381 case $cache_file in
2382 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383 *) . "./$cache_file";;
2384 esac
2385 fi
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2388 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389 >$cache_file
2390 fi
2391
2392 # Check that the precious variables saved in the cache have kept the same
2393 # value.
2394 ac_cache_corrupted=false
2395 for ac_var in $ac_precious_vars; do
2396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2397 eval ac_new_set=\$ac_env_${ac_var}_set
2398 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2399 eval ac_new_val=\$ac_env_${ac_var}_value
2400 case $ac_old_set,$ac_new_set in
2401 set,)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,set)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,);;
2410 *)
2411 if test "x$ac_old_val" != "x$ac_new_val"; then
2412 # differences in whitespace do not lead to failure.
2413 ac_old_val_w=`echo x $ac_old_val`
2414 ac_new_val_w=`echo x $ac_new_val`
2415 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2417 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2418 ac_cache_corrupted=:
2419 else
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2421 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2422 eval $ac_var=\$ac_old_val
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2425 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2427 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2428 fi;;
2429 esac
2430 # Pass precious variables to config.status.
2431 if test "$ac_new_set" = set; then
2432 case $ac_new_val in
2433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 *) ac_arg=$ac_var=$ac_new_val ;;
2435 esac
2436 case " $ac_configure_args " in
2437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2438 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439 esac
2440 fi
2441 done
2442 if $ac_cache_corrupted; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2446 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2447 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 fi
2449 ## -------------------- ##
2450 ## Main body of script. ##
2451 ## -------------------- ##
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
2459
2460
2461
2462
2463
2464 ac_config_headers="$ac_config_headers config.h"
2465
2466
2467 if test -n "${with_target_subdir}"; then
2468 # Default to --enable-multilib
2469 # Check whether --enable-multilib was given.
2470 if test "${enable_multilib+set}" = set; then :
2471 enableval=$enable_multilib; case "$enableval" in
2472 yes) multilib=yes ;;
2473 no) multilib=no ;;
2474 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2475 esac
2476 else
2477 multilib=yes
2478 fi
2479
2480
2481 # We may get other options which we leave undocumented:
2482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2483 # See config-ml.in if you want the gory details.
2484
2485 if test "$srcdir" = "."; then
2486 if test "$with_target_subdir" != "."; then
2487 multi_basedir="$srcdir/$with_multisrctop../.."
2488 else
2489 multi_basedir="$srcdir/$with_multisrctop.."
2490 fi
2491 else
2492 multi_basedir="$srcdir/.."
2493 fi
2494
2495
2496 # Even if the default multilib is not a cross compilation,
2497 # it may be that some of the other multilibs are.
2498 if test $cross_compiling = no && test $multilib = yes \
2499 && test "x${with_multisubdir}" != x ; then
2500 cross_compiling=maybe
2501 fi
2502
2503 ac_config_commands="$ac_config_commands default-1"
2504
2505 fi
2506
2507 ac_aux_dir=
2508 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2509 for ac_t in install-sh install.sh shtool; do
2510 if test -f "$ac_dir/$ac_t"; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/$ac_t -c"
2513 break 2
2514 fi
2515 done
2516 done
2517 if test -z "$ac_aux_dir"; then
2518 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2519 fi
2520
2521 # These three variables are undocumented and unsupported,
2522 # and are intended to be withdrawn in a future Autoconf release.
2523 # They can cause serious problems if a builder's source tree is in a directory
2524 # whose full name contains unusual characters.
2525 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2526 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2527 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528
2529
2530 # Make sure we can run config.sub.
2531 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2532 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2544 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2545 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2549 $as_echo "$ac_cv_build" >&6; }
2550 case $ac_cv_build in
2551 *-*-*) ;;
2552 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2553 esac
2554 build=$ac_cv_build
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_build
2557 shift
2558 build_cpu=$1
2559 build_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 build_os=$*
2564 IFS=$ac_save_IFS
2565 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2569 $as_echo_n "checking host system type... " >&6; }
2570 if test "${ac_cv_host+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test "x$host_alias" = x; then
2574 ac_cv_host=$ac_cv_build
2575 else
2576 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2577 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2578 fi
2579
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2582 $as_echo "$ac_cv_host" >&6; }
2583 case $ac_cv_host in
2584 *-*-*) ;;
2585 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2586 esac
2587 host=$ac_cv_host
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_host
2590 shift
2591 host_cpu=$1
2592 host_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 host_os=$*
2597 IFS=$ac_save_IFS
2598 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2599
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2602 $as_echo_n "checking target system type... " >&6; }
2603 if test "${ac_cv_target+set}" = set; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test "x$target_alias" = x; then
2607 ac_cv_target=$ac_cv_host
2608 else
2609 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2610 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2611 fi
2612
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2615 $as_echo "$ac_cv_target" >&6; }
2616 case $ac_cv_target in
2617 *-*-*) ;;
2618 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2619 esac
2620 target=$ac_cv_target
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_target
2623 shift
2624 target_cpu=$1
2625 target_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 target_os=$*
2630 IFS=$ac_save_IFS
2631 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2632
2633
2634 # The aliases save the names the user supplied, while $host etc.
2635 # will get canonicalized.
2636 test -n "$target_alias" &&
2637 test "$program_prefix$program_suffix$program_transform_name" = \
2638 NONENONEs,x,x, &&
2639 program_prefix=${target_alias}-
2640
2641 target_alias=${target_alias-$host_alias}
2642
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$ac_cv_prog_CC"; then
2688 ac_ct_CC=$CC
2689 # Extract the first word of "gcc", so it can be a program name with args.
2690 set dummy gcc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$ac_ct_CC"; then
2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_CC="gcc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717 if test -n "$ac_ct_CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2719 $as_echo "$ac_ct_CC" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725 if test "x$ac_ct_CC" = x; then
2726 CC=""
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2733 esac
2734 CC=$ac_ct_CC
2735 fi
2736 else
2737 CC="$ac_cv_prog_CC"
2738 fi
2739
2740 if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}cc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}cc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 fi
2781 if test -z "$CC"; then
2782 # Extract the first word of "cc", so it can be a program name with args.
2783 set dummy cc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 ac_prog_rejected=no
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2801 ac_prog_rejected=yes
2802 continue
2803 fi
2804 ac_cv_prog_CC="cc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 if test $ac_prog_rejected = yes; then
2813 # We found a bogon in the path, so make sure we never use it.
2814 set dummy $ac_cv_prog_CC
2815 shift
2816 if test $# != 0; then
2817 # We chose a different compiler from the bogus one.
2818 # However, it has the same basename, so the bogon will be chosen
2819 # first if we set CC to just the basename; use the full file name.
2820 shift
2821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822 fi
2823 fi
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 fi
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in cl.exe
2840 do
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_CC+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 test -n "$CC" && break
2879 done
2880 fi
2881 if test -z "$CC"; then
2882 ac_ct_CC=$CC
2883 for ac_prog in cl.exe
2884 do
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 test -n "$ac_ct_CC" && break
2923 done
2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CC=$ac_ct_CC
2935 fi
2936 fi
2937
2938 fi
2939
2940
2941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error "no acceptable C compiler found in \$PATH
2944 See \`config.log' for more details." "$LINENO" 5; }
2945
2946 # Provide some information about the compiler.
2947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2948 set X $ac_compile
2949 ac_compiler=$2
2950 for ac_option in --version -v -V -qversion; do
2951 { { ac_try="$ac_compiler $ac_option >&5"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2959 ac_status=$?
2960 if test -s conftest.err; then
2961 sed '10a\
2962 ... rest of stderr output deleted ...
2963 10q' conftest.err >conftest.er1
2964 cat conftest.er1 >&5
2965 rm -f conftest.er1 conftest.err
2966 fi
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }
2969 done
2970
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2973
2974 int
2975 main ()
2976 {
2977
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 ac_clean_files_save=$ac_clean_files
2983 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2986 # of exeext.
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2988 $as_echo_n "checking for C compiler default output file name... " >&6; }
2989 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990
2991 # The possible output files:
2992 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2993
2994 ac_rmfiles=
2995 for ac_file in $ac_files
2996 do
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2999 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3000 esac
3001 done
3002 rm -f $ac_rmfiles
3003
3004 if { { ac_try="$ac_link_default"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link_default") 2>&5
3012 ac_status=$?
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }; then :
3015 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3016 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3017 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3018 # so that the user can short-circuit this test for compilers unknown to
3019 # Autoconf.
3020 for ac_file in $ac_files ''
3021 do
3022 test -f "$ac_file" || continue
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3025 ;;
3026 [ab].out )
3027 # We found the default executable, but exeext='' is most
3028 # certainly right.
3029 break;;
3030 *.* )
3031 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3032 then :; else
3033 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 fi
3035 # We set ac_cv_exeext here because the later test for it is not
3036 # safe: cross compilers may not add the suffix if given an `-o'
3037 # argument, so we may need to know it at that point already.
3038 # Even if this section looks crufty: it has the advantage of
3039 # actually working.
3040 break;;
3041 * )
3042 break;;
3043 esac
3044 done
3045 test "$ac_cv_exeext" = no && ac_cv_exeext=
3046
3047 else
3048 ac_file=''
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3051 $as_echo "$ac_file" >&6; }
3052 if test -z "$ac_file"; then :
3053 $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 { as_fn_set_status 77
3059 as_fn_error "C compiler cannot create executables
3060 See \`config.log' for more details." "$LINENO" 5; }; }
3061 fi
3062 ac_exeext=$ac_cv_exeext
3063
3064 # Check that the compiler produces executables we can run. If not, either
3065 # the compiler is broken, or we cross compile.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3067 $as_echo_n "checking whether the C compiler works... " >&6; }
3068 # If not cross compiling, check that we can run a simple program.
3069 if test "$cross_compiling" != yes; then
3070 if { ac_try='./$ac_file'
3071 { { case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error "cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details." "$LINENO" 5; }
3091 fi
3092 fi
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3096
3097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102 $as_echo_n "checking whether we are cross compiling... " >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3104 $as_echo "$cross_compiling" >&6; }
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107 $as_echo_n "checking for suffix of executables... " >&6; }
3108 if { { ac_try="$ac_link"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3121 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 # `rm'.
3123 for ac_file in conftest.exe conftest conftest.*; do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 break;;
3129 * ) break;;
3130 esac
3131 done
3132 else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error "cannot compute suffix of executables: cannot compile and link
3136 See \`config.log' for more details." "$LINENO" 5; }
3137 fi
3138 rm -f conftest$ac_cv_exeext
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140 $as_echo "$ac_cv_exeext" >&6; }
3141
3142 rm -f conftest.$ac_ext
3143 EXEEXT=$ac_cv_exeext
3144 ac_exeext=$EXEEXT
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3146 $as_echo_n "checking for suffix of object files... " >&6; }
3147 if test "${ac_cv_objext+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152
3153 int
3154 main ()
3155 {
3156
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.o conftest.obj
3162 if { { ac_try="$ac_compile"
3163 case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_compile") 2>&5
3170 ac_status=$?
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 for ac_file in conftest.o conftest.obj conftest.*; do
3174 test -f "$ac_file" || continue;
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3178 break;;
3179 esac
3180 done
3181 else
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error "cannot compute suffix of object files: cannot compile
3188 See \`config.log' for more details." "$LINENO" 5; }
3189 fi
3190 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3193 $as_echo "$ac_cv_objext" >&6; }
3194 OBJEXT=$ac_cv_objext
3195 ac_objext=$OBJEXT
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3197 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3198 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203
3204 int
3205 main ()
3206 {
3207 #ifndef __GNUC__
3208 choke me
3209 #endif
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 if ac_fn_c_try_compile "$LINENO"; then :
3216 ac_compiler_gnu=yes
3217 else
3218 ac_compiler_gnu=no
3219 fi
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3225 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3226 if test $ac_compiler_gnu = yes; then
3227 GCC=yes
3228 else
3229 GCC=
3230 fi
3231 ac_test_CFLAGS=${CFLAGS+set}
3232 ac_save_CFLAGS=$CFLAGS
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3234 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3235 if test "${ac_cv_prog_cc_g+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 ac_save_c_werror_flag=$ac_c_werror_flag
3239 ac_c_werror_flag=yes
3240 ac_cv_prog_cc_g=no
3241 CFLAGS="-g"
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3244
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 if ac_fn_c_try_compile "$LINENO"; then :
3254 ac_cv_prog_cc_g=yes
3255 else
3256 CFLAGS=""
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269
3270 else
3271 ac_c_werror_flag=$ac_save_c_werror_flag
3272 CFLAGS="-g"
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_cv_prog_cc_g=yes
3286 fi
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 fi
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3295 $as_echo "$ac_cv_prog_cc_g" >&6; }
3296 if test "$ac_test_CFLAGS" = set; then
3297 CFLAGS=$ac_save_CFLAGS
3298 elif test $ac_cv_prog_cc_g = yes; then
3299 if test "$GCC" = yes; then
3300 CFLAGS="-g -O2"
3301 else
3302 CFLAGS="-g"
3303 fi
3304 else
3305 if test "$GCC" = yes; then
3306 CFLAGS="-O2"
3307 else
3308 CFLAGS=
3309 fi
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3312 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3313 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 ac_cv_prog_cc_c89=no
3317 ac_save_CC=$CC
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320 #include <stdarg.h>
3321 #include <stdio.h>
3322 #include <sys/types.h>
3323 #include <sys/stat.h>
3324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325 struct buf { int x; };
3326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327 static char *e (p, i)
3328 char **p;
3329 int i;
3330 {
3331 return p[i];
3332 }
3333 static char *f (char * (*g) (char **, int), char **p, ...)
3334 {
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3341 }
3342
3343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
3346 as 'x'. The following induces an error, until -std is added to get
3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
3349 that's true only with -std. */
3350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
3352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354 #define FOO(x) 'x'
3355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
3357 int test (int i, double x);
3358 struct s1 {int (*f) (int a);};
3359 struct s2 {int (*f) (double a);};
3360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361 int argc;
3362 char **argv;
3363 int
3364 main ()
3365 {
3366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373 do
3374 CC="$ac_save_CC $ac_arg"
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_cv_prog_cc_c89=$ac_arg
3377 fi
3378 rm -f core conftest.err conftest.$ac_objext
3379 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380 done
3381 rm -f conftest.$ac_ext
3382 CC=$ac_save_CC
3383
3384 fi
3385 # AC_CACHE_VAL
3386 case "x$ac_cv_prog_cc_c89" in
3387 x)
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3389 $as_echo "none needed" >&6; } ;;
3390 xno)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3392 $as_echo "unsupported" >&6; } ;;
3393 *)
3394 CC="$CC $ac_cv_prog_cc_c89"
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3397 esac
3398 if test "x$ac_cv_prog_cc_c89" != xno; then :
3399
3400 fi
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
3408
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3416 # On Suns, sometimes $CPP names a directory.
3417 if test -n "$CPP" && test -d "$CPP"; then
3418 CPP=
3419 fi
3420 if test -z "$CPP"; then
3421 if test "${ac_cv_prog_CPP+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 # Double quotes because CPP needs to be expanded
3425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3426 do
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3429 do
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if ac_fn_c_try_cpp "$LINENO"; then :
3446
3447 else
3448 # Broken: fails on valid input.
3449 continue
3450 fi
3451 rm -f conftest.err conftest.$ac_ext
3452
3453 # OK, works on sane cases. Now check whether nonexistent headers
3454 # can be detected and how.
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if ac_fn_c_try_cpp "$LINENO"; then :
3460 # Broken: success on invalid input.
3461 continue
3462 else
3463 # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3467 rm -f conftest.err conftest.$ac_ext
3468
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then :
3473 break
3474 fi
3475
3476 done
3477 ac_cv_prog_CPP=$CPP
3478
3479 fi
3480 CPP=$ac_cv_prog_CPP
3481 else
3482 ac_cv_prog_CPP=$CPP
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3485 $as_echo "$CPP" >&6; }
3486 ac_preproc_ok=false
3487 for ac_c_preproc_warn_flag in '' yes
3488 do
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #ifdef __STDC__
3498 # include <limits.h>
3499 #else
3500 # include <assert.h>
3501 #endif
3502 Syntax error
3503 _ACEOF
3504 if ac_fn_c_try_cpp "$LINENO"; then :
3505
3506 else
3507 # Broken: fails on valid input.
3508 continue
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if ac_fn_c_try_cpp "$LINENO"; then :
3519 # Broken: success on invalid input.
3520 continue
3521 else
3522 # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3525 fi
3526 rm -f conftest.err conftest.$ac_ext
3527
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then :
3532
3533 else
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details." "$LINENO" 5; }
3538 fi
3539
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3549 if test "${ac_cv_path_GREP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -z "$GREP"; then
3553 ac_path_GREP_found=false
3554 # Loop through the user's path and test for each of PROGNAME-LIST
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_prog in grep ggrep; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3563 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3564 # Check for GNU ac_path_GREP and select it if it is found.
3565 # Check for GNU $ac_path_GREP
3566 case `"$ac_path_GREP" --version 2>&1` in
3567 *GNU*)
3568 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3569 *)
3570 ac_count=0
3571 $as_echo_n 0123456789 >"conftest.in"
3572 while :
3573 do
3574 cat "conftest.in" "conftest.in" >"conftest.tmp"
3575 mv "conftest.tmp" "conftest.in"
3576 cp "conftest.in" "conftest.nl"
3577 $as_echo 'GREP' >> "conftest.nl"
3578 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3580 as_fn_arith $ac_count + 1 && ac_count=$as_val
3581 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3582 # Best one so far, save it but keep looking for a better one
3583 ac_cv_path_GREP="$ac_path_GREP"
3584 ac_path_GREP_max=$ac_count
3585 fi
3586 # 10*(2^10) chars as input seems more than enough
3587 test $ac_count -gt 10 && break
3588 done
3589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3590 esac
3591
3592 $ac_path_GREP_found && break 3
3593 done
3594 done
3595 done
3596 IFS=$as_save_IFS
3597 if test -z "$ac_cv_path_GREP"; then
3598 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3599 fi
3600 else
3601 ac_cv_path_GREP=$GREP
3602 fi
3603
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3606 $as_echo "$ac_cv_path_GREP" >&6; }
3607 GREP="$ac_cv_path_GREP"
3608
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3611 $as_echo_n "checking for egrep... " >&6; }
3612 if test "${ac_cv_path_EGREP+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3616 then ac_cv_path_EGREP="$GREP -E"
3617 else
3618 if test -z "$EGREP"; then
3619 ac_path_EGREP_found=false
3620 # Loop through the user's path and test for each of PROGNAME-LIST
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3623 do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in egrep; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3629 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3630 # Check for GNU ac_path_EGREP and select it if it is found.
3631 # Check for GNU $ac_path_EGREP
3632 case `"$ac_path_EGREP" --version 2>&1` in
3633 *GNU*)
3634 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3635 *)
3636 ac_count=0
3637 $as_echo_n 0123456789 >"conftest.in"
3638 while :
3639 do
3640 cat "conftest.in" "conftest.in" >"conftest.tmp"
3641 mv "conftest.tmp" "conftest.in"
3642 cp "conftest.in" "conftest.nl"
3643 $as_echo 'EGREP' >> "conftest.nl"
3644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3646 as_fn_arith $ac_count + 1 && ac_count=$as_val
3647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3648 # Best one so far, save it but keep looking for a better one
3649 ac_cv_path_EGREP="$ac_path_EGREP"
3650 ac_path_EGREP_max=$ac_count
3651 fi
3652 # 10*(2^10) chars as input seems more than enough
3653 test $ac_count -gt 10 && break
3654 done
3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3656 esac
3657
3658 $ac_path_EGREP_found && break 3
3659 done
3660 done
3661 done
3662 IFS=$as_save_IFS
3663 if test -z "$ac_cv_path_EGREP"; then
3664 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3665 fi
3666 else
3667 ac_cv_path_EGREP=$EGREP
3668 fi
3669
3670 fi
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3673 $as_echo "$ac_cv_path_EGREP" >&6; }
3674 EGREP="$ac_cv_path_EGREP"
3675
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3678 $as_echo_n "checking for ANSI C header files... " >&6; }
3679 if test "${ac_cv_header_stdc+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <stdlib.h>
3685 #include <stdarg.h>
3686 #include <string.h>
3687 #include <float.h>
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_header_stdc=yes
3699 else
3700 ac_cv_header_stdc=no
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703
3704 if test $ac_cv_header_stdc = yes; then
3705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #include <string.h>
3709
3710 _ACEOF
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 $EGREP "memchr" >/dev/null 2>&1; then :
3713
3714 else
3715 ac_cv_header_stdc=no
3716 fi
3717 rm -f conftest*
3718
3719 fi
3720
3721 if test $ac_cv_header_stdc = yes; then
3722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <stdlib.h>
3726
3727 _ACEOF
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "free" >/dev/null 2>&1; then :
3730
3731 else
3732 ac_cv_header_stdc=no
3733 fi
3734 rm -f conftest*
3735
3736 fi
3737
3738 if test $ac_cv_header_stdc = yes; then
3739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3740 if test "$cross_compiling" = yes; then :
3741 :
3742 else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #include <ctype.h>
3746 #include <stdlib.h>
3747 #if ((' ' & 0x0FF) == 0x020)
3748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3750 #else
3751 # define ISLOWER(c) \
3752 (('a' <= (c) && (c) <= 'i') \
3753 || ('j' <= (c) && (c) <= 'r') \
3754 || ('s' <= (c) && (c) <= 'z'))
3755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3756 #endif
3757
3758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3759 int
3760 main ()
3761 {
3762 int i;
3763 for (i = 0; i < 256; i++)
3764 if (XOR (islower (i), ISLOWER (i))
3765 || toupper (i) != TOUPPER (i))
3766 return 2;
3767 return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_run "$LINENO"; then :
3771
3772 else
3773 ac_cv_header_stdc=no
3774 fi
3775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3776 conftest.$ac_objext conftest.beam conftest.$ac_ext
3777 fi
3778
3779 fi
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3782 $as_echo "$ac_cv_header_stdc" >&6; }
3783 if test $ac_cv_header_stdc = yes; then
3784
3785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3786
3787 fi
3788
3789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3790 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3791 inttypes.h stdint.h unistd.h
3792 do :
3793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3795 "
3796 eval as_val=\$$as_ac_Header
3797 if test "x$as_val" = x""yes; then :
3798 cat >>confdefs.h <<_ACEOF
3799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3800 _ACEOF
3801
3802 fi
3803
3804 done
3805
3806
3807
3808 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3809 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3810 MINIX=yes
3811 else
3812 MINIX=
3813 fi
3814
3815
3816 if test "$MINIX" = yes; then
3817
3818 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3819
3820
3821 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3822
3823
3824 $as_echo "#define _MINIX 1" >>confdefs.h
3825
3826 fi
3827
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3830 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3831 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 # define __EXTENSIONS__ 1
3838 $ac_includes_default
3839 int
3840 main ()
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_safe_to_define___extensions__=yes
3849 else
3850 ac_cv_safe_to_define___extensions__=no
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3855 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3856 test $ac_cv_safe_to_define___extensions__ = yes &&
3857 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3858
3859 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3860
3861 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3862
3863 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3864
3865 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3866
3867
3868
3869 libtool_VERSION=1:0:0
3870
3871
3872 # 1.11.1: Require that version of automake.
3873 # foreign: Don't require README, INSTALL, NEWS, etc.
3874 # no-define: Don't define PACKAGE and VERSION.
3875 # no-dependencies: Don't generate automatic dependencies.
3876 # (because it breaks when using bootstrap-lean, since some of the
3877 # headers are gone at "make install" time).
3878 # -Wall: Issue all automake warnings.
3879 # -Wno-portability: Don't warn about constructs supported by GNU make.
3880 # (because GCC requires GNU make anyhow).
3881 am__api_version='1.11'
3882
3883 # Find a good install program. We prefer a C program (faster),
3884 # so one script is as good as another. But avoid the broken or
3885 # incompatible versions:
3886 # SysV /etc/install, /usr/sbin/install
3887 # SunOS /usr/etc/install
3888 # IRIX /sbin/install
3889 # AIX /bin/install
3890 # AmigaOS /C/install, which installs bootblocks on floppy discs
3891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3894 # OS/2's system install, which has a completely different semantic
3895 # ./install, which can be erroneously created by make from ./install.sh.
3896 # Reject install programs that cannot install multiple files.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3899 if test -z "$INSTALL"; then
3900 if test "${ac_cv_path_install+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 # Account for people who put trailing slashes in PATH elements.
3909 case $as_dir/ in #((
3910 ./ | .// | /[cC]/* | \
3911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3912 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3913 /usr/ucb/* ) ;;
3914 *)
3915 # OSF1 and SCO ODT 3.0 have their own names for install.
3916 # Don't use installbsd from OSF since it installs stuff as root
3917 # by default.
3918 for ac_prog in ginstall scoinst install; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3921 if test $ac_prog = install &&
3922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923 # AIX install. It has an incompatible calling convention.
3924 :
3925 elif test $ac_prog = install &&
3926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # program-specific install script used by HP pwplus--don't use.
3928 :
3929 else
3930 rm -rf conftest.one conftest.two conftest.dir
3931 echo one > conftest.one
3932 echo two > conftest.two
3933 mkdir conftest.dir
3934 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3935 test -s conftest.one && test -s conftest.two &&
3936 test -s conftest.dir/conftest.one &&
3937 test -s conftest.dir/conftest.two
3938 then
3939 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3940 break 3
3941 fi
3942 fi
3943 fi
3944 done
3945 done
3946 ;;
3947 esac
3948
3949 done
3950 IFS=$as_save_IFS
3951
3952 rm -rf conftest.one conftest.two conftest.dir
3953
3954 fi
3955 if test "${ac_cv_path_install+set}" = set; then
3956 INSTALL=$ac_cv_path_install
3957 else
3958 # As a last resort, use the slow shell script. Don't cache a
3959 # value for INSTALL within a source directory, because that will
3960 # break other packages using the cache if that directory is
3961 # removed, or if the value is a relative name.
3962 INSTALL=$ac_install_sh
3963 fi
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3966 $as_echo "$INSTALL" >&6; }
3967
3968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3969 # It thinks the first close brace ends the variable substitution.
3970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3971
3972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3973
3974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3977 $as_echo_n "checking whether build environment is sane... " >&6; }
3978 # Just in case
3979 sleep 1
3980 echo timestamp > conftest.file
3981 # Reject unsafe characters in $srcdir or the absolute working directory
3982 # name. Accept space and tab only in the latter.
3983 am_lf='
3984 '
3985 case `pwd` in
3986 *[\\\"\#\$\&\'\`$am_lf]*)
3987 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3988 esac
3989 case $srcdir in
3990 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3991 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3992 esac
3993
3994 # Do `set' in a subshell so we don't clobber the current shell's
3995 # arguments. Must try -L first in case configure is actually a
3996 # symlink; some systems play weird games with the mod time of symlinks
3997 # (eg FreeBSD returns the mod time of the symlink's containing
3998 # directory).
3999 if (
4000 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4001 if test "$*" = "X"; then
4002 # -L didn't work.
4003 set X `ls -t "$srcdir/configure" conftest.file`
4004 fi
4005 rm -f conftest.file
4006 if test "$*" != "X $srcdir/configure conftest.file" \
4007 && test "$*" != "X conftest.file $srcdir/configure"; then
4008
4009 # If neither matched, then we have a broken ls. This can happen
4010 # if, for instance, CONFIG_SHELL is bash and it inherits a
4011 # broken ls alias from the environment. This has actually
4012 # happened. Such a system could not be considered "sane".
4013 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4014 alias in your environment" "$LINENO" 5
4015 fi
4016
4017 test "$2" = conftest.file
4018 )
4019 then
4020 # Ok.
4021 :
4022 else
4023 as_fn_error "newly created file is older than distributed files!
4024 Check your system clock" "$LINENO" 5
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027 $as_echo "yes" >&6; }
4028 test "$program_prefix" != NONE &&
4029 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4030 # Use a double $ so make ignores it.
4031 test "$program_suffix" != NONE &&
4032 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4033 # Double any \ or $.
4034 # By default was `s,x,x', remove it if useless.
4035 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4036 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4037
4038 # expand $ac_aux_dir to an absolute path
4039 am_aux_dir=`cd $ac_aux_dir && pwd`
4040
4041 if test x"${MISSING+set}" != xset; then
4042 case $am_aux_dir in
4043 *\ * | *\ *)
4044 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4045 *)
4046 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4047 esac
4048 fi
4049 # Use eval to expand $SHELL
4050 if eval "$MISSING --run true"; then
4051 am_missing_run="$MISSING --run "
4052 else
4053 am_missing_run=
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4055 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4056 fi
4057
4058 if test x"${install_sh}" != xset; then
4059 case $am_aux_dir in
4060 *\ * | *\ *)
4061 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4062 *)
4063 install_sh="\${SHELL} $am_aux_dir/install-sh"
4064 esac
4065 fi
4066
4067 # Installed binaries are usually stripped using `strip' when the user
4068 # run `make install-strip'. However `strip' might not be the right
4069 # tool to use in cross-compilation environments, therefore Automake
4070 # will honor the `STRIP' environment variable to overrule this program.
4071 if test "$cross_compiling" != no; then
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if test "${ac_cv_prog_STRIP+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$STRIP"; then
4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4093 fi
4094 done
4095 done
4096 IFS=$as_save_IFS
4097
4098 fi
4099 fi
4100 STRIP=$ac_cv_prog_STRIP
4101 if test -n "$STRIP"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4103 $as_echo "$STRIP" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 fi
4108
4109
4110 fi
4111 if test -z "$ac_cv_prog_STRIP"; then
4112 ac_ct_STRIP=$STRIP
4113 # Extract the first word of "strip", so it can be a program name with args.
4114 set dummy strip; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$ac_ct_STRIP"; then
4121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_prog_ac_ct_STRIP="strip"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4141 if test -n "$ac_ct_STRIP"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4143 $as_echo "$ac_ct_STRIP" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149 if test "x$ac_ct_STRIP" = x; then
4150 STRIP=":"
4151 else
4152 case $cross_compiling:$ac_tool_warned in
4153 yes:)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156 ac_tool_warned=yes ;;
4157 esac
4158 STRIP=$ac_ct_STRIP
4159 fi
4160 else
4161 STRIP="$ac_cv_prog_STRIP"
4162 fi
4163
4164 fi
4165 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4168 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4169 if test -z "$MKDIR_P"; then
4170 if test "${ac_cv_path_mkdir+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4175 do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_prog in mkdir gmkdir; do
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4181 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4182 'mkdir (GNU coreutils) '* | \
4183 'mkdir (coreutils) '* | \
4184 'mkdir (fileutils) '4.1*)
4185 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4186 break 3;;
4187 esac
4188 done
4189 done
4190 done
4191 IFS=$as_save_IFS
4192
4193 fi
4194
4195 if test "${ac_cv_path_mkdir+set}" = set; then
4196 MKDIR_P="$ac_cv_path_mkdir -p"
4197 else
4198 # As a last resort, use the slow shell script. Don't cache a
4199 # value for MKDIR_P within a source directory, because that will
4200 # break other packages using the cache if that directory is
4201 # removed, or if the value is a relative name.
4202 test -d ./--version && rmdir ./--version
4203 MKDIR_P="$ac_install_sh -d"
4204 fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4207 $as_echo "$MKDIR_P" >&6; }
4208
4209 mkdir_p="$MKDIR_P"
4210 case $mkdir_p in
4211 [\\/$]* | ?:[\\/]*) ;;
4212 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4213 esac
4214
4215 for ac_prog in gawk mawk nawk awk
4216 do
4217 # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy $ac_prog; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if test "${ac_cv_prog_AWK+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -n "$AWK"; then
4225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_AWK="$ac_prog"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 fi
4243 fi
4244 AWK=$ac_cv_prog_AWK
4245 if test -n "$AWK"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4247 $as_echo "$AWK" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 fi
4252
4253
4254 test -n "$AWK" && break
4255 done
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4258 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4259 set x ${MAKE-make}
4260 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4261 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat >conftest.make <<\_ACEOF
4265 SHELL = /bin/sh
4266 all:
4267 @echo '@@@%%%=$(MAKE)=@@@%%%'
4268 _ACEOF
4269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4270 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4271 *@@@%%%=?*=@@@%%%*)
4272 eval ac_cv_prog_make_${ac_make}_set=yes;;
4273 *)
4274 eval ac_cv_prog_make_${ac_make}_set=no;;
4275 esac
4276 rm -f conftest.make
4277 fi
4278 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280 $as_echo "yes" >&6; }
4281 SET_MAKE=
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 SET_MAKE="MAKE=${MAKE-make}"
4286 fi
4287
4288 rm -rf .tst 2>/dev/null
4289 mkdir .tst 2>/dev/null
4290 if test -d .tst; then
4291 am__leading_dot=.
4292 else
4293 am__leading_dot=_
4294 fi
4295 rmdir .tst 2>/dev/null
4296
4297 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4298 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4299 # is not polluted with repeated "-I."
4300 am__isrc=' -I$(srcdir)'
4301 # test to see if srcdir already configured
4302 if test -f $srcdir/config.status; then
4303 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4304 fi
4305 fi
4306
4307 # test whether we have cygpath
4308 if test -z "$CYGPATH_W"; then
4309 if (cygpath --version) >/dev/null 2>/dev/null; then
4310 CYGPATH_W='cygpath -w'
4311 else
4312 CYGPATH_W=echo
4313 fi
4314 fi
4315
4316
4317 # Define the identity of the package.
4318 PACKAGE='libbacktrace'
4319 VERSION='version-unused'
4320
4321
4322 # Some tools Automake needs.
4323
4324 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4325
4326
4327 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4328
4329
4330 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4331
4332
4333 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4334
4335
4336 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4337
4338 # We need awk for the "check" target. The system "awk" is bad on
4339 # some platforms.
4340 # Always define AMTAR for backward compatibility. Yes, it's still used
4341 # in the wild :-( We should find a proper way to deprecate it ...
4342 AMTAR='$${TAR-tar}'
4343
4344 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4345
4346
4347
4348
4349
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4354 # Check whether --enable-maintainer-mode was given.
4355 if test "${enable_maintainer_mode+set}" = set; then :
4356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4357 else
4358 USE_MAINTAINER_MODE=no
4359 fi
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4363 if test $USE_MAINTAINER_MODE = yes; then
4364 MAINTAINER_MODE_TRUE=
4365 MAINTAINER_MODE_FALSE='#'
4366 else
4367 MAINTAINER_MODE_TRUE='#'
4368 MAINTAINER_MODE_FALSE=
4369 fi
4370
4371 MAINT=$MAINTAINER_MODE_TRUE
4372
4373
4374
4375
4376 # Check whether --with-target-subdir was given.
4377 if test "${with_target_subdir+set}" = set; then :
4378 withval=$with_target_subdir;
4379 fi
4380
4381
4382 # We must force CC to /not/ be precious variables; otherwise
4383 # the wrong, non-multilib-adjusted value will be used in multilibs.
4384 # As a side effect, we have to subst CFLAGS ourselves.
4385
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CC+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 fi
4431 if test -z "$ac_cv_prog_CC"; then
4432 ac_ct_CC=$CC
4433 # Extract the first word of "gcc", so it can be a program name with args.
4434 set dummy gcc; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$ac_ct_CC"; then
4441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_CC="gcc"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4461 if test -n "$ac_ct_CC"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4463 $as_echo "$ac_ct_CC" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469 if test "x$ac_ct_CC" = x; then
4470 CC=""
4471 else
4472 case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4477 esac
4478 CC=$ac_ct_CC
4479 fi
4480 else
4481 CC="$ac_cv_prog_CC"
4482 fi
4483
4484 if test -z "$CC"; then
4485 if test -n "$ac_tool_prefix"; then
4486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4487 set dummy ${ac_tool_prefix}cc; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_CC+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -n "$CC"; then
4494 ac_cv_prog_CC="$CC" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_CC="${ac_tool_prefix}cc"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 CC=$ac_cv_prog_CC
4514 if test -n "$CC"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4516 $as_echo "$CC" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522
4523 fi
4524 fi
4525 if test -z "$CC"; then
4526 # Extract the first word of "cc", so it can be a program name with args.
4527 set dummy cc; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 ac_prog_rejected=no
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4545 ac_prog_rejected=yes
4546 continue
4547 fi
4548 ac_cv_prog_CC="cc"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 if test $ac_prog_rejected = yes; then
4557 # We found a bogon in the path, so make sure we never use it.
4558 set dummy $ac_cv_prog_CC
4559 shift
4560 if test $# != 0; then
4561 # We chose a different compiler from the bogus one.
4562 # However, it has the same basename, so the bogon will be chosen
4563 # first if we set CC to just the basename; use the full file name.
4564 shift
4565 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4566 fi
4567 fi
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$CC"; then
4582 if test -n "$ac_tool_prefix"; then
4583 for ac_prog in cl.exe
4584 do
4585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_CC+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 CC=$ac_cv_prog_CC
4613 if test -n "$CC"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4615 $as_echo "$CC" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 test -n "$CC" && break
4623 done
4624 fi
4625 if test -z "$CC"; then
4626 ac_ct_CC=$CC
4627 for ac_prog in cl.exe
4628 do
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_CC"; then
4637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_ac_ct_CC="$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4657 if test -n "$ac_ct_CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4659 $as_echo "$ac_ct_CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666 test -n "$ac_ct_CC" && break
4667 done
4668
4669 if test "x$ac_ct_CC" = x; then
4670 CC=""
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 CC=$ac_ct_CC
4679 fi
4680 fi
4681
4682 fi
4683
4684
4685 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4687 as_fn_error "no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." "$LINENO" 5; }
4689
4690 # Provide some information about the compiler.
4691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4692 set X $ac_compile
4693 ac_compiler=$2
4694 for ac_option in --version -v -V -qversion; do
4695 { { ac_try="$ac_compiler $ac_option >&5"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701 $as_echo "$ac_try_echo"; } >&5
4702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4703 ac_status=$?
4704 if test -s conftest.err; then
4705 sed '10a\
4706 ... rest of stderr output deleted ...
4707 10q' conftest.err >conftest.er1
4708 cat conftest.er1 >&5
4709 rm -f conftest.er1 conftest.err
4710 fi
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }
4713 done
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4717 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726 #ifndef __GNUC__
4727 choke me
4728 #endif
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_compiler_gnu=yes
4736 else
4737 ac_compiler_gnu=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4745 if test $ac_compiler_gnu = yes; then
4746 GCC=yes
4747 else
4748 GCC=
4749 fi
4750 ac_test_CFLAGS=${CFLAGS+set}
4751 ac_save_CFLAGS=$CFLAGS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4754 if test "${ac_cv_prog_cc_g+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 ac_save_c_werror_flag=$ac_c_werror_flag
4758 ac_c_werror_flag=yes
4759 ac_cv_prog_cc_g=no
4760 CFLAGS="-g"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main ()
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 ac_cv_prog_cc_g=yes
4774 else
4775 CFLAGS=""
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788
4789 else
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4791 CFLAGS="-g"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794
4795 int
4796 main ()
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_cv_prog_cc_g=yes
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_c_werror_flag=$ac_save_c_werror_flag
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4814 $as_echo "$ac_cv_prog_cc_g" >&6; }
4815 if test "$ac_test_CFLAGS" = set; then
4816 CFLAGS=$ac_save_CFLAGS
4817 elif test $ac_cv_prog_cc_g = yes; then
4818 if test "$GCC" = yes; then
4819 CFLAGS="-g -O2"
4820 else
4821 CFLAGS="-g"
4822 fi
4823 else
4824 if test "$GCC" = yes; then
4825 CFLAGS="-O2"
4826 else
4827 CFLAGS=
4828 fi
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4832 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_cv_prog_cc_c89=no
4836 ac_save_CC=$CC
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #include <stdarg.h>
4840 #include <stdio.h>
4841 #include <sys/types.h>
4842 #include <sys/stat.h>
4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4844 struct buf { int x; };
4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4846 static char *e (p, i)
4847 char **p;
4848 int i;
4849 {
4850 return p[i];
4851 }
4852 static char *f (char * (*g) (char **, int), char **p, ...)
4853 {
4854 char *s;
4855 va_list v;
4856 va_start (v,p);
4857 s = g (p, va_arg (v,int));
4858 va_end (v);
4859 return s;
4860 }
4861
4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4863 function prototypes and stuff, but not '\xHH' hex character constants.
4864 These don't provoke an error unfortunately, instead are silently treated
4865 as 'x'. The following induces an error, until -std is added to get
4866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4867 array size at least. It's necessary to write '\x00'==0 to get something
4868 that's true only with -std. */
4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4870
4871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4872 inside strings and character constants. */
4873 #define FOO(x) 'x'
4874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4875
4876 int test (int i, double x);
4877 struct s1 {int (*f) (int a);};
4878 struct s2 {int (*f) (double a);};
4879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4880 int argc;
4881 char **argv;
4882 int
4883 main ()
4884 {
4885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4892 do
4893 CC="$ac_save_CC $ac_arg"
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_prog_cc_c89=$ac_arg
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext
4898 test "x$ac_cv_prog_cc_c89" != "xno" && break
4899 done
4900 rm -f conftest.$ac_ext
4901 CC=$ac_save_CC
4902
4903 fi
4904 # AC_CACHE_VAL
4905 case "x$ac_cv_prog_cc_c89" in
4906 x)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4908 $as_echo "none needed" >&6; } ;;
4909 xno)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4911 $as_echo "unsupported" >&6; } ;;
4912 *)
4913 CC="$CC $ac_cv_prog_cc_c89"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4916 esac
4917 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918
4919 fi
4920
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927
4928
4929
4930
4931 if test -n "$ac_tool_prefix"; then
4932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$RANLIB"; then
4940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 RANLIB=$ac_cv_prog_RANLIB
4960 if test -n "$RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4962 $as_echo "$RANLIB" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 fi
4970 if test -z "$ac_cv_prog_RANLIB"; then
4971 ac_ct_RANLIB=$RANLIB
4972 # Extract the first word of "ranlib", so it can be a program name with args.
4973 set dummy ranlib; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$ac_ct_RANLIB"; then
4980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989 ac_cv_prog_ac_ct_RANLIB="ranlib"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5000 if test -n "$ac_ct_RANLIB"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5002 $as_echo "$ac_ct_RANLIB" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008 if test "x$ac_ct_RANLIB" = x; then
5009 RANLIB=":"
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012 yes:)
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015 ac_tool_warned=yes ;;
5016 esac
5017 RANLIB=$ac_ct_RANLIB
5018 fi
5019 else
5020 RANLIB="$ac_cv_prog_RANLIB"
5021 fi
5022
5023
5024 for ac_prog in gawk mawk nawk awk
5025 do
5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
5027 set dummy $ac_prog; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_prog_AWK+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$AWK"; then
5034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_prog_AWK="$ac_prog"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 AWK=$ac_cv_prog_AWK
5054 if test -n "$AWK"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5056 $as_echo "$AWK" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062
5063 test -n "$AWK" && break
5064 done
5065
5066 case "$AWK" in
5067 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5068 esac
5069
5070 case `pwd` in
5071 *\ * | *\ *)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5073 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5074 esac
5075
5076
5077
5078 macro_version='2.2.7a'
5079 macro_revision='1.3134'
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 ltmain="$ac_aux_dir/ltmain.sh"
5094
5095 # Backslashify metacharacters that are still active within
5096 # double-quoted strings.
5097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5098
5099 # Same as above, but do not quote variable references.
5100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5101
5102 # Sed substitution to delay expansion of an escaped shell variable in a
5103 # double_quote_subst'ed string.
5104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5105
5106 # Sed substitution to delay expansion of an escaped single quote.
5107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5108
5109 # Sed substitution to avoid accidental globbing in evaled expressions
5110 no_glob_subst='s/\*/\\\*/g'
5111
5112 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5114 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5117 $as_echo_n "checking how to print strings... " >&6; }
5118 # Test print first, because it will be a builtin if present.
5119 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5120 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5121 ECHO='print -r --'
5122 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5123 ECHO='printf %s\n'
5124 else
5125 # Use this function as a fallback that always works.
5126 func_fallback_echo ()
5127 {
5128 eval 'cat <<_LTECHO_EOF
5129 $1
5130 _LTECHO_EOF'
5131 }
5132 ECHO='func_fallback_echo'
5133 fi
5134
5135 # func_echo_all arg...
5136 # Invoke $ECHO with all args, space-separated.
5137 func_echo_all ()
5138 {
5139 $ECHO ""
5140 }
5141
5142 case "$ECHO" in
5143 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5144 $as_echo "printf" >&6; } ;;
5145 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5146 $as_echo "print -r" >&6; } ;;
5147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5148 $as_echo "cat" >&6; } ;;
5149 esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5166 if test "${ac_cv_path_SED+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5170 for ac_i in 1 2 3 4 5 6 7; do
5171 ac_script="$ac_script$as_nl$ac_script"
5172 done
5173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5174 { ac_script=; unset ac_script;}
5175 if test -z "$SED"; then
5176 ac_path_SED_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in sed gsed; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5186 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5187 # Check for GNU ac_path_SED and select it if it is found.
5188 # Check for GNU $ac_path_SED
5189 case `"$ac_path_SED" --version 2>&1` in
5190 *GNU*)
5191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5192 *)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo '' >> "conftest.nl"
5201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_SED_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_SED="$ac_path_SED"
5207 ac_path_SED_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215 $ac_path_SED_found && break 3
5216 done
5217 done
5218 done
5219 IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_SED"; then
5221 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5222 fi
5223 else
5224 ac_cv_path_SED=$SED
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5229 $as_echo "$ac_cv_path_SED" >&6; }
5230 SED="$ac_cv_path_SED"
5231 rm -f conftest.sed
5232
5233 test -z "$SED" && SED=sed
5234 Xsed="$SED -e 1s/^X//"
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5247 $as_echo_n "checking for fgrep... " >&6; }
5248 if test "${ac_cv_path_FGREP+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5252 then ac_cv_path_FGREP="$GREP -F"
5253 else
5254 if test -z "$FGREP"; then
5255 ac_path_FGREP_found=false
5256 # Loop through the user's path and test for each of PROGNAME-LIST
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_prog in fgrep; do
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5265 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5266 # Check for GNU ac_path_FGREP and select it if it is found.
5267 # Check for GNU $ac_path_FGREP
5268 case `"$ac_path_FGREP" --version 2>&1` in
5269 *GNU*)
5270 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5271 *)
5272 ac_count=0
5273 $as_echo_n 0123456789 >"conftest.in"
5274 while :
5275 do
5276 cat "conftest.in" "conftest.in" >"conftest.tmp"
5277 mv "conftest.tmp" "conftest.in"
5278 cp "conftest.in" "conftest.nl"
5279 $as_echo 'FGREP' >> "conftest.nl"
5280 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282 as_fn_arith $ac_count + 1 && ac_count=$as_val
5283 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5284 # Best one so far, save it but keep looking for a better one
5285 ac_cv_path_FGREP="$ac_path_FGREP"
5286 ac_path_FGREP_max=$ac_count
5287 fi
5288 # 10*(2^10) chars as input seems more than enough
5289 test $ac_count -gt 10 && break
5290 done
5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292 esac
5293
5294 $ac_path_FGREP_found && break 3
5295 done
5296 done
5297 done
5298 IFS=$as_save_IFS
5299 if test -z "$ac_cv_path_FGREP"; then
5300 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 fi
5302 else
5303 ac_cv_path_FGREP=$FGREP
5304 fi
5305
5306 fi
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5309 $as_echo "$ac_cv_path_FGREP" >&6; }
5310 FGREP="$ac_cv_path_FGREP"
5311
5312
5313 test -z "$GREP" && GREP=grep
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 # Check whether --with-gnu-ld was given.
5334 if test "${with_gnu_ld+set}" = set; then :
5335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5336 else
5337 with_gnu_ld=no
5338 fi
5339
5340 ac_prog=ld
5341 if test "$GCC" = yes; then
5342 # Check if gcc -print-prog-name=ld gives a path.
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5344 $as_echo_n "checking for ld used by $CC... " >&6; }
5345 case $host in
5346 *-*-mingw*)
5347 # gcc leaves a trailing carriage return which upsets mingw
5348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5349 *)
5350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5351 esac
5352 case $ac_prog in
5353 # Accept absolute paths.
5354 [\\/]* | ?:[\\/]*)
5355 re_direlt='/[^/][^/]*/\.\./'
5356 # Canonicalize the pathname of ld
5357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5360 done
5361 test -z "$LD" && LD="$ac_prog"
5362 ;;
5363 "")
5364 # If it fails, then pretend we aren't using GCC.
5365 ac_prog=ld
5366 ;;
5367 *)
5368 # If it is relative, then search for the first ld in PATH.
5369 with_gnu_ld=unknown
5370 ;;
5371 esac
5372 elif test "$with_gnu_ld" = yes; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5374 $as_echo_n "checking for GNU ld... " >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5377 $as_echo_n "checking for non-GNU ld... " >&6; }
5378 fi
5379 if test "${lt_cv_path_LD+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -z "$LD"; then
5383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5384 for ac_dir in $PATH; do
5385 IFS="$lt_save_ifs"
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5388 lt_cv_path_LD="$ac_dir/$ac_prog"
5389 # Check to see if the program is GNU ld. I'd rather use --version,
5390 # but apparently some variants of GNU ld only accept -v.
5391 # Break only if it was the GNU/non-GNU ld that we prefer.
5392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5393 *GNU* | *'with BFD'*)
5394 test "$with_gnu_ld" != no && break
5395 ;;
5396 *)
5397 test "$with_gnu_ld" != yes && break
5398 ;;
5399 esac
5400 fi
5401 done
5402 IFS="$lt_save_ifs"
5403 else
5404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5405 fi
5406 fi
5407
5408 LD="$lt_cv_path_LD"
5409 if test -n "$LD"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5411 $as_echo "$LD" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5419 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5423 case `$LD -v 2>&1 </dev/null` in
5424 *GNU* | *'with BFD'*)
5425 lt_cv_prog_gnu_ld=yes
5426 ;;
5427 *)
5428 lt_cv_prog_gnu_ld=no
5429 ;;
5430 esac
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5434 with_gnu_ld=$lt_cv_prog_gnu_ld
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5445 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5446 if test "${lt_cv_path_NM+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$NM"; then
5450 # Let the user override the test.
5451 lt_cv_path_NM="$NM"
5452 else
5453 lt_nm_to_check="${ac_tool_prefix}nm"
5454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5455 lt_nm_to_check="$lt_nm_to_check nm"
5456 fi
5457 for lt_tmp_nm in $lt_nm_to_check; do
5458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5460 IFS="$lt_save_ifs"
5461 test -z "$ac_dir" && ac_dir=.
5462 tmp_nm="$ac_dir/$lt_tmp_nm"
5463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5464 # Check to see if the nm accepts a BSD-compat flag.
5465 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5466 # nm: unknown option "B" ignored
5467 # Tru64's nm complains that /dev/null is an invalid object file
5468 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5469 */dev/null* | *'Invalid file or object type'*)
5470 lt_cv_path_NM="$tmp_nm -B"
5471 break
5472 ;;
5473 *)
5474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5475 */dev/null*)
5476 lt_cv_path_NM="$tmp_nm -p"
5477 break
5478 ;;
5479 *)
5480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5481 continue # so that we can try to find one that supports BSD flags
5482 ;;
5483 esac
5484 ;;
5485 esac
5486 fi
5487 done
5488 IFS="$lt_save_ifs"
5489 done
5490 : ${lt_cv_path_NM=no}
5491 fi
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5494 $as_echo "$lt_cv_path_NM" >&6; }
5495 if test "$lt_cv_path_NM" != "no"; then
5496 NM="$lt_cv_path_NM"
5497 else
5498 # Didn't find any BSD compatible name lister, look for dumpbin.
5499 if test -n "$DUMPBIN"; then :
5500 # Let the user override the test.
5501 else
5502 if test -n "$ac_tool_prefix"; then
5503 for ac_prog in dumpbin "link -dump"
5504 do
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$DUMPBIN"; then
5513 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 DUMPBIN=$ac_cv_prog_DUMPBIN
5533 if test -n "$DUMPBIN"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5535 $as_echo "$DUMPBIN" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 test -n "$DUMPBIN" && break
5543 done
5544 fi
5545 if test -z "$DUMPBIN"; then
5546 ac_ct_DUMPBIN=$DUMPBIN
5547 for ac_prog in dumpbin "link -dump"
5548 do
5549 # Extract the first word of "$ac_prog", so it can be a program name with args.
5550 set dummy $ac_prog; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$ac_ct_DUMPBIN"; then
5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5558 else
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570 done
5571 done
5572 IFS=$as_save_IFS
5573
5574 fi
5575 fi
5576 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5577 if test -n "$ac_ct_DUMPBIN"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5579 $as_echo "$ac_ct_DUMPBIN" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584
5585
5586 test -n "$ac_ct_DUMPBIN" && break
5587 done
5588
5589 if test "x$ac_ct_DUMPBIN" = x; then
5590 DUMPBIN=":"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 DUMPBIN=$ac_ct_DUMPBIN
5599 fi
5600 fi
5601
5602 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5603 *COFF*)
5604 DUMPBIN="$DUMPBIN -symbols"
5605 ;;
5606 *)
5607 DUMPBIN=:
5608 ;;
5609 esac
5610 fi
5611
5612 if test "$DUMPBIN" != ":"; then
5613 NM="$DUMPBIN"
5614 fi
5615 fi
5616 test -z "$NM" && NM=nm
5617
5618
5619
5620
5621
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5624 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5625 if test "${lt_cv_nm_interface+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 lt_cv_nm_interface="BSD nm"
5629 echo "int some_variable = 0;" > conftest.$ac_ext
5630 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5631 (eval "$ac_compile" 2>conftest.err)
5632 cat conftest.err >&5
5633 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5634 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5635 cat conftest.err >&5
5636 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5637 cat conftest.out >&5
5638 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5639 lt_cv_nm_interface="MS dumpbin"
5640 fi
5641 rm -f conftest*
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5644 $as_echo "$lt_cv_nm_interface" >&6; }
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5647 $as_echo_n "checking whether ln -s works... " >&6; }
5648 LN_S=$as_ln_s
5649 if test "$LN_S" = "ln -s"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 $as_echo "yes" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5654 $as_echo "no, using $LN_S" >&6; }
5655 fi
5656
5657 # find the maximum length of command line arguments
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5659 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5660 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 i=0
5664 teststring="ABCD"
5665
5666 case $build_os in
5667 msdosdjgpp*)
5668 # On DJGPP, this test can blow up pretty badly due to problems in libc
5669 # (any single argument exceeding 2000 bytes causes a buffer overrun
5670 # during glob expansion). Even if it were fixed, the result of this
5671 # check would be larger than it should be.
5672 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5673 ;;
5674
5675 gnu*)
5676 # Under GNU Hurd, this test is not required because there is
5677 # no limit to the length of command line arguments.
5678 # Libtool will interpret -1 as no limit whatsoever
5679 lt_cv_sys_max_cmd_len=-1;
5680 ;;
5681
5682 cygwin* | mingw* | cegcc*)
5683 # On Win9x/ME, this test blows up -- it succeeds, but takes
5684 # about 5 minutes as the teststring grows exponentially.
5685 # Worse, since 9x/ME are not pre-emptively multitasking,
5686 # you end up with a "frozen" computer, even though with patience
5687 # the test eventually succeeds (with a max line length of 256k).
5688 # Instead, let's just punt: use the minimum linelength reported by
5689 # all of the supported platforms: 8192 (on NT/2K/XP).
5690 lt_cv_sys_max_cmd_len=8192;
5691 ;;
5692
5693 mint*)
5694 # On MiNT this can take a long time and run out of memory.
5695 lt_cv_sys_max_cmd_len=8192;
5696 ;;
5697
5698 amigaos*)
5699 # On AmigaOS with pdksh, this test takes hours, literally.
5700 # So we just punt and use a minimum line length of 8192.
5701 lt_cv_sys_max_cmd_len=8192;
5702 ;;
5703
5704 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5705 # This has been around since 386BSD, at least. Likely further.
5706 if test -x /sbin/sysctl; then
5707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5708 elif test -x /usr/sbin/sysctl; then
5709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5710 else
5711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5712 fi
5713 # And add a safety zone
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716 ;;
5717
5718 interix*)
5719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5720 lt_cv_sys_max_cmd_len=196608
5721 ;;
5722
5723 osf*)
5724 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5725 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5726 # nice to cause kernel panics so lets avoid the loop below.
5727 # First set a reasonable default.
5728 lt_cv_sys_max_cmd_len=16384
5729 #
5730 if test -x /sbin/sysconfig; then
5731 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5732 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5733 esac
5734 fi
5735 ;;
5736 sco3.2v5*)
5737 lt_cv_sys_max_cmd_len=102400
5738 ;;
5739 sysv5* | sco5v6* | sysv4.2uw2*)
5740 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5741 if test -n "$kargmax"; then
5742 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5743 else
5744 lt_cv_sys_max_cmd_len=32768
5745 fi
5746 ;;
5747 *)
5748 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5749 if test -n "$lt_cv_sys_max_cmd_len"; then
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752 else
5753 # Make teststring a little bigger before we do anything with it.
5754 # a 1K string should be a reasonable start.
5755 for i in 1 2 3 4 5 6 7 8 ; do
5756 teststring=$teststring$teststring
5757 done
5758 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5759 # If test is not a shell built-in, we'll probably end up computing a
5760 # maximum length that is only half of the actual maximum length, but
5761 # we can't tell.
5762 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5763 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5764 test $i != 17 # 1/2 MB should be enough
5765 do
5766 i=`expr $i + 1`
5767 teststring=$teststring$teststring
5768 done
5769 # Only check the string length outside the loop.
5770 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5771 teststring=
5772 # Add a significant safety factor because C++ compilers can tack on
5773 # massive amounts of additional arguments before passing them to the
5774 # linker. It appears as though 1/2 is a usable value.
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5776 fi
5777 ;;
5778 esac
5779
5780 fi
5781
5782 if test -n $lt_cv_sys_max_cmd_len ; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5784 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5787 $as_echo "none" >&6; }
5788 fi
5789 max_cmd_len=$lt_cv_sys_max_cmd_len
5790
5791
5792
5793
5794
5795
5796 : ${CP="cp -f"}
5797 : ${MV="mv -f"}
5798 : ${RM="rm -f"}
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5801 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5802 # Try some XSI features
5803 xsi_shell=no
5804 ( _lt_dummy="a/b/c"
5805 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5806 = c,a/b,, \
5807 && eval 'test $(( 1 + 1 )) -eq 2 \
5808 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5809 && xsi_shell=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5811 $as_echo "$xsi_shell" >&6; }
5812
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5815 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5816 lt_shell_append=no
5817 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5818 >/dev/null 2>&1 \
5819 && lt_shell_append=yes
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5821 $as_echo "$lt_shell_append" >&6; }
5822
5823
5824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5825 lt_unset=unset
5826 else
5827 lt_unset=false
5828 fi
5829
5830
5831
5832
5833
5834 # test EBCDIC or ASCII
5835 case `echo X|tr X '\101'` in
5836 A) # ASCII based system
5837 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5838 lt_SP2NL='tr \040 \012'
5839 lt_NL2SP='tr \015\012 \040\040'
5840 ;;
5841 *) # EBCDIC based system
5842 lt_SP2NL='tr \100 \n'
5843 lt_NL2SP='tr \r\n \100\100'
5844 ;;
5845 esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5856 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5857 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 lt_cv_ld_reload_flag='-r'
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5863 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5864 reload_flag=$lt_cv_ld_reload_flag
5865 case $reload_flag in
5866 "" | " "*) ;;
5867 *) reload_flag=" $reload_flag" ;;
5868 esac
5869 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5870 case $host_os in
5871 darwin*)
5872 if test "$GCC" = yes; then
5873 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5874 else
5875 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5876 fi
5877 ;;
5878 esac
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$OBJDUMP"; then
5897 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 OBJDUMP=$ac_cv_prog_OBJDUMP
5917 if test -n "$OBJDUMP"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5919 $as_echo "$OBJDUMP" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926 fi
5927 if test -z "$ac_cv_prog_OBJDUMP"; then
5928 ac_ct_OBJDUMP=$OBJDUMP
5929 # Extract the first word of "objdump", so it can be a program name with args.
5930 set dummy objdump; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$ac_ct_OBJDUMP"; then
5937 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5957 if test -n "$ac_ct_OBJDUMP"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5959 $as_echo "$ac_ct_OBJDUMP" >&6; }
5960 else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965 if test "x$ac_ct_OBJDUMP" = x; then
5966 OBJDUMP="false"
5967 else
5968 case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974 OBJDUMP=$ac_ct_OBJDUMP
5975 fi
5976 else
5977 OBJDUMP="$ac_cv_prog_OBJDUMP"
5978 fi
5979
5980 test -z "$OBJDUMP" && OBJDUMP=objdump
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5991 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5992 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 lt_cv_file_magic_cmd='$MAGIC_CMD'
5996 lt_cv_file_magic_test_file=
5997 lt_cv_deplibs_check_method='unknown'
5998 # Need to set the preceding variable on all platforms that support
5999 # interlibrary dependencies.
6000 # 'none' -- dependencies not supported.
6001 # `unknown' -- same as none, but documents that we really don't know.
6002 # 'pass_all' -- all dependencies passed with no checks.
6003 # 'test_compile' -- check by making test program.
6004 # 'file_magic [[regex]]' -- check by looking for files in library path
6005 # which responds to the $file_magic_cmd with a given extended regex.
6006 # If you have `file' or equivalent on your system and you're not sure
6007 # whether `pass_all' will *always* work, you probably want this one.
6008
6009 case $host_os in
6010 aix[4-9]*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014 beos*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 bsdi[45]*)
6019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6020 lt_cv_file_magic_cmd='/usr/bin/file -L'
6021 lt_cv_file_magic_test_file=/shlib/libc.so
6022 ;;
6023
6024 cygwin*)
6025 # func_win32_libid is a shell function defined in ltmain.sh
6026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027 lt_cv_file_magic_cmd='func_win32_libid'
6028 ;;
6029
6030 mingw* | pw32*)
6031 # Base MSYS/MinGW do not provide the 'file' command needed by
6032 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6033 # unless we find 'file', for example because we are cross-compiling.
6034 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6035 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6037 lt_cv_file_magic_cmd='func_win32_libid'
6038 else
6039 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6040 lt_cv_file_magic_cmd='$OBJDUMP -f'
6041 fi
6042 ;;
6043
6044 cegcc*)
6045 # use the weaker test based on 'objdump'. See mingw*.
6046 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6047 lt_cv_file_magic_cmd='$OBJDUMP -f'
6048 ;;
6049
6050 darwin* | rhapsody*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054 freebsd* | dragonfly*)
6055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6056 case $host_cpu in
6057 i*86 )
6058 # Not sure whether the presence of OpenBSD here was a mistake.
6059 # Let's accept both of them until this is cleared up.
6060 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6061 lt_cv_file_magic_cmd=/usr/bin/file
6062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6063 ;;
6064 esac
6065 else
6066 lt_cv_deplibs_check_method=pass_all
6067 fi
6068 ;;
6069
6070 gnu*)
6071 lt_cv_deplibs_check_method=pass_all
6072 ;;
6073
6074 haiku*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 hpux10.20* | hpux11*)
6079 lt_cv_file_magic_cmd=/usr/bin/file
6080 case $host_cpu in
6081 ia64*)
6082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6084 ;;
6085 hppa*64*)
6086 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]'
6087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6088 ;;
6089 *)
6090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6091 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6092 ;;
6093 esac
6094 ;;
6095
6096 interix[3-9]*)
6097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6099 ;;
6100
6101 irix5* | irix6* | nonstopux*)
6102 case $LD in
6103 *-32|*"-32 ") libmagic=32-bit;;
6104 *-n32|*"-n32 ") libmagic=N32;;
6105 *-64|*"-64 ") libmagic=64-bit;;
6106 *) libmagic=never-match;;
6107 esac
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110
6111 # This must be Linux ELF.
6112 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 netbsd*)
6117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6119 else
6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6121 fi
6122 ;;
6123
6124 newos6*)
6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6128 ;;
6129
6130 *nto* | *qnx*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 openbsd*)
6135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6137 else
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139 fi
6140 ;;
6141
6142 osf3* | osf4* | osf5*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145
6146 rdos*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 solaris*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 sysv4 | sysv4.3*)
6159 case $host_vendor in
6160 motorola)
6161 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]'
6162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6163 ;;
6164 ncr)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167 sequent)
6168 lt_cv_file_magic_cmd='/bin/file'
6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6170 ;;
6171 sni)
6172 lt_cv_file_magic_cmd='/bin/file'
6173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6174 lt_cv_file_magic_test_file=/lib/libc.so
6175 ;;
6176 siemens)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 pc)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 esac
6183 ;;
6184
6185 tpf*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
6188 esac
6189
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6192 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6193 file_magic_cmd=$lt_cv_file_magic_cmd
6194 deplibs_check_method=$lt_cv_deplibs_check_method
6195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}ar; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_AR+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$AR"; then
6217 ac_cv_prog_AR="$AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_AR="${ac_tool_prefix}ar"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 AR=$ac_cv_prog_AR
6237 if test -n "$AR"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6239 $as_echo "$AR" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_AR"; then
6248 ac_ct_AR=$AR
6249 # Extract the first word of "ar", so it can be a program name with args.
6250 set dummy ar; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$ac_ct_AR"; then
6257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_AR="ar"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6277 if test -n "$ac_ct_AR"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6279 $as_echo "$ac_ct_AR" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285 if test "x$ac_ct_AR" = x; then
6286 AR="false"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294 AR=$ac_ct_AR
6295 fi
6296 else
6297 AR="$ac_cv_prog_AR"
6298 fi
6299
6300 test -z "$AR" && AR=ar
6301 test -z "$AR_FLAGS" && AR_FLAGS=cru
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}strip; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_STRIP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$STRIP"; then
6322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 STRIP=$ac_cv_prog_STRIP
6342 if test -n "$STRIP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6344 $as_echo "$STRIP" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350
6351 fi
6352 if test -z "$ac_cv_prog_STRIP"; then
6353 ac_ct_STRIP=$STRIP
6354 # Extract the first word of "strip", so it can be a program name with args.
6355 set dummy strip; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 if test -n "$ac_ct_STRIP"; then
6362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_STRIP="strip"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6382 if test -n "$ac_ct_STRIP"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6384 $as_echo "$ac_ct_STRIP" >&6; }
6385 else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390 if test "x$ac_ct_STRIP" = x; then
6391 STRIP=":"
6392 else
6393 case $cross_compiling:$ac_tool_warned in
6394 yes:)
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6398 esac
6399 STRIP=$ac_ct_STRIP
6400 fi
6401 else
6402 STRIP="$ac_cv_prog_STRIP"
6403 fi
6404
6405 test -z "$STRIP" && STRIP=:
6406
6407
6408
6409
6410
6411
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$RANLIB"; then
6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 RANLIB=$ac_cv_prog_RANLIB
6441 if test -n "$RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6443 $as_echo "$RANLIB" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_RANLIB="ranlib"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481 if test -n "$ac_ct_RANLIB"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6483 $as_echo "$ac_ct_RANLIB" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489 if test "x$ac_ct_RANLIB" = x; then
6490 RANLIB=":"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498 RANLIB=$ac_ct_RANLIB
6499 fi
6500 else
6501 RANLIB="$ac_cv_prog_RANLIB"
6502 fi
6503
6504 test -z "$RANLIB" && RANLIB=:
6505
6506
6507
6508
6509
6510
6511 # Determine commands to create old-style static archives.
6512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6513 old_postinstall_cmds='chmod 644 $oldlib'
6514 old_postuninstall_cmds=
6515
6516 if test -n "$RANLIB"; then
6517 case $host_os in
6518 openbsd*)
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6520 ;;
6521 *)
6522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6523 ;;
6524 esac
6525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6526 fi
6527
6528 case $host_os in
6529 darwin*)
6530 lock_old_archive_extraction=yes ;;
6531 *)
6532 lock_old_archive_extraction=no ;;
6533 esac
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573 # If no C compiler was specified, use CC.
6574 LTCC=${LTCC-"$CC"}
6575
6576 # If no C compiler flags were specified, use CFLAGS.
6577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6578
6579 # Allow CC to be a program name with arguments.
6580 compiler=$CC
6581
6582
6583 # Check for command to grab the raw symbol name followed by C symbol from nm.
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6585 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6586 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589
6590 # These are sane defaults that work on at least a few old systems.
6591 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6592
6593 # Character class describing NM global symbol codes.
6594 symcode='[BCDEGRST]'
6595
6596 # Regexp to match symbols that can be accessed directly from C.
6597 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6598
6599 # Define system-specific variables.
6600 case $host_os in
6601 aix*)
6602 symcode='[BCDT]'
6603 ;;
6604 cygwin* | mingw* | pw32* | cegcc*)
6605 symcode='[ABCDGISTW]'
6606 ;;
6607 hpux*)
6608 if test "$host_cpu" = ia64; then
6609 symcode='[ABCDEGRST]'
6610 fi
6611 ;;
6612 irix* | nonstopux*)
6613 symcode='[BCDEGRST]'
6614 ;;
6615 osf*)
6616 symcode='[BCDEGQRST]'
6617 ;;
6618 solaris*)
6619 symcode='[BDRT]'
6620 ;;
6621 sco3.2v5*)
6622 symcode='[DT]'
6623 ;;
6624 sysv4.2uw2*)
6625 symcode='[DT]'
6626 ;;
6627 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6628 symcode='[ABDT]'
6629 ;;
6630 sysv4)
6631 symcode='[DFNSTU]'
6632 ;;
6633 esac
6634
6635 # If we're using GNU nm, then use its standard symbol codes.
6636 case `$NM -V 2>&1` in
6637 *GNU* | *'with BFD'*)
6638 symcode='[ABCDGIRSTW]' ;;
6639 esac
6640
6641 # Transform an extracted symbol line into a proper C declaration.
6642 # Some systems (esp. on ia64) link data and code symbols differently,
6643 # so use this general approach.
6644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6645
6646 # Transform an extracted symbol line into symbol name and symbol address
6647 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6648 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'"
6649
6650 # Handle CRLF in mingw tool chain
6651 opt_cr=
6652 case $build_os in
6653 mingw*)
6654 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6655 ;;
6656 esac
6657
6658 # Try without a prefix underscore, then with it.
6659 for ac_symprfx in "" "_"; do
6660
6661 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6662 symxfrm="\\1 $ac_symprfx\\2 \\2"
6663
6664 # Write the raw and C identifiers.
6665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6666 # Fake it for dumpbin and say T for any non-static function
6667 # and D for any global variable.
6668 # Also find C++ and __fastcall symbols from MSVC++,
6669 # which start with @ or ?.
6670 lt_cv_sys_global_symbol_pipe="$AWK '"\
6671 " {last_section=section; section=\$ 3};"\
6672 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6673 " \$ 0!~/External *\|/{next};"\
6674 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6675 " {if(hide[section]) next};"\
6676 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6677 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6678 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6679 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6680 " ' prfx=^$ac_symprfx"
6681 else
6682 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6683 fi
6684
6685 # Check to see that the pipe works correctly.
6686 pipe_works=no
6687
6688 rm -f conftest*
6689 cat > conftest.$ac_ext <<_LT_EOF
6690 #ifdef __cplusplus
6691 extern "C" {
6692 #endif
6693 char nm_test_var;
6694 void nm_test_func(void);
6695 void nm_test_func(void){}
6696 #ifdef __cplusplus
6697 }
6698 #endif
6699 int main(){nm_test_var='a';nm_test_func();return(0);}
6700 _LT_EOF
6701
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
6707 # Now try to grab the symbols.
6708 nlist=conftest.nm
6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6710 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6711 ac_status=$?
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; } && test -s "$nlist"; then
6714 # Try sorting and uniquifying the output.
6715 if sort "$nlist" | uniq > "$nlist"T; then
6716 mv -f "$nlist"T "$nlist"
6717 else
6718 rm -f "$nlist"T
6719 fi
6720
6721 # Make sure that we snagged all the symbols we need.
6722 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6723 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6724 cat <<_LT_EOF > conftest.$ac_ext
6725 #ifdef __cplusplus
6726 extern "C" {
6727 #endif
6728
6729 _LT_EOF
6730 # Now generate the symbol file.
6731 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6732
6733 cat <<_LT_EOF >> conftest.$ac_ext
6734
6735 /* The mapping between symbol names and symbols. */
6736 const struct {
6737 const char *name;
6738 void *address;
6739 }
6740 lt__PROGRAM__LTX_preloaded_symbols[] =
6741 {
6742 { "@PROGRAM@", (void *) 0 },
6743 _LT_EOF
6744 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6745 cat <<\_LT_EOF >> conftest.$ac_ext
6746 {0, (void *) 0}
6747 };
6748
6749 /* This works around a problem in FreeBSD linker */
6750 #ifdef FREEBSD_WORKAROUND
6751 static const void *lt_preloaded_setup() {
6752 return lt__PROGRAM__LTX_preloaded_symbols;
6753 }
6754 #endif
6755
6756 #ifdef __cplusplus
6757 }
6758 #endif
6759 _LT_EOF
6760 # Now try linking the two files.
6761 mv conftest.$ac_objext conftstm.$ac_objext
6762 lt_save_LIBS="$LIBS"
6763 lt_save_CFLAGS="$CFLAGS"
6764 LIBS="conftstm.$ac_objext"
6765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6767 (eval $ac_link) 2>&5
6768 ac_status=$?
6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6771 pipe_works=yes
6772 fi
6773 LIBS="$lt_save_LIBS"
6774 CFLAGS="$lt_save_CFLAGS"
6775 else
6776 echo "cannot find nm_test_func in $nlist" >&5
6777 fi
6778 else
6779 echo "cannot find nm_test_var in $nlist" >&5
6780 fi
6781 else
6782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6783 fi
6784 else
6785 echo "$progname: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 fi
6788 rm -rf conftest* conftst*
6789
6790 # Do not use the global_symbol_pipe unless it works.
6791 if test "$pipe_works" = yes; then
6792 break
6793 else
6794 lt_cv_sys_global_symbol_pipe=
6795 fi
6796 done
6797
6798 fi
6799
6800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6801 lt_cv_sys_global_symbol_to_cdecl=
6802 fi
6803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6805 $as_echo "failed" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6808 $as_echo "ok" >&6; }
6809 fi
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 # Check whether --enable-libtool-lock was given.
6833 if test "${enable_libtool_lock+set}" = set; then :
6834 enableval=$enable_libtool_lock;
6835 fi
6836
6837 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6838
6839 # Some flags need to be propagated to the compiler or linker for good
6840 # libtool support.
6841 case $host in
6842 ia64-*-hpux*)
6843 # Find out which ABI we are using.
6844 echo 'int i;' > conftest.$ac_ext
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6846 (eval $ac_compile) 2>&5
6847 ac_status=$?
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; }; then
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *ELF-32*)
6852 HPUX_IA64_MODE="32"
6853 ;;
6854 *ELF-64*)
6855 HPUX_IA64_MODE="64"
6856 ;;
6857 esac
6858 fi
6859 rm -rf conftest*
6860 ;;
6861 *-*-irix6*)
6862 # Find out which ABI we are using.
6863 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 if test "$lt_cv_prog_gnu_ld" = yes; then
6870 case `/usr/bin/file conftest.$ac_objext` in
6871 *32-bit*)
6872 LD="${LD-ld} -melf32bsmip"
6873 ;;
6874 *N32*)
6875 LD="${LD-ld} -melf32bmipn32"
6876 ;;
6877 *64-bit*)
6878 LD="${LD-ld} -melf64bmip"
6879 ;;
6880 esac
6881 else
6882 case `/usr/bin/file conftest.$ac_objext` in
6883 *32-bit*)
6884 LD="${LD-ld} -32"
6885 ;;
6886 *N32*)
6887 LD="${LD-ld} -n32"
6888 ;;
6889 *64-bit*)
6890 LD="${LD-ld} -64"
6891 ;;
6892 esac
6893 fi
6894 fi
6895 rm -rf conftest*
6896 ;;
6897
6898 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6899 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6900 # Find out which ABI we are using.
6901 echo 'int i;' > conftest.$ac_ext
6902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; }; then
6907 case `/usr/bin/file conftest.o` in
6908 *32-bit*)
6909 case $host in
6910 x86_64-*kfreebsd*-gnu)
6911 LD="${LD-ld} -m elf_i386_fbsd"
6912 ;;
6913 x86_64-*linux*)
6914 case `/usr/bin/file conftest.o` in
6915 *x86-64*)
6916 LD="${LD-ld} -m elf32_x86_64"
6917 ;;
6918 *)
6919 LD="${LD-ld} -m elf_i386"
6920 ;;
6921 esac
6922 ;;
6923 powerpc64le-*linux*)
6924 LD="${LD-ld} -m elf32lppclinux"
6925 ;;
6926 powerpc64-*linux*)
6927 LD="${LD-ld} -m elf32ppclinux"
6928 ;;
6929 s390x-*linux*)
6930 LD="${LD-ld} -m elf_s390"
6931 ;;
6932 sparc64-*linux*)
6933 LD="${LD-ld} -m elf32_sparc"
6934 ;;
6935 esac
6936 ;;
6937 *64-bit*)
6938 case $host in
6939 x86_64-*kfreebsd*-gnu)
6940 LD="${LD-ld} -m elf_x86_64_fbsd"
6941 ;;
6942 x86_64-*linux*)
6943 LD="${LD-ld} -m elf_x86_64"
6944 ;;
6945 powerpcle-*linux*)
6946 LD="${LD-ld} -m elf64lppc"
6947 ;;
6948 powerpc-*linux*)
6949 LD="${LD-ld} -m elf64ppc"
6950 ;;
6951 s390*-*linux*|s390*-*tpf*)
6952 LD="${LD-ld} -m elf64_s390"
6953 ;;
6954 sparc*-*linux*)
6955 LD="${LD-ld} -m elf64_sparc"
6956 ;;
6957 esac
6958 ;;
6959 esac
6960 fi
6961 rm -rf conftest*
6962 ;;
6963
6964 *-*-sco3.2v5*)
6965 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6966 SAVE_CFLAGS="$CFLAGS"
6967 CFLAGS="$CFLAGS -belf"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6969 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6970 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 ac_ext=c
6974 ac_cpp='$CPP $CPPFLAGS'
6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981
6982 int
6983 main ()
6984 {
6985
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 if ac_fn_c_try_link "$LINENO"; then :
6991 lt_cv_cc_needs_belf=yes
6992 else
6993 lt_cv_cc_needs_belf=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997 ac_ext=c
6998 ac_cpp='$CPP $CPPFLAGS'
6999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7005 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7006 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7008 CFLAGS="$SAVE_CFLAGS"
7009 fi
7010 ;;
7011 sparc*-*solaris*)
7012 # Find out which ABI we are using.
7013 echo 'int i;' > conftest.$ac_ext
7014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7015 (eval $ac_compile) 2>&5
7016 ac_status=$?
7017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; then
7019 case `/usr/bin/file conftest.o` in
7020 *64-bit*)
7021 case $lt_cv_prog_gnu_ld in
7022 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7023 *)
7024 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7025 LD="${LD-ld} -64"
7026 fi
7027 ;;
7028 esac
7029 ;;
7030 esac
7031 fi
7032 rm -rf conftest*
7033 ;;
7034 esac
7035
7036 need_locks="$enable_libtool_lock"
7037
7038
7039 case $host_os in
7040 rhapsody* | darwin*)
7041 if test -n "$ac_tool_prefix"; then
7042 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7043 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$DSYMUTIL"; then
7050 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7070 if test -n "$DSYMUTIL"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7072 $as_echo "$DSYMUTIL" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 fi
7080 if test -z "$ac_cv_prog_DSYMUTIL"; then
7081 ac_ct_DSYMUTIL=$DSYMUTIL
7082 # Extract the first word of "dsymutil", so it can be a program name with args.
7083 set dummy dsymutil; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$ac_ct_DSYMUTIL"; then
7090 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7112 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118 if test "x$ac_ct_DSYMUTIL" = x; then
7119 DSYMUTIL=":"
7120 else
7121 case $cross_compiling:$ac_tool_warned in
7122 yes:)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127 DSYMUTIL=$ac_ct_DSYMUTIL
7128 fi
7129 else
7130 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7131 fi
7132
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$NMEDIT"; then
7142 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 NMEDIT=$ac_cv_prog_NMEDIT
7162 if test -n "$NMEDIT"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7164 $as_echo "$NMEDIT" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_NMEDIT"; then
7173 ac_ct_NMEDIT=$NMEDIT
7174 # Extract the first word of "nmedit", so it can be a program name with args.
7175 set dummy nmedit; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$ac_ct_NMEDIT"; then
7182 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7202 if test -n "$ac_ct_NMEDIT"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7204 $as_echo "$ac_ct_NMEDIT" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210 if test "x$ac_ct_NMEDIT" = x; then
7211 NMEDIT=":"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 NMEDIT=$ac_ct_NMEDIT
7220 fi
7221 else
7222 NMEDIT="$ac_cv_prog_NMEDIT"
7223 fi
7224
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_LIPO+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$LIPO"; then
7234 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 LIPO=$ac_cv_prog_LIPO
7254 if test -n "$LIPO"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7256 $as_echo "$LIPO" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_LIPO"; then
7265 ac_ct_LIPO=$LIPO
7266 # Extract the first word of "lipo", so it can be a program name with args.
7267 set dummy lipo; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 if test -n "$ac_ct_LIPO"; then
7274 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_prog_ac_ct_LIPO="lipo"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7294 if test -n "$ac_ct_LIPO"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7296 $as_echo "$ac_ct_LIPO" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302 if test "x$ac_ct_LIPO" = x; then
7303 LIPO=":"
7304 else
7305 case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311 LIPO=$ac_ct_LIPO
7312 fi
7313 else
7314 LIPO="$ac_cv_prog_LIPO"
7315 fi
7316
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}otool; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$OTOOL"; then
7326 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 OTOOL=$ac_cv_prog_OTOOL
7346 if test -n "$OTOOL"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7348 $as_echo "$OTOOL" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_OTOOL"; then
7357 ac_ct_OTOOL=$OTOOL
7358 # Extract the first word of "otool", so it can be a program name with args.
7359 set dummy otool; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -n "$ac_ct_OTOOL"; then
7366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_prog_ac_ct_OTOOL="otool"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7386 if test -n "$ac_ct_OTOOL"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7388 $as_echo "$ac_ct_OTOOL" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394 if test "x$ac_ct_OTOOL" = x; then
7395 OTOOL=":"
7396 else
7397 case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403 OTOOL=$ac_ct_OTOOL
7404 fi
7405 else
7406 OTOOL="$ac_cv_prog_OTOOL"
7407 fi
7408
7409 if test -n "$ac_tool_prefix"; then
7410 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$OTOOL64"; then
7418 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 OTOOL64=$ac_cv_prog_OTOOL64
7438 if test -n "$OTOOL64"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7440 $as_echo "$OTOOL64" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_OTOOL64"; then
7449 ac_ct_OTOOL64=$OTOOL64
7450 # Extract the first word of "otool64", so it can be a program name with args.
7451 set dummy otool64; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$ac_ct_OTOOL64"; then
7458 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_ac_ct_OTOOL64="otool64"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7478 if test -n "$ac_ct_OTOOL64"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7480 $as_echo "$ac_ct_OTOOL64" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486 if test "x$ac_ct_OTOOL64" = x; then
7487 OTOOL64=":"
7488 else
7489 case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495 OTOOL64=$ac_ct_OTOOL64
7496 fi
7497 else
7498 OTOOL64="$ac_cv_prog_OTOOL64"
7499 fi
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7528 $as_echo_n "checking for -single_module linker flag... " >&6; }
7529 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 lt_cv_apple_cc_single_mod=no
7533 if test -z "${LT_MULTI_MODULE}"; then
7534 # By default we will add the -single_module flag. You can override
7535 # by either setting the environment variable LT_MULTI_MODULE
7536 # non-empty at configure time, or by adding -multi_module to the
7537 # link flags.
7538 rm -rf libconftest.dylib*
7539 echo "int foo(void){return 1;}" > conftest.c
7540 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7541 -dynamiclib -Wl,-single_module conftest.c" >&5
7542 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7543 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7544 _lt_result=$?
7545 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7546 lt_cv_apple_cc_single_mod=yes
7547 else
7548 cat conftest.err >&5
7549 fi
7550 rm -rf libconftest.dylib*
7551 rm -f conftest.*
7552 fi
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7555 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7557 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7558 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 lt_cv_ld_exported_symbols_list=no
7562 save_LDFLAGS=$LDFLAGS
7563 echo "_main" > conftest.sym
7564 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567
7568 int
7569 main ()
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"; then :
7577 lt_cv_ld_exported_symbols_list=yes
7578 else
7579 lt_cv_ld_exported_symbols_list=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 LDFLAGS="$save_LDFLAGS"
7584
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7587 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7589 $as_echo_n "checking for -force_load linker flag... " >&6; }
7590 if test "${lt_cv_ld_force_load+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 lt_cv_ld_force_load=no
7594 cat > conftest.c << _LT_EOF
7595 int forced_loaded() { return 2;}
7596 _LT_EOF
7597 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7598 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7599 echo "$AR cru libconftest.a conftest.o" >&5
7600 $AR cru libconftest.a conftest.o 2>&5
7601 cat > conftest.c << _LT_EOF
7602 int main() { return 0;}
7603 _LT_EOF
7604 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7605 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7606 _lt_result=$?
7607 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7608 lt_cv_ld_force_load=yes
7609 else
7610 cat conftest.err >&5
7611 fi
7612 rm -f conftest.err libconftest.a conftest conftest.c
7613 rm -rf conftest.dSYM
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7617 $as_echo "$lt_cv_ld_force_load" >&6; }
7618 case $host_os in
7619 rhapsody* | darwin1.[012])
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7621 darwin1.*)
7622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7623 darwin*) # darwin 5.x on
7624 # if running on 10.5 or later, the deployment target defaults
7625 # to the OS version, if on x86, and 10.4, the deployment
7626 # target defaults to 10.4. Don't you love it?
7627 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7628 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7629 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7630 10.[012][,.]*)
7631 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7632 10.*)
7633 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7634 esac
7635 ;;
7636 esac
7637 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7638 _lt_dar_single_mod='$single_module'
7639 fi
7640 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7641 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7642 else
7643 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7644 fi
7645 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7646 _lt_dsymutil='~$DSYMUTIL $lib || :'
7647 else
7648 _lt_dsymutil=
7649 fi
7650 ;;
7651 esac
7652
7653 for ac_header in dlfcn.h
7654 do :
7655 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7656 "
7657 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_DLFCN_H 1
7660 _ACEOF
7661
7662 fi
7663
7664 done
7665
7666
7667
7668
7669
7670 # Set options
7671
7672
7673
7674 enable_dlopen=no
7675
7676
7677 enable_win32_dll=no
7678
7679
7680 # Check whether --enable-shared was given.
7681 if test "${enable_shared+set}" = set; then :
7682 enableval=$enable_shared; p=${PACKAGE-default}
7683 case $enableval in
7684 yes) enable_shared=yes ;;
7685 no) enable_shared=no ;;
7686 *)
7687 enable_shared=no
7688 # Look at the argument we got. We use all the common list separators.
7689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7690 for pkg in $enableval; do
7691 IFS="$lt_save_ifs"
7692 if test "X$pkg" = "X$p"; then
7693 enable_shared=yes
7694 fi
7695 done
7696 IFS="$lt_save_ifs"
7697 ;;
7698 esac
7699 else
7700 enable_shared=yes
7701 fi
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 # Check whether --enable-static was given.
7712 if test "${enable_static+set}" = set; then :
7713 enableval=$enable_static; p=${PACKAGE-default}
7714 case $enableval in
7715 yes) enable_static=yes ;;
7716 no) enable_static=no ;;
7717 *)
7718 enable_static=no
7719 # Look at the argument we got. We use all the common list separators.
7720 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7721 for pkg in $enableval; do
7722 IFS="$lt_save_ifs"
7723 if test "X$pkg" = "X$p"; then
7724 enable_static=yes
7725 fi
7726 done
7727 IFS="$lt_save_ifs"
7728 ;;
7729 esac
7730 else
7731 enable_static=yes
7732 fi
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 # Check whether --with-pic was given.
7744 if test "${with_pic+set}" = set; then :
7745 withval=$with_pic; pic_mode="$withval"
7746 else
7747 pic_mode=default
7748 fi
7749
7750
7751 test -z "$pic_mode" && pic_mode=default
7752
7753
7754
7755
7756
7757
7758
7759 # Check whether --enable-fast-install was given.
7760 if test "${enable_fast_install+set}" = set; then :
7761 enableval=$enable_fast_install; p=${PACKAGE-default}
7762 case $enableval in
7763 yes) enable_fast_install=yes ;;
7764 no) enable_fast_install=no ;;
7765 *)
7766 enable_fast_install=no
7767 # Look at the argument we got. We use all the common list separators.
7768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7769 for pkg in $enableval; do
7770 IFS="$lt_save_ifs"
7771 if test "X$pkg" = "X$p"; then
7772 enable_fast_install=yes
7773 fi
7774 done
7775 IFS="$lt_save_ifs"
7776 ;;
7777 esac
7778 else
7779 enable_fast_install=yes
7780 fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792 # This can be used to rebuild libtool when needed
7793 LIBTOOL_DEPS="$ltmain"
7794
7795 # Always use our own libtool.
7796 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 test -z "$LN_S" && LN_S="ln -s"
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 if test -n "${ZSH_VERSION+set}" ; then
7839 setopt NO_GLOB_SUBST
7840 fi
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7843 $as_echo_n "checking for objdir... " >&6; }
7844 if test "${lt_cv_objdir+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 rm -f .libs 2>/dev/null
7848 mkdir .libs 2>/dev/null
7849 if test -d .libs; then
7850 lt_cv_objdir=.libs
7851 else
7852 # MS-DOS does not allow filenames that begin with a dot.
7853 lt_cv_objdir=_libs
7854 fi
7855 rmdir .libs 2>/dev/null
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7858 $as_echo "$lt_cv_objdir" >&6; }
7859 objdir=$lt_cv_objdir
7860
7861
7862
7863
7864
7865 cat >>confdefs.h <<_ACEOF
7866 #define LT_OBJDIR "$lt_cv_objdir/"
7867 _ACEOF
7868
7869
7870
7871
7872 case $host_os in
7873 aix3*)
7874 # AIX sometimes has problems with the GCC collect2 program. For some
7875 # reason, if we set the COLLECT_NAMES environment variable, the problems
7876 # vanish in a puff of smoke.
7877 if test "X${COLLECT_NAMES+set}" != Xset; then
7878 COLLECT_NAMES=
7879 export COLLECT_NAMES
7880 fi
7881 ;;
7882 esac
7883
7884 # Global variables:
7885 ofile=libtool
7886 can_build_shared=yes
7887
7888 # All known linkers require a `.a' archive for static linking (except MSVC,
7889 # which needs '.lib').
7890 libext=a
7891
7892 with_gnu_ld="$lt_cv_prog_gnu_ld"
7893
7894 old_CC="$CC"
7895 old_CFLAGS="$CFLAGS"
7896
7897 # Set sane defaults for various variables
7898 test -z "$CC" && CC=cc
7899 test -z "$LTCC" && LTCC=$CC
7900 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7901 test -z "$LD" && LD=ld
7902 test -z "$ac_objext" && ac_objext=o
7903
7904 for cc_temp in $compiler""; do
7905 case $cc_temp in
7906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7908 \-*) ;;
7909 *) break;;
7910 esac
7911 done
7912 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7913
7914
7915 # Only perform the check for file, if the check method requires it
7916 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7917 case $deplibs_check_method in
7918 file_magic*)
7919 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7921 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7922 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 case $MAGIC_CMD in
7926 [\\/*] | ?:[\\/]*)
7927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7928 ;;
7929 *)
7930 lt_save_MAGIC_CMD="$MAGIC_CMD"
7931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7933 for ac_dir in $ac_dummy; do
7934 IFS="$lt_save_ifs"
7935 test -z "$ac_dir" && ac_dir=.
7936 if test -f $ac_dir/${ac_tool_prefix}file; then
7937 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7938 if test -n "$file_magic_test_file"; then
7939 case $deplibs_check_method in
7940 "file_magic "*)
7941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7944 $EGREP "$file_magic_regex" > /dev/null; then
7945 :
7946 else
7947 cat <<_LT_EOF 1>&2
7948
7949 *** Warning: the command libtool uses to detect shared libraries,
7950 *** $file_magic_cmd, produces output that libtool cannot recognize.
7951 *** The result is that libtool may fail to recognize shared libraries
7952 *** as such. This will affect the creation of libtool libraries that
7953 *** depend on shared libraries, but programs linked with such libtool
7954 *** libraries will work regardless of this problem. Nevertheless, you
7955 *** may want to report the problem to your system manager and/or to
7956 *** bug-libtool@gnu.org
7957
7958 _LT_EOF
7959 fi ;;
7960 esac
7961 fi
7962 break
7963 fi
7964 done
7965 IFS="$lt_save_ifs"
7966 MAGIC_CMD="$lt_save_MAGIC_CMD"
7967 ;;
7968 esac
7969 fi
7970
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if test -n "$MAGIC_CMD"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7974 $as_echo "$MAGIC_CMD" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981
7982
7983
7984 if test -z "$lt_cv_path_MAGIC_CMD"; then
7985 if test -n "$ac_tool_prefix"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7987 $as_echo_n "checking for file... " >&6; }
7988 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 case $MAGIC_CMD in
7992 [\\/*] | ?:[\\/]*)
7993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7994 ;;
7995 *)
7996 lt_save_MAGIC_CMD="$MAGIC_CMD"
7997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7999 for ac_dir in $ac_dummy; do
8000 IFS="$lt_save_ifs"
8001 test -z "$ac_dir" && ac_dir=.
8002 if test -f $ac_dir/file; then
8003 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8004 if test -n "$file_magic_test_file"; then
8005 case $deplibs_check_method in
8006 "file_magic "*)
8007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8010 $EGREP "$file_magic_regex" > /dev/null; then
8011 :
8012 else
8013 cat <<_LT_EOF 1>&2
8014
8015 *** Warning: the command libtool uses to detect shared libraries,
8016 *** $file_magic_cmd, produces output that libtool cannot recognize.
8017 *** The result is that libtool may fail to recognize shared libraries
8018 *** as such. This will affect the creation of libtool libraries that
8019 *** depend on shared libraries, but programs linked with such libtool
8020 *** libraries will work regardless of this problem. Nevertheless, you
8021 *** may want to report the problem to your system manager and/or to
8022 *** bug-libtool@gnu.org
8023
8024 _LT_EOF
8025 fi ;;
8026 esac
8027 fi
8028 break
8029 fi
8030 done
8031 IFS="$lt_save_ifs"
8032 MAGIC_CMD="$lt_save_MAGIC_CMD"
8033 ;;
8034 esac
8035 fi
8036
8037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038 if test -n "$MAGIC_CMD"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8040 $as_echo "$MAGIC_CMD" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046
8047 else
8048 MAGIC_CMD=:
8049 fi
8050 fi
8051
8052 fi
8053 ;;
8054 esac
8055
8056 # Use C for the default configuration in the libtool script
8057
8058 lt_save_CC="$CC"
8059 ac_ext=c
8060 ac_cpp='$CPP $CPPFLAGS'
8061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8064
8065
8066 # Source file extension for C test sources.
8067 ac_ext=c
8068
8069 # Object file extension for compiled C test sources.
8070 objext=o
8071 objext=$objext
8072
8073 # Code to be used in simple compile tests
8074 lt_simple_compile_test_code="int some_variable = 0;"
8075
8076 # Code to be used in simple link tests
8077 lt_simple_link_test_code='int main(){return(0);}'
8078
8079
8080
8081
8082
8083
8084
8085 # If no C compiler was specified, use CC.
8086 LTCC=${LTCC-"$CC"}
8087
8088 # If no C compiler flags were specified, use CFLAGS.
8089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8090
8091 # Allow CC to be a program name with arguments.
8092 compiler=$CC
8093
8094 # Save the default compiler, since it gets overwritten when the other
8095 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8096 compiler_DEFAULT=$CC
8097
8098 # save warnings/boilerplate of simple test code
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8102 _lt_compiler_boilerplate=`cat conftest.err`
8103 $RM conftest*
8104
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108 _lt_linker_boilerplate=`cat conftest.err`
8109 $RM -r conftest*
8110
8111
8112 ## CAVEAT EMPTOR:
8113 ## There is no encapsulation within the following macros, do not change
8114 ## the running order or otherwise move them around unless you know exactly
8115 ## what you are doing...
8116 if test -n "$compiler"; then
8117
8118 lt_prog_compiler_no_builtin_flag=
8119
8120 if test "$GCC" = yes; then
8121 case $cc_basename in
8122 nvcc*)
8123 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8124 *)
8125 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8126 esac
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8129 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 lt_cv_prog_compiler_rtti_exceptions=no
8134 ac_outfile=conftest.$ac_objext
8135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8136 lt_compiler_flag="-fno-rtti -fno-exceptions"
8137 # Insert the option either (1) after the last *FLAGS variable, or
8138 # (2) before a word containing "conftest.", or (3) at the end.
8139 # Note that $ac_compile itself does not contain backslashes and begins
8140 # with a dollar sign (not a hyphen), so the echo should work correctly.
8141 # The option is referenced via a variable to avoid confusing sed.
8142 lt_compile=`echo "$ac_compile" | $SED \
8143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8145 -e 's:$: $lt_compiler_flag:'`
8146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8147 (eval "$lt_compile" 2>conftest.err)
8148 ac_status=$?
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 if (exit $ac_status) && test -s "$ac_outfile"; then
8152 # The compiler can only warn and ignore the option if not recognized
8153 # So say no if there are warnings other than the usual output.
8154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8157 lt_cv_prog_compiler_rtti_exceptions=yes
8158 fi
8159 fi
8160 $RM conftest*
8161
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8164 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8165
8166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8167 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8168 else
8169 :
8170 fi
8171
8172 fi
8173
8174
8175
8176
8177
8178
8179 lt_prog_compiler_wl=
8180 lt_prog_compiler_pic=
8181 lt_prog_compiler_static=
8182
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8184 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8185
8186 if test "$GCC" = yes; then
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_static='-static'
8189
8190 case $host_os in
8191 aix*)
8192 # All AIX code is PIC.
8193 if test "$host_cpu" = ia64; then
8194 # AIX 5 now supports IA64 processor
8195 lt_prog_compiler_static='-Bstatic'
8196 fi
8197 lt_prog_compiler_pic='-fPIC'
8198 ;;
8199
8200 amigaos*)
8201 case $host_cpu in
8202 powerpc)
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 m68k)
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8209 # like `-m68040'.
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8211 ;;
8212 esac
8213 ;;
8214
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8217 ;;
8218
8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8225 ;;
8226
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8231 ;;
8232
8233 haiku*)
8234 # PIC is the default for Haiku.
8235 # The "-static" flag exists, but is broken.
8236 lt_prog_compiler_static=
8237 ;;
8238
8239 hpux*)
8240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8242 # sets the default TLS model and affects inlining.
8243 case $host_cpu in
8244 hppa*64*)
8245 # +Z the default
8246 ;;
8247 *)
8248 lt_prog_compiler_pic='-fPIC'
8249 ;;
8250 esac
8251 ;;
8252
8253 interix[3-9]*)
8254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8255 # Instead, we relocate shared libraries at runtime.
8256 ;;
8257
8258 msdosdjgpp*)
8259 # Just because we use GCC doesn't mean we suddenly get shared libraries
8260 # on systems that don't support them.
8261 lt_prog_compiler_can_build_shared=no
8262 enable_shared=no
8263 ;;
8264
8265 *nto* | *qnx*)
8266 # QNX uses GNU C++, but need to define -shared option too, otherwise
8267 # it will coredump.
8268 lt_prog_compiler_pic='-fPIC -shared'
8269 ;;
8270
8271 sysv4*MP*)
8272 if test -d /usr/nec; then
8273 lt_prog_compiler_pic=-Kconform_pic
8274 fi
8275 ;;
8276
8277 *)
8278 lt_prog_compiler_pic='-fPIC'
8279 ;;
8280 esac
8281
8282 case $cc_basename in
8283 nvcc*) # Cuda Compiler Driver 2.2
8284 lt_prog_compiler_wl='-Xlinker '
8285 lt_prog_compiler_pic='-Xcompiler -fPIC'
8286 ;;
8287 esac
8288 else
8289 # PORTME Check for flag to pass linker flags through the system compiler.
8290 case $host_os in
8291 aix*)
8292 lt_prog_compiler_wl='-Wl,'
8293 if test "$host_cpu" = ia64; then
8294 # AIX 5 now supports IA64 processor
8295 lt_prog_compiler_static='-Bstatic'
8296 else
8297 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8298 fi
8299 ;;
8300
8301 mingw* | cygwin* | pw32* | os2* | cegcc*)
8302 # This hack is so that the source file can tell whether it is being
8303 # built for inclusion in a dll (and should export symbols for example).
8304 lt_prog_compiler_pic='-DDLL_EXPORT'
8305 ;;
8306
8307 hpux9* | hpux10* | hpux11*)
8308 lt_prog_compiler_wl='-Wl,'
8309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8310 # not for PA HP-UX.
8311 case $host_cpu in
8312 hppa*64*|ia64*)
8313 # +Z the default
8314 ;;
8315 *)
8316 lt_prog_compiler_pic='+Z'
8317 ;;
8318 esac
8319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8320 lt_prog_compiler_static='${wl}-a ${wl}archive'
8321 ;;
8322
8323 irix5* | irix6* | nonstopux*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # PIC (with -KPIC) is the default.
8326 lt_prog_compiler_static='-non_shared'
8327 ;;
8328
8329 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8330 case $cc_basename in
8331 # old Intel for x86_64 which still supported -KPIC.
8332 ecc*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-static'
8336 ;;
8337 # icc used to be incompatible with GCC.
8338 # ICC 10 doesn't accept -KPIC any more.
8339 icc* | ifort*)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fPIC'
8342 lt_prog_compiler_static='-static'
8343 ;;
8344 # Lahey Fortran 8.1.
8345 lf95*)
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='--shared'
8348 lt_prog_compiler_static='--static'
8349 ;;
8350 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8351 # Portland Group compilers (*not* the Pentium gcc compiler,
8352 # which looks to be a dead project)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='-fpic'
8355 lt_prog_compiler_static='-Bstatic'
8356 ;;
8357 ccc*)
8358 lt_prog_compiler_wl='-Wl,'
8359 # All Alpha code is PIC.
8360 lt_prog_compiler_static='-non_shared'
8361 ;;
8362 xl* | bgxl* | bgf* | mpixl*)
8363 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8364 lt_prog_compiler_wl='-Wl,'
8365 lt_prog_compiler_pic='-qpic'
8366 lt_prog_compiler_static='-qstaticlink'
8367 ;;
8368 *)
8369 case `$CC -V 2>&1 | sed 5q` in
8370 *Sun\ F* | *Sun*Fortran*)
8371 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 lt_prog_compiler_wl=''
8375 ;;
8376 *Sun\ C*)
8377 # Sun C 5.9
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
8380 lt_prog_compiler_wl='-Wl,'
8381 ;;
8382 esac
8383 ;;
8384 esac
8385 ;;
8386
8387 newsos6)
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8396 ;;
8397
8398 osf3* | osf4* | osf5*)
8399 lt_prog_compiler_wl='-Wl,'
8400 # All OSF/1 code is PIC.
8401 lt_prog_compiler_static='-non_shared'
8402 ;;
8403
8404 rdos*)
8405 lt_prog_compiler_static='-non_shared'
8406 ;;
8407
8408 solaris*)
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 case $cc_basename in
8412 f77* | f90* | f95*)
8413 lt_prog_compiler_wl='-Qoption ld ';;
8414 *)
8415 lt_prog_compiler_wl='-Wl,';;
8416 esac
8417 ;;
8418
8419 sunos4*)
8420 lt_prog_compiler_wl='-Qoption ld '
8421 lt_prog_compiler_pic='-PIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 ;;
8424
8425 sysv4 | sysv4.2uw2* | sysv4.3*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 sysv4*MP*)
8432 if test -d /usr/nec ;then
8433 lt_prog_compiler_pic='-Kconform_pic'
8434 lt_prog_compiler_static='-Bstatic'
8435 fi
8436 ;;
8437
8438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 ;;
8443
8444 unicos*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448
8449 uts4*)
8450 lt_prog_compiler_pic='-pic'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453
8454 *)
8455 lt_prog_compiler_can_build_shared=no
8456 ;;
8457 esac
8458 fi
8459
8460 case $host_os in
8461 # For platforms which do not support PIC, -DPIC is meaningless:
8462 *djgpp*)
8463 lt_prog_compiler_pic=
8464 ;;
8465 *)
8466 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8467 ;;
8468 esac
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8470 $as_echo "$lt_prog_compiler_pic" >&6; }
8471
8472
8473
8474
8475
8476
8477 #
8478 # Check to make sure the PIC flag actually works.
8479 #
8480 if test -n "$lt_prog_compiler_pic"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8482 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8483 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 lt_cv_prog_compiler_pic_works=no
8487 ac_outfile=conftest.$ac_objext
8488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8490 # Insert the option either (1) after the last *FLAGS variable, or
8491 # (2) before a word containing "conftest.", or (3) at the end.
8492 # Note that $ac_compile itself does not contain backslashes and begins
8493 # with a dollar sign (not a hyphen), so the echo should work correctly.
8494 # The option is referenced via a variable to avoid confusing sed.
8495 lt_compile=`echo "$ac_compile" | $SED \
8496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498 -e 's:$: $lt_compiler_flag:'`
8499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500 (eval "$lt_compile" 2>conftest.err)
8501 ac_status=$?
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 if (exit $ac_status) && test -s "$ac_outfile"; then
8505 # The compiler can only warn and ignore the option if not recognized
8506 # So say no if there are warnings other than the usual output.
8507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510 lt_cv_prog_compiler_pic_works=yes
8511 fi
8512 fi
8513 $RM conftest*
8514
8515 fi
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8517 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8518
8519 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8520 case $lt_prog_compiler_pic in
8521 "" | " "*) ;;
8522 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8523 esac
8524 else
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_can_build_shared=no
8527 fi
8528
8529 fi
8530
8531
8532
8533
8534
8535
8536 #
8537 # Check to make sure the static flag actually works.
8538 #
8539 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8541 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8542 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 lt_cv_prog_compiler_static_works=no
8546 save_LDFLAGS="$LDFLAGS"
8547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8550 # The linker can only warn and ignore the option if not recognized
8551 # So say no if there are warnings
8552 if test -s conftest.err; then
8553 # Append any errors to the config.log.
8554 cat conftest.err 1>&5
8555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8557 if diff conftest.exp conftest.er2 >/dev/null; then
8558 lt_cv_prog_compiler_static_works=yes
8559 fi
8560 else
8561 lt_cv_prog_compiler_static_works=yes
8562 fi
8563 fi
8564 $RM -r conftest*
8565 LDFLAGS="$save_LDFLAGS"
8566
8567 fi
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8569 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8570
8571 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8572 :
8573 else
8574 lt_prog_compiler_static=
8575 fi
8576
8577
8578
8579
8580
8581
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_c_o=no
8589 $RM -r conftest 2>/dev/null
8590 mkdir conftest
8591 cd conftest
8592 mkdir out
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594
8595 lt_compiler_flag="-o out/conftest2.$ac_objext"
8596 # Insert the option either (1) after the last *FLAGS variable, or
8597 # (2) before a word containing "conftest.", or (3) at the end.
8598 # Note that $ac_compile itself does not contain backslashes and begins
8599 # with a dollar sign (not a hyphen), so the echo should work correctly.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>out/conftest.err)
8606 ac_status=$?
8607 cat out/conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8610 then
8611 # The compiler can only warn and ignore the option if not recognized
8612 # So say no if there are warnings
8613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8616 lt_cv_prog_compiler_c_o=yes
8617 fi
8618 fi
8619 chmod u+w . 2>&5
8620 $RM conftest*
8621 # SGI C++ compiler will create directory out/ii_files/ for
8622 # template instantiation
8623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8624 $RM out/* && rmdir out
8625 cd ..
8626 $RM -r conftest
8627 $RM conftest*
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8632
8633
8634
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8640 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 lt_cv_prog_compiler_c_o=no
8644 $RM -r conftest 2>/dev/null
8645 mkdir conftest
8646 cd conftest
8647 mkdir out
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650 lt_compiler_flag="-o out/conftest2.$ac_objext"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>out/conftest.err)
8661 ac_status=$?
8662 cat out/conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665 then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings
8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_c_o=yes
8672 fi
8673 fi
8674 chmod u+w . 2>&5
8675 $RM conftest*
8676 # SGI C++ compiler will create directory out/ii_files/ for
8677 # template instantiation
8678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8679 $RM out/* && rmdir out
8680 cd ..
8681 $RM -r conftest
8682 $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8686 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689
8690
8691 hard_links="nottested"
8692 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8693 # do not overwrite the value of need_locks provided by the user
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8695 $as_echo_n "checking if we can lock with hard links... " >&6; }
8696 hard_links=yes
8697 $RM conftest*
8698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699 touch conftest.a
8700 ln conftest.a conftest.b 2>&5 || hard_links=no
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8703 $as_echo "$hard_links" >&6; }
8704 if test "$hard_links" = no; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8706 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8707 need_locks=warn
8708 fi
8709 else
8710 need_locks=no
8711 fi
8712
8713
8714
8715
8716
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8720
8721 runpath_var=
8722 allow_undefined_flag=
8723 always_export_symbols=no
8724 archive_cmds=
8725 archive_expsym_cmds=
8726 compiler_needs_object=no
8727 enable_shared_with_static_runtimes=no
8728 export_dynamic_flag_spec=
8729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8730 hardcode_automatic=no
8731 hardcode_direct=no
8732 hardcode_direct_absolute=no
8733 hardcode_libdir_flag_spec=
8734 hardcode_libdir_flag_spec_ld=
8735 hardcode_libdir_separator=
8736 hardcode_minus_L=no
8737 hardcode_shlibpath_var=unsupported
8738 inherit_rpath=no
8739 link_all_deplibs=unknown
8740 module_cmds=
8741 module_expsym_cmds=
8742 old_archive_from_new_cmds=
8743 old_archive_from_expsyms_cmds=
8744 thread_safe_flag_spec=
8745 whole_archive_flag_spec=
8746 # include_expsyms should be a list of space-separated symbols to be *always*
8747 # included in the symbol list
8748 include_expsyms=
8749 # exclude_expsyms can be an extended regexp of symbols to exclude
8750 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8751 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8752 # as well as any symbol that contains `d'.
8753 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8754 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8755 # platforms (ab)use it in PIC code, but their linkers get confused if
8756 # the symbol is explicitly referenced. Since portable code cannot
8757 # rely on this symbol name, it's probably fine to never include it in
8758 # preloaded symbol tables.
8759 # Exclude shared library initialization/finalization symbols.
8760 extract_expsyms_cmds=
8761
8762 case $host_os in
8763 cygwin* | mingw* | pw32* | cegcc*)
8764 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8765 # When not using gcc, we currently assume that we are using
8766 # Microsoft Visual C++.
8767 if test "$GCC" != yes; then
8768 with_gnu_ld=no
8769 fi
8770 ;;
8771 interix*)
8772 # we just hope/assume this is gcc and not c89 (= MSVC++)
8773 with_gnu_ld=yes
8774 ;;
8775 openbsd*)
8776 with_gnu_ld=no
8777 ;;
8778 esac
8779
8780 ld_shlibs=yes
8781
8782 # On some targets, GNU ld is compatible enough with the native linker
8783 # that we're better off using the native interface for both.
8784 lt_use_gnu_ld_interface=no
8785 if test "$with_gnu_ld" = yes; then
8786 case $host_os in
8787 aix*)
8788 # The AIX port of GNU ld has always aspired to compatibility
8789 # with the native linker. However, as the warning in the GNU ld
8790 # block says, versions before 2.19.5* couldn't really create working
8791 # shared libraries, regardless of the interface used.
8792 case `$LD -v 2>&1` in
8793 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8794 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8795 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8796 *)
8797 lt_use_gnu_ld_interface=yes
8798 ;;
8799 esac
8800 ;;
8801 *)
8802 lt_use_gnu_ld_interface=yes
8803 ;;
8804 esac
8805 fi
8806
8807 if test "$lt_use_gnu_ld_interface" = yes; then
8808 # If archive_cmds runs LD, not CC, wlarc should be empty
8809 wlarc='${wl}'
8810
8811 # Set some defaults for GNU ld with shared library support. These
8812 # are reset later if shared libraries are not supported. Putting them
8813 # here allows them to be overridden if necessary.
8814 runpath_var=LD_RUN_PATH
8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816 export_dynamic_flag_spec='${wl}--export-dynamic'
8817 # ancient GNU ld didn't support --whole-archive et. al.
8818 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8819 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8820 else
8821 whole_archive_flag_spec=
8822 fi
8823 supports_anon_versioning=no
8824 case `$LD -v 2>&1` in
8825 *GNU\ gold*) supports_anon_versioning=yes ;;
8826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8829 *\ 2.11.*) ;; # other 2.11 versions
8830 *) supports_anon_versioning=yes ;;
8831 esac
8832
8833 # See if GNU ld supports shared libraries.
8834 case $host_os in
8835 aix[3-9]*)
8836 # On AIX/PPC, the GNU linker is very broken
8837 if test "$host_cpu" != ia64; then
8838 ld_shlibs=no
8839 cat <<_LT_EOF 1>&2
8840
8841 *** Warning: the GNU linker, at least up to release 2.19, is reported
8842 *** to be unable to reliably create shared libraries on AIX.
8843 *** Therefore, libtool is disabling shared libraries support. If you
8844 *** really care for shared libraries, you may want to install binutils
8845 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8846 *** You will then need to restart the configuration process.
8847
8848 _LT_EOF
8849 fi
8850 ;;
8851
8852 amigaos*)
8853 case $host_cpu in
8854 powerpc)
8855 # see comment about AmigaOS4 .so support
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 archive_expsym_cmds=''
8858 ;;
8859 m68k)
8860 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)'
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 hardcode_minus_L=yes
8863 ;;
8864 esac
8865 ;;
8866
8867 beos*)
8868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8869 allow_undefined_flag=unsupported
8870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8871 # support --undefined. This deserves some investigation. FIXME
8872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 else
8874 ld_shlibs=no
8875 fi
8876 ;;
8877
8878 cygwin* | mingw* | pw32* | cegcc*)
8879 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8880 # as there is no search path for DLLs.
8881 hardcode_libdir_flag_spec='-L$libdir'
8882 export_dynamic_flag_spec='${wl}--export-all-symbols'
8883 allow_undefined_flag=unsupported
8884 always_export_symbols=no
8885 enable_shared_with_static_runtimes=yes
8886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8887
8888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8890 # If the export-symbols file already is a .def file (1st line
8891 # is EXPORTS), use it as is; otherwise, prepend...
8892 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8893 cp $export_symbols $output_objdir/$soname.def;
8894 else
8895 echo EXPORTS > $output_objdir/$soname.def;
8896 cat $export_symbols >> $output_objdir/$soname.def;
8897 fi~
8898 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903
8904 haiku*)
8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906 link_all_deplibs=yes
8907 ;;
8908
8909 interix[3-9]*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913 export_dynamic_flag_spec='${wl}-E'
8914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915 # Instead, shared libraries are loaded at an image base (0x10000000 by
8916 # default) and relocated if they conflict, which is a slow very memory
8917 # consuming and fragmenting process. To avoid this, we pick a random,
8918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921 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'
8922 ;;
8923
8924 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8925 tmp_diet=no
8926 if test "$host_os" = linux-dietlibc; then
8927 case $cc_basename in
8928 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8929 esac
8930 fi
8931 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8932 && test "$tmp_diet" = no
8933 then
8934 tmp_addflag=' $pic_flag'
8935 tmp_sharedflag='-shared'
8936 case $cc_basename,$host_cpu in
8937 pgcc*) # Portland Group C compiler
8938 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'
8939 tmp_addflag=' $pic_flag'
8940 ;;
8941 pgf77* | pgf90* | pgf95* | pgfortran*)
8942 # Portland Group f77 and f90 compilers
8943 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'
8944 tmp_addflag=' $pic_flag -Mnomain' ;;
8945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8946 tmp_addflag=' -i_dynamic' ;;
8947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8948 tmp_addflag=' -i_dynamic -nofor_main' ;;
8949 ifc* | ifort*) # Intel Fortran compiler
8950 tmp_addflag=' -nofor_main' ;;
8951 lf95*) # Lahey Fortran 8.1
8952 whole_archive_flag_spec=
8953 tmp_sharedflag='--shared' ;;
8954 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8955 tmp_sharedflag='-qmkshrobj'
8956 tmp_addflag= ;;
8957 nvcc*) # Cuda Compiler Driver 2.2
8958 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'
8959 compiler_needs_object=yes
8960 ;;
8961 esac
8962 case `$CC -V 2>&1 | sed 5q` in
8963 *Sun\ C*) # Sun C 5.9
8964 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'
8965 compiler_needs_object=yes
8966 tmp_sharedflag='-G' ;;
8967 *Sun\ F*) # Sun Fortran 8.3
8968 tmp_sharedflag='-G' ;;
8969 esac
8970 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971
8972 if test "x$supports_anon_versioning" = xyes; then
8973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8975 echo "local: *; };" >> $output_objdir/$libname.ver~
8976 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8977 fi
8978
8979 case $cc_basename in
8980 xlf* | bgf* | bgxlf* | mpixlf*)
8981 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8982 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8983 hardcode_libdir_flag_spec=
8984 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8985 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8986 if test "x$supports_anon_versioning" = xyes; then
8987 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8989 echo "local: *; };" >> $output_objdir/$libname.ver~
8990 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8991 fi
8992 ;;
8993 esac
8994 else
8995 ld_shlibs=no
8996 fi
8997 ;;
8998
8999 netbsd*)
9000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9001 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9002 wlarc=
9003 else
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 fi
9007 ;;
9008
9009 solaris*)
9010 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9015 *** create shared libraries on Solaris systems. Therefore, libtool
9016 *** is disabling shared libraries support. We urge you to upgrade GNU
9017 *** binutils to release 2.9.1 or newer. Another option is to modify
9018 *** your PATH or compiler configuration so that the native linker is
9019 *** used, and then restart.
9020
9021 _LT_EOF
9022 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9025 else
9026 ld_shlibs=no
9027 fi
9028 ;;
9029
9030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9031 case `$LD -v 2>&1` in
9032 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9033 ld_shlibs=no
9034 cat <<_LT_EOF 1>&2
9035
9036 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9037 *** reliably create shared libraries on SCO systems. Therefore, libtool
9038 *** is disabling shared libraries support. We urge you to upgrade GNU
9039 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9040 *** your PATH or compiler configuration so that the native linker is
9041 *** used, and then restart.
9042
9043 _LT_EOF
9044 ;;
9045 *)
9046 # For security reasons, it is highly recommended that you always
9047 # use absolute paths for naming shared libraries, and exclude the
9048 # DT_RUNPATH tag from executables and libraries. But doing so
9049 # requires that you compile everything twice, which is a pain.
9050 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058 esac
9059 ;;
9060
9061 sunos4*)
9062 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063 wlarc=
9064 hardcode_direct=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 *)
9069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
9076 esac
9077
9078 if test "$ld_shlibs" = no; then
9079 runpath_var=
9080 hardcode_libdir_flag_spec=
9081 export_dynamic_flag_spec=
9082 whole_archive_flag_spec=
9083 fi
9084 else
9085 # PORTME fill in a description of your system's linker (not GNU ld)
9086 case $host_os in
9087 aix3*)
9088 allow_undefined_flag=unsupported
9089 always_export_symbols=yes
9090 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'
9091 # Note: this linker hardcodes the directories in LIBPATH if there
9092 # are no directories specified by -L.
9093 hardcode_minus_L=yes
9094 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9095 # Neither direct hardcoding nor static linking is supported with a
9096 # broken collect2.
9097 hardcode_direct=unsupported
9098 fi
9099 ;;
9100
9101 aix[4-9]*)
9102 if test "$host_cpu" = ia64; then
9103 # On IA64, the linker does run time linking by default, so we don't
9104 # have to do anything special.
9105 aix_use_runtimelinking=no
9106 exp_sym_flag='-Bexport'
9107 no_entry_flag=""
9108 else
9109 # If we're using GNU nm, then we don't want the "-C" option.
9110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9111 # Also, AIX nm treats weak defined symbols like other global
9112 # defined symbols, whereas GNU nm marks them as "W".
9113 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9114 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'
9115 else
9116 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9117 fi
9118 aix_use_runtimelinking=no
9119
9120 # Test if we are trying to use run time linking or normal
9121 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9122 # need to do runtime linking.
9123 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9124 for ld_flag in $LDFLAGS; do
9125 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9126 aix_use_runtimelinking=yes
9127 break
9128 fi
9129 done
9130 ;;
9131 esac
9132
9133 exp_sym_flag='-bexport'
9134 no_entry_flag='-bnoentry'
9135 fi
9136
9137 # When large executables or shared objects are built, AIX ld can
9138 # have problems creating the table of contents. If linking a library
9139 # or program results in "error TOC overflow" add -mminimal-toc to
9140 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9141 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9142
9143 archive_cmds=''
9144 hardcode_direct=yes
9145 hardcode_direct_absolute=yes
9146 hardcode_libdir_separator=':'
9147 link_all_deplibs=yes
9148 file_list_spec='${wl}-f,'
9149
9150 if test "$GCC" = yes; then
9151 case $host_os in aix4.[012]|aix4.[012].*)
9152 # We only want to do this on AIX 4.2 and lower, the check
9153 # below for broken collect2 doesn't work under 4.3+
9154 collect2name=`${CC} -print-prog-name=collect2`
9155 if test -f "$collect2name" &&
9156 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9157 then
9158 # We have reworked collect2
9159 :
9160 else
9161 # We have old collect2
9162 hardcode_direct=unsupported
9163 # It fails to find uninstalled libraries when the uninstalled
9164 # path is not listed in the libpath. Setting hardcode_minus_L
9165 # to unsupported forces relinking
9166 hardcode_minus_L=yes
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_libdir_separator=
9169 fi
9170 ;;
9171 esac
9172 shared_flag='-shared'
9173 if test "$aix_use_runtimelinking" = yes; then
9174 shared_flag="$shared_flag "'${wl}-G'
9175 fi
9176 else
9177 # not using gcc
9178 if test "$host_cpu" = ia64; then
9179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9180 # chokes on -Wl,-G. The following line is correct:
9181 shared_flag='-G'
9182 else
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag='${wl}-G'
9185 else
9186 shared_flag='${wl}-bM:SRE'
9187 fi
9188 fi
9189 fi
9190
9191 export_dynamic_flag_spec='${wl}-bexpall'
9192 # It seems that -bexpall does not export symbols beginning with
9193 # underscore (_), so it is better to generate a list of symbols to export.
9194 always_export_symbols=yes
9195 if test "$aix_use_runtimelinking" = yes; then
9196 # Warning - without using the other runtime loading flags (-brtl),
9197 # -berok will link without error, but may produce a broken library.
9198 allow_undefined_flag='-berok'
9199 # Determine the default libpath from the value encoded in an
9200 # empty executable.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203
9204 int
9205 main ()
9206 {
9207
9208 ;
9209 return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9213
9214 lt_aix_libpath_sed='
9215 /Import File Strings/,/^$/ {
9216 /^0/ {
9217 s/^0 *\(.*\)$/\1/
9218 p
9219 }
9220 }'
9221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 # Check for a 64-bit object if we didn't find anything.
9223 if test -z "$aix_libpath"; then
9224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 fi
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230
9231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9232 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"
9233 else
9234 if test "$host_cpu" = ia64; then
9235 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9236 allow_undefined_flag="-z nodefs"
9237 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"
9238 else
9239 # Determine the default libpath from the value encoded in an
9240 # empty executable.
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243
9244 int
9245 main ()
9246 {
9247
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253
9254 lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9256 /^0/ {
9257 s/^0 *\(.*\)$/\1/
9258 p
9259 }
9260 }'
9261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 # Check for a 64-bit object if we didn't find anything.
9263 if test -z "$aix_libpath"; then
9264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 fi
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9270
9271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272 # Warning - without using the other run time loading flags,
9273 # -berok will link without error, but may produce a broken library.
9274 no_undefined_flag=' ${wl}-bernotok'
9275 allow_undefined_flag=' ${wl}-berok'
9276 if test "$with_gnu_ld" = yes; then
9277 # We only use this code for GNU lds that support --whole-archive.
9278 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9279 else
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9282 fi
9283 archive_cmds_need_lc=yes
9284 # This is similar to how AIX traditionally builds its shared libraries.
9285 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'
9286 fi
9287 fi
9288 ;;
9289
9290 amigaos*)
9291 case $host_cpu in
9292 powerpc)
9293 # see comment about AmigaOS4 .so support
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds=''
9296 ;;
9297 m68k)
9298 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)'
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 ;;
9302 esac
9303 ;;
9304
9305 bsdi[45]*)
9306 export_dynamic_flag_spec=-rdynamic
9307 ;;
9308
9309 cygwin* | mingw* | pw32* | cegcc*)
9310 # When not using gcc, we currently assume that we are using
9311 # Microsoft Visual C++.
9312 # hardcode_libdir_flag_spec is actually meaningless, as there is
9313 # no search path for DLLs.
9314 hardcode_libdir_flag_spec=' '
9315 allow_undefined_flag=unsupported
9316 # Tell ltmain to make .lib files, not .a files.
9317 libext=lib
9318 # Tell ltmain to make .dll files, not .so files.
9319 shrext_cmds=".dll"
9320 # FIXME: Setting linknames here is a bad hack.
9321 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9322 # The linker will automatically build a .lib file if we build a DLL.
9323 old_archive_from_new_cmds='true'
9324 # FIXME: Should let the user specify the lib program.
9325 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9326 fix_srcfile_path='`cygpath -w "$srcfile"`'
9327 enable_shared_with_static_runtimes=yes
9328 ;;
9329
9330 darwin* | rhapsody*)
9331
9332
9333 archive_cmds_need_lc=no
9334 hardcode_direct=no
9335 hardcode_automatic=yes
9336 hardcode_shlibpath_var=unsupported
9337 if test "$lt_cv_ld_force_load" = "yes"; then
9338 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\"`'
9339 else
9340 whole_archive_flag_spec=''
9341 fi
9342 link_all_deplibs=yes
9343 allow_undefined_flag="$_lt_dar_allow_undefined"
9344 case $cc_basename in
9345 ifort*) _lt_dar_can_shared=yes ;;
9346 *) _lt_dar_can_shared=$GCC ;;
9347 esac
9348 if test "$_lt_dar_can_shared" = "yes"; then
9349 output_verbose_link_cmd=func_echo_all
9350 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9351 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9352 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}"
9353 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}"
9354
9355 else
9356 ld_shlibs=no
9357 fi
9358
9359 ;;
9360
9361 dgux*)
9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_shlibpath_var=no
9365 ;;
9366
9367 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9368 # support. Future versions do this automatically, but an explicit c++rt0.o
9369 # does not break anything, and helps significantly (at the cost of a little
9370 # extra space).
9371 freebsd2.2*)
9372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9373 hardcode_libdir_flag_spec='-R$libdir'
9374 hardcode_direct=yes
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9379 freebsd2.*)
9380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_direct=yes
9382 hardcode_minus_L=yes
9383 hardcode_shlibpath_var=no
9384 ;;
9385
9386 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9387 freebsd* | dragonfly*)
9388 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 hpux9*)
9395 if test "$GCC" = yes; then
9396 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'
9397 else
9398 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'
9399 fi
9400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_direct=yes
9403
9404 # hardcode_minus_L: Not really in the search PATH,
9405 # but as the default location of the library.
9406 hardcode_minus_L=yes
9407 export_dynamic_flag_spec='${wl}-E'
9408 ;;
9409
9410 hpux10*)
9411 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415 fi
9416 if test "$with_gnu_ld" = no; then
9417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418 hardcode_libdir_flag_spec_ld='+b $libdir'
9419 hardcode_libdir_separator=:
9420 hardcode_direct=yes
9421 hardcode_direct_absolute=yes
9422 export_dynamic_flag_spec='${wl}-E'
9423 # hardcode_minus_L: Not really in the search PATH,
9424 # but as the default location of the library.
9425 hardcode_minus_L=yes
9426 fi
9427 ;;
9428
9429 hpux11*)
9430 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9431 case $host_cpu in
9432 hppa*64*)
9433 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 ;;
9435 ia64*)
9436 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 *)
9439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 esac
9442 else
9443 case $host_cpu in
9444 hppa*64*)
9445 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 ;;
9447 ia64*)
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 ;;
9450 *)
9451
9452 # Older versions of the 11.00 compiler do not understand -b yet
9453 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9455 $as_echo_n "checking if $CC understands -b... " >&6; }
9456 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 lt_cv_prog_compiler__b=no
9460 save_LDFLAGS="$LDFLAGS"
9461 LDFLAGS="$LDFLAGS -b"
9462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9464 # The linker can only warn and ignore the option if not recognized
9465 # So say no if there are warnings
9466 if test -s conftest.err; then
9467 # Append any errors to the config.log.
9468 cat conftest.err 1>&5
9469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9471 if diff conftest.exp conftest.er2 >/dev/null; then
9472 lt_cv_prog_compiler__b=yes
9473 fi
9474 else
9475 lt_cv_prog_compiler__b=yes
9476 fi
9477 fi
9478 $RM -r conftest*
9479 LDFLAGS="$save_LDFLAGS"
9480
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9483 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9484
9485 if test x"$lt_cv_prog_compiler__b" = xyes; then
9486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9489 fi
9490
9491 ;;
9492 esac
9493 fi
9494 if test "$with_gnu_ld" = no; then
9495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9496 hardcode_libdir_separator=:
9497
9498 case $host_cpu in
9499 hppa*64*|ia64*)
9500 hardcode_direct=no
9501 hardcode_shlibpath_var=no
9502 ;;
9503 *)
9504 hardcode_direct=yes
9505 hardcode_direct_absolute=yes
9506 export_dynamic_flag_spec='${wl}-E'
9507
9508 # hardcode_minus_L: Not really in the search PATH,
9509 # but as the default location of the library.
9510 hardcode_minus_L=yes
9511 ;;
9512 esac
9513 fi
9514 ;;
9515
9516 irix5* | irix6* | nonstopux*)
9517 if test "$GCC" = yes; then
9518 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'
9519 # Try to use the -exported_symbol ld option, if it does not
9520 # work, assume that -exports_file does not work either and
9521 # implicitly export all symbols.
9522 save_LDFLAGS="$LDFLAGS"
9523 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 int foo(void) {}
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 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'
9530
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 LDFLAGS="$save_LDFLAGS"
9535 else
9536 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'
9537 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'
9538 fi
9539 archive_cmds_need_lc='no'
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 inherit_rpath=yes
9543 link_all_deplibs=yes
9544 ;;
9545
9546 netbsd*)
9547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9549 else
9550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9551 fi
9552 hardcode_libdir_flag_spec='-R$libdir'
9553 hardcode_direct=yes
9554 hardcode_shlibpath_var=no
9555 ;;
9556
9557 newsos6)
9558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_direct=yes
9560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561 hardcode_libdir_separator=:
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 *nto* | *qnx*)
9566 ;;
9567
9568 openbsd*)
9569 if test -f /usr/libexec/ld.so; then
9570 hardcode_direct=yes
9571 hardcode_shlibpath_var=no
9572 hardcode_direct_absolute=yes
9573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577 export_dynamic_flag_spec='${wl}-E'
9578 else
9579 case $host_os in
9580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_libdir_flag_spec='-R$libdir'
9583 ;;
9584 *)
9585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 ;;
9588 esac
9589 fi
9590 else
9591 ld_shlibs=no
9592 fi
9593 ;;
9594
9595 os2*)
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_minus_L=yes
9598 allow_undefined_flag=unsupported
9599 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'
9600 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9601 ;;
9602
9603 osf3*)
9604 if test "$GCC" = yes; then
9605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606 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'
9607 else
9608 allow_undefined_flag=' -expect_unresolved \*'
9609 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'
9610 fi
9611 archive_cmds_need_lc='no'
9612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 osf4* | osf5*) # as osf3* with the addition of -msym flag
9617 if test "$GCC" = yes; then
9618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9619 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'
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 else
9622 allow_undefined_flag=' -expect_unresolved \*'
9623 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'
9624 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~
9625 $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'
9626
9627 # Both c and cxx compiler support -rpath directly
9628 hardcode_libdir_flag_spec='-rpath $libdir'
9629 fi
9630 archive_cmds_need_lc='no'
9631 hardcode_libdir_separator=:
9632 ;;
9633
9634 solaris*)
9635 no_undefined_flag=' -z defs'
9636 if test "$GCC" = yes; then
9637 wlarc='${wl}'
9638 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9640 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9641 else
9642 case `$CC -V 2>&1` in
9643 *"Compilers 5.0"*)
9644 wlarc=''
9645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9648 ;;
9649 *)
9650 wlarc='${wl}'
9651 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9653 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9654 ;;
9655 esac
9656 fi
9657 hardcode_libdir_flag_spec='-R$libdir'
9658 hardcode_shlibpath_var=no
9659 case $host_os in
9660 solaris2.[0-5] | solaris2.[0-5].*) ;;
9661 *)
9662 # The compiler driver will combine and reorder linker options,
9663 # but understands `-z linker_flag'. GCC discards it without `$wl',
9664 # but is careful enough not to reorder.
9665 # Supported since Solaris 2.6 (maybe 2.5.1?)
9666 if test "$GCC" = yes; then
9667 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9668 else
9669 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9670 fi
9671 ;;
9672 esac
9673 link_all_deplibs=yes
9674 ;;
9675
9676 sunos4*)
9677 if test "x$host_vendor" = xsequent; then
9678 # Use $CC to link under sequent, because it throws in some extra .o
9679 # files that make .init and .fini sections work.
9680 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9681 else
9682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9683 fi
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 hardcode_direct=yes
9686 hardcode_minus_L=yes
9687 hardcode_shlibpath_var=no
9688 ;;
9689
9690 sysv4)
9691 case $host_vendor in
9692 sni)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct=yes # is this really true???
9695 ;;
9696 siemens)
9697 ## LD is ld it makes a PLAMLIB
9698 ## CC just makes a GrossModule.
9699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9700 reload_cmds='$CC -r -o $output$reload_objs'
9701 hardcode_direct=no
9702 ;;
9703 motorola)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9706 ;;
9707 esac
9708 runpath_var='LD_RUN_PATH'
9709 hardcode_shlibpath_var=no
9710 ;;
9711
9712 sysv4.3*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_shlibpath_var=no
9715 export_dynamic_flag_spec='-Bexport'
9716 ;;
9717
9718 sysv4*MP*)
9719 if test -d /usr/nec; then
9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_shlibpath_var=no
9722 runpath_var=LD_RUN_PATH
9723 hardcode_runpath_var=yes
9724 ld_shlibs=yes
9725 fi
9726 ;;
9727
9728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9729 no_undefined_flag='${wl}-z,text'
9730 archive_cmds_need_lc=no
9731 hardcode_shlibpath_var=no
9732 runpath_var='LD_RUN_PATH'
9733
9734 if test "$GCC" = yes; then
9735 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 else
9738 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 fi
9741 ;;
9742
9743 sysv5* | sco3.2v5* | sco5v6*)
9744 # Note: We can NOT use -z defs as we might desire, because we do not
9745 # link with -lc, and that would cause any symbols used from libc to
9746 # always be unresolved, which means just about no library would
9747 # ever link correctly. If we're not using GNU ld we use -z text
9748 # though, which does catch some bad symbols but isn't as heavy-handed
9749 # as -z defs.
9750 no_undefined_flag='${wl}-z,text'
9751 allow_undefined_flag='${wl}-z,nodefs'
9752 archive_cmds_need_lc=no
9753 hardcode_shlibpath_var=no
9754 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9755 hardcode_libdir_separator=':'
9756 link_all_deplibs=yes
9757 export_dynamic_flag_spec='${wl}-Bexport'
9758 runpath_var='LD_RUN_PATH'
9759
9760 if test "$GCC" = yes; then
9761 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 else
9764 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 fi
9767 ;;
9768
9769 uts4*)
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 *)
9776 ld_shlibs=no
9777 ;;
9778 esac
9779
9780 if test x$host_vendor = xsni; then
9781 case $host in
9782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9783 export_dynamic_flag_spec='${wl}-Blargedynsym'
9784 ;;
9785 esac
9786 fi
9787 fi
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9790 $as_echo "$ld_shlibs" >&6; }
9791 test "$ld_shlibs" = no && can_build_shared=no
9792
9793 with_gnu_ld=$with_gnu_ld
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809 #
9810 # Do we need to explicitly link libc?
9811 #
9812 case "x$archive_cmds_need_lc" in
9813 x|xyes)
9814 # Assume -lc should be added
9815 archive_cmds_need_lc=yes
9816
9817 if test "$enable_shared" = yes && test "$GCC" = yes; then
9818 case $archive_cmds in
9819 *'~'*)
9820 # FIXME: we may have to deal with multi-command sequences.
9821 ;;
9822 '$CC '*)
9823 # Test whether the compiler implicitly links with -lc since on some
9824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9825 # to ld, don't add -lc before -lgcc.
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9828 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 $RM conftest*
9832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9833
9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9835 (eval $ac_compile) 2>&5
9836 ac_status=$?
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; } 2>conftest.err; then
9839 soname=conftest
9840 lib=conftest
9841 libobjs=conftest.$ac_objext
9842 deplibs=
9843 wl=$lt_prog_compiler_wl
9844 pic_flag=$lt_prog_compiler_pic
9845 compiler_flags=-v
9846 linker_flags=-v
9847 verstring=
9848 output_objdir=.
9849 libname=conftest
9850 lt_save_allow_undefined_flag=$allow_undefined_flag
9851 allow_undefined_flag=
9852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9853 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9854 ac_status=$?
9855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9856 test $ac_status = 0; }
9857 then
9858 lt_cv_archive_cmds_need_lc=no
9859 else
9860 lt_cv_archive_cmds_need_lc=yes
9861 fi
9862 allow_undefined_flag=$lt_save_allow_undefined_flag
9863 else
9864 cat conftest.err 1>&5
9865 fi
9866 $RM conftest*
9867
9868 fi
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9870 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9871 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9872 ;;
9873 esac
9874 fi
9875 ;;
9876 esac
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10035 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10036
10037 if test "$GCC" = yes; then
10038 case $host_os in
10039 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10040 *) lt_awk_arg="/^libraries:/" ;;
10041 esac
10042 case $host_os in
10043 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10044 *) lt_sed_strip_eq="s,=/,/,g" ;;
10045 esac
10046 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10047 case $lt_search_path_spec in
10048 *\;*)
10049 # if the path contains ";" then we assume it to be the separator
10050 # otherwise default to the standard path separator (i.e. ":") - it is
10051 # assumed that no part of a normal pathname contains ";" but that should
10052 # okay in the real world where ";" in dirpaths is itself problematic.
10053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10054 ;;
10055 *)
10056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10057 ;;
10058 esac
10059 # Ok, now we have the path, separated by spaces, we can step through it
10060 # and add multilib dir if necessary.
10061 lt_tmp_lt_search_path_spec=
10062 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10063 for lt_sys_path in $lt_search_path_spec; do
10064 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10066 else
10067 test -d "$lt_sys_path" && \
10068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10069 fi
10070 done
10071 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10072 BEGIN {RS=" "; FS="/|\n";} {
10073 lt_foo="";
10074 lt_count=0;
10075 for (lt_i = NF; lt_i > 0; lt_i--) {
10076 if ($lt_i != "" && $lt_i != ".") {
10077 if ($lt_i == "..") {
10078 lt_count++;
10079 } else {
10080 if (lt_count == 0) {
10081 lt_foo="/" $lt_i lt_foo;
10082 } else {
10083 lt_count--;
10084 }
10085 }
10086 }
10087 }
10088 if (lt_foo != "") { lt_freq[lt_foo]++; }
10089 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10090 }'`
10091 # AWK program above erroneously prepends '/' to C:/dos/paths
10092 # for these hosts.
10093 case $host_os in
10094 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10095 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10096 esac
10097 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10098 else
10099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10100 fi
10101 library_names_spec=
10102 libname_spec='lib$name'
10103 soname_spec=
10104 shrext_cmds=".so"
10105 postinstall_cmds=
10106 postuninstall_cmds=
10107 finish_cmds=
10108 finish_eval=
10109 shlibpath_var=
10110 shlibpath_overrides_runpath=unknown
10111 version_type=none
10112 dynamic_linker="$host_os ld.so"
10113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10114 need_lib_prefix=unknown
10115 hardcode_into_libs=no
10116
10117 # when you set need_version to no, make sure it does not cause -set_version
10118 # flags to be left without arguments
10119 need_version=unknown
10120
10121 case $host_os in
10122 aix3*)
10123 version_type=linux
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10125 shlibpath_var=LIBPATH
10126
10127 # AIX 3 has no versioning support, so we append a major version to the name.
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 ;;
10130
10131 aix[4-9]*)
10132 version_type=linux
10133 need_lib_prefix=no
10134 need_version=no
10135 hardcode_into_libs=yes
10136 if test "$host_cpu" = ia64; then
10137 # AIX 5 supports IA64
10138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 else
10141 # With GCC up to 2.95.x, collect2 would create an import file
10142 # for dependence libraries. The import file would start with
10143 # the line `#! .'. This would cause the generated library to
10144 # depend on `.', always an invalid library. This was fixed in
10145 # development snapshots of GCC prior to 3.0.
10146 case $host_os in
10147 aix4 | aix4.[01] | aix4.[01].*)
10148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10149 echo ' yes '
10150 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10151 :
10152 else
10153 can_build_shared=no
10154 fi
10155 ;;
10156 esac
10157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10158 # soname into executable. Probably we can add versioning support to
10159 # collect2, so additional links can be useful in future.
10160 if test "$aix_use_runtimelinking" = yes; then
10161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10162 # instead of lib<name>.a to let people know that these are not
10163 # typical AIX shared libraries.
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 else
10166 # We preserve .a as extension for shared libraries through AIX4.2
10167 # and later when we are not doing run time linking.
10168 library_names_spec='${libname}${release}.a $libname.a'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 fi
10171 shlibpath_var=LIBPATH
10172 fi
10173 ;;
10174
10175 amigaos*)
10176 case $host_cpu in
10177 powerpc)
10178 # Since July 2007 AmigaOS4 officially supports .so libraries.
10179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 ;;
10182 m68k)
10183 library_names_spec='$libname.ixlibrary $libname.a'
10184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10185 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'
10186 ;;
10187 esac
10188 ;;
10189
10190 beos*)
10191 library_names_spec='${libname}${shared_ext}'
10192 dynamic_linker="$host_os ld.so"
10193 shlibpath_var=LIBRARY_PATH
10194 ;;
10195
10196 bsdi[45]*)
10197 version_type=linux
10198 need_version=no
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10205 # the default ld.so.conf also contains /usr/contrib/lib and
10206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10207 # libtool to hard-code these into programs
10208 ;;
10209
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 version_type=windows
10212 shrext_cmds=".dll"
10213 need_version=no
10214 need_lib_prefix=no
10215
10216 case $GCC,$host_os in
10217 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10218 library_names_spec='$libname.dll.a'
10219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10220 postinstall_cmds='base_file=`basename \${file}`~
10221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10222 dldir=$destdir/`dirname \$dlpath`~
10223 test -d \$dldir || mkdir -p \$dldir~
10224 $install_prog $dir/$dlname \$dldir/$dlname~
10225 chmod a+x \$dldir/$dlname~
10226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10228 fi'
10229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10230 dlpath=$dir/\$dldll~
10231 $RM \$dlpath'
10232 shlibpath_overrides_runpath=yes
10233
10234 case $host_os in
10235 cygwin*)
10236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10238
10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10240 ;;
10241 mingw* | cegcc*)
10242 # MinGW DLLs use traditional 'lib' prefix
10243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 ;;
10245 pw32*)
10246 # pw32 DLLs use 'pw' prefix rather than 'lib'
10247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 ;;
10249 esac
10250 ;;
10251
10252 *)
10253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10254 ;;
10255 esac
10256 dynamic_linker='Win32 ld.exe'
10257 # FIXME: first we should search . and the directory the executable is in
10258 shlibpath_var=PATH
10259 ;;
10260
10261 darwin* | rhapsody*)
10262 dynamic_linker="$host_os dyld"
10263 version_type=darwin
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10267 soname_spec='${libname}${release}${major}$shared_ext'
10268 shlibpath_overrides_runpath=yes
10269 shlibpath_var=DYLD_LIBRARY_PATH
10270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10271
10272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10274 ;;
10275
10276 dgux*)
10277 version_type=linux
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 ;;
10284
10285 freebsd* | dragonfly*)
10286 # DragonFly does not have aout. When/if they implement a new
10287 # versioning mechanism, adjust this.
10288 if test -x /usr/bin/objformat; then
10289 objformat=`/usr/bin/objformat`
10290 else
10291 case $host_os in
10292 freebsd[23].*) objformat=aout ;;
10293 *) objformat=elf ;;
10294 esac
10295 fi
10296 version_type=freebsd-$objformat
10297 case $version_type in
10298 freebsd-elf*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 need_version=no
10301 need_lib_prefix=no
10302 ;;
10303 freebsd-*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10305 need_version=yes
10306 ;;
10307 esac
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_os in
10310 freebsd2.*)
10311 shlibpath_overrides_runpath=yes
10312 ;;
10313 freebsd3.[01]* | freebsdelf3.[01]*)
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10319 shlibpath_overrides_runpath=no
10320 hardcode_into_libs=yes
10321 ;;
10322 *) # from 4.6 on, and DragonFly
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10325 ;;
10326 esac
10327 ;;
10328
10329 gnu*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 hardcode_into_libs=yes
10337 ;;
10338
10339 haiku*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
10343 dynamic_linker="$host_os runtime_loader"
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes
10348 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10349 hardcode_into_libs=yes
10350 ;;
10351
10352 hpux9* | hpux10* | hpux11*)
10353 # Give a soname corresponding to the major version so that dld.sl refuses to
10354 # link against other versions.
10355 version_type=sunos
10356 need_lib_prefix=no
10357 need_version=no
10358 case $host_cpu in
10359 ia64*)
10360 shrext_cmds='.so'
10361 hardcode_into_libs=yes
10362 dynamic_linker="$host_os dld.so"
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 if test "X$HPUX_IA64_MODE" = X32; then
10368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10369 else
10370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10371 fi
10372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10373 ;;
10374 hppa*64*)
10375 shrext_cmds='.sl'
10376 hardcode_into_libs=yes
10377 dynamic_linker="$host_os dld.sl"
10378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10384 ;;
10385 *)
10386 shrext_cmds='.sl'
10387 dynamic_linker="$host_os dld.sl"
10388 shlibpath_var=SHLIB_PATH
10389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 ;;
10393 esac
10394 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10395 postinstall_cmds='chmod 555 $lib'
10396 # or fails outright, so override atomically:
10397 install_override_mode=555
10398 ;;
10399
10400 interix[3-9]*)
10401 version_type=linux
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 shlibpath_overrides_runpath=no
10409 hardcode_into_libs=yes
10410 ;;
10411
10412 irix5* | irix6* | nonstopux*)
10413 case $host_os in
10414 nonstopux*) version_type=nonstopux ;;
10415 *)
10416 if test "$lt_cv_prog_gnu_ld" = yes; then
10417 version_type=linux
10418 else
10419 version_type=irix
10420 fi ;;
10421 esac
10422 need_lib_prefix=no
10423 need_version=no
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10426 case $host_os in
10427 irix5* | nonstopux*)
10428 libsuff= shlibsuff=
10429 ;;
10430 *)
10431 case $LD in # libtool.m4 will add one of these switches to LD
10432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10433 libsuff= shlibsuff= libmagic=32-bit;;
10434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10435 libsuff=32 shlibsuff=N32 libmagic=N32;;
10436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10438 *) libsuff= shlibsuff= libmagic=never-match;;
10439 esac
10440 ;;
10441 esac
10442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10443 shlibpath_overrides_runpath=no
10444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10446 hardcode_into_libs=yes
10447 ;;
10448
10449 # No shared lib support for Linux oldld, aout, or coff.
10450 linux*oldld* | linux*aout* | linux*coff*)
10451 dynamic_linker=no
10452 ;;
10453
10454 # This must be Linux ELF.
10455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10456 version_type=linux
10457 need_lib_prefix=no
10458 need_version=no
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=no
10464
10465 # Some binutils ld are patched to set DT_RUNPATH
10466 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 lt_cv_shlibpath_overrides_runpath=no
10470 save_LDFLAGS=$LDFLAGS
10471 save_libdir=$libdir
10472 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10473 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476
10477 int
10478 main ()
10479 {
10480
10481 ;
10482 return 0;
10483 }
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10487 lt_cv_shlibpath_overrides_runpath=yes
10488 fi
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LDFLAGS=$save_LDFLAGS
10493 libdir=$save_libdir
10494
10495 fi
10496
10497 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10498
10499 # This implies no fast_install, which is unacceptable.
10500 # Some rework will be needed to allow for fast_install
10501 # before this can be enabled.
10502 hardcode_into_libs=yes
10503
10504 # Append ld.so.conf contents to the search path
10505 if test -f /etc/ld.so.conf; then
10506 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' ' '`
10507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10508 fi
10509
10510 # We used to test for /lib/ld.so.1 and disable shared libraries on
10511 # powerpc, because MkLinux only supported shared libraries with the
10512 # GNU dynamic linker. Since this was broken with cross compilers,
10513 # most powerpc-linux boxes support dynamic linking these days and
10514 # people can always --disable-shared, the test was removed, and we
10515 # assume the GNU/Linux dynamic linker is in use.
10516 dynamic_linker='GNU/Linux ld.so'
10517 ;;
10518
10519 netbsd*)
10520 version_type=sunos
10521 need_lib_prefix=no
10522 need_version=no
10523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10526 dynamic_linker='NetBSD (a.out) ld.so'
10527 else
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 dynamic_linker='NetBSD ld.elf_so'
10531 fi
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=yes
10534 hardcode_into_libs=yes
10535 ;;
10536
10537 newsos6)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 ;;
10543
10544 *nto* | *qnx*)
10545 version_type=qnx
10546 need_lib_prefix=no
10547 need_version=no
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=no
10552 hardcode_into_libs=yes
10553 dynamic_linker='ldqnx.so'
10554 ;;
10555
10556 openbsd*)
10557 version_type=sunos
10558 sys_lib_dlsearch_path_spec="/usr/lib"
10559 need_lib_prefix=no
10560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10561 case $host_os in
10562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10563 *) need_version=no ;;
10564 esac
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10569 case $host_os in
10570 openbsd2.[89] | openbsd2.[89].*)
10571 shlibpath_overrides_runpath=no
10572 ;;
10573 *)
10574 shlibpath_overrides_runpath=yes
10575 ;;
10576 esac
10577 else
10578 shlibpath_overrides_runpath=yes
10579 fi
10580 ;;
10581
10582 os2*)
10583 libname_spec='$name'
10584 shrext_cmds=".dll"
10585 need_lib_prefix=no
10586 library_names_spec='$libname${shared_ext} $libname.a'
10587 dynamic_linker='OS/2 ld.exe'
10588 shlibpath_var=LIBPATH
10589 ;;
10590
10591 osf3* | osf4* | osf5*)
10592 version_type=osf
10593 need_lib_prefix=no
10594 need_version=no
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10600 ;;
10601
10602 rdos*)
10603 dynamic_linker=no
10604 ;;
10605
10606 solaris*)
10607 version_type=linux
10608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes
10614 hardcode_into_libs=yes
10615 # ldd complains unless libraries are executable
10616 postinstall_cmds='chmod +x $lib'
10617 ;;
10618
10619 sunos4*)
10620 version_type=sunos
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 shlibpath_overrides_runpath=yes
10625 if test "$with_gnu_ld" = yes; then
10626 need_lib_prefix=no
10627 fi
10628 need_version=yes
10629 ;;
10630
10631 sysv4 | sysv4.3*)
10632 version_type=linux
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 case $host_vendor in
10637 sni)
10638 shlibpath_overrides_runpath=no
10639 need_lib_prefix=no
10640 runpath_var=LD_RUN_PATH
10641 ;;
10642 siemens)
10643 need_lib_prefix=no
10644 ;;
10645 motorola)
10646 need_lib_prefix=no
10647 need_version=no
10648 shlibpath_overrides_runpath=no
10649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10650 ;;
10651 esac
10652 ;;
10653
10654 sysv4*MP*)
10655 if test -d /usr/nec ;then
10656 version_type=linux
10657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10658 soname_spec='$libname${shared_ext}.$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 fi
10661 ;;
10662
10663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10664 version_type=freebsd-elf
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10672 if test "$with_gnu_ld" = yes; then
10673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10674 else
10675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10676 case $host_os in
10677 sco3.2v5*)
10678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10679 ;;
10680 esac
10681 fi
10682 sys_lib_dlsearch_path_spec='/usr/lib'
10683 ;;
10684
10685 tpf*)
10686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10687 version_type=linux
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 ;;
10695
10696 uts4*)
10697 version_type=linux
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 ;;
10702
10703 *)
10704 dynamic_linker=no
10705 ;;
10706 esac
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10708 $as_echo "$dynamic_linker" >&6; }
10709 test "$dynamic_linker" = no && can_build_shared=no
10710
10711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10712 if test "$GCC" = yes; then
10713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10714 fi
10715
10716 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10718 fi
10719 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10721 fi
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10815 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10816 hardcode_action=
10817 if test -n "$hardcode_libdir_flag_spec" ||
10818 test -n "$runpath_var" ||
10819 test "X$hardcode_automatic" = "Xyes" ; then
10820
10821 # We can hardcode non-existent directories.
10822 if test "$hardcode_direct" != no &&
10823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10824 # have to relink, otherwise we might link with an installed library
10825 # when we should be linking with a yet-to-be-installed one
10826 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10827 test "$hardcode_minus_L" != no; then
10828 # Linking always hardcodes the temporary library directory.
10829 hardcode_action=relink
10830 else
10831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10832 hardcode_action=immediate
10833 fi
10834 else
10835 # We cannot hardcode anything, or else we can only hardcode existing
10836 # directories.
10837 hardcode_action=unsupported
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10840 $as_echo "$hardcode_action" >&6; }
10841
10842 if test "$hardcode_action" = relink ||
10843 test "$inherit_rpath" = yes; then
10844 # Fast installation is not supported
10845 enable_fast_install=no
10846 elif test "$shlibpath_overrides_runpath" = yes ||
10847 test "$enable_shared" = no; then
10848 # Fast installation is not necessary
10849 enable_fast_install=needless
10850 fi
10851
10852
10853
10854
10855
10856
10857 if test "x$enable_dlopen" != xyes; then
10858 enable_dlopen=unknown
10859 enable_dlopen_self=unknown
10860 enable_dlopen_self_static=unknown
10861 else
10862 lt_cv_dlopen=no
10863 lt_cv_dlopen_libs=
10864
10865 case $host_os in
10866 beos*)
10867 lt_cv_dlopen="load_add_on"
10868 lt_cv_dlopen_libs=
10869 lt_cv_dlopen_self=yes
10870 ;;
10871
10872 mingw* | pw32* | cegcc*)
10873 lt_cv_dlopen="LoadLibrary"
10874 lt_cv_dlopen_libs=
10875 ;;
10876
10877 cygwin*)
10878 lt_cv_dlopen="dlopen"
10879 lt_cv_dlopen_libs=
10880 ;;
10881
10882 darwin*)
10883 # if libdl is installed we need to link against it
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-ldl $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char dlopen ();
10901 int
10902 main ()
10903 {
10904 return dlopen ();
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 ac_cv_lib_dl_dlopen=yes
10911 else
10912 ac_cv_lib_dl_dlopen=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10920 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10922 else
10923
10924 lt_cv_dlopen="dyld"
10925 lt_cv_dlopen_libs=
10926 lt_cv_dlopen_self=yes
10927
10928 fi
10929
10930 ;;
10931
10932 *)
10933 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10934 if test "x$ac_cv_func_shl_load" = x""yes; then :
10935 lt_cv_dlopen="shl_load"
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10938 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10939 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-ldld $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 char shl_load ();
10954 int
10955 main ()
10956 {
10957 return shl_load ();
10958 ;
10959 return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_dld_shl_load=yes
10964 else
10965 ac_cv_lib_dld_shl_load=no
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10972 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10973 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10975 else
10976 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10977 if test "x$ac_cv_func_dlopen" = x""yes; then :
10978 lt_cv_dlopen="dlopen"
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldl $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_dl_dlopen=yes
11007 else
11008 ac_cv_lib_dl_dlopen=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11016 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11020 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11021 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-lsvld $LIBS"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char dlopen ();
11036 int
11037 main ()
11038 {
11039 return dlopen ();
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 ac_cv_lib_svld_dlopen=yes
11046 else
11047 ac_cv_lib_svld_dlopen=no
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_lib_save_LIBS
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11054 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11055 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11059 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11060 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-ldld $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char dld_link ();
11075 int
11076 main ()
11077 {
11078 return dld_link ();
11079 ;
11080 return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_dld_dld_link=yes
11085 else
11086 ac_cv_lib_dld_dld_link=no
11087 fi
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11093 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11094 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11096 fi
11097
11098
11099 fi
11100
11101
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113 ;;
11114 esac
11115
11116 if test "x$lt_cv_dlopen" != xno; then
11117 enable_dlopen=yes
11118 else
11119 enable_dlopen=no
11120 fi
11121
11122 case $lt_cv_dlopen in
11123 dlopen)
11124 save_CPPFLAGS="$CPPFLAGS"
11125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11126
11127 save_LDFLAGS="$LDFLAGS"
11128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11129
11130 save_LIBS="$LIBS"
11131 LIBS="$lt_cv_dlopen_libs $LIBS"
11132
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11134 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11135 if test "${lt_cv_dlopen_self+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 if test "$cross_compiling" = yes; then :
11139 lt_cv_dlopen_self=cross
11140 else
11141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11142 lt_status=$lt_dlunknown
11143 cat > conftest.$ac_ext <<_LT_EOF
11144 #line 11144 "configure"
11145 #include "confdefs.h"
11146
11147 #if HAVE_DLFCN_H
11148 #include <dlfcn.h>
11149 #endif
11150
11151 #include <stdio.h>
11152
11153 #ifdef RTLD_GLOBAL
11154 # define LT_DLGLOBAL RTLD_GLOBAL
11155 #else
11156 # ifdef DL_GLOBAL
11157 # define LT_DLGLOBAL DL_GLOBAL
11158 # else
11159 # define LT_DLGLOBAL 0
11160 # endif
11161 #endif
11162
11163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11164 find out it does not work in some platform. */
11165 #ifndef LT_DLLAZY_OR_NOW
11166 # ifdef RTLD_LAZY
11167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11168 # else
11169 # ifdef DL_LAZY
11170 # define LT_DLLAZY_OR_NOW DL_LAZY
11171 # else
11172 # ifdef RTLD_NOW
11173 # define LT_DLLAZY_OR_NOW RTLD_NOW
11174 # else
11175 # ifdef DL_NOW
11176 # define LT_DLLAZY_OR_NOW DL_NOW
11177 # else
11178 # define LT_DLLAZY_OR_NOW 0
11179 # endif
11180 # endif
11181 # endif
11182 # endif
11183 #endif
11184
11185 /* When -fvisbility=hidden is used, assume the code has been annotated
11186 correspondingly for the symbols needed. */
11187 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11188 void fnord () __attribute__((visibility("default")));
11189 #endif
11190
11191 void fnord () { int i=42; }
11192 int main ()
11193 {
11194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11195 int status = $lt_dlunknown;
11196
11197 if (self)
11198 {
11199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11200 else
11201 {
11202 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203 else puts (dlerror ());
11204 }
11205 /* dlclose (self); */
11206 }
11207 else
11208 puts (dlerror ());
11209
11210 return status;
11211 }
11212 _LT_EOF
11213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11214 (eval $ac_link) 2>&5
11215 ac_status=$?
11216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11217 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11218 (./conftest; exit; ) >&5 2>/dev/null
11219 lt_status=$?
11220 case x$lt_status in
11221 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11222 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11223 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11224 esac
11225 else :
11226 # compilation failed
11227 lt_cv_dlopen_self=no
11228 fi
11229 fi
11230 rm -fr conftest*
11231
11232
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11235 $as_echo "$lt_cv_dlopen_self" >&6; }
11236
11237 if test "x$lt_cv_dlopen_self" = xyes; then
11238 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11240 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11241 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 if test "$cross_compiling" = yes; then :
11245 lt_cv_dlopen_self_static=cross
11246 else
11247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11248 lt_status=$lt_dlunknown
11249 cat > conftest.$ac_ext <<_LT_EOF
11250 #line 11250 "configure"
11251 #include "confdefs.h"
11252
11253 #if HAVE_DLFCN_H
11254 #include <dlfcn.h>
11255 #endif
11256
11257 #include <stdio.h>
11258
11259 #ifdef RTLD_GLOBAL
11260 # define LT_DLGLOBAL RTLD_GLOBAL
11261 #else
11262 # ifdef DL_GLOBAL
11263 # define LT_DLGLOBAL DL_GLOBAL
11264 # else
11265 # define LT_DLGLOBAL 0
11266 # endif
11267 #endif
11268
11269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11270 find out it does not work in some platform. */
11271 #ifndef LT_DLLAZY_OR_NOW
11272 # ifdef RTLD_LAZY
11273 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11274 # else
11275 # ifdef DL_LAZY
11276 # define LT_DLLAZY_OR_NOW DL_LAZY
11277 # else
11278 # ifdef RTLD_NOW
11279 # define LT_DLLAZY_OR_NOW RTLD_NOW
11280 # else
11281 # ifdef DL_NOW
11282 # define LT_DLLAZY_OR_NOW DL_NOW
11283 # else
11284 # define LT_DLLAZY_OR_NOW 0
11285 # endif
11286 # endif
11287 # endif
11288 # endif
11289 #endif
11290
11291 /* When -fvisbility=hidden is used, assume the code has been annotated
11292 correspondingly for the symbols needed. */
11293 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11294 void fnord () __attribute__((visibility("default")));
11295 #endif
11296
11297 void fnord () { int i=42; }
11298 int main ()
11299 {
11300 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11301 int status = $lt_dlunknown;
11302
11303 if (self)
11304 {
11305 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11306 else
11307 {
11308 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11309 else puts (dlerror ());
11310 }
11311 /* dlclose (self); */
11312 }
11313 else
11314 puts (dlerror ());
11315
11316 return status;
11317 }
11318 _LT_EOF
11319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11320 (eval $ac_link) 2>&5
11321 ac_status=$?
11322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11323 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11324 (./conftest; exit; ) >&5 2>/dev/null
11325 lt_status=$?
11326 case x$lt_status in
11327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11329 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11330 esac
11331 else :
11332 # compilation failed
11333 lt_cv_dlopen_self_static=no
11334 fi
11335 fi
11336 rm -fr conftest*
11337
11338
11339 fi
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11341 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11342 fi
11343
11344 CPPFLAGS="$save_CPPFLAGS"
11345 LDFLAGS="$save_LDFLAGS"
11346 LIBS="$save_LIBS"
11347 ;;
11348 esac
11349
11350 case $lt_cv_dlopen_self in
11351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11352 *) enable_dlopen_self=unknown ;;
11353 esac
11354
11355 case $lt_cv_dlopen_self_static in
11356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11357 *) enable_dlopen_self_static=unknown ;;
11358 esac
11359 fi
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377 striplib=
11378 old_striplib=
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11380 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11381 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11385 $as_echo "yes" >&6; }
11386 else
11387 # FIXME - insert some real tests, host_os isn't really good enough
11388 case $host_os in
11389 darwin*)
11390 if test -n "$STRIP" ; then
11391 striplib="$STRIP -x"
11392 old_striplib="$STRIP -S"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11394 $as_echo "yes" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 fi
11399 ;;
11400 *)
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403 ;;
11404 esac
11405 fi
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 # Report which library types will actually be built
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11420 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11422 $as_echo "$can_build_shared" >&6; }
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11425 $as_echo_n "checking whether to build shared libraries... " >&6; }
11426 test "$can_build_shared" = "no" && enable_shared=no
11427
11428 # On AIX, shared libraries and static libraries use the same namespace, and
11429 # are all built from PIC.
11430 case $host_os in
11431 aix3*)
11432 test "$enable_shared" = yes && enable_static=no
11433 if test -n "$RANLIB"; then
11434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11435 postinstall_cmds='$RANLIB $lib'
11436 fi
11437 ;;
11438
11439 aix[4-9]*)
11440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11441 test "$enable_shared" = yes && enable_static=no
11442 fi
11443 ;;
11444 esac
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11446 $as_echo "$enable_shared" >&6; }
11447
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11449 $as_echo_n "checking whether to build static libraries... " >&6; }
11450 # Make sure either enable_shared or enable_static is yes.
11451 test "$enable_shared" = yes || enable_static=yes
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11453 $as_echo "$enable_static" >&6; }
11454
11455
11456
11457
11458 fi
11459 ac_ext=c
11460 ac_cpp='$CPP $CPPFLAGS'
11461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11464
11465 CC="$lt_save_CC"
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479 ac_config_commands="$ac_config_commands libtool"
11480
11481
11482
11483
11484 # Only expand once:
11485
11486
11487
11488
11489 # Check whether --enable-largefile was given.
11490 if test "${enable_largefile+set}" = set; then :
11491 enableval=$enable_largefile;
11492 fi
11493
11494 if test "$enable_largefile" != no; then
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11497 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11498 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_cv_sys_largefile_CC=no
11502 if test "$GCC" != yes; then
11503 ac_save_CC=$CC
11504 while :; do
11505 # IRIX 6.2 and later do not support large files by default,
11506 # so use the C compiler's -n32 option if that helps.
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509 #include <sys/types.h>
11510 /* Check that off_t can represent 2**63 - 1 correctly.
11511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11512 since some C++ compilers masquerading as C compilers
11513 incorrectly reject 9223372036854775807. */
11514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11516 && LARGE_OFF_T % 2147483647 == 1)
11517 ? 1 : -1];
11518 int
11519 main ()
11520 {
11521
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527 break
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext
11530 CC="$CC -n32"
11531 if ac_fn_c_try_compile "$LINENO"; then :
11532 ac_cv_sys_largefile_CC=' -n32'; break
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext
11535 break
11536 done
11537 CC=$ac_save_CC
11538 rm -f conftest.$ac_ext
11539 fi
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11542 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11543 if test "$ac_cv_sys_largefile_CC" != no; then
11544 CC=$CC$ac_cv_sys_largefile_CC
11545 fi
11546
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11548 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11549 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 while :; do
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <sys/types.h>
11556 /* Check that off_t can represent 2**63 - 1 correctly.
11557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11558 since some C++ compilers masquerading as C compilers
11559 incorrectly reject 9223372036854775807. */
11560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11562 && LARGE_OFF_T % 2147483647 == 1)
11563 ? 1 : -1];
11564 int
11565 main ()
11566 {
11567
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_sys_file_offset_bits=no; break
11574 fi
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #define _FILE_OFFSET_BITS 64
11579 #include <sys/types.h>
11580 /* Check that off_t can represent 2**63 - 1 correctly.
11581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11582 since some C++ compilers masquerading as C compilers
11583 incorrectly reject 9223372036854775807. */
11584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11586 && LARGE_OFF_T % 2147483647 == 1)
11587 ? 1 : -1];
11588 int
11589 main ()
11590 {
11591
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 ac_cv_sys_file_offset_bits=64; break
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 ac_cv_sys_file_offset_bits=unknown
11601 break
11602 done
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11605 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11606 case $ac_cv_sys_file_offset_bits in #(
11607 no | unknown) ;;
11608 *)
11609 cat >>confdefs.h <<_ACEOF
11610 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11611 _ACEOF
11612 ;;
11613 esac
11614 rm -rf conftest*
11615 if test $ac_cv_sys_file_offset_bits = unknown; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11617 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11618 if test "${ac_cv_sys_large_files+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 while :; do
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 #include <sys/types.h>
11625 /* Check that off_t can represent 2**63 - 1 correctly.
11626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11627 since some C++ compilers masquerading as C compilers
11628 incorrectly reject 9223372036854775807. */
11629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11631 && LARGE_OFF_T % 2147483647 == 1)
11632 ? 1 : -1];
11633 int
11634 main ()
11635 {
11636
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_c_try_compile "$LINENO"; then :
11642 ac_cv_sys_large_files=no; break
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #define _LARGE_FILES 1
11648 #include <sys/types.h>
11649 /* Check that off_t can represent 2**63 - 1 correctly.
11650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11651 since some C++ compilers masquerading as C compilers
11652 incorrectly reject 9223372036854775807. */
11653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11655 && LARGE_OFF_T % 2147483647 == 1)
11656 ? 1 : -1];
11657 int
11658 main ()
11659 {
11660
11661 ;
11662 return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666 ac_cv_sys_large_files=1; break
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 ac_cv_sys_large_files=unknown
11670 break
11671 done
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11674 $as_echo "$ac_cv_sys_large_files" >&6; }
11675 case $ac_cv_sys_large_files in #(
11676 no | unknown) ;;
11677 *)
11678 cat >>confdefs.h <<_ACEOF
11679 #define _LARGE_FILES $ac_cv_sys_large_files
11680 _ACEOF
11681 ;;
11682 esac
11683 rm -rf conftest*
11684 fi
11685 fi
11686
11687
11688 backtrace_supported=yes
11689
11690 if test -n "${with_target_subdir}"; then
11691 # We are compiling a GCC library. We can assume that the unwind
11692 # library exists.
11693 BACKTRACE_FILE="backtrace.lo simple.lo"
11694 else
11695 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11696 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11697 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11698 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11699 BACKTRACE_FILE="backtrace.lo simple.lo"
11700 else
11701 BACKTRACE_FILE="nounwind.lo"
11702 backtrace_supported=no
11703 fi
11704
11705 else
11706 BACKTRACE_FILE="nounwind.lo"
11707 backtrace_supported=no
11708 fi
11709
11710
11711 fi
11712
11713
11714 EXTRA_FLAGS=
11715 if test -n "${with_target_subdir}"; then
11716 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11719 $as_echo_n "checking for -funwind-tables option... " >&6; }
11720 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 CFLAGS_hold="$CFLAGS"
11724 CFLAGS="$CFLAGS -funwind-tables"
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727 static int f() { return 0; }
11728 int
11729 main ()
11730 {
11731 return f();
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_compile "$LINENO"; then :
11737 libbacktrace_cv_c_unwind_tables=yes
11738 else
11739 libbacktrace_cv_c_unwind_tables=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 CFLAGS="$CFLAGS_hold"
11743 fi
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11745 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11746 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11747 EXTRA_FLAGS=-funwind-tables
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11750 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11751 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 CFLAGS_hold="$CFLAGS"
11755 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758
11759 int
11760 main ()
11761 {
11762 return 0;
11763 ;
11764 return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_compile "$LINENO"; then :
11768 libbacktrace_cv_c_random_seed_string=yes
11769 else
11770 libbacktrace_cv_c_random_seed_string=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773 CFLAGS="$CFLAGS_hold"
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11776 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11777 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11778 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11779 fi
11780 fi
11781
11782
11783 ac_ext=c
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11788
11789 WARN_FLAGS=
11790 save_CFLAGS="$CFLAGS"
11791 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11792 -Wmissing-prototypes -Wold-style-definition \
11793 -Wmissing-format-attribute -Wcast-qual; do
11794 # Do the check with the no- prefix removed since gcc silently
11795 # accepts any -Wno-* option on purpose
11796 case $real_option in
11797 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11798 *) option=$real_option ;;
11799 esac
11800 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11803 $as_echo_n "checking whether $CC supports $option... " >&6; }
11804 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 CFLAGS="$option"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810
11811 int
11812 main ()
11813 {
11814
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_compile "$LINENO"; then :
11820 eval "$as_acx_Woption=yes"
11821 else
11822 eval "$as_acx_Woption=no"
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825
11826 fi
11827 eval ac_res=\$$as_acx_Woption
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11829 $as_echo "$ac_res" >&6; }
11830 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11831 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11832 fi
11833 done
11834 CFLAGS="$save_CFLAGS"
11835 ac_ext=c
11836 ac_cpp='$CPP $CPPFLAGS'
11837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841
11842
11843 if test -n "${with_target_subdir}"; then
11844 WARN_FLAGS="$WARN_FLAGS -Werror"
11845 fi
11846
11847
11848
11849 if test -n "${with_target_subdir}"; then
11850
11851
11852 # Check whether --with-system-libunwind was given.
11853 if test "${with_system_libunwind+set}" = set; then :
11854 withval=$with_system_libunwind;
11855 fi
11856
11857 # If system-libunwind was not specifically set, pick a default setting.
11858 if test x$with_system_libunwind = x; then
11859 case ${target} in
11860 ia64-*-hpux*) with_system_libunwind=yes ;;
11861 *) with_system_libunwind=no ;;
11862 esac
11863 fi
11864 # Based on system-libunwind and target, do we have ipinfo?
11865 if test x$with_system_libunwind = xyes; then
11866 case ${target} in
11867 ia64-*-*) have_unwind_getipinfo=no ;;
11868 *) have_unwind_getipinfo=yes ;;
11869 esac
11870 else
11871 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11872
11873 case ${target} in
11874 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11875 *) have_unwind_getipinfo=yes ;;
11876 esac
11877
11878 fi
11879
11880 if test x$have_unwind_getipinfo = xyes; then
11881
11882 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11883
11884 fi
11885
11886 else
11887 ac_save_CFFLAGS="$CFLAGS"
11888 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11890 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #include "unwind.h"
11894 struct _Unwind_Context *context;
11895 int ip_before_insn = 0;
11896 int
11897 main ()
11898 {
11899 return _Unwind_GetIPInfo (context, &ip_before_insn);
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 have_unwind_getipinfo=yes
11906 else
11907 have_unwind_getipinfo=no
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 CFLAGS="$ac_save_CFLAGS"
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11913 $as_echo "$have_unwind_getipinfo" >&6; }
11914 if test "$have_unwind_getipinfo" = "yes"; then
11915
11916 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11917
11918 fi
11919 fi
11920
11921 # Enable --enable-host-shared.
11922 # Check whether --enable-host-shared was given.
11923 if test "${enable_host_shared+set}" = set; then :
11924 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11925 else
11926 PIC_FLAG=
11927 fi
11928
11929
11930
11931 # Test for __sync support.
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11933 $as_echo_n "checking __sync extensions... " >&6; }
11934 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 if test -n "${with_target_subdir}"; then
11938 case "${host}" in
11939 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11940 *) libbacktrace_cv_sys_sync=yes ;;
11941 esac
11942 else
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945 int i;
11946 int
11947 main ()
11948 {
11949 __sync_bool_compare_and_swap (&i, i, i);
11950 __sync_lock_test_and_set (&i, 1);
11951 __sync_lock_release (&i);
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 libbacktrace_cv_sys_sync=yes
11958 else
11959 libbacktrace_cv_sys_sync=no
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 fi
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11966 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11967 BACKTRACE_SUPPORTS_THREADS=0
11968 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11969 BACKTRACE_SUPPORTS_THREADS=1
11970
11971 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11972
11973 fi
11974
11975
11976 # Test for __atomic support.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11978 $as_echo_n "checking __atomic extensions... " >&6; }
11979 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 if test -n "${with_target_subdir}"; then
11983 libbacktrace_cv_sys_atomic=yes
11984 else
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987 int i;
11988 int
11989 main ()
11990 {
11991 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11992 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 libbacktrace_cv_sys_atomic=yes
11999 else
12000 libbacktrace_cv_sys_atomic=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 fi
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12007 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12008 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12009
12010 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12011
12012 fi
12013
12014 # The library needs to be able to read the executable itself. Compile
12015 # a file to determine the executable format. The awk script
12016 # filetype.awk prints out the file type.
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12018 $as_echo_n "checking output filetype... " >&6; }
12019 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 filetype=
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 int i;
12026 int
12027 main ()
12028 {
12029 int j;
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12036 else
12037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12039 as_fn_error "compiler failed
12040 See \`config.log' for more details." "$LINENO" 5; }
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 libbacktrace_cv_sys_filetype=$filetype
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12046 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12047
12048 # Match the file type to decide what files to compile.
12049 FORMAT_FILE=
12050 backtrace_supports_data=yes
12051 case "$libbacktrace_cv_sys_filetype" in
12052 elf*) FORMAT_FILE="elf.lo" ;;
12053 pecoff) FORMAT_FILE="pecoff.lo"
12054 backtrace_supports_data=no
12055 ;;
12056 xcoff*) FORMAT_FILE="xcoff.lo"
12057 backtrace_supports_data=no
12058 ;;
12059 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12060 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12061 FORMAT_FILE="unknown.lo"
12062 backtrace_supported=no
12063 ;;
12064 esac
12065
12066
12067 # ELF defines.
12068 elfsize=
12069 case "$libbacktrace_cv_sys_filetype" in
12070 elf32) elfsize=32 ;;
12071 elf64) elfsize=64 ;;
12072 *) elfsize=unused
12073 esac
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define BACKTRACE_ELF_SIZE $elfsize
12077 _ACEOF
12078
12079
12080 # XCOFF defines.
12081 xcoffsize=
12082 case "$libbacktrace_cv_sys_filetype" in
12083 xcoff32) xcoffsize=32 ;;
12084 xcoff64) xcoffsize=64 ;;
12085 *) xcoffsize=unused
12086 esac
12087
12088 cat >>confdefs.h <<_ACEOF
12089 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12090 _ACEOF
12091
12092
12093 BACKTRACE_SUPPORTED=0
12094 if test "$backtrace_supported" = "yes"; then
12095 BACKTRACE_SUPPORTED=1
12096 fi
12097
12098
12099 BACKTRACE_SUPPORTS_DATA=0
12100 if test "$backtrace_supports_data" = "yes"; then
12101 BACKTRACE_SUPPORTS_DATA=1
12102 fi
12103
12104
12105
12106
12107 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12108
12109 acx_cv_header_stdint=stddef.h
12110 acx_cv_header_stdint_kind="(already complete)"
12111 for i in stdint.h $inttype_headers; do
12112 unset ac_cv_type_uintptr_t
12113 unset ac_cv_type_uintmax_t
12114 unset ac_cv_type_int_least32_t
12115 unset ac_cv_type_int_fast32_t
12116 unset ac_cv_type_uint64_t
12117 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12118 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12119 #include <$i>
12120 "
12121 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12122 acx_cv_header_stdint=$i
12123 else
12124 continue
12125 fi
12126
12127 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12128 #include <$i>
12129 "
12130 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12131
12132 else
12133 acx_cv_header_stdint_kind="(mostly complete)"
12134 fi
12135
12136 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12137 #include <$i>
12138 "
12139 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12140
12141 else
12142 acx_cv_header_stdint_kind="(mostly complete)"
12143 fi
12144
12145 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12146 #include <$i>
12147 "
12148 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12149
12150 else
12151 acx_cv_header_stdint_kind="(mostly complete)"
12152 fi
12153
12154 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12155 #include <$i>
12156 "
12157 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12158
12159 else
12160 acx_cv_header_stdint_kind="(lacks uint64_t)"
12161 fi
12162
12163 break
12164 done
12165 if test "$acx_cv_header_stdint" = stddef.h; then
12166 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12167 for i in stdint.h $inttype_headers; do
12168 unset ac_cv_type_uintptr_t
12169 unset ac_cv_type_uint32_t
12170 unset ac_cv_type_uint64_t
12171 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12172 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12173 #include <$i>
12174 "
12175 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12176 acx_cv_header_stdint=$i
12177 else
12178 continue
12179 fi
12180
12181 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12182 #include <$i>
12183 "
12184 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12185
12186 fi
12187
12188 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12189 #include <$i>
12190 "
12191 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12192
12193 fi
12194
12195 break
12196 done
12197 fi
12198 if test "$acx_cv_header_stdint" = stddef.h; then
12199 acx_cv_header_stdint_kind="(u_intXX_t style)"
12200 for i in sys/types.h $inttype_headers; do
12201 unset ac_cv_type_u_int32_t
12202 unset ac_cv_type_u_int64_t
12203 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12204 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12205 #include <$i>
12206 "
12207 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12208 acx_cv_header_stdint=$i
12209 else
12210 continue
12211 fi
12212
12213 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12214 #include <$i>
12215 "
12216 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12217
12218 fi
12219
12220 break
12221 done
12222 fi
12223 if test "$acx_cv_header_stdint" = stddef.h; then
12224 acx_cv_header_stdint_kind="(using manual detection)"
12225 fi
12226
12227 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12228 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12229 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12230 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12231 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12232
12233 # ----------------- Summarize what we found so far
12234
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12236 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12237
12238 case `$as_basename -- gstdint.h ||
12239 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12240 Xgstdint.h : 'X\(//\)$' \| \
12241 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12242 $as_echo X/gstdint.h |
12243 sed '/^.*\/\([^/][^/]*\)\/*$/{
12244 s//\1/
12245 q
12246 }
12247 /^X\/\(\/\/\)$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\/\(\/\).*/{
12252 s//\1/
12253 q
12254 }
12255 s/.*/./; q'` in
12256 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12257 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12258 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12259 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12260 *) ;;
12261 esac
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12264 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12265
12266 # ----------------- done included file, check C basic types --------
12267
12268 # Lacking an uintptr_t? Test size of void *
12269 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12270 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12273 # This bug is HP SR number 8606223364.
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12275 $as_echo_n "checking size of void *... " >&6; }
12276 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12280
12281 else
12282 if test "$ac_cv_type_void_p" = yes; then
12283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12285 { as_fn_set_status 77
12286 as_fn_error "cannot compute sizeof (void *)
12287 See \`config.log' for more details." "$LINENO" 5; }; }
12288 else
12289 ac_cv_sizeof_void_p=0
12290 fi
12291 fi
12292
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12295 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12296
12297
12298
12299 cat >>confdefs.h <<_ACEOF
12300 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12301 _ACEOF
12302
12303 ;;
12304 esac
12305
12306 # Lacking an uint64_t? Test size of long
12307 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12308 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12311 # This bug is HP SR number 8606223364.
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12313 $as_echo_n "checking size of long... " >&6; }
12314 if test "${ac_cv_sizeof_long+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12318
12319 else
12320 if test "$ac_cv_type_long" = yes; then
12321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12323 { as_fn_set_status 77
12324 as_fn_error "cannot compute sizeof (long)
12325 See \`config.log' for more details." "$LINENO" 5; }; }
12326 else
12327 ac_cv_sizeof_long=0
12328 fi
12329 fi
12330
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12333 $as_echo "$ac_cv_sizeof_long" >&6; }
12334
12335
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define SIZEOF_LONG $ac_cv_sizeof_long
12339 _ACEOF
12340
12341 ;;
12342 esac
12343
12344 if test $acx_cv_header_stdint = stddef.h; then
12345 # Lacking a good header? Test size of everything and deduce all types.
12346 # The cast to long int works around a bug in the HP C Compiler
12347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12349 # This bug is HP SR number 8606223364.
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12351 $as_echo_n "checking size of int... " >&6; }
12352 if test "${ac_cv_sizeof_int+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12356
12357 else
12358 if test "$ac_cv_type_int" = yes; then
12359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12361 { as_fn_set_status 77
12362 as_fn_error "cannot compute sizeof (int)
12363 See \`config.log' for more details." "$LINENO" 5; }; }
12364 else
12365 ac_cv_sizeof_int=0
12366 fi
12367 fi
12368
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12371 $as_echo "$ac_cv_sizeof_int" >&6; }
12372
12373
12374
12375 cat >>confdefs.h <<_ACEOF
12376 #define SIZEOF_INT $ac_cv_sizeof_int
12377 _ACEOF
12378
12379
12380 # The cast to long int works around a bug in the HP C Compiler
12381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12383 # This bug is HP SR number 8606223364.
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12385 $as_echo_n "checking size of short... " >&6; }
12386 if test "${ac_cv_sizeof_short+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12390
12391 else
12392 if test "$ac_cv_type_short" = yes; then
12393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12395 { as_fn_set_status 77
12396 as_fn_error "cannot compute sizeof (short)
12397 See \`config.log' for more details." "$LINENO" 5; }; }
12398 else
12399 ac_cv_sizeof_short=0
12400 fi
12401 fi
12402
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12405 $as_echo "$ac_cv_sizeof_short" >&6; }
12406
12407
12408
12409 cat >>confdefs.h <<_ACEOF
12410 #define SIZEOF_SHORT $ac_cv_sizeof_short
12411 _ACEOF
12412
12413
12414 # The cast to long int works around a bug in the HP C Compiler
12415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12417 # This bug is HP SR number 8606223364.
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12419 $as_echo_n "checking size of char... " >&6; }
12420 if test "${ac_cv_sizeof_char+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12424
12425 else
12426 if test "$ac_cv_type_char" = yes; then
12427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12429 { as_fn_set_status 77
12430 as_fn_error "cannot compute sizeof (char)
12431 See \`config.log' for more details." "$LINENO" 5; }; }
12432 else
12433 ac_cv_sizeof_char=0
12434 fi
12435 fi
12436
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12439 $as_echo "$ac_cv_sizeof_char" >&6; }
12440
12441
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define SIZEOF_CHAR $ac_cv_sizeof_char
12445 _ACEOF
12446
12447
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12450 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12451 case "$ac_cv_sizeof_char" in
12452 1) acx_cv_type_int8_t=char ;;
12453 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12454 esac
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12456 $as_echo "$acx_cv_type_int8_t" >&6; }
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12459 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12460 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12461 2:*) acx_cv_type_int16_t=int ;;
12462 *:2) acx_cv_type_int16_t=short ;;
12463 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12464 esac
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12466 $as_echo "$acx_cv_type_int16_t" >&6; }
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12469 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12470 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12471 4:*) acx_cv_type_int32_t=int ;;
12472 *:4) acx_cv_type_int32_t=long ;;
12473 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12474 esac
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12476 $as_echo "$acx_cv_type_int32_t" >&6; }
12477 fi
12478
12479 # These tests are here to make the output prettier
12480
12481 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12482 case "$ac_cv_sizeof_long" in
12483 8) acx_cv_type_int64_t=long ;;
12484 esac
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12486 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12488 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12489 fi
12490
12491 # Now we can use the above types
12492
12493 if test "$ac_cv_type_uintptr_t" != yes; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12495 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12496 case $ac_cv_sizeof_void_p in
12497 2) acx_cv_type_intptr_t=int16_t ;;
12498 4) acx_cv_type_intptr_t=int32_t ;;
12499 8) acx_cv_type_intptr_t=int64_t ;;
12500 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12501 esac
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12503 $as_echo "$acx_cv_type_intptr_t" >&6; }
12504 fi
12505
12506 # ----------------- done all checks, emit header -------------
12507 ac_config_commands="$ac_config_commands gstdint.h"
12508
12509
12510
12511
12512 for ac_header in sys/mman.h
12513 do :
12514 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12515 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_SYS_MMAN_H 1
12518 _ACEOF
12519
12520 fi
12521
12522 done
12523
12524 if test "$ac_cv_header_sys_mman_h" = "no"; then
12525 have_mmap=no
12526 else
12527 if test -n "${with_target_subdir}"; then
12528 # When built as a GCC target library, we can't do a link test. We
12529 # simply assume that if we have mman.h, we have mmap.
12530 have_mmap=yes
12531 case "${host}" in
12532 spu-*-*|*-*-msdosdjgpp)
12533 # The SPU does not have mmap, but it has a sys/mman.h header file
12534 # containing "mmap_eaddr" and the mmap flags, confusing the test.
12535 # DJGPP also has sys/man.h, but no mmap
12536 have_mmap=no ;;
12537 esac
12538 else
12539 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12540 if test "x$ac_cv_func_mmap" = x""yes; then :
12541 have_mmap=yes
12542 else
12543 have_mmap=no
12544 fi
12545
12546 fi
12547 fi
12548 if test "$have_mmap" = "no"; then
12549 VIEW_FILE=read.lo
12550 ALLOC_FILE=alloc.lo
12551 else
12552 VIEW_FILE=mmapio.lo
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555
12556 #include <sys/mman.h>
12557 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12558 #error no MAP_ANONYMOUS
12559 #endif
12560
12561 _ACEOF
12562 if ac_fn_c_try_cpp "$LINENO"; then :
12563 ALLOC_FILE=mmap.lo
12564 else
12565 ALLOC_FILE=alloc.lo
12566 fi
12567 rm -f conftest.err conftest.$ac_ext
12568 fi
12569
12570
12571
12572 BACKTRACE_USES_MALLOC=0
12573 if test "$ALLOC_FILE" = "alloc.lo"; then
12574 BACKTRACE_USES_MALLOC=1
12575 fi
12576
12577
12578 # Check for dl_iterate_phdr.
12579 for ac_header in link.h
12580 do :
12581 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12582 if test "x$ac_cv_header_link_h" = x""yes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 #define HAVE_LINK_H 1
12585 _ACEOF
12586
12587 fi
12588
12589 done
12590
12591 if test "$ac_cv_header_link_h" = "no"; then
12592 have_dl_iterate_phdr=no
12593 else
12594 if test -n "${with_target_subdir}"; then
12595 # When built as a GCC target library, we can't do a link test.
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 #include <link.h>
12599
12600 _ACEOF
12601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12602 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12603 have_dl_iterate_phdr=yes
12604 else
12605 have_dl_iterate_phdr=no
12606 fi
12607 rm -f conftest*
12608
12609 case "${host}" in
12610 *-*-solaris2.10*)
12611 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12612 # header file but is only in -ldl.
12613 have_dl_iterate_phdr=no ;;
12614 esac
12615 else
12616 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12617 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12618 have_dl_iterate_phdr=yes
12619 else
12620 have_dl_iterate_phdr=no
12621 fi
12622
12623 fi
12624 fi
12625 if test "$have_dl_iterate_phdr" = "yes"; then
12626
12627 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12628
12629 fi
12630
12631 # Check for loadquery.
12632 for ac_header in sys/ldr.h
12633 do :
12634 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12635 if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_SYS_LDR_H 1
12638 _ACEOF
12639
12640 fi
12641
12642 done
12643
12644 if test "$ac_cv_header_sys_ldr_h" = "no"; then
12645 have_loadquery=no
12646 else
12647 if test -n "${with_target_subdir}"; then
12648 # When built as a GCC target library, we can't do a link test.
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #include <sys/ldr.h>
12652
12653 _ACEOF
12654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12655 $EGREP "loadquery" >/dev/null 2>&1; then :
12656 have_loadquery=yes
12657 else
12658 have_loadquery=no
12659 fi
12660 rm -f conftest*
12661
12662 else
12663 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12664 if test "x$ac_cv_func_loadquery" = x""yes; then :
12665 have_loadquery=yes
12666 else
12667 have_loadquery=no
12668 fi
12669
12670 fi
12671 fi
12672 if test "$have_loadquery" = "yes"; then
12673
12674 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12675
12676 fi
12677
12678 # Check for the fcntl function.
12679 if test -n "${with_target_subdir}"; then
12680 case "${host}" in
12681 *-*-mingw*) have_fcntl=no ;;
12682 spu-*-*) have_fcntl=no ;;
12683 *) have_fcntl=yes ;;
12684 esac
12685 else
12686 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12687 if test "x$ac_cv_func_fcntl" = x""yes; then :
12688 have_fcntl=yes
12689 else
12690 have_fcntl=no
12691 fi
12692
12693 fi
12694 if test "$have_fcntl" = "yes"; then
12695
12696 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12697
12698 fi
12699
12700 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12701 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12702 ac_have_decl=1
12703 else
12704 ac_have_decl=0
12705 fi
12706
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_DECL_STRNLEN $ac_have_decl
12709 _ACEOF
12710
12711
12712 # Check for getexecname function.
12713 if test -n "${with_target_subdir}"; then
12714 case "${host}" in
12715 *-*-solaris2*) have_getexecname=yes ;;
12716 *) have_getexecname=no ;;
12717 esac
12718 else
12719 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12720 if test "x$ac_cv_func_getexecname" = x""yes; then :
12721 have_getexecname=yes
12722 else
12723 have_getexecname=no
12724 fi
12725
12726 fi
12727 if test "$have_getexecname" = "yes"; then
12728
12729 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12730
12731 fi
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12734 $as_echo_n "checking whether -pthread is supported... " >&6; }
12735 if test "${libgo_cv_lib_pthread+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 CFLAGS_hold=$CFLAGS
12739 CFLAGS="$CFLAGS -pthread"
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 int i;
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745 libgo_cv_lib_pthread=yes
12746 else
12747 libgo_cv_lib_pthread=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 CFLAGS=$CFLAGS_hold
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12753 $as_echo "$libgo_cv_lib_pthread" >&6; }
12754 PTHREAD_CFLAGS=
12755 if test "$libgo_cv_lib_pthread" = yes; then
12756 PTHREAD_CFLAGS=-pthread
12757 fi
12758
12759
12760 if test "$libgo_cv_lib_pthread" = yes; then
12761 HAVE_PTHREAD_TRUE=
12762 HAVE_PTHREAD_FALSE='#'
12763 else
12764 HAVE_PTHREAD_TRUE='#'
12765 HAVE_PTHREAD_FALSE=
12766 fi
12767
12768
12769
12770 # Extract the first word of "objcopy", so it can be a program name with args.
12771 set dummy objcopy; ac_word=$2
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 $as_echo_n "checking for $ac_word... " >&6; }
12774 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 if test -n "$OBJCOPY"; then
12778 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12779 else
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12782 do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
12786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12787 ac_cv_prog_OBJCOPY="objcopy"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791 done
12792 done
12793 IFS=$as_save_IFS
12794
12795 fi
12796 fi
12797 OBJCOPY=$ac_cv_prog_OBJCOPY
12798 if test -n "$OBJCOPY"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12800 $as_echo "$OBJCOPY" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804 fi
12805
12806
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
12808 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
12809 if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test -n "${with_target_subdir}"; then
12813 libbacktrace_cv_objcopy_debuglink=no
12814 elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
12815 rm -f /tmp/ls$$
12816 libbacktrace_cv_objcopy_debuglink=yes
12817 else
12818 libbacktrace_cv_objcopy_debuglink=no
12819 fi
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
12822 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
12823 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
12824 HAVE_OBJCOPY_DEBUGLINK_TRUE=
12825 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
12826 else
12827 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
12828 HAVE_OBJCOPY_DEBUGLINK_FALSE=
12829 fi
12830
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12833 $as_echo_n "checking whether tests can run... " >&6; }
12834 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 if test "$cross_compiling" = yes; then :
12838 libbacktrace_cv_sys_native=no
12839 else
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842
12843 int
12844 main ()
12845 {
12846 return 0;
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_run "$LINENO"; then :
12852 libbacktrace_cv_sys_native=yes
12853 else
12854 libbacktrace_cv_sys_native=no
12855 fi
12856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12857 conftest.$ac_objext conftest.beam conftest.$ac_ext
12858 fi
12859
12860 fi
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12862 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12863 if test "$libbacktrace_cv_sys_native" = "yes"; then
12864 NATIVE_TRUE=
12865 NATIVE_FALSE='#'
12866 else
12867 NATIVE_TRUE='#'
12868 NATIVE_FALSE=
12869 fi
12870
12871
12872 if test "${multilib}" = "yes"; then
12873 multilib_arg="--enable-multilib"
12874 else
12875 multilib_arg=
12876 fi
12877
12878 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12879
12880
12881 # We need multilib support, but only if configuring for the target.
12882 ac_config_commands="$ac_config_commands default"
12883
12884
12885 cat >confcache <<\_ACEOF
12886 # This file is a shell script that caches the results of configure
12887 # tests run on this system so they can be shared between configure
12888 # scripts and configure runs, see configure's option --config-cache.
12889 # It is not useful on other systems. If it contains results you don't
12890 # want to keep, you may remove or edit it.
12891 #
12892 # config.status only pays attention to the cache file if you give it
12893 # the --recheck option to rerun configure.
12894 #
12895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12897 # following values.
12898
12899 _ACEOF
12900
12901 # The following way of writing the cache mishandles newlines in values,
12902 # but we know of no workaround that is simple, portable, and efficient.
12903 # So, we kill variables containing newlines.
12904 # Ultrix sh set writes to stderr and can't be redirected directly,
12905 # and sets the high bit in the cache file unless we assign to the vars.
12906 (
12907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12908 eval ac_val=\$$ac_var
12909 case $ac_val in #(
12910 *${as_nl}*)
12911 case $ac_var in #(
12912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12914 esac
12915 case $ac_var in #(
12916 _ | IFS | as_nl) ;; #(
12917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12918 *) { eval $ac_var=; unset $ac_var;} ;;
12919 esac ;;
12920 esac
12921 done
12922
12923 (set) 2>&1 |
12924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12925 *${as_nl}ac_space=\ *)
12926 # `set' does not quote correctly, so add quotes: double-quote
12927 # substitution turns \\\\ into \\, and sed turns \\ into \.
12928 sed -n \
12929 "s/'/'\\\\''/g;
12930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12931 ;; #(
12932 *)
12933 # `set' quotes correctly as required by POSIX, so do not add quotes.
12934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12935 ;;
12936 esac |
12937 sort
12938 ) |
12939 sed '
12940 /^ac_cv_env_/b end
12941 t clear
12942 :clear
12943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12944 t end
12945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12946 :end' >>confcache
12947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12948 if test -w "$cache_file"; then
12949 test "x$cache_file" != "x/dev/null" &&
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12951 $as_echo "$as_me: updating cache $cache_file" >&6;}
12952 cat confcache >$cache_file
12953 else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12956 fi
12957 fi
12958 rm -f confcache
12959
12960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12961 # Let make expand exec_prefix.
12962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12963
12964 DEFS=-DHAVE_CONFIG_H
12965
12966 ac_libobjs=
12967 ac_ltlibobjs=
12968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12969 # 1. Remove the extension, and $U if already installed.
12970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12973 # will be set to the directory where LIBOBJS objects are built.
12974 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12975 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12976 done
12977 LIBOBJS=$ac_libobjs
12978
12979 LTLIBOBJS=$ac_ltlibobjs
12980
12981
12982 if test -n "$EXEEXT"; then
12983 am__EXEEXT_TRUE=
12984 am__EXEEXT_FALSE='#'
12985 else
12986 am__EXEEXT_TRUE='#'
12987 am__EXEEXT_FALSE=
12988 fi
12989
12990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12991 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12993 fi
12994 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
12995 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
12996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12997 fi
12998 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
12999 as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
13000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13001 fi
13002 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
13003 as_fn_error "conditional \"NATIVE\" was never defined.
13004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13005 fi
13006
13007 : ${CONFIG_STATUS=./config.status}
13008 ac_write_fail=0
13009 ac_clean_files_save=$ac_clean_files
13010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13012 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13013 as_write_fail=0
13014 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13015 #! $SHELL
13016 # Generated by $as_me.
13017 # Run this file to recreate the current configuration.
13018 # Compiler output produced by configure, useful for debugging
13019 # configure, is in config.log if it exists.
13020
13021 debug=false
13022 ac_cs_recheck=false
13023 ac_cs_silent=false
13024
13025 SHELL=\${CONFIG_SHELL-$SHELL}
13026 export SHELL
13027 _ASEOF
13028 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13029 ## -------------------- ##
13030 ## M4sh Initialization. ##
13031 ## -------------------- ##
13032
13033 # Be more Bourne compatible
13034 DUALCASE=1; export DUALCASE # for MKS sh
13035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13036 emulate sh
13037 NULLCMD=:
13038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13039 # is contrary to our usage. Disable this feature.
13040 alias -g '${1+"$@"}'='"$@"'
13041 setopt NO_GLOB_SUBST
13042 else
13043 case `(set -o) 2>/dev/null` in #(
13044 *posix*) :
13045 set -o posix ;; #(
13046 *) :
13047 ;;
13048 esac
13049 fi
13050
13051
13052 as_nl='
13053 '
13054 export as_nl
13055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13056 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13059 # Prefer a ksh shell builtin over an external printf program on Solaris,
13060 # but without wasting forks for bash or zsh.
13061 if test -z "$BASH_VERSION$ZSH_VERSION" \
13062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13063 as_echo='print -r --'
13064 as_echo_n='print -rn --'
13065 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13066 as_echo='printf %s\n'
13067 as_echo_n='printf %s'
13068 else
13069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13071 as_echo_n='/usr/ucb/echo -n'
13072 else
13073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13074 as_echo_n_body='eval
13075 arg=$1;
13076 case $arg in #(
13077 *"$as_nl"*)
13078 expr "X$arg" : "X\\(.*\\)$as_nl";
13079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13080 esac;
13081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13082 '
13083 export as_echo_n_body
13084 as_echo_n='sh -c $as_echo_n_body as_echo'
13085 fi
13086 export as_echo_body
13087 as_echo='sh -c $as_echo_body as_echo'
13088 fi
13089
13090 # The user is always right.
13091 if test "${PATH_SEPARATOR+set}" != set; then
13092 PATH_SEPARATOR=:
13093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13095 PATH_SEPARATOR=';'
13096 }
13097 fi
13098
13099
13100 # IFS
13101 # We need space, tab and new line, in precisely that order. Quoting is
13102 # there to prevent editors from complaining about space-tab.
13103 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13104 # splitting by setting IFS to empty value.)
13105 IFS=" "" $as_nl"
13106
13107 # Find who we are. Look in the path if we contain no directory separator.
13108 case $0 in #((
13109 *[\\/]* ) as_myself=$0 ;;
13110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13116 done
13117 IFS=$as_save_IFS
13118
13119 ;;
13120 esac
13121 # We did not find ourselves, most probably we were run as `sh COMMAND'
13122 # in which case we are not to be found in the path.
13123 if test "x$as_myself" = x; then
13124 as_myself=$0
13125 fi
13126 if test ! -f "$as_myself"; then
13127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13128 exit 1
13129 fi
13130
13131 # Unset variables that we do not need and which cause bugs (e.g. in
13132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13133 # suppresses any "Segmentation fault" message there. '((' could
13134 # trigger a bug in pdksh 5.2.14.
13135 for as_var in BASH_ENV ENV MAIL MAILPATH
13136 do eval test x\${$as_var+set} = xset \
13137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13138 done
13139 PS1='$ '
13140 PS2='> '
13141 PS4='+ '
13142
13143 # NLS nuisances.
13144 LC_ALL=C
13145 export LC_ALL
13146 LANGUAGE=C
13147 export LANGUAGE
13148
13149 # CDPATH.
13150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13151
13152
13153 # as_fn_error ERROR [LINENO LOG_FD]
13154 # ---------------------------------
13155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13157 # script with status $?, using 1 if that was 0.
13158 as_fn_error ()
13159 {
13160 as_status=$?; test $as_status -eq 0 && as_status=1
13161 if test "$3"; then
13162 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13164 fi
13165 $as_echo "$as_me: error: $1" >&2
13166 as_fn_exit $as_status
13167 } # as_fn_error
13168
13169
13170 # as_fn_set_status STATUS
13171 # -----------------------
13172 # Set $? to STATUS, without forking.
13173 as_fn_set_status ()
13174 {
13175 return $1
13176 } # as_fn_set_status
13177
13178 # as_fn_exit STATUS
13179 # -----------------
13180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13181 as_fn_exit ()
13182 {
13183 set +e
13184 as_fn_set_status $1
13185 exit $1
13186 } # as_fn_exit
13187
13188 # as_fn_unset VAR
13189 # ---------------
13190 # Portably unset VAR.
13191 as_fn_unset ()
13192 {
13193 { eval $1=; unset $1;}
13194 }
13195 as_unset=as_fn_unset
13196 # as_fn_append VAR VALUE
13197 # ----------------------
13198 # Append the text in VALUE to the end of the definition contained in VAR. Take
13199 # advantage of any shell optimizations that allow amortized linear growth over
13200 # repeated appends, instead of the typical quadratic growth present in naive
13201 # implementations.
13202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13203 eval 'as_fn_append ()
13204 {
13205 eval $1+=\$2
13206 }'
13207 else
13208 as_fn_append ()
13209 {
13210 eval $1=\$$1\$2
13211 }
13212 fi # as_fn_append
13213
13214 # as_fn_arith ARG...
13215 # ------------------
13216 # Perform arithmetic evaluation on the ARGs, and store the result in the
13217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13218 # must be portable across $(()) and expr.
13219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13220 eval 'as_fn_arith ()
13221 {
13222 as_val=$(( $* ))
13223 }'
13224 else
13225 as_fn_arith ()
13226 {
13227 as_val=`expr "$@" || test $? -eq 1`
13228 }
13229 fi # as_fn_arith
13230
13231
13232 if expr a : '\(a\)' >/dev/null 2>&1 &&
13233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13234 as_expr=expr
13235 else
13236 as_expr=false
13237 fi
13238
13239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13240 as_basename=basename
13241 else
13242 as_basename=false
13243 fi
13244
13245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13246 as_dirname=dirname
13247 else
13248 as_dirname=false
13249 fi
13250
13251 as_me=`$as_basename -- "$0" ||
13252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13253 X"$0" : 'X\(//\)$' \| \
13254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13255 $as_echo X/"$0" |
13256 sed '/^.*\/\([^/][^/]*\)\/*$/{
13257 s//\1/
13258 q
13259 }
13260 /^X\/\(\/\/\)$/{
13261 s//\1/
13262 q
13263 }
13264 /^X\/\(\/\).*/{
13265 s//\1/
13266 q
13267 }
13268 s/.*/./; q'`
13269
13270 # Avoid depending upon Character Ranges.
13271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13274 as_cr_digits='0123456789'
13275 as_cr_alnum=$as_cr_Letters$as_cr_digits
13276
13277 ECHO_C= ECHO_N= ECHO_T=
13278 case `echo -n x` in #(((((
13279 -n*)
13280 case `echo 'xy\c'` in
13281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13282 xy) ECHO_C='\c';;
13283 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13284 ECHO_T=' ';;
13285 esac;;
13286 *)
13287 ECHO_N='-n';;
13288 esac
13289
13290 rm -f conf$$ conf$$.exe conf$$.file
13291 if test -d conf$$.dir; then
13292 rm -f conf$$.dir/conf$$.file
13293 else
13294 rm -f conf$$.dir
13295 mkdir conf$$.dir 2>/dev/null
13296 fi
13297 if (echo >conf$$.file) 2>/dev/null; then
13298 if ln -s conf$$.file conf$$ 2>/dev/null; then
13299 as_ln_s='ln -s'
13300 # ... but there are two gotchas:
13301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13303 # In both cases, we have to default to `cp -p'.
13304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13305 as_ln_s='cp -p'
13306 elif ln conf$$.file conf$$ 2>/dev/null; then
13307 as_ln_s=ln
13308 else
13309 as_ln_s='cp -p'
13310 fi
13311 else
13312 as_ln_s='cp -p'
13313 fi
13314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13315 rmdir conf$$.dir 2>/dev/null
13316
13317
13318 # as_fn_mkdir_p
13319 # -------------
13320 # Create "$as_dir" as a directory, including parents if necessary.
13321 as_fn_mkdir_p ()
13322 {
13323
13324 case $as_dir in #(
13325 -*) as_dir=./$as_dir;;
13326 esac
13327 test -d "$as_dir" || eval $as_mkdir_p || {
13328 as_dirs=
13329 while :; do
13330 case $as_dir in #(
13331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13332 *) as_qdir=$as_dir;;
13333 esac
13334 as_dirs="'$as_qdir' $as_dirs"
13335 as_dir=`$as_dirname -- "$as_dir" ||
13336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13337 X"$as_dir" : 'X\(//\)[^/]' \| \
13338 X"$as_dir" : 'X\(//\)$' \| \
13339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13340 $as_echo X"$as_dir" |
13341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13342 s//\1/
13343 q
13344 }
13345 /^X\(\/\/\)[^/].*/{
13346 s//\1/
13347 q
13348 }
13349 /^X\(\/\/\)$/{
13350 s//\1/
13351 q
13352 }
13353 /^X\(\/\).*/{
13354 s//\1/
13355 q
13356 }
13357 s/.*/./; q'`
13358 test -d "$as_dir" && break
13359 done
13360 test -z "$as_dirs" || eval "mkdir $as_dirs"
13361 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13362
13363
13364 } # as_fn_mkdir_p
13365 if mkdir -p . 2>/dev/null; then
13366 as_mkdir_p='mkdir -p "$as_dir"'
13367 else
13368 test -d ./-p && rmdir ./-p
13369 as_mkdir_p=false
13370 fi
13371
13372 if test -x / >/dev/null 2>&1; then
13373 as_test_x='test -x'
13374 else
13375 if ls -dL / >/dev/null 2>&1; then
13376 as_ls_L_option=L
13377 else
13378 as_ls_L_option=
13379 fi
13380 as_test_x='
13381 eval sh -c '\''
13382 if test -d "$1"; then
13383 test -d "$1/.";
13384 else
13385 case $1 in #(
13386 -*)set "./$1";;
13387 esac;
13388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13389 ???[sx]*):;;*)false;;esac;fi
13390 '\'' sh
13391 '
13392 fi
13393 as_executable_p=$as_test_x
13394
13395 # Sed expression to map a string onto a valid CPP name.
13396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13397
13398 # Sed expression to map a string onto a valid variable name.
13399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13400
13401
13402 exec 6>&1
13403 ## ----------------------------------- ##
13404 ## Main body of $CONFIG_STATUS script. ##
13405 ## ----------------------------------- ##
13406 _ASEOF
13407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13408
13409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13410 # Save the log message, to keep $0 and so on meaningful, and to
13411 # report actual input values of CONFIG_FILES etc. instead of their
13412 # values after options handling.
13413 ac_log="
13414 This file was extended by package-unused $as_me version-unused, which was
13415 generated by GNU Autoconf 2.64. Invocation command line was
13416
13417 CONFIG_FILES = $CONFIG_FILES
13418 CONFIG_HEADERS = $CONFIG_HEADERS
13419 CONFIG_LINKS = $CONFIG_LINKS
13420 CONFIG_COMMANDS = $CONFIG_COMMANDS
13421 $ $0 $@
13422
13423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13424 "
13425
13426 _ACEOF
13427
13428 case $ac_config_files in *"
13429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13430 esac
13431
13432 case $ac_config_headers in *"
13433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13434 esac
13435
13436
13437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438 # Files that config.status was made for.
13439 config_files="$ac_config_files"
13440 config_headers="$ac_config_headers"
13441 config_commands="$ac_config_commands"
13442
13443 _ACEOF
13444
13445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446 ac_cs_usage="\
13447 \`$as_me' instantiates files and other configuration actions
13448 from templates according to the current configuration. Unless the files
13449 and actions are specified as TAGs, all are instantiated by default.
13450
13451 Usage: $0 [OPTION]... [TAG]...
13452
13453 -h, --help print this help, then exit
13454 -V, --version print version number and configuration settings, then exit
13455 -q, --quiet, --silent
13456 do not print progress messages
13457 -d, --debug don't remove temporary files
13458 --recheck update $as_me by reconfiguring in the same conditions
13459 --file=FILE[:TEMPLATE]
13460 instantiate the configuration file FILE
13461 --header=FILE[:TEMPLATE]
13462 instantiate the configuration header FILE
13463
13464 Configuration files:
13465 $config_files
13466
13467 Configuration headers:
13468 $config_headers
13469
13470 Configuration commands:
13471 $config_commands
13472
13473 Report bugs to the package provider."
13474
13475 _ACEOF
13476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13477 ac_cs_version="\\
13478 package-unused config.status version-unused
13479 configured by $0, generated by GNU Autoconf 2.64,
13480 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13481
13482 Copyright (C) 2009 Free Software Foundation, Inc.
13483 This config.status script is free software; the Free Software Foundation
13484 gives unlimited permission to copy, distribute and modify it."
13485
13486 ac_pwd='$ac_pwd'
13487 srcdir='$srcdir'
13488 INSTALL='$INSTALL'
13489 MKDIR_P='$MKDIR_P'
13490 AWK='$AWK'
13491 test -n "\$AWK" || AWK=awk
13492 _ACEOF
13493
13494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13495 # The default lists apply if the user does not specify any file.
13496 ac_need_defaults=:
13497 while test $# != 0
13498 do
13499 case $1 in
13500 --*=*)
13501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13503 ac_shift=:
13504 ;;
13505 *)
13506 ac_option=$1
13507 ac_optarg=$2
13508 ac_shift=shift
13509 ;;
13510 esac
13511
13512 case $ac_option in
13513 # Handling of the options.
13514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13515 ac_cs_recheck=: ;;
13516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13517 $as_echo "$ac_cs_version"; exit ;;
13518 --debug | --debu | --deb | --de | --d | -d )
13519 debug=: ;;
13520 --file | --fil | --fi | --f )
13521 $ac_shift
13522 case $ac_optarg in
13523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13524 esac
13525 as_fn_append CONFIG_FILES " '$ac_optarg'"
13526 ac_need_defaults=false;;
13527 --header | --heade | --head | --hea )
13528 $ac_shift
13529 case $ac_optarg in
13530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13531 esac
13532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13533 ac_need_defaults=false;;
13534 --he | --h)
13535 # Conflict between --help and --header
13536 as_fn_error "ambiguous option: \`$1'
13537 Try \`$0 --help' for more information.";;
13538 --help | --hel | -h )
13539 $as_echo "$ac_cs_usage"; exit ;;
13540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13542 ac_cs_silent=: ;;
13543
13544 # This is an error.
13545 -*) as_fn_error "unrecognized option: \`$1'
13546 Try \`$0 --help' for more information." ;;
13547
13548 *) as_fn_append ac_config_targets " $1"
13549 ac_need_defaults=false ;;
13550
13551 esac
13552 shift
13553 done
13554
13555 ac_configure_extra_args=
13556
13557 if $ac_cs_silent; then
13558 exec 6>/dev/null
13559 ac_configure_extra_args="$ac_configure_extra_args --silent"
13560 fi
13561
13562 _ACEOF
13563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564 if \$ac_cs_recheck; then
13565 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13566 shift
13567 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13568 CONFIG_SHELL='$SHELL'
13569 export CONFIG_SHELL
13570 exec "\$@"
13571 fi
13572
13573 _ACEOF
13574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13575 exec 5>>config.log
13576 {
13577 echo
13578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13579 ## Running $as_me. ##
13580 _ASBOX
13581 $as_echo "$ac_log"
13582 } >&5
13583
13584 _ACEOF
13585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13586 #
13587 # INIT-COMMANDS
13588 #
13589
13590 srcdir="$srcdir"
13591 host="$host"
13592 target="$target"
13593 with_multisubdir="$with_multisubdir"
13594 with_multisrctop="$with_multisrctop"
13595 with_target_subdir="$with_target_subdir"
13596 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13597 multi_basedir="$multi_basedir"
13598 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13599 CC="$CC"
13600 CXX="$CXX"
13601 GFORTRAN="$GFORTRAN"
13602
13603
13604 # The HP-UX ksh and POSIX shell print the target directory to stdout
13605 # if CDPATH is set.
13606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13607
13608 sed_quote_subst='$sed_quote_subst'
13609 double_quote_subst='$double_quote_subst'
13610 delay_variable_subst='$delay_variable_subst'
13611 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13612 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13613 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13614 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13615 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13616 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13617 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13618 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13619 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13620 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13621 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13622 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13623 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13624 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13630 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13631 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13632 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13633 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13634 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13635 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13636 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13637 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13638 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13639 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13640 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13641 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13642 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13643 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13644 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13645 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13659 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"`'
13660 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13661 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13662 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13663 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13664 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13665 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13666 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13667 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13668 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13669 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13670 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13671 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13672 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13673 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13674 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13675 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13676 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13677 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13678 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13679 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13680 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13681 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13682 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13683 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13684 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13685 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13686 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13687 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13688 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13689 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13690 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13691 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13692 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13693 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13694 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13695 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13696 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13697 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13698 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13699 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13700 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13701 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13702 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13703 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13704 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13705 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13706 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13707 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13708 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13709 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13710 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13711 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13712 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13713 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13714 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13715 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13716 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13717 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13718 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13719 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13720 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13721 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13722 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13723 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13724 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13725 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13726 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13727 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13728 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13729 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13730 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13731
13732 LTCC='$LTCC'
13733 LTCFLAGS='$LTCFLAGS'
13734 compiler='$compiler_DEFAULT'
13735
13736 # A function that is used when there is no print builtin or printf.
13737 func_fallback_echo ()
13738 {
13739 eval 'cat <<_LTECHO_EOF
13740 \$1
13741 _LTECHO_EOF'
13742 }
13743
13744 # Quote evaled strings.
13745 for var in SHELL \
13746 ECHO \
13747 SED \
13748 GREP \
13749 EGREP \
13750 FGREP \
13751 LD \
13752 NM \
13753 LN_S \
13754 lt_SP2NL \
13755 lt_NL2SP \
13756 reload_flag \
13757 OBJDUMP \
13758 deplibs_check_method \
13759 file_magic_cmd \
13760 AR \
13761 AR_FLAGS \
13762 STRIP \
13763 RANLIB \
13764 CC \
13765 CFLAGS \
13766 compiler \
13767 lt_cv_sys_global_symbol_pipe \
13768 lt_cv_sys_global_symbol_to_cdecl \
13769 lt_cv_sys_global_symbol_to_c_name_address \
13770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13771 lt_prog_compiler_no_builtin_flag \
13772 lt_prog_compiler_wl \
13773 lt_prog_compiler_pic \
13774 lt_prog_compiler_static \
13775 lt_cv_prog_compiler_c_o \
13776 need_locks \
13777 DSYMUTIL \
13778 NMEDIT \
13779 LIPO \
13780 OTOOL \
13781 OTOOL64 \
13782 shrext_cmds \
13783 export_dynamic_flag_spec \
13784 whole_archive_flag_spec \
13785 compiler_needs_object \
13786 with_gnu_ld \
13787 allow_undefined_flag \
13788 no_undefined_flag \
13789 hardcode_libdir_flag_spec \
13790 hardcode_libdir_flag_spec_ld \
13791 hardcode_libdir_separator \
13792 fix_srcfile_path \
13793 exclude_expsyms \
13794 include_expsyms \
13795 file_list_spec \
13796 variables_saved_for_relink \
13797 libname_spec \
13798 library_names_spec \
13799 soname_spec \
13800 install_override_mode \
13801 finish_eval \
13802 old_striplib \
13803 striplib; do
13804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13805 *[\\\\\\\`\\"\\\$]*)
13806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13807 ;;
13808 *)
13809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13810 ;;
13811 esac
13812 done
13813
13814 # Double-quote double-evaled strings.
13815 for var in reload_cmds \
13816 old_postinstall_cmds \
13817 old_postuninstall_cmds \
13818 old_archive_cmds \
13819 extract_expsyms_cmds \
13820 old_archive_from_new_cmds \
13821 old_archive_from_expsyms_cmds \
13822 archive_cmds \
13823 archive_expsym_cmds \
13824 module_cmds \
13825 module_expsym_cmds \
13826 export_symbols_cmds \
13827 prelink_cmds \
13828 postinstall_cmds \
13829 postuninstall_cmds \
13830 finish_cmds \
13831 sys_lib_search_path_spec \
13832 sys_lib_dlsearch_path_spec; do
13833 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13834 *[\\\\\\\`\\"\\\$]*)
13835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13836 ;;
13837 *)
13838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13839 ;;
13840 esac
13841 done
13842
13843 ac_aux_dir='$ac_aux_dir'
13844 xsi_shell='$xsi_shell'
13845 lt_shell_append='$lt_shell_append'
13846
13847 # See if we are running on zsh, and set the options which allow our
13848 # commands through without removal of \ escapes INIT.
13849 if test -n "\${ZSH_VERSION+set}" ; then
13850 setopt NO_GLOB_SUBST
13851 fi
13852
13853
13854 PACKAGE='$PACKAGE'
13855 VERSION='$VERSION'
13856 TIMESTAMP='$TIMESTAMP'
13857 RM='$RM'
13858 ofile='$ofile'
13859
13860
13861
13862
13863 GCC="$GCC"
13864 CC="$CC"
13865 acx_cv_header_stdint="$acx_cv_header_stdint"
13866 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13867 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13868 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13869 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13870 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13871 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13872 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13873 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13874 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13875 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13876 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13877 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13878 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13879
13880
13881 # Variables needed in config.status (file generation) which aren't already
13882 # passed by autoconf.
13883 SUBDIRS="$SUBDIRS"
13884
13885
13886 _ACEOF
13887
13888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889
13890 # Handling of arguments.
13891 for ac_config_target in $ac_config_targets
13892 do
13893 case $ac_config_target in
13894 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13895 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13896 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13897 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13898 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13899 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13900 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13901
13902 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13903 esac
13904 done
13905
13906
13907 # If the user did not use the arguments to specify the items to instantiate,
13908 # then the envvar interface is used. Set only those that are not.
13909 # We use the long form for the default assignment because of an extremely
13910 # bizarre bug on SunOS 4.1.3.
13911 if $ac_need_defaults; then
13912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13915 fi
13916
13917 # Have a temporary directory for convenience. Make it in the build tree
13918 # simply because there is no reason against having it here, and in addition,
13919 # creating and moving files from /tmp can sometimes cause problems.
13920 # Hook for its removal unless debugging.
13921 # Note that there is a small window in which the directory will not be cleaned:
13922 # after its creation but before its name has been assigned to `$tmp'.
13923 $debug ||
13924 {
13925 tmp=
13926 trap 'exit_status=$?
13927 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13928 ' 0
13929 trap 'as_fn_exit 1' 1 2 13 15
13930 }
13931 # Create a (secure) tmp directory for tmp files.
13932
13933 {
13934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13935 test -n "$tmp" && test -d "$tmp"
13936 } ||
13937 {
13938 tmp=./conf$$-$RANDOM
13939 (umask 077 && mkdir "$tmp")
13940 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13941
13942 # Set up the scripts for CONFIG_FILES section.
13943 # No need to generate them if there are no CONFIG_FILES.
13944 # This happens for instance with `./config.status config.h'.
13945 if test -n "$CONFIG_FILES"; then
13946
13947
13948 ac_cr=`echo X | tr X '\015'`
13949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13950 # But we know of no other shell where ac_cr would be empty at this
13951 # point, so we can use a bashism as a fallback.
13952 if test "x$ac_cr" = x; then
13953 eval ac_cr=\$\'\\r\'
13954 fi
13955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13957 ac_cs_awk_cr='\r'
13958 else
13959 ac_cs_awk_cr=$ac_cr
13960 fi
13961
13962 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13963 _ACEOF
13964
13965
13966 {
13967 echo "cat >conf$$subs.awk <<_ACEOF" &&
13968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13969 echo "_ACEOF"
13970 } >conf$$subs.sh ||
13971 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13973 ac_delim='%!_!# '
13974 for ac_last_try in false false false false false :; do
13975 . ./conf$$subs.sh ||
13976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13977
13978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13979 if test $ac_delim_n = $ac_delim_num; then
13980 break
13981 elif $ac_last_try; then
13982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13983 else
13984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13985 fi
13986 done
13987 rm -f conf$$subs.sh
13988
13989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13990 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13991 _ACEOF
13992 sed -n '
13993 h
13994 s/^/S["/; s/!.*/"]=/
13995 p
13996 g
13997 s/^[^!]*!//
13998 :repl
13999 t repl
14000 s/'"$ac_delim"'$//
14001 t delim
14002 :nl
14003 h
14004 s/\(.\{148\}\).*/\1/
14005 t more1
14006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14007 p
14008 n
14009 b repl
14010 :more1
14011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14012 p
14013 g
14014 s/.\{148\}//
14015 t nl
14016 :delim
14017 h
14018 s/\(.\{148\}\).*/\1/
14019 t more2
14020 s/["\\]/\\&/g; s/^/"/; s/$/"/
14021 p
14022 b
14023 :more2
14024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14025 p
14026 g
14027 s/.\{148\}//
14028 t delim
14029 ' <conf$$subs.awk | sed '
14030 /^[^""]/{
14031 N
14032 s/\n//
14033 }
14034 ' >>$CONFIG_STATUS || ac_write_fail=1
14035 rm -f conf$$subs.awk
14036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14037 _ACAWK
14038 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14039 for (key in S) S_is_set[key] = 1
14040 FS = "\a"
14041
14042 }
14043 {
14044 line = $ 0
14045 nfields = split(line, field, "@")
14046 substed = 0
14047 len = length(field[1])
14048 for (i = 2; i < nfields; i++) {
14049 key = field[i]
14050 keylen = length(key)
14051 if (S_is_set[key]) {
14052 value = S[key]
14053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14054 len += length(value) + length(field[++i])
14055 substed = 1
14056 } else
14057 len += 1 + keylen
14058 }
14059
14060 print line
14061 }
14062
14063 _ACAWK
14064 _ACEOF
14065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14068 else
14069 cat
14070 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14071 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14072 _ACEOF
14073
14074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14076 # trailing colons and then remove the whole line if VPATH becomes empty
14077 # (actually we leave an empty line to preserve line numbers).
14078 if test "x$srcdir" = x.; then
14079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14080 s/:*\$(srcdir):*/:/
14081 s/:*\${srcdir}:*/:/
14082 s/:*@srcdir@:*/:/
14083 s/^\([^=]*=[ ]*\):*/\1/
14084 s/:*$//
14085 s/^[^=]*=[ ]*$//
14086 }'
14087 fi
14088
14089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14090 fi # test -n "$CONFIG_FILES"
14091
14092 # Set up the scripts for CONFIG_HEADERS section.
14093 # No need to generate them if there are no CONFIG_HEADERS.
14094 # This happens for instance with `./config.status Makefile'.
14095 if test -n "$CONFIG_HEADERS"; then
14096 cat >"$tmp/defines.awk" <<\_ACAWK ||
14097 BEGIN {
14098 _ACEOF
14099
14100 # Transform confdefs.h into an awk script `defines.awk', embedded as
14101 # here-document in config.status, that substitutes the proper values into
14102 # config.h.in to produce config.h.
14103
14104 # Create a delimiter string that does not exist in confdefs.h, to ease
14105 # handling of long lines.
14106 ac_delim='%!_!# '
14107 for ac_last_try in false false :; do
14108 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14109 if test -z "$ac_t"; then
14110 break
14111 elif $ac_last_try; then
14112 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14113 else
14114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14115 fi
14116 done
14117
14118 # For the awk script, D is an array of macro values keyed by name,
14119 # likewise P contains macro parameters if any. Preserve backslash
14120 # newline sequences.
14121
14122 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14123 sed -n '
14124 s/.\{148\}/&'"$ac_delim"'/g
14125 t rset
14126 :rset
14127 s/^[ ]*#[ ]*define[ ][ ]*/ /
14128 t def
14129 d
14130 :def
14131 s/\\$//
14132 t bsnl
14133 s/["\\]/\\&/g
14134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14135 D["\1"]=" \3"/p
14136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14137 d
14138 :bsnl
14139 s/["\\]/\\&/g
14140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14141 D["\1"]=" \3\\\\\\n"\\/p
14142 t cont
14143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14144 t cont
14145 d
14146 :cont
14147 n
14148 s/.\{148\}/&'"$ac_delim"'/g
14149 t clear
14150 :clear
14151 s/\\$//
14152 t bsnlc
14153 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14154 d
14155 :bsnlc
14156 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14157 b cont
14158 ' <confdefs.h | sed '
14159 s/'"$ac_delim"'/"\\\
14160 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14161
14162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14163 for (key in D) D_is_set[key] = 1
14164 FS = "\a"
14165 }
14166 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14167 line = \$ 0
14168 split(line, arg, " ")
14169 if (arg[1] == "#") {
14170 defundef = arg[2]
14171 mac1 = arg[3]
14172 } else {
14173 defundef = substr(arg[1], 2)
14174 mac1 = arg[2]
14175 }
14176 split(mac1, mac2, "(") #)
14177 macro = mac2[1]
14178 prefix = substr(line, 1, index(line, defundef) - 1)
14179 if (D_is_set[macro]) {
14180 # Preserve the white space surrounding the "#".
14181 print prefix "define", macro P[macro] D[macro]
14182 next
14183 } else {
14184 # Replace #undef with comments. This is necessary, for example,
14185 # in the case of _POSIX_SOURCE, which is predefined and required
14186 # on some systems where configure will not decide to define it.
14187 if (defundef == "undef") {
14188 print "/*", prefix defundef, macro, "*/"
14189 next
14190 }
14191 }
14192 }
14193 { print }
14194 _ACAWK
14195 _ACEOF
14196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14198 fi # test -n "$CONFIG_HEADERS"
14199
14200
14201 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14202 shift
14203 for ac_tag
14204 do
14205 case $ac_tag in
14206 :[FHLC]) ac_mode=$ac_tag; continue;;
14207 esac
14208 case $ac_mode$ac_tag in
14209 :[FHL]*:*);;
14210 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14211 :[FH]-) ac_tag=-:-;;
14212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14213 esac
14214 ac_save_IFS=$IFS
14215 IFS=:
14216 set x $ac_tag
14217 IFS=$ac_save_IFS
14218 shift
14219 ac_file=$1
14220 shift
14221
14222 case $ac_mode in
14223 :L) ac_source=$1;;
14224 :[FH])
14225 ac_file_inputs=
14226 for ac_f
14227 do
14228 case $ac_f in
14229 -) ac_f="$tmp/stdin";;
14230 *) # Look for the file first in the build tree, then in the source tree
14231 # (if the path is not absolute). The absolute path cannot be DOS-style,
14232 # because $ac_f cannot contain `:'.
14233 test -f "$ac_f" ||
14234 case $ac_f in
14235 [\\/$]*) false;;
14236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14237 esac ||
14238 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14239 esac
14240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14241 as_fn_append ac_file_inputs " '$ac_f'"
14242 done
14243
14244 # Let's still pretend it is `configure' which instantiates (i.e., don't
14245 # use $as_me), people would be surprised to read:
14246 # /* config.h. Generated by config.status. */
14247 configure_input='Generated from '`
14248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14249 `' by configure.'
14250 if test x"$ac_file" != x-; then
14251 configure_input="$ac_file. $configure_input"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14253 $as_echo "$as_me: creating $ac_file" >&6;}
14254 fi
14255 # Neutralize special characters interpreted by sed in replacement strings.
14256 case $configure_input in #(
14257 *\&* | *\|* | *\\* )
14258 ac_sed_conf_input=`$as_echo "$configure_input" |
14259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14260 *) ac_sed_conf_input=$configure_input;;
14261 esac
14262
14263 case $ac_tag in
14264 *:-:* | *:-) cat >"$tmp/stdin" \
14265 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14266 esac
14267 ;;
14268 esac
14269
14270 ac_dir=`$as_dirname -- "$ac_file" ||
14271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14272 X"$ac_file" : 'X\(//\)[^/]' \| \
14273 X"$ac_file" : 'X\(//\)$' \| \
14274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14275 $as_echo X"$ac_file" |
14276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)[^/].*/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\/\)$/{
14285 s//\1/
14286 q
14287 }
14288 /^X\(\/\).*/{
14289 s//\1/
14290 q
14291 }
14292 s/.*/./; q'`
14293 as_dir="$ac_dir"; as_fn_mkdir_p
14294 ac_builddir=.
14295
14296 case "$ac_dir" in
14297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14298 *)
14299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14300 # A ".." for each directory in $ac_dir_suffix.
14301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14302 case $ac_top_builddir_sub in
14303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14305 esac ;;
14306 esac
14307 ac_abs_top_builddir=$ac_pwd
14308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14309 # for backward compatibility:
14310 ac_top_builddir=$ac_top_build_prefix
14311
14312 case $srcdir in
14313 .) # We are building in place.
14314 ac_srcdir=.
14315 ac_top_srcdir=$ac_top_builddir_sub
14316 ac_abs_top_srcdir=$ac_pwd ;;
14317 [\\/]* | ?:[\\/]* ) # Absolute name.
14318 ac_srcdir=$srcdir$ac_dir_suffix;
14319 ac_top_srcdir=$srcdir
14320 ac_abs_top_srcdir=$srcdir ;;
14321 *) # Relative name.
14322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14323 ac_top_srcdir=$ac_top_build_prefix$srcdir
14324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14325 esac
14326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14327
14328
14329 case $ac_mode in
14330 :F)
14331 #
14332 # CONFIG_FILE
14333 #
14334
14335 case $INSTALL in
14336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14338 esac
14339 ac_MKDIR_P=$MKDIR_P
14340 case $MKDIR_P in
14341 [\\/$]* | ?:[\\/]* ) ;;
14342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14343 esac
14344 _ACEOF
14345
14346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14347 # If the template does not know about datarootdir, expand it.
14348 # FIXME: This hack should be removed a few years after 2.60.
14349 ac_datarootdir_hack=; ac_datarootdir_seen=
14350 ac_sed_dataroot='
14351 /datarootdir/ {
14352 p
14353 q
14354 }
14355 /@datadir@/p
14356 /@docdir@/p
14357 /@infodir@/p
14358 /@localedir@/p
14359 /@mandir@/p'
14360 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14361 *datarootdir*) ac_datarootdir_seen=yes;;
14362 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14364 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14365 _ACEOF
14366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14367 ac_datarootdir_hack='
14368 s&@datadir@&$datadir&g
14369 s&@docdir@&$docdir&g
14370 s&@infodir@&$infodir&g
14371 s&@localedir@&$localedir&g
14372 s&@mandir@&$mandir&g
14373 s&\\\${datarootdir}&$datarootdir&g' ;;
14374 esac
14375 _ACEOF
14376
14377 # Neutralize VPATH when `$srcdir' = `.'.
14378 # Shell code in configure.ac might set extrasub.
14379 # FIXME: do we really want to maintain this feature?
14380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14381 ac_sed_extra="$ac_vpsub
14382 $extrasub
14383 _ACEOF
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 :t
14386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14387 s|@configure_input@|$ac_sed_conf_input|;t t
14388 s&@top_builddir@&$ac_top_builddir_sub&;t t
14389 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14390 s&@srcdir@&$ac_srcdir&;t t
14391 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14392 s&@top_srcdir@&$ac_top_srcdir&;t t
14393 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14394 s&@builddir@&$ac_builddir&;t t
14395 s&@abs_builddir@&$ac_abs_builddir&;t t
14396 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14397 s&@INSTALL@&$ac_INSTALL&;t t
14398 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14399 $ac_datarootdir_hack
14400 "
14401 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14402 || as_fn_error "could not create $ac_file" "$LINENO" 5
14403
14404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14408 which seems to be undefined. Please make sure it is defined." >&5
14409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14410 which seems to be undefined. Please make sure it is defined." >&2;}
14411
14412 rm -f "$tmp/stdin"
14413 case $ac_file in
14414 -) cat "$tmp/out" && rm -f "$tmp/out";;
14415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14416 esac \
14417 || as_fn_error "could not create $ac_file" "$LINENO" 5
14418 ;;
14419 :H)
14420 #
14421 # CONFIG_HEADER
14422 #
14423 if test x"$ac_file" != x-; then
14424 {
14425 $as_echo "/* $configure_input */" \
14426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14427 } >"$tmp/config.h" \
14428 || as_fn_error "could not create $ac_file" "$LINENO" 5
14429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14432 else
14433 rm -f "$ac_file"
14434 mv "$tmp/config.h" "$ac_file" \
14435 || as_fn_error "could not create $ac_file" "$LINENO" 5
14436 fi
14437 else
14438 $as_echo "/* $configure_input */" \
14439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14440 || as_fn_error "could not create -" "$LINENO" 5
14441 fi
14442 # Compute "$ac_file"'s index in $config_headers.
14443 _am_arg="$ac_file"
14444 _am_stamp_count=1
14445 for _am_header in $config_headers :; do
14446 case $_am_header in
14447 $_am_arg | $_am_arg:* )
14448 break ;;
14449 * )
14450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14451 esac
14452 done
14453 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14454 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14455 X"$_am_arg" : 'X\(//\)[^/]' \| \
14456 X"$_am_arg" : 'X\(//\)$' \| \
14457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14458 $as_echo X"$_am_arg" |
14459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14460 s//\1/
14461 q
14462 }
14463 /^X\(\/\/\)[^/].*/{
14464 s//\1/
14465 q
14466 }
14467 /^X\(\/\/\)$/{
14468 s//\1/
14469 q
14470 }
14471 /^X\(\/\).*/{
14472 s//\1/
14473 q
14474 }
14475 s/.*/./; q'`/stamp-h$_am_stamp_count
14476 ;;
14477
14478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14479 $as_echo "$as_me: executing $ac_file commands" >&6;}
14480 ;;
14481 esac
14482
14483
14484 case $ac_file$ac_mode in
14485 "default-1":C)
14486 # Only add multilib support code if we just rebuilt the top-level
14487 # Makefile.
14488 case " $CONFIG_FILES " in
14489 *" Makefile "*)
14490 ac_file=Makefile . ${multi_basedir}/config-ml.in
14491 ;;
14492 esac ;;
14493 "libtool":C)
14494
14495 # See if we are running on zsh, and set the options which allow our
14496 # commands through without removal of \ escapes.
14497 if test -n "${ZSH_VERSION+set}" ; then
14498 setopt NO_GLOB_SUBST
14499 fi
14500
14501 cfgfile="${ofile}T"
14502 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14503 $RM "$cfgfile"
14504
14505 cat <<_LT_EOF >> "$cfgfile"
14506 #! $SHELL
14507
14508 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14509 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14511 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14512 #
14513 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14514 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14515 # Written by Gordon Matzigkeit, 1996
14516 #
14517 # This file is part of GNU Libtool.
14518 #
14519 # GNU Libtool is free software; you can redistribute it and/or
14520 # modify it under the terms of the GNU General Public License as
14521 # published by the Free Software Foundation; either version 2 of
14522 # the License, or (at your option) any later version.
14523 #
14524 # As a special exception to the GNU General Public License,
14525 # if you distribute this file as part of a program or library that
14526 # is built using GNU Libtool, you may include this file under the
14527 # same distribution terms that you use for the rest of that program.
14528 #
14529 # GNU Libtool is distributed in the hope that it will be useful,
14530 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14532 # GNU General Public License for more details.
14533 #
14534 # You should have received a copy of the GNU General Public License
14535 # along with GNU Libtool; see the file COPYING. If not, a copy
14536 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14537 # obtained by writing to the Free Software Foundation, Inc.,
14538 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14539
14540
14541 # The names of the tagged configurations supported by this script.
14542 available_tags=""
14543
14544 # ### BEGIN LIBTOOL CONFIG
14545
14546 # Which release of libtool.m4 was used?
14547 macro_version=$macro_version
14548 macro_revision=$macro_revision
14549
14550 # Whether or not to build shared libraries.
14551 build_libtool_libs=$enable_shared
14552
14553 # Whether or not to build static libraries.
14554 build_old_libs=$enable_static
14555
14556 # What type of objects to build.
14557 pic_mode=$pic_mode
14558
14559 # Whether or not to optimize for fast installation.
14560 fast_install=$enable_fast_install
14561
14562 # Shell to use when invoking shell scripts.
14563 SHELL=$lt_SHELL
14564
14565 # An echo program that protects backslashes.
14566 ECHO=$lt_ECHO
14567
14568 # The host system.
14569 host_alias=$host_alias
14570 host=$host
14571 host_os=$host_os
14572
14573 # The build system.
14574 build_alias=$build_alias
14575 build=$build
14576 build_os=$build_os
14577
14578 # A sed program that does not truncate output.
14579 SED=$lt_SED
14580
14581 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14582 Xsed="\$SED -e 1s/^X//"
14583
14584 # A grep program that handles long lines.
14585 GREP=$lt_GREP
14586
14587 # An ERE matcher.
14588 EGREP=$lt_EGREP
14589
14590 # A literal string matcher.
14591 FGREP=$lt_FGREP
14592
14593 # A BSD- or MS-compatible name lister.
14594 NM=$lt_NM
14595
14596 # Whether we need soft or hard links.
14597 LN_S=$lt_LN_S
14598
14599 # What is the maximum length of a command?
14600 max_cmd_len=$max_cmd_len
14601
14602 # Object file suffix (normally "o").
14603 objext=$ac_objext
14604
14605 # Executable file suffix (normally "").
14606 exeext=$exeext
14607
14608 # whether the shell understands "unset".
14609 lt_unset=$lt_unset
14610
14611 # turn spaces into newlines.
14612 SP2NL=$lt_lt_SP2NL
14613
14614 # turn newlines into spaces.
14615 NL2SP=$lt_lt_NL2SP
14616
14617 # An object symbol dumper.
14618 OBJDUMP=$lt_OBJDUMP
14619
14620 # Method to check whether dependent libraries are shared objects.
14621 deplibs_check_method=$lt_deplibs_check_method
14622
14623 # Command to use when deplibs_check_method == "file_magic".
14624 file_magic_cmd=$lt_file_magic_cmd
14625
14626 # The archiver.
14627 AR=$lt_AR
14628 AR_FLAGS=$lt_AR_FLAGS
14629
14630 # A symbol stripping program.
14631 STRIP=$lt_STRIP
14632
14633 # Commands used to install an old-style archive.
14634 RANLIB=$lt_RANLIB
14635 old_postinstall_cmds=$lt_old_postinstall_cmds
14636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14637
14638 # Whether to use a lock for old archive extraction.
14639 lock_old_archive_extraction=$lock_old_archive_extraction
14640
14641 # A C compiler.
14642 LTCC=$lt_CC
14643
14644 # LTCC compiler flags.
14645 LTCFLAGS=$lt_CFLAGS
14646
14647 # Take the output of nm and produce a listing of raw symbols and C names.
14648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14649
14650 # Transform the output of nm in a proper C declaration.
14651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14652
14653 # Transform the output of nm in a C name address pair.
14654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14655
14656 # Transform the output of nm in a C name address pair when lib prefix is needed.
14657 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14658
14659 # The name of the directory that contains temporary libtool files.
14660 objdir=$objdir
14661
14662 # Used to examine libraries when file_magic_cmd begins with "file".
14663 MAGIC_CMD=$MAGIC_CMD
14664
14665 # Must we lock files when doing compilation?
14666 need_locks=$lt_need_locks
14667
14668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14669 DSYMUTIL=$lt_DSYMUTIL
14670
14671 # Tool to change global to local symbols on Mac OS X.
14672 NMEDIT=$lt_NMEDIT
14673
14674 # Tool to manipulate fat objects and archives on Mac OS X.
14675 LIPO=$lt_LIPO
14676
14677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14678 OTOOL=$lt_OTOOL
14679
14680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14681 OTOOL64=$lt_OTOOL64
14682
14683 # Old archive suffix (normally "a").
14684 libext=$libext
14685
14686 # Shared library suffix (normally ".so").
14687 shrext_cmds=$lt_shrext_cmds
14688
14689 # The commands to extract the exported symbol list from a shared archive.
14690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14691
14692 # Variables whose values should be saved in libtool wrapper scripts and
14693 # restored at link time.
14694 variables_saved_for_relink=$lt_variables_saved_for_relink
14695
14696 # Do we need the "lib" prefix for modules?
14697 need_lib_prefix=$need_lib_prefix
14698
14699 # Do we need a version for libraries?
14700 need_version=$need_version
14701
14702 # Library versioning type.
14703 version_type=$version_type
14704
14705 # Shared library runtime path variable.
14706 runpath_var=$runpath_var
14707
14708 # Shared library path variable.
14709 shlibpath_var=$shlibpath_var
14710
14711 # Is shlibpath searched before the hard-coded library search path?
14712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14713
14714 # Format of library name prefix.
14715 libname_spec=$lt_libname_spec
14716
14717 # List of archive names. First name is the real one, the rest are links.
14718 # The last name is the one that the linker finds with -lNAME
14719 library_names_spec=$lt_library_names_spec
14720
14721 # The coded name of the library, if different from the real name.
14722 soname_spec=$lt_soname_spec
14723
14724 # Permission mode override for installation of shared libraries.
14725 install_override_mode=$lt_install_override_mode
14726
14727 # Command to use after installation of a shared archive.
14728 postinstall_cmds=$lt_postinstall_cmds
14729
14730 # Command to use after uninstallation of a shared archive.
14731 postuninstall_cmds=$lt_postuninstall_cmds
14732
14733 # Commands used to finish a libtool library installation in a directory.
14734 finish_cmds=$lt_finish_cmds
14735
14736 # As "finish_cmds", except a single script fragment to be evaled but
14737 # not shown.
14738 finish_eval=$lt_finish_eval
14739
14740 # Whether we should hardcode library paths into libraries.
14741 hardcode_into_libs=$hardcode_into_libs
14742
14743 # Compile-time system search path for libraries.
14744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14745
14746 # Run-time system search path for libraries.
14747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14748
14749 # Whether dlopen is supported.
14750 dlopen_support=$enable_dlopen
14751
14752 # Whether dlopen of programs is supported.
14753 dlopen_self=$enable_dlopen_self
14754
14755 # Whether dlopen of statically linked programs is supported.
14756 dlopen_self_static=$enable_dlopen_self_static
14757
14758 # Commands to strip libraries.
14759 old_striplib=$lt_old_striplib
14760 striplib=$lt_striplib
14761
14762
14763 # The linker used to build libraries.
14764 LD=$lt_LD
14765
14766 # How to create reloadable object files.
14767 reload_flag=$lt_reload_flag
14768 reload_cmds=$lt_reload_cmds
14769
14770 # Commands used to build an old-style archive.
14771 old_archive_cmds=$lt_old_archive_cmds
14772
14773 # A language specific compiler.
14774 CC=$lt_compiler
14775
14776 # Is the compiler the GNU compiler?
14777 with_gcc=$GCC
14778
14779 # Compiler flag to turn off builtin functions.
14780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14781
14782 # How to pass a linker flag through the compiler.
14783 wl=$lt_lt_prog_compiler_wl
14784
14785 # Additional compiler flags for building library objects.
14786 pic_flag=$lt_lt_prog_compiler_pic
14787
14788 # Compiler flag to prevent dynamic linking.
14789 link_static_flag=$lt_lt_prog_compiler_static
14790
14791 # Does compiler simultaneously support -c and -o options?
14792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14793
14794 # Whether or not to add -lc for building shared libraries.
14795 build_libtool_need_lc=$archive_cmds_need_lc
14796
14797 # Whether or not to disallow shared libs when runtime libs are static.
14798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14799
14800 # Compiler flag to allow reflexive dlopens.
14801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14802
14803 # Compiler flag to generate shared objects directly from archives.
14804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14805
14806 # Whether the compiler copes with passing no objects directly.
14807 compiler_needs_object=$lt_compiler_needs_object
14808
14809 # Create an old-style archive from a shared archive.
14810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14811
14812 # Create a temporary old-style archive to link instead of a shared archive.
14813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14814
14815 # Commands used to build a shared archive.
14816 archive_cmds=$lt_archive_cmds
14817 archive_expsym_cmds=$lt_archive_expsym_cmds
14818
14819 # Commands used to build a loadable module if different from building
14820 # a shared archive.
14821 module_cmds=$lt_module_cmds
14822 module_expsym_cmds=$lt_module_expsym_cmds
14823
14824 # Whether we are building with GNU ld or not.
14825 with_gnu_ld=$lt_with_gnu_ld
14826
14827 # Flag that allows shared libraries with undefined symbols to be built.
14828 allow_undefined_flag=$lt_allow_undefined_flag
14829
14830 # Flag that enforces no undefined symbols.
14831 no_undefined_flag=$lt_no_undefined_flag
14832
14833 # Flag to hardcode \$libdir into a binary during linking.
14834 # This must work even if \$libdir does not exist
14835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14836
14837 # If ld is used when linking, flag to hardcode \$libdir into a binary
14838 # during linking. This must work even if \$libdir does not exist.
14839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14840
14841 # Whether we need a single "-rpath" flag with a separated argument.
14842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14843
14844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14845 # DIR into the resulting binary.
14846 hardcode_direct=$hardcode_direct
14847
14848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14849 # DIR into the resulting binary and the resulting library dependency is
14850 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14851 # library is relocated.
14852 hardcode_direct_absolute=$hardcode_direct_absolute
14853
14854 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14855 # into the resulting binary.
14856 hardcode_minus_L=$hardcode_minus_L
14857
14858 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14859 # into the resulting binary.
14860 hardcode_shlibpath_var=$hardcode_shlibpath_var
14861
14862 # Set to "yes" if building a shared library automatically hardcodes DIR
14863 # into the library and all subsequent libraries and executables linked
14864 # against it.
14865 hardcode_automatic=$hardcode_automatic
14866
14867 # Set to yes if linker adds runtime paths of dependent libraries
14868 # to runtime path list.
14869 inherit_rpath=$inherit_rpath
14870
14871 # Whether libtool must link a program against all its dependency libraries.
14872 link_all_deplibs=$link_all_deplibs
14873
14874 # Fix the shell variable \$srcfile for the compiler.
14875 fix_srcfile_path=$lt_fix_srcfile_path
14876
14877 # Set to "yes" if exported symbols are required.
14878 always_export_symbols=$always_export_symbols
14879
14880 # The commands to list exported symbols.
14881 export_symbols_cmds=$lt_export_symbols_cmds
14882
14883 # Symbols that should not be listed in the preloaded symbols.
14884 exclude_expsyms=$lt_exclude_expsyms
14885
14886 # Symbols that must always be exported.
14887 include_expsyms=$lt_include_expsyms
14888
14889 # Commands necessary for linking programs (against libraries) with templates.
14890 prelink_cmds=$lt_prelink_cmds
14891
14892 # Specify filename containing input files.
14893 file_list_spec=$lt_file_list_spec
14894
14895 # How to hardcode a shared library path into an executable.
14896 hardcode_action=$hardcode_action
14897
14898 # ### END LIBTOOL CONFIG
14899
14900 _LT_EOF
14901
14902 case $host_os in
14903 aix3*)
14904 cat <<\_LT_EOF >> "$cfgfile"
14905 # AIX sometimes has problems with the GCC collect2 program. For some
14906 # reason, if we set the COLLECT_NAMES environment variable, the problems
14907 # vanish in a puff of smoke.
14908 if test "X${COLLECT_NAMES+set}" != Xset; then
14909 COLLECT_NAMES=
14910 export COLLECT_NAMES
14911 fi
14912 _LT_EOF
14913 ;;
14914 esac
14915
14916
14917 ltmain="$ac_aux_dir/ltmain.sh"
14918
14919
14920 # We use sed instead of cat because bash on DJGPP gets confused if
14921 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14922 # text mode, it properly converts lines to CR/LF. This bash problem
14923 # is reportedly fixed, but why not run on old versions too?
14924 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14925 || (rm -f "$cfgfile"; exit 1)
14926
14927 case $xsi_shell in
14928 yes)
14929 cat << \_LT_EOF >> "$cfgfile"
14930
14931 # func_dirname file append nondir_replacement
14932 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14933 # otherwise set result to NONDIR_REPLACEMENT.
14934 func_dirname ()
14935 {
14936 case ${1} in
14937 */*) func_dirname_result="${1%/*}${2}" ;;
14938 * ) func_dirname_result="${3}" ;;
14939 esac
14940 }
14941
14942 # func_basename file
14943 func_basename ()
14944 {
14945 func_basename_result="${1##*/}"
14946 }
14947
14948 # func_dirname_and_basename file append nondir_replacement
14949 # perform func_basename and func_dirname in a single function
14950 # call:
14951 # dirname: Compute the dirname of FILE. If nonempty,
14952 # add APPEND to the result, otherwise set result
14953 # to NONDIR_REPLACEMENT.
14954 # value returned in "$func_dirname_result"
14955 # basename: Compute filename of FILE.
14956 # value retuned in "$func_basename_result"
14957 # Implementation must be kept synchronized with func_dirname
14958 # and func_basename. For efficiency, we do not delegate to
14959 # those functions but instead duplicate the functionality here.
14960 func_dirname_and_basename ()
14961 {
14962 case ${1} in
14963 */*) func_dirname_result="${1%/*}${2}" ;;
14964 * ) func_dirname_result="${3}" ;;
14965 esac
14966 func_basename_result="${1##*/}"
14967 }
14968
14969 # func_stripname prefix suffix name
14970 # strip PREFIX and SUFFIX off of NAME.
14971 # PREFIX and SUFFIX must not contain globbing or regex special
14972 # characters, hashes, percent signs, but SUFFIX may contain a leading
14973 # dot (in which case that matches only a dot).
14974 func_stripname ()
14975 {
14976 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14977 # positional parameters, so assign one to ordinary parameter first.
14978 func_stripname_result=${3}
14979 func_stripname_result=${func_stripname_result#"${1}"}
14980 func_stripname_result=${func_stripname_result%"${2}"}
14981 }
14982
14983 # func_opt_split
14984 func_opt_split ()
14985 {
14986 func_opt_split_opt=${1%%=*}
14987 func_opt_split_arg=${1#*=}
14988 }
14989
14990 # func_lo2o object
14991 func_lo2o ()
14992 {
14993 case ${1} in
14994 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14995 *) func_lo2o_result=${1} ;;
14996 esac
14997 }
14998
14999 # func_xform libobj-or-source
15000 func_xform ()
15001 {
15002 func_xform_result=${1%.*}.lo
15003 }
15004
15005 # func_arith arithmetic-term...
15006 func_arith ()
15007 {
15008 func_arith_result=$(( $* ))
15009 }
15010
15011 # func_len string
15012 # STRING may not start with a hyphen.
15013 func_len ()
15014 {
15015 func_len_result=${#1}
15016 }
15017
15018 _LT_EOF
15019 ;;
15020 *) # Bourne compatible functions.
15021 cat << \_LT_EOF >> "$cfgfile"
15022
15023 # func_dirname file append nondir_replacement
15024 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15025 # otherwise set result to NONDIR_REPLACEMENT.
15026 func_dirname ()
15027 {
15028 # Extract subdirectory from the argument.
15029 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15030 if test "X$func_dirname_result" = "X${1}"; then
15031 func_dirname_result="${3}"
15032 else
15033 func_dirname_result="$func_dirname_result${2}"
15034 fi
15035 }
15036
15037 # func_basename file
15038 func_basename ()
15039 {
15040 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15041 }
15042
15043
15044 # func_stripname prefix suffix name
15045 # strip PREFIX and SUFFIX off of NAME.
15046 # PREFIX and SUFFIX must not contain globbing or regex special
15047 # characters, hashes, percent signs, but SUFFIX may contain a leading
15048 # dot (in which case that matches only a dot).
15049 # func_strip_suffix prefix name
15050 func_stripname ()
15051 {
15052 case ${2} in
15053 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15054 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15055 esac
15056 }
15057
15058 # sed scripts:
15059 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15060 my_sed_long_arg='1s/^-[^=]*=//'
15061
15062 # func_opt_split
15063 func_opt_split ()
15064 {
15065 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15066 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15067 }
15068
15069 # func_lo2o object
15070 func_lo2o ()
15071 {
15072 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15073 }
15074
15075 # func_xform libobj-or-source
15076 func_xform ()
15077 {
15078 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15079 }
15080
15081 # func_arith arithmetic-term...
15082 func_arith ()
15083 {
15084 func_arith_result=`expr "$@"`
15085 }
15086
15087 # func_len string
15088 # STRING may not start with a hyphen.
15089 func_len ()
15090 {
15091 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15092 }
15093
15094 _LT_EOF
15095 esac
15096
15097 case $lt_shell_append in
15098 yes)
15099 cat << \_LT_EOF >> "$cfgfile"
15100
15101 # func_append var value
15102 # Append VALUE to the end of shell variable VAR.
15103 func_append ()
15104 {
15105 eval "$1+=\$2"
15106 }
15107 _LT_EOF
15108 ;;
15109 *)
15110 cat << \_LT_EOF >> "$cfgfile"
15111
15112 # func_append var value
15113 # Append VALUE to the end of shell variable VAR.
15114 func_append ()
15115 {
15116 eval "$1=\$$1\$2"
15117 }
15118
15119 _LT_EOF
15120 ;;
15121 esac
15122
15123
15124 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15125 || (rm -f "$cfgfile"; exit 1)
15126
15127 mv -f "$cfgfile" "$ofile" ||
15128 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15129 chmod +x "$ofile"
15130
15131 ;;
15132 "gstdint.h":C)
15133 if test "$GCC" = yes; then
15134 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15135 else
15136 echo "/* generated for $CC */" > tmp-stdint.h
15137 fi
15138
15139 sed 's/^ *//' >> tmp-stdint.h <<EOF
15140
15141 #ifndef GCC_GENERATED_STDINT_H
15142 #define GCC_GENERATED_STDINT_H 1
15143
15144 #include <sys/types.h>
15145 EOF
15146
15147 if test "$acx_cv_header_stdint" != stdint.h; then
15148 echo "#include <stddef.h>" >> tmp-stdint.h
15149 fi
15150 if test "$acx_cv_header_stdint" != stddef.h; then
15151 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15152 fi
15153
15154 sed 's/^ *//' >> tmp-stdint.h <<EOF
15155 /* glibc uses these symbols as guards to prevent redefinitions. */
15156 #ifdef __int8_t_defined
15157 #define _INT8_T
15158 #define _INT16_T
15159 #define _INT32_T
15160 #endif
15161 #ifdef __uint32_t_defined
15162 #define _UINT32_T
15163 #endif
15164
15165 EOF
15166
15167 # ----------------- done header, emit basic int types -------------
15168 if test "$acx_cv_header_stdint" = stddef.h; then
15169 sed 's/^ *//' >> tmp-stdint.h <<EOF
15170
15171 #ifndef _UINT8_T
15172 #define _UINT8_T
15173 #ifndef __uint8_t_defined
15174 #define __uint8_t_defined
15175 #ifndef uint8_t
15176 typedef unsigned $acx_cv_type_int8_t uint8_t;
15177 #endif
15178 #endif
15179 #endif
15180
15181 #ifndef _UINT16_T
15182 #define _UINT16_T
15183 #ifndef __uint16_t_defined
15184 #define __uint16_t_defined
15185 #ifndef uint16_t
15186 typedef unsigned $acx_cv_type_int16_t uint16_t;
15187 #endif
15188 #endif
15189 #endif
15190
15191 #ifndef _UINT32_T
15192 #define _UINT32_T
15193 #ifndef __uint32_t_defined
15194 #define __uint32_t_defined
15195 #ifndef uint32_t
15196 typedef unsigned $acx_cv_type_int32_t uint32_t;
15197 #endif
15198 #endif
15199 #endif
15200
15201 #ifndef _INT8_T
15202 #define _INT8_T
15203 #ifndef __int8_t_defined
15204 #define __int8_t_defined
15205 #ifndef int8_t
15206 typedef $acx_cv_type_int8_t int8_t;
15207 #endif
15208 #endif
15209 #endif
15210
15211 #ifndef _INT16_T
15212 #define _INT16_T
15213 #ifndef __int16_t_defined
15214 #define __int16_t_defined
15215 #ifndef int16_t
15216 typedef $acx_cv_type_int16_t int16_t;
15217 #endif
15218 #endif
15219 #endif
15220
15221 #ifndef _INT32_T
15222 #define _INT32_T
15223 #ifndef __int32_t_defined
15224 #define __int32_t_defined
15225 #ifndef int32_t
15226 typedef $acx_cv_type_int32_t int32_t;
15227 #endif
15228 #endif
15229 #endif
15230 EOF
15231 elif test "$ac_cv_type_u_int32_t" = yes; then
15232 sed 's/^ *//' >> tmp-stdint.h <<EOF
15233
15234 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15235 #ifndef _INT8_T
15236 #define _INT8_T
15237 #endif
15238 #ifndef _INT16_T
15239 #define _INT16_T
15240 #endif
15241 #ifndef _INT32_T
15242 #define _INT32_T
15243 #endif
15244
15245 #ifndef _UINT8_T
15246 #define _UINT8_T
15247 #ifndef __uint8_t_defined
15248 #define __uint8_t_defined
15249 #ifndef uint8_t
15250 typedef u_int8_t uint8_t;
15251 #endif
15252 #endif
15253 #endif
15254
15255 #ifndef _UINT16_T
15256 #define _UINT16_T
15257 #ifndef __uint16_t_defined
15258 #define __uint16_t_defined
15259 #ifndef uint16_t
15260 typedef u_int16_t uint16_t;
15261 #endif
15262 #endif
15263 #endif
15264
15265 #ifndef _UINT32_T
15266 #define _UINT32_T
15267 #ifndef __uint32_t_defined
15268 #define __uint32_t_defined
15269 #ifndef uint32_t
15270 typedef u_int32_t uint32_t;
15271 #endif
15272 #endif
15273 #endif
15274 EOF
15275 else
15276 sed 's/^ *//' >> tmp-stdint.h <<EOF
15277
15278 /* Some systems have guard macros to prevent redefinitions, define them. */
15279 #ifndef _INT8_T
15280 #define _INT8_T
15281 #endif
15282 #ifndef _INT16_T
15283 #define _INT16_T
15284 #endif
15285 #ifndef _INT32_T
15286 #define _INT32_T
15287 #endif
15288 #ifndef _UINT8_T
15289 #define _UINT8_T
15290 #endif
15291 #ifndef _UINT16_T
15292 #define _UINT16_T
15293 #endif
15294 #ifndef _UINT32_T
15295 #define _UINT32_T
15296 #endif
15297 EOF
15298 fi
15299
15300 # ------------- done basic int types, emit int64_t types ------------
15301 if test "$ac_cv_type_uint64_t" = yes; then
15302 sed 's/^ *//' >> tmp-stdint.h <<EOF
15303
15304 /* system headers have good uint64_t and int64_t */
15305 #ifndef _INT64_T
15306 #define _INT64_T
15307 #endif
15308 #ifndef _UINT64_T
15309 #define _UINT64_T
15310 #endif
15311 EOF
15312 elif test "$ac_cv_type_u_int64_t" = yes; then
15313 sed 's/^ *//' >> tmp-stdint.h <<EOF
15314
15315 /* system headers have an u_int64_t (and int64_t) */
15316 #ifndef _INT64_T
15317 #define _INT64_T
15318 #endif
15319 #ifndef _UINT64_T
15320 #define _UINT64_T
15321 #ifndef __uint64_t_defined
15322 #define __uint64_t_defined
15323 #ifndef uint64_t
15324 typedef u_int64_t uint64_t;
15325 #endif
15326 #endif
15327 #endif
15328 EOF
15329 elif test -n "$acx_cv_type_int64_t"; then
15330 sed 's/^ *//' >> tmp-stdint.h <<EOF
15331
15332 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15333 #ifndef _INT64_T
15334 #define _INT64_T
15335 #ifndef int64_t
15336 typedef $acx_cv_type_int64_t int64_t;
15337 #endif
15338 #endif
15339 #ifndef _UINT64_T
15340 #define _UINT64_T
15341 #ifndef __uint64_t_defined
15342 #define __uint64_t_defined
15343 #ifndef uint64_t
15344 typedef unsigned $acx_cv_type_int64_t uint64_t;
15345 #endif
15346 #endif
15347 #endif
15348 EOF
15349 else
15350 sed 's/^ *//' >> tmp-stdint.h <<EOF
15351
15352 /* some common heuristics for int64_t, using compiler-specific tests */
15353 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15354 #ifndef _INT64_T
15355 #define _INT64_T
15356 #ifndef __int64_t_defined
15357 #ifndef int64_t
15358 typedef long long int64_t;
15359 #endif
15360 #endif
15361 #endif
15362 #ifndef _UINT64_T
15363 #define _UINT64_T
15364 #ifndef uint64_t
15365 typedef unsigned long long uint64_t;
15366 #endif
15367 #endif
15368
15369 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15370 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15371 does not implement __extension__. But that compiler doesn't define
15372 __GNUC_MINOR__. */
15373 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15374 # define __extension__
15375 # endif
15376
15377 # ifndef _INT64_T
15378 # define _INT64_T
15379 # ifndef int64_t
15380 __extension__ typedef long long int64_t;
15381 # endif
15382 # endif
15383 # ifndef _UINT64_T
15384 # define _UINT64_T
15385 # ifndef uint64_t
15386 __extension__ typedef unsigned long long uint64_t;
15387 # endif
15388 # endif
15389
15390 #elif !defined __STRICT_ANSI__
15391 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15392
15393 # ifndef _INT64_T
15394 # define _INT64_T
15395 # ifndef int64_t
15396 typedef __int64 int64_t;
15397 # endif
15398 # endif
15399 # ifndef _UINT64_T
15400 # define _UINT64_T
15401 # ifndef uint64_t
15402 typedef unsigned __int64 uint64_t;
15403 # endif
15404 # endif
15405 # endif /* compiler */
15406
15407 #endif /* ANSI version */
15408 EOF
15409 fi
15410
15411 # ------------- done int64_t types, emit intptr types ------------
15412 if test "$ac_cv_type_uintptr_t" != yes; then
15413 sed 's/^ *//' >> tmp-stdint.h <<EOF
15414
15415 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15416 #ifndef __uintptr_t_defined
15417 #ifndef uintptr_t
15418 typedef u$acx_cv_type_intptr_t uintptr_t;
15419 #endif
15420 #endif
15421 #ifndef __intptr_t_defined
15422 #ifndef intptr_t
15423 typedef $acx_cv_type_intptr_t intptr_t;
15424 #endif
15425 #endif
15426 EOF
15427 fi
15428
15429 # ------------- done intptr types, emit int_least types ------------
15430 if test "$ac_cv_type_int_least32_t" != yes; then
15431 sed 's/^ *//' >> tmp-stdint.h <<EOF
15432
15433 /* Define int_least types */
15434 typedef int8_t int_least8_t;
15435 typedef int16_t int_least16_t;
15436 typedef int32_t int_least32_t;
15437 #ifdef _INT64_T
15438 typedef int64_t int_least64_t;
15439 #endif
15440
15441 typedef uint8_t uint_least8_t;
15442 typedef uint16_t uint_least16_t;
15443 typedef uint32_t uint_least32_t;
15444 #ifdef _UINT64_T
15445 typedef uint64_t uint_least64_t;
15446 #endif
15447 EOF
15448 fi
15449
15450 # ------------- done intptr types, emit int_fast types ------------
15451 if test "$ac_cv_type_int_fast32_t" != yes; then
15452 sed 's/^ *//' >> tmp-stdint.h <<EOF
15453
15454 /* Define int_fast types. short is often slow */
15455 typedef int8_t int_fast8_t;
15456 typedef int int_fast16_t;
15457 typedef int32_t int_fast32_t;
15458 #ifdef _INT64_T
15459 typedef int64_t int_fast64_t;
15460 #endif
15461
15462 typedef uint8_t uint_fast8_t;
15463 typedef unsigned int uint_fast16_t;
15464 typedef uint32_t uint_fast32_t;
15465 #ifdef _UINT64_T
15466 typedef uint64_t uint_fast64_t;
15467 #endif
15468 EOF
15469 fi
15470
15471 if test "$ac_cv_type_uintmax_t" != yes; then
15472 sed 's/^ *//' >> tmp-stdint.h <<EOF
15473
15474 /* Define intmax based on what we found */
15475 #ifndef intmax_t
15476 #ifdef _INT64_T
15477 typedef int64_t intmax_t;
15478 #else
15479 typedef long intmax_t;
15480 #endif
15481 #endif
15482 #ifndef uintmax_t
15483 #ifdef _UINT64_T
15484 typedef uint64_t uintmax_t;
15485 #else
15486 typedef unsigned long uintmax_t;
15487 #endif
15488 #endif
15489 EOF
15490 fi
15491
15492 sed 's/^ *//' >> tmp-stdint.h <<EOF
15493
15494 #endif /* GCC_GENERATED_STDINT_H */
15495 EOF
15496
15497 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15498 rm -f tmp-stdint.h
15499 else
15500 mv -f tmp-stdint.h gstdint.h
15501 fi
15502
15503 ;;
15504 "default":C) if test -n "$CONFIG_FILES"; then
15505 if test -n "${with_target_subdir}"; then
15506 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15507 # that multilib installs will end up installed in the correct place.
15508 # The testsuite needs it for multilib-aware ABI baseline files.
15509 # To work around this not being passed down from config-ml.in ->
15510 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15511 # append it here. Only modify Makefiles that have just been created.
15512 #
15513 # Also, get rid of this simulated-VPATH thing that automake does.
15514 cat > vpsed << \_EOF
15515 s!`test -f '$<' || echo '$(srcdir)/'`!!
15516 _EOF
15517 for i in $SUBDIRS; do
15518 case $CONFIG_FILES in
15519 *${i}/Makefile*)
15520 #echo "Adding MULTISUBDIR to $i/Makefile"
15521 sed -f vpsed $i/Makefile > tmp
15522 grep '^MULTISUBDIR =' Makefile >> tmp
15523 mv tmp $i/Makefile
15524 ;;
15525 esac
15526 done
15527 rm vpsed
15528 fi
15529 fi
15530 ;;
15531
15532 esac
15533 done # for ac_tag
15534
15535
15536 as_fn_exit 0
15537 _ACEOF
15538 ac_clean_files=$ac_clean_files_save
15539
15540 test $ac_write_fail = 0 ||
15541 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15542
15543
15544 # configure is writing to config.log, and then calls config.status.
15545 # config.status does its own redirection, appending to config.log.
15546 # Unfortunately, on DOS this fails, as config.log is still kept open
15547 # by configure, so config.status won't be able to write to it; its
15548 # output is simply discarded. So we exec the FD to /dev/null,
15549 # effectively closing config.log, so it can be properly (re)opened and
15550 # appended to by config.status. When coming back to configure, we
15551 # need to make the FD available again.
15552 if test "$no_create" != yes; then
15553 ac_cs_success=:
15554 ac_config_status_args=
15555 test "$silent" = yes &&
15556 ac_config_status_args="$ac_config_status_args --quiet"
15557 exec 5>/dev/null
15558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15559 exec 5>>config.log
15560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15561 # would make configure fail if this is the last instruction.
15562 $ac_cs_success || as_fn_exit $?
15563 fi
15564 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15566 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15567 fi
15568