]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
ece4151a0c62022b011b9e503fffbfe6466a54f5
[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_COMPRESSED_DEBUG_FALSE
611 HAVE_COMPRESSED_DEBUG_TRUE
612 HAVE_ZLIB_FALSE
613 HAVE_ZLIB_TRUE
614 HAVE_PTHREAD_FALSE
615 HAVE_PTHREAD_TRUE
616 PTHREAD_CFLAGS
617 BACKTRACE_USES_MALLOC
618 ALLOC_FILE
619 VIEW_FILE
620 BACKTRACE_SUPPORTS_DATA
621 BACKTRACE_SUPPORTED
622 FORMAT_FILE
623 BACKTRACE_SUPPORTS_THREADS
624 PIC_FLAG
625 WARN_FLAGS
626 EXTRA_FLAGS
627 BACKTRACE_FILE
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 AR
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 SED
642 LIBTOOL
643 RANLIB
644 MAINT
645 MAINTAINER_MODE_FALSE
646 MAINTAINER_MODE_TRUE
647 am__untar
648 am__tar
649 AMTAR
650 am__leading_dot
651 SET_MAKE
652 AWK
653 mkdir_p
654 MKDIR_P
655 INSTALL_STRIP_PROGRAM
656 STRIP
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 libtool_VERSION
671 EGREP
672 GREP
673 CPP
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 multi_basedir
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_multilib
736 enable_maintainer_mode
737 with_target_subdir
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 enable_libtool_lock
744 enable_largefile
745 with_system_libunwind
746 enable_host_shared
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 OBJCOPY'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information."
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185 do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264 else
1265 ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1353
1354 cat <<\_ACEOF
1355
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of package-unused version-unused:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-multilib build many library versions (default)
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --enable-shared[=PKGS] build shared libraries [default=yes]
1382 --enable-static[=PKGS] build static libraries [default=yes]
1383 --enable-fast-install[=PKGS]
1384 optimize for fast installation [default=yes]
1385 --disable-libtool-lock avoid locking (might break parallel builds)
1386 --disable-largefile omit support for large files
1387 --enable-host-shared build host code as shared libraries
1388
1389 Optional Packages:
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1393 --with-pic try to use only PIC/non-PIC objects [default=use
1394 both]
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1396 --with-system-libunwind use installed libunwind
1397
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CPP C preprocessor
1407 OBJCOPY location of objcopy
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 Report bugs to the package provider.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 package-unused configure version-unused
1476 generated by GNU Autoconf 2.64
1477
1478 Copyright (C) 2009 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1483 fi
1484
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1488
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1493 {
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1509 fi
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516 else
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520 ac_retval=1
1521 fi
1522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523 return $ac_retval
1524
1525 } # ac_fn_c_try_compile
1526
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_cpp ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } >/dev/null && {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 }; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1561
1562 } # ac_fn_c_try_cpp
1563
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1568 # accordingly.
1569 ac_fn_c_check_header_mongrel ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1577 fi
1578 eval ac_res=\$$3
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1581 else
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1587 $4
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_header_compiler=yes
1592 else
1593 ac_header_compiler=no
1594 fi
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1598
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_cpp "$LINENO"; then :
1607 ac_header_preproc=yes
1608 else
1609 ac_header_preproc=no
1610 fi
1611 rm -f conftest.err conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1614
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 yes:no: )
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ;;
1623 no:yes:* )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635 esac
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 eval "$3=\$ac_header_compiler"
1642 fi
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 fi
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
1649 } # ac_fn_c_check_header_mongrel
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 return $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1838 # -------------------------------------------
1839 # Tests whether TYPE exists after having included INCLUDES, setting cache
1840 # variable VAR accordingly.
1841 ac_fn_c_check_type ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 eval "$3=no"
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 $4
1853 int
1854 main ()
1855 {
1856 if (sizeof ($2))
1857 return 0;
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 int
1867 main ()
1868 {
1869 if (sizeof (($2)))
1870 return 0;
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876
1877 else
1878 eval "$3=yes"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_type
1890
1891 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1892 # --------------------------------------------
1893 # Tries to find the compile-time value of EXPR in a program that includes
1894 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1895 # computed
1896 ac_fn_c_compute_int ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if test "$cross_compiling" = yes; then
1900 # Depending upon the size, compute the lo and hi bounds.
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) >= 0)];
1908 test_array [0] = 0
1909
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_lo=0 ac_mid=0
1916 while :; do
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1924 test_array [0] = 0
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid; break
1932 else
1933 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1934 if test $ac_lo -le $ac_mid; then
1935 ac_lo= ac_hi=
1936 break
1937 fi
1938 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 done
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) < 0)];
1950 test_array [0] = 0
1951
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_hi=-1 ac_mid=-1
1958 while :; do
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 int
1963 main ()
1964 {
1965 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1966 test_array [0] = 0
1967
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_lo=$ac_mid; break
1974 else
1975 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1976 if test $ac_mid -le $ac_hi; then
1977 ac_lo= ac_hi=
1978 break
1979 fi
1980 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 done
1984 else
1985 ac_lo= ac_hi=
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 # Binary search between lo and hi bounds.
1991 while test "x$ac_lo" != "x$ac_hi"; do
1992 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=$ac_mid
2008 else
2009 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 case $ac_lo in #((
2014 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2015 '') ac_retval=1 ;;
2016 esac
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 static long int longval () { return $2; }
2022 static unsigned long int ulongval () { return $2; }
2023 #include <stdio.h>
2024 #include <stdlib.h>
2025 int
2026 main ()
2027 {
2028
2029 FILE *f = fopen ("conftest.val", "w");
2030 if (! f)
2031 return 1;
2032 if (($2) < 0)
2033 {
2034 long int i = longval ();
2035 if (i != ($2))
2036 return 1;
2037 fprintf (f, "%ld", i);
2038 }
2039 else
2040 {
2041 unsigned long int i = ulongval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%lu", i);
2045 }
2046 /* Do not output a trailing newline, as this causes \r\n confusion
2047 on some platforms. */
2048 return ferror (f) || fclose (f) != 0;
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_run "$LINENO"; then :
2055 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2056 else
2057 ac_retval=1
2058 fi
2059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2060 conftest.$ac_objext conftest.beam conftest.$ac_ext
2061 rm -f conftest.val
2062
2063 fi
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 return $ac_retval
2066
2067 } # ac_fn_c_compute_int
2068
2069 # ac_fn_c_check_decl LINENO SYMBOL VAR
2070 # ------------------------------------
2071 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2072 ac_fn_c_check_decl ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 #ifndef $as_decl_name
2089 #ifdef __cplusplus
2090 (void) $as_decl_use;
2091 #else
2092 (void) $as_decl_name;
2093 #endif
2094 #endif
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111
2112 } # ac_fn_c_check_decl
2113 cat >config.log <<_ACEOF
2114 This file contains any messages produced by compilers while
2115 running configure, to aid debugging if configure makes a mistake.
2116
2117 It was created by package-unused $as_me version-unused, which was
2118 generated by GNU Autoconf 2.64. Invocation command line was
2119
2120 $ $0 $@
2121
2122 _ACEOF
2123 exec 5>>config.log
2124 {
2125 cat <<_ASUNAME
2126 ## --------- ##
2127 ## Platform. ##
2128 ## --------- ##
2129
2130 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2131 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2132 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2133 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2134 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135
2136 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2137 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2138
2139 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2140 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2141 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2142 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2143 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2144 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2145 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146
2147 _ASUNAME
2148
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 $as_echo "PATH: $as_dir"
2155 done
2156 IFS=$as_save_IFS
2157
2158 } >&5
2159
2160 cat >&5 <<_ACEOF
2161
2162
2163 ## ----------- ##
2164 ## Core tests. ##
2165 ## ----------- ##
2166
2167 _ACEOF
2168
2169
2170 # Keep a trace of the command line.
2171 # Strip out --no-create and --no-recursion so they do not pile up.
2172 # Strip out --silent because we don't want to record it for future runs.
2173 # Also quote any args containing shell meta-characters.
2174 # Make two passes to allow for proper duplicate-argument suppression.
2175 ac_configure_args=
2176 ac_configure_args0=
2177 ac_configure_args1=
2178 ac_must_keep_next=false
2179 for ac_pass in 1 2
2180 do
2181 for ac_arg
2182 do
2183 case $ac_arg in
2184 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2186 | -silent | --silent | --silen | --sile | --sil)
2187 continue ;;
2188 *\'*)
2189 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2190 esac
2191 case $ac_pass in
2192 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2193 2)
2194 as_fn_append ac_configure_args1 " '$ac_arg'"
2195 if test $ac_must_keep_next = true; then
2196 ac_must_keep_next=false # Got value, back to normal.
2197 else
2198 case $ac_arg in
2199 *=* | --config-cache | -C | -disable-* | --disable-* \
2200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2202 | -with-* | --with-* | -without-* | --without-* | --x)
2203 case "$ac_configure_args0 " in
2204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2205 esac
2206 ;;
2207 -* ) ac_must_keep_next=true ;;
2208 esac
2209 fi
2210 as_fn_append ac_configure_args " '$ac_arg'"
2211 ;;
2212 esac
2213 done
2214 done
2215 { ac_configure_args0=; unset ac_configure_args0;}
2216 { ac_configure_args1=; unset ac_configure_args1;}
2217
2218 # When interrupted or exit'd, cleanup temporary files, and complete
2219 # config.log. We remove comments because anyway the quotes in there
2220 # would cause problems or look ugly.
2221 # WARNING: Use '\'' to represent an apostrophe within the trap.
2222 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2223 trap 'exit_status=$?
2224 # Save into config.log some information that might help in debugging.
2225 {
2226 echo
2227
2228 cat <<\_ASBOX
2229 ## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##
2232 _ASBOX
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235 (
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263 )
2264 echo
2265
2266 cat <<\_ASBOX
2267 ## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##
2270 _ASBOX
2271 echo
2272 for ac_var in $ac_subst_vars
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281
2282 if test -n "$ac_subst_files"; then
2283 cat <<\_ASBOX
2284 ## ------------------- ##
2285 ## File substitutions. ##
2286 ## ------------------- ##
2287 _ASBOX
2288 echo
2289 for ac_var in $ac_subst_files
2290 do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 esac
2295 $as_echo "$ac_var='\''$ac_val'\''"
2296 done | sort
2297 echo
2298 fi
2299
2300 if test -s confdefs.h; then
2301 cat <<\_ASBOX
2302 ## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##
2305 _ASBOX
2306 echo
2307 cat confdefs.h
2308 echo
2309 fi
2310 test "$ac_signal" != 0 &&
2311 $as_echo "$as_me: caught signal $ac_signal"
2312 $as_echo "$as_me: exit $exit_status"
2313 } >&5
2314 rm -f core *.core core.conftest.* &&
2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 exit $exit_status
2317 ' 0
2318 for ac_signal in 1 2 13 15; do
2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320 done
2321 ac_signal=0
2322
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2325
2326 $as_echo "/* confdefs.h */" > confdefs.h
2327
2328 # Predefined preprocessor variables.
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2352 _ACEOF
2353
2354
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
2357 ac_site_file1=NONE
2358 ac_site_file2=NONE
2359 if test -n "$CONFIG_SITE"; then
2360 ac_site_file1=$CONFIG_SITE
2361 elif test "x$prefix" != xNONE; then
2362 ac_site_file1=$prefix/share/config.site
2363 ac_site_file2=$prefix/etc/config.site
2364 else
2365 ac_site_file1=$ac_default_prefix/share/config.site
2366 ac_site_file2=$ac_default_prefix/etc/config.site
2367 fi
2368 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 do
2370 test "x$ac_site_file" = xNONE && continue
2371 if test -r "$ac_site_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2373 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2374 sed 's/^/| /' "$ac_site_file" >&5
2375 . "$ac_site_file"
2376 fi
2377 done
2378
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special
2381 # files actually), so we avoid doing that.
2382 if test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2389 fi
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2394 fi
2395
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401 eval ac_new_set=\$ac_env_${ac_var}_set
2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403 eval ac_new_val=\$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2405 set,)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,set)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,);;
2414 *)
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w=`echo x $ac_old_val`
2418 ac_new_val_w=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted=:
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\$ac_old_val
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2432 fi;;
2433 esac
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2436 case $ac_new_val in
2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg=$ac_var=$ac_new_val ;;
2439 esac
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443 esac
2444 fi
2445 done
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 fi
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463
2464
2465
2466
2467
2468 ac_config_headers="$ac_config_headers config.h"
2469
2470
2471 if test -n "${with_target_subdir}"; then
2472 # Default to --enable-multilib
2473 # Check whether --enable-multilib was given.
2474 if test "${enable_multilib+set}" = set; then :
2475 enableval=$enable_multilib; case "$enableval" in
2476 yes) multilib=yes ;;
2477 no) multilib=no ;;
2478 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 multilib=yes
2482 fi
2483
2484
2485 # We may get other options which we leave undocumented:
2486 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2487 # See config-ml.in if you want the gory details.
2488
2489 if test "$srcdir" = "."; then
2490 if test "$with_target_subdir" != "."; then
2491 multi_basedir="$srcdir/$with_multisrctop../.."
2492 else
2493 multi_basedir="$srcdir/$with_multisrctop.."
2494 fi
2495 else
2496 multi_basedir="$srcdir/.."
2497 fi
2498
2499
2500 # Even if the default multilib is not a cross compilation,
2501 # it may be that some of the other multilibs are.
2502 if test $cross_compiling = no && test $multilib = yes \
2503 && test "x${with_multisubdir}" != x ; then
2504 cross_compiling=maybe
2505 fi
2506
2507 ac_config_commands="$ac_config_commands default-1"
2508
2509 fi
2510
2511 ac_aux_dir=
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513 for ac_t in install-sh install.sh shtool; do
2514 if test -f "$ac_dir/$ac_t"; then
2515 ac_aux_dir=$ac_dir
2516 ac_install_sh="$ac_aux_dir/$ac_t -c"
2517 break 2
2518 fi
2519 done
2520 done
2521 if test -z "$ac_aux_dir"; then
2522 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2532
2533
2534 # Make sure we can run config.sub.
2535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2536 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2539 $as_echo_n "checking build system type... " >&6; }
2540 if test "${ac_cv_build+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 ac_build_alias=$build_alias
2544 test "x$ac_build_alias" = x &&
2545 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546 test "x$ac_build_alias" = x &&
2547 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2548 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2549 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2557 esac
2558 build=$ac_cv_build
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_build
2561 shift
2562 build_cpu=$1
2563 build_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 build_os=$*
2568 IFS=$ac_save_IFS
2569 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2573 $as_echo_n "checking host system type... " >&6; }
2574 if test "${ac_cv_host+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test "x$host_alias" = x; then
2578 ac_cv_host=$ac_cv_build
2579 else
2580 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2581 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 fi
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2586 $as_echo "$ac_cv_host" >&6; }
2587 case $ac_cv_host in
2588 *-*-*) ;;
2589 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2590 esac
2591 host=$ac_cv_host
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_host
2594 shift
2595 host_cpu=$1
2596 host_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 host_os=$*
2601 IFS=$ac_save_IFS
2602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2606 $as_echo_n "checking target system type... " >&6; }
2607 if test "${ac_cv_target+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test "x$target_alias" = x; then
2611 ac_cv_target=$ac_cv_host
2612 else
2613 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2614 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2619 $as_echo "$ac_cv_target" >&6; }
2620 case $ac_cv_target in
2621 *-*-*) ;;
2622 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2623 esac
2624 target=$ac_cv_target
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_target
2627 shift
2628 target_cpu=$1
2629 target_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 target_os=$*
2634 IFS=$ac_save_IFS
2635 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 # The aliases save the names the user supplied, while $host etc.
2639 # will get canonicalized.
2640 test -n "$target_alias" &&
2641 test "$program_prefix$program_suffix$program_transform_name" = \
2642 NONENONEs,x,x, &&
2643 program_prefix=${target_alias}-
2644
2645 target_alias=${target_alias-$host_alias}
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683 $as_echo "$CC" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_CC"; then
2692 ac_ct_CC=$CC
2693 # Extract the first word of "gcc", so it can be a program name with args.
2694 set dummy gcc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="gcc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2723 $as_echo "$ac_ct_CC" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729 if test "x$ac_ct_CC" = x; then
2730 CC=""
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 CC=$ac_ct_CC
2739 fi
2740 else
2741 CC="$ac_cv_prog_CC"
2742 fi
2743
2744 if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}cc; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_CC="${ac_tool_prefix}cc"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 fi
2784 fi
2785 if test -z "$CC"; then
2786 # Extract the first word of "cc", so it can be a program name with args.
2787 set dummy cc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 ac_prog_rejected=no
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2805 ac_prog_rejected=yes
2806 continue
2807 fi
2808 ac_cv_prog_CC="cc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 if test $ac_prog_rejected = yes; then
2817 # We found a bogon in the path, so make sure we never use it.
2818 set dummy $ac_cv_prog_CC
2819 shift
2820 if test $# != 0; then
2821 # We chose a different compiler from the bogus one.
2822 # However, it has the same basename, so the bogon will be chosen
2823 # first if we set CC to just the basename; use the full file name.
2824 shift
2825 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2826 fi
2827 fi
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2833 $as_echo "$CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 fi
2838
2839
2840 fi
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 for ac_prog in cl.exe
2844 do
2845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 test -n "$ac_ct_CC" && break
2927 done
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 CC=$ac_ct_CC
2939 fi
2940 fi
2941
2942 fi
2943
2944
2945 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error "no acceptable C compiler found in \$PATH
2948 See \`config.log' for more details." "$LINENO" 5; }
2949
2950 # Provide some information about the compiler.
2951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2952 set X $ac_compile
2953 ac_compiler=$2
2954 for ac_option in --version -v -V -qversion; do
2955 { { ac_try="$ac_compiler $ac_option >&5"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2963 ac_status=$?
2964 if test -s conftest.err; then
2965 sed '10a\
2966 ... rest of stderr output deleted ...
2967 10q' conftest.err >conftest.er1
2968 cat conftest.er1 >&5
2969 rm -f conftest.er1 conftest.err
2970 fi
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }
2973 done
2974
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977
2978 int
2979 main ()
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2992 $as_echo_n "checking for C compiler default output file name... " >&6; }
2993 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994
2995 # The possible output files:
2996 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2997
2998 ac_rmfiles=
2999 for ac_file in $ac_files
3000 do
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3004 esac
3005 done
3006 rm -f $ac_rmfiles
3007
3008 if { { ac_try="$ac_link_default"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_link_default") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3020 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3021 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3022 # so that the user can short-circuit this test for compilers unknown to
3023 # Autoconf.
3024 for ac_file in $ac_files ''
3025 do
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3029 ;;
3030 [ab].out )
3031 # We found the default executable, but exeext='' is most
3032 # certainly right.
3033 break;;
3034 *.* )
3035 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3036 then :; else
3037 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 fi
3039 # We set ac_cv_exeext here because the later test for it is not
3040 # safe: cross compilers may not add the suffix if given an `-o'
3041 # argument, so we may need to know it at that point already.
3042 # Even if this section looks crufty: it has the advantage of
3043 # actually working.
3044 break;;
3045 * )
3046 break;;
3047 esac
3048 done
3049 test "$ac_cv_exeext" = no && ac_cv_exeext=
3050
3051 else
3052 ac_file=''
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3055 $as_echo "$ac_file" >&6; }
3056 if test -z "$ac_file"; then :
3057 $as_echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { as_fn_set_status 77
3063 as_fn_error "C compiler cannot create executables
3064 See \`config.log' for more details." "$LINENO" 5; }; }
3065 fi
3066 ac_exeext=$ac_cv_exeext
3067
3068 # Check that the compiler produces executables we can run. If not, either
3069 # the compiler is broken, or we cross compile.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 # If not cross compiling, check that we can run a simple program.
3073 if test "$cross_compiling" != yes; then
3074 if { ac_try='./$ac_file'
3075 { { case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; }; then
3085 cross_compiling=no
3086 else
3087 if test "$cross_compiling" = maybe; then
3088 cross_compiling=yes
3089 else
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error "cannot run C compiled programs.
3093 If you meant to cross compile, use \`--host'.
3094 See \`config.log' for more details." "$LINENO" 5; }
3095 fi
3096 fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3102 ac_clean_files=$ac_clean_files_save
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3106 $as_echo_n "checking whether we are cross compiling... " >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3108 $as_echo "$cross_compiling" >&6; }
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe'), while it won't with
3126 # `rm'.
3127 for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 break;;
3133 * ) break;;
3134 esac
3135 done
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details." "$LINENO" 5; }
3141 fi
3142 rm -f conftest$ac_cv_exeext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144 $as_echo "$ac_cv_exeext" >&6; }
3145
3146 rm -f conftest.$ac_ext
3147 EXEEXT=$ac_cv_exeext
3148 ac_exeext=$EXEEXT
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3150 $as_echo_n "checking for suffix of object files... " >&6; }
3151 if test "${ac_cv_objext+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156
3157 int
3158 main ()
3159 {
3160
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.o conftest.obj
3166 if { { ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184 done
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error "cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." "$LINENO" 5; }
3193 fi
3194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3197 $as_echo "$ac_cv_objext" >&6; }
3198 OBJEXT=$ac_cv_objext
3199 ac_objext=$OBJEXT
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3202 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211 #ifndef __GNUC__
3212 choke me
3213 #endif
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_compiler_gnu=yes
3221 else
3222 ac_compiler_gnu=no
3223 fi
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3230 if test $ac_compiler_gnu = yes; then
3231 GCC=yes
3232 else
3233 GCC=
3234 fi
3235 ac_test_CFLAGS=${CFLAGS+set}
3236 ac_save_CFLAGS=$CFLAGS
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3239 if test "${ac_cv_prog_cc_g+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248
3249 int
3250 main ()
3251 {
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 if ac_fn_c_try_compile "$LINENO"; then :
3258 ac_cv_prog_cc_g=yes
3259 else
3260 CFLAGS=""
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273
3274 else
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_g=yes
3290 fi
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_c_werror_flag=$ac_save_c_werror_flag
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3299 $as_echo "$ac_cv_prog_cc_g" >&6; }
3300 if test "$ac_test_CFLAGS" = set; then
3301 CFLAGS=$ac_save_CFLAGS
3302 elif test $ac_cv_prog_cc_g = yes; then
3303 if test "$GCC" = yes; then
3304 CFLAGS="-g -O2"
3305 else
3306 CFLAGS="-g"
3307 fi
3308 else
3309 if test "$GCC" = yes; then
3310 CFLAGS="-O2"
3311 else
3312 CFLAGS=
3313 fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3317 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 ac_cv_prog_cc_c89=no
3321 ac_save_CC=$CC
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <stdarg.h>
3325 #include <stdio.h>
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3332 char **p;
3333 int i;
3334 {
3335 return p[i];
3336 }
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3338 {
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3345 }
3346
3347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3348 function prototypes and stuff, but not '\xHH' hex character constants.
3349 These don't provoke an error unfortunately, instead are silently treated
3350 as 'x'. The following induces an error, until -std is added to get
3351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3352 array size at least. It's necessary to write '\x00'==0 to get something
3353 that's true only with -std. */
3354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3355
3356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357 inside strings and character constants. */
3358 #define FOO(x) 'x'
3359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3360
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367 int
3368 main ()
3369 {
3370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3377 do
3378 CC="$ac_save_CC $ac_arg"
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_c89=$ac_arg
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext
3383 test "x$ac_cv_prog_cc_c89" != "xno" && break
3384 done
3385 rm -f conftest.$ac_ext
3386 CC=$ac_save_CC
3387
3388 fi
3389 # AC_CACHE_VAL
3390 case "x$ac_cv_prog_cc_c89" in
3391 x)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3393 $as_echo "none needed" >&6; } ;;
3394 xno)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3396 $as_echo "unsupported" >&6; } ;;
3397 *)
3398 CC="$CC $ac_cv_prog_cc_c89"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3401 esac
3402 if test "x$ac_cv_prog_cc_c89" != xno; then :
3403
3404 fi
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3422 CPP=
3423 fi
3424 if test -z "$CPP"; then
3425 if test "${ac_cv_prog_CPP+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 # Double quotes because CPP needs to be expanded
3429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430 do
3431 ac_preproc_ok=false
3432 for ac_c_preproc_warn_flag in '' yes
3433 do
3434 # Use a header file that comes with gcc, so configuring glibc
3435 # with a fresh cross-compiler works.
3436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437 # <limits.h> exists even on freestanding compilers.
3438 # On the NeXT, cc -E runs the code through the compiler's parser,
3439 # not just through cpp. "Syntax error" is here to catch this case.
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3450
3451 else
3452 # Broken: fails on valid input.
3453 continue
3454 fi
3455 rm -f conftest.err conftest.$ac_ext
3456
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3464 # Broken: success on invalid input.
3465 continue
3466 else
3467 # Passes both tests.
3468 ac_preproc_ok=:
3469 break
3470 fi
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then :
3477 break
3478 fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483 fi
3484 CPP=$ac_cv_prog_CPP
3485 else
3486 ac_cv_prog_CPP=$CPP
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3489 $as_echo "$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509
3510 else
3511 # Broken: fails on valid input.
3512 continue
3513 fi
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3529 fi
3530 rm -f conftest.err conftest.$ac_ext
3531
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3536
3537 else
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3553 if test "${ac_cv_path_GREP+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -z "$GREP"; then
3557 ac_path_GREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in grep ggrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3568 # Check for GNU ac_path_GREP and select it if it is found.
3569 # Check for GNU $ac_path_GREP
3570 case `"$ac_path_GREP" --version 2>&1` in
3571 *GNU*)
3572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573 *)
3574 ac_count=0
3575 $as_echo_n 0123456789 >"conftest.in"
3576 while :
3577 do
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 $as_echo 'GREP' >> "conftest.nl"
3582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 as_fn_arith $ac_count + 1 && ac_count=$as_val
3585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_GREP="$ac_path_GREP"
3588 ac_path_GREP_max=$ac_count
3589 fi
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3592 done
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596 $ac_path_GREP_found && break 3
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3601 if test -z "$ac_cv_path_GREP"; then
3602 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603 fi
3604 else
3605 ac_cv_path_GREP=$GREP
3606 fi
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610 $as_echo "$ac_cv_path_GREP" >&6; }
3611 GREP="$ac_cv_path_GREP"
3612
3613
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615 $as_echo_n "checking for egrep... " >&6; }
3616 if test "${ac_cv_path_EGREP+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620 then ac_cv_path_EGREP="$GREP -E"
3621 else
3622 if test -z "$EGREP"; then
3623 ac_path_EGREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in egrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3634 # Check for GNU ac_path_EGREP and select it if it is found.
3635 # Check for GNU $ac_path_EGREP
3636 case `"$ac_path_EGREP" --version 2>&1` in
3637 *GNU*)
3638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3639 *)
3640 ac_count=0
3641 $as_echo_n 0123456789 >"conftest.in"
3642 while :
3643 do
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'EGREP' >> "conftest.nl"
3648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_EGREP="$ac_path_EGREP"
3654 ac_path_EGREP_max=$ac_count
3655 fi
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 esac
3661
3662 $ac_path_EGREP_found && break 3
3663 done
3664 done
3665 done
3666 IFS=$as_save_IFS
3667 if test -z "$ac_cv_path_EGREP"; then
3668 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669 fi
3670 else
3671 ac_cv_path_EGREP=$EGREP
3672 fi
3673
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3677 $as_echo "$ac_cv_path_EGREP" >&6; }
3678 EGREP="$ac_cv_path_EGREP"
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3682 $as_echo_n "checking for ANSI C header files... " >&6; }
3683 if test "${ac_cv_header_stdc+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdlib.h>
3689 #include <stdarg.h>
3690 #include <string.h>
3691 #include <float.h>
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_header_stdc=yes
3703 else
3704 ac_cv_header_stdc=no
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707
3708 if test $ac_cv_header_stdc = yes; then
3709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <string.h>
3713
3714 _ACEOF
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then :
3717
3718 else
3719 ac_cv_header_stdc=no
3720 fi
3721 rm -f conftest*
3722
3723 fi
3724
3725 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <stdlib.h>
3730
3731 _ACEOF
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 $EGREP "free" >/dev/null 2>&1; then :
3734
3735 else
3736 ac_cv_header_stdc=no
3737 fi
3738 rm -f conftest*
3739
3740 fi
3741
3742 if test $ac_cv_header_stdc = yes; then
3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 if test "$cross_compiling" = yes; then :
3745 :
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <ctype.h>
3750 #include <stdlib.h>
3751 #if ((' ' & 0x0FF) == 0x020)
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754 #else
3755 # define ISLOWER(c) \
3756 (('a' <= (c) && (c) <= 'i') \
3757 || ('j' <= (c) && (c) <= 'r') \
3758 || ('s' <= (c) && (c) <= 'z'))
3759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #endif
3761
3762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3763 int
3764 main ()
3765 {
3766 int i;
3767 for (i = 0; i < 256; i++)
3768 if (XOR (islower (i), ISLOWER (i))
3769 || toupper (i) != TOUPPER (i))
3770 return 2;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_run "$LINENO"; then :
3775
3776 else
3777 ac_cv_header_stdc=no
3778 fi
3779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3780 conftest.$ac_objext conftest.beam conftest.$ac_ext
3781 fi
3782
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3786 $as_echo "$ac_cv_header_stdc" >&6; }
3787 if test $ac_cv_header_stdc = yes; then
3788
3789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790
3791 fi
3792
3793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795 inttypes.h stdint.h unistd.h
3796 do :
3797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3799 "
3800 eval as_val=\$$as_ac_Header
3801 if test "x$as_val" = x""yes; then :
3802 cat >>confdefs.h <<_ACEOF
3803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811
3812 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3813 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3814 MINIX=yes
3815 else
3816 MINIX=
3817 fi
3818
3819
3820 if test "$MINIX" = yes; then
3821
3822 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3823
3824
3825 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3826
3827
3828 $as_echo "#define _MINIX 1" >>confdefs.h
3829
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3835 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840
3841 # define __EXTENSIONS__ 1
3842 $ac_includes_default
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_safe_to_define___extensions__=yes
3853 else
3854 ac_cv_safe_to_define___extensions__=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3859 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3860 test $ac_cv_safe_to_define___extensions__ = yes &&
3861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3862
3863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3864
3865 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3866
3867 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3868
3869 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3870
3871
3872
3873 libtool_VERSION=1:0:0
3874
3875
3876 # 1.11.1: Require that version of automake.
3877 # foreign: Don't require README, INSTALL, NEWS, etc.
3878 # no-define: Don't define PACKAGE and VERSION.
3879 # no-dependencies: Don't generate automatic dependencies.
3880 # (because it breaks when using bootstrap-lean, since some of the
3881 # headers are gone at "make install" time).
3882 # -Wall: Issue all automake warnings.
3883 # -Wno-portability: Don't warn about constructs supported by GNU make.
3884 # (because GCC requires GNU make anyhow).
3885 am__api_version='1.11'
3886
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 # Reject install programs that cannot install multiple files.
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3903 if test -z "$INSTALL"; then
3904 if test "${ac_cv_path_install+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 # Account for people who put trailing slashes in PATH elements.
3913 case $as_dir/ in #((
3914 ./ | .// | /[cC]/* | \
3915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3916 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3917 /usr/ucb/* ) ;;
3918 *)
3919 # OSF1 and SCO ODT 3.0 have their own names for install.
3920 # Don't use installbsd from OSF since it installs stuff as root
3921 # by default.
3922 for ac_prog in ginstall scoinst install; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3925 if test $ac_prog = install &&
3926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # AIX install. It has an incompatible calling convention.
3928 :
3929 elif test $ac_prog = install &&
3930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # program-specific install script used by HP pwplus--don't use.
3932 :
3933 else
3934 rm -rf conftest.one conftest.two conftest.dir
3935 echo one > conftest.one
3936 echo two > conftest.two
3937 mkdir conftest.dir
3938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3939 test -s conftest.one && test -s conftest.two &&
3940 test -s conftest.dir/conftest.one &&
3941 test -s conftest.dir/conftest.two
3942 then
3943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3944 break 3
3945 fi
3946 fi
3947 fi
3948 done
3949 done
3950 ;;
3951 esac
3952
3953 done
3954 IFS=$as_save_IFS
3955
3956 rm -rf conftest.one conftest.two conftest.dir
3957
3958 fi
3959 if test "${ac_cv_path_install+set}" = set; then
3960 INSTALL=$ac_cv_path_install
3961 else
3962 # As a last resort, use the slow shell script. Don't cache a
3963 # value for INSTALL within a source directory, because that will
3964 # break other packages using the cache if that directory is
3965 # removed, or if the value is a relative name.
3966 INSTALL=$ac_install_sh
3967 fi
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3970 $as_echo "$INSTALL" >&6; }
3971
3972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3973 # It thinks the first close brace ends the variable substitution.
3974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3975
3976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3977
3978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3981 $as_echo_n "checking whether build environment is sane... " >&6; }
3982 # Just in case
3983 sleep 1
3984 echo timestamp > conftest.file
3985 # Reject unsafe characters in $srcdir or the absolute working directory
3986 # name. Accept space and tab only in the latter.
3987 am_lf='
3988 '
3989 case `pwd` in
3990 *[\\\"\#\$\&\'\`$am_lf]*)
3991 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3992 esac
3993 case $srcdir in
3994 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3995 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3996 esac
3997
3998 # Do `set' in a subshell so we don't clobber the current shell's
3999 # arguments. Must try -L first in case configure is actually a
4000 # symlink; some systems play weird games with the mod time of symlinks
4001 # (eg FreeBSD returns the mod time of the symlink's containing
4002 # directory).
4003 if (
4004 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4005 if test "$*" = "X"; then
4006 # -L didn't work.
4007 set X `ls -t "$srcdir/configure" conftest.file`
4008 fi
4009 rm -f conftest.file
4010 if test "$*" != "X $srcdir/configure conftest.file" \
4011 && test "$*" != "X conftest.file $srcdir/configure"; then
4012
4013 # If neither matched, then we have a broken ls. This can happen
4014 # if, for instance, CONFIG_SHELL is bash and it inherits a
4015 # broken ls alias from the environment. This has actually
4016 # happened. Such a system could not be considered "sane".
4017 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4018 alias in your environment" "$LINENO" 5
4019 fi
4020
4021 test "$2" = conftest.file
4022 )
4023 then
4024 # Ok.
4025 :
4026 else
4027 as_fn_error "newly created file is older than distributed files!
4028 Check your system clock" "$LINENO" 5
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4032 test "$program_prefix" != NONE &&
4033 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4034 # Use a double $ so make ignores it.
4035 test "$program_suffix" != NONE &&
4036 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4037 # Double any \ or $.
4038 # By default was `s,x,x', remove it if useless.
4039 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4040 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4041
4042 # expand $ac_aux_dir to an absolute path
4043 am_aux_dir=`cd $ac_aux_dir && pwd`
4044
4045 if test x"${MISSING+set}" != xset; then
4046 case $am_aux_dir in
4047 *\ * | *\ *)
4048 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4049 *)
4050 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4051 esac
4052 fi
4053 # Use eval to expand $SHELL
4054 if eval "$MISSING --run true"; then
4055 am_missing_run="$MISSING --run "
4056 else
4057 am_missing_run=
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4059 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4060 fi
4061
4062 if test x"${install_sh}" != xset; then
4063 case $am_aux_dir in
4064 *\ * | *\ *)
4065 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4066 *)
4067 install_sh="\${SHELL} $am_aux_dir/install-sh"
4068 esac
4069 fi
4070
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'. However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$STRIP"; then
4085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 fi
4115 if test -z "$ac_cv_prog_STRIP"; then
4116 ac_ct_STRIP=$STRIP
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153 if test "x$ac_ct_STRIP" = x; then
4154 STRIP=":"
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 STRIP=$ac_ct_STRIP
4163 fi
4164 else
4165 STRIP="$ac_cv_prog_STRIP"
4166 fi
4167
4168 fi
4169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4172 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4173 if test -z "$MKDIR_P"; then
4174 if test "${ac_cv_path_mkdir+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in mkdir gmkdir; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4185 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4186 'mkdir (GNU coreutils) '* | \
4187 'mkdir (coreutils) '* | \
4188 'mkdir (fileutils) '4.1*)
4189 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4190 break 3;;
4191 esac
4192 done
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198
4199 if test "${ac_cv_path_mkdir+set}" = set; then
4200 MKDIR_P="$ac_cv_path_mkdir -p"
4201 else
4202 # As a last resort, use the slow shell script. Don't cache a
4203 # value for MKDIR_P within a source directory, because that will
4204 # break other packages using the cache if that directory is
4205 # removed, or if the value is a relative name.
4206 test -d ./--version && rmdir ./--version
4207 MKDIR_P="$ac_install_sh -d"
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4211 $as_echo "$MKDIR_P" >&6; }
4212
4213 mkdir_p="$MKDIR_P"
4214 case $mkdir_p in
4215 [\\/$]* | ?:[\\/]*) ;;
4216 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4217 esac
4218
4219 for ac_prog in gawk mawk nawk awk
4220 do
4221 # Extract the first word of "$ac_prog", so it can be a program name with args.
4222 set dummy $ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if test "${ac_cv_prog_AWK+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$AWK"; then
4229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_AWK="$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 AWK=$ac_cv_prog_AWK
4249 if test -n "$AWK"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4251 $as_echo "$AWK" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258 test -n "$AWK" && break
4259 done
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4263 set x ${MAKE-make}
4264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4265 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 cat >conftest.make <<\_ACEOF
4269 SHELL = /bin/sh
4270 all:
4271 @echo '@@@%%%=$(MAKE)=@@@%%%'
4272 _ACEOF
4273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4275 *@@@%%%=?*=@@@%%%*)
4276 eval ac_cv_prog_make_${ac_make}_set=yes;;
4277 *)
4278 eval ac_cv_prog_make_${ac_make}_set=no;;
4279 esac
4280 rm -f conftest.make
4281 fi
4282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4284 $as_echo "yes" >&6; }
4285 SET_MAKE=
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 SET_MAKE="MAKE=${MAKE-make}"
4290 fi
4291
4292 rm -rf .tst 2>/dev/null
4293 mkdir .tst 2>/dev/null
4294 if test -d .tst; then
4295 am__leading_dot=.
4296 else
4297 am__leading_dot=_
4298 fi
4299 rmdir .tst 2>/dev/null
4300
4301 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4302 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4303 # is not polluted with repeated "-I."
4304 am__isrc=' -I$(srcdir)'
4305 # test to see if srcdir already configured
4306 if test -f $srcdir/config.status; then
4307 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4308 fi
4309 fi
4310
4311 # test whether we have cygpath
4312 if test -z "$CYGPATH_W"; then
4313 if (cygpath --version) >/dev/null 2>/dev/null; then
4314 CYGPATH_W='cygpath -w'
4315 else
4316 CYGPATH_W=echo
4317 fi
4318 fi
4319
4320
4321 # Define the identity of the package.
4322 PACKAGE='libbacktrace'
4323 VERSION='version-unused'
4324
4325
4326 # Some tools Automake needs.
4327
4328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4329
4330
4331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4332
4333
4334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4335
4336
4337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4338
4339
4340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4341
4342 # We need awk for the "check" target. The system "awk" is bad on
4343 # some platforms.
4344 # Always define AMTAR for backward compatibility. Yes, it's still used
4345 # in the wild :-( We should find a proper way to deprecate it ...
4346 AMTAR='$${TAR-tar}'
4347
4348 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4349
4350
4351
4352
4353
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4357 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4358 # Check whether --enable-maintainer-mode was given.
4359 if test "${enable_maintainer_mode+set}" = set; then :
4360 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4361 else
4362 USE_MAINTAINER_MODE=no
4363 fi
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4366 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4367 if test $USE_MAINTAINER_MODE = yes; then
4368 MAINTAINER_MODE_TRUE=
4369 MAINTAINER_MODE_FALSE='#'
4370 else
4371 MAINTAINER_MODE_TRUE='#'
4372 MAINTAINER_MODE_FALSE=
4373 fi
4374
4375 MAINT=$MAINTAINER_MODE_TRUE
4376
4377
4378
4379
4380 # Check whether --with-target-subdir was given.
4381 if test "${with_target_subdir+set}" = set; then :
4382 withval=$with_target_subdir;
4383 fi
4384
4385
4386 # We must force CC to /not/ be precious variables; otherwise
4387 # the wrong, non-multilib-adjusted value will be used in multilibs.
4388 # As a side effect, we have to subst CFLAGS ourselves.
4389
4390
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 if test -n "$ac_tool_prefix"; then
4397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 $as_echo "$CC" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 fi
4435 if test -z "$ac_cv_prog_CC"; then
4436 ac_ct_CC=$CC
4437 # Extract the first word of "gcc", so it can be a program name with args.
4438 set dummy gcc; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CC="gcc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473 if test "x$ac_ct_CC" = x; then
4474 CC=""
4475 else
4476 case $cross_compiling:$ac_tool_warned in
4477 yes:)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482 CC=$ac_ct_CC
4483 fi
4484 else
4485 CC="$ac_cv_prog_CC"
4486 fi
4487
4488 if test -z "$CC"; then
4489 if test -n "$ac_tool_prefix"; then
4490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4491 set dummy ${ac_tool_prefix}cc; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if test "${ac_cv_prog_CC+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$CC"; then
4498 ac_cv_prog_CC="$CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CC="${ac_tool_prefix}cc"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 CC=$ac_cv_prog_CC
4518 if test -n "$CC"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520 $as_echo "$CC" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526
4527 fi
4528 fi
4529 if test -z "$CC"; then
4530 # Extract the first word of "cc", so it can be a program name with args.
4531 set dummy cc; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 else
4540 ac_prog_rejected=no
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4549 ac_prog_rejected=yes
4550 continue
4551 fi
4552 ac_cv_prog_CC="cc"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 if test $ac_prog_rejected = yes; then
4561 # We found a bogon in the path, so make sure we never use it.
4562 set dummy $ac_cv_prog_CC
4563 shift
4564 if test $# != 0; then
4565 # We chose a different compiler from the bogus one.
4566 # However, it has the same basename, so the bogon will be chosen
4567 # first if we set CC to just the basename; use the full file name.
4568 shift
4569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4570 fi
4571 fi
4572 fi
4573 fi
4574 CC=$ac_cv_prog_CC
4575 if test -n "$CC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4577 $as_echo "$CC" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 fi
4585 if test -z "$CC"; then
4586 if test -n "$ac_tool_prefix"; then
4587 for ac_prog in cl.exe
4588 do
4589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_CC+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 CC=$ac_cv_prog_CC
4617 if test -n "$CC"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4619 $as_echo "$CC" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626 test -n "$CC" && break
4627 done
4628 fi
4629 if test -z "$CC"; then
4630 ac_ct_CC=$CC
4631 for ac_prog in cl.exe
4632 do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_CC"; then
4641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_ac_ct_CC="$ac_prog"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4661 if test -n "$ac_ct_CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4663 $as_echo "$ac_ct_CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670 test -n "$ac_ct_CC" && break
4671 done
4672
4673 if test "x$ac_ct_CC" = x; then
4674 CC=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 CC=$ac_ct_CC
4683 fi
4684 fi
4685
4686 fi
4687
4688
4689 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error "no acceptable C compiler found in \$PATH
4692 See \`config.log' for more details." "$LINENO" 5; }
4693
4694 # Provide some information about the compiler.
4695 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4696 set X $ac_compile
4697 ac_compiler=$2
4698 for ac_option in --version -v -V -qversion; do
4699 { { ac_try="$ac_compiler $ac_option >&5"
4700 case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4703 esac
4704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4705 $as_echo "$ac_try_echo"; } >&5
4706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4707 ac_status=$?
4708 if test -s conftest.err; then
4709 sed '10a\
4710 ... rest of stderr output deleted ...
4711 10q' conftest.err >conftest.er1
4712 cat conftest.er1 >&5
4713 rm -f conftest.er1 conftest.err
4714 fi
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 done
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4720 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4721 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main ()
4729 {
4730 #ifndef __GNUC__
4731 choke me
4732 #endif
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_compiler_gnu=yes
4740 else
4741 ac_compiler_gnu=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4748 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4749 if test $ac_compiler_gnu = yes; then
4750 GCC=yes
4751 else
4752 GCC=
4753 fi
4754 ac_test_CFLAGS=${CFLAGS+set}
4755 ac_save_CFLAGS=$CFLAGS
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4757 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4758 if test "${ac_cv_prog_cc_g+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 ac_save_c_werror_flag=$ac_c_werror_flag
4762 ac_c_werror_flag=yes
4763 ac_cv_prog_cc_g=no
4764 CFLAGS="-g"
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_g=yes
4778 else
4779 CFLAGS=""
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782
4783 int
4784 main ()
4785 {
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792
4793 else
4794 ac_c_werror_flag=$ac_save_c_werror_flag
4795 CFLAGS="-g"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 ac_cv_prog_cc_g=yes
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ac_c_werror_flag=$ac_save_c_werror_flag
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4818 $as_echo "$ac_cv_prog_cc_g" >&6; }
4819 if test "$ac_test_CFLAGS" = set; then
4820 CFLAGS=$ac_save_CFLAGS
4821 elif test $ac_cv_prog_cc_g = yes; then
4822 if test "$GCC" = yes; then
4823 CFLAGS="-g -O2"
4824 else
4825 CFLAGS="-g"
4826 fi
4827 else
4828 if test "$GCC" = yes; then
4829 CFLAGS="-O2"
4830 else
4831 CFLAGS=
4832 fi
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4836 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 ac_cv_prog_cc_c89=no
4840 ac_save_CC=$CC
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <stdarg.h>
4844 #include <stdio.h>
4845 #include <sys/types.h>
4846 #include <sys/stat.h>
4847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4848 struct buf { int x; };
4849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4850 static char *e (p, i)
4851 char **p;
4852 int i;
4853 {
4854 return p[i];
4855 }
4856 static char *f (char * (*g) (char **, int), char **p, ...)
4857 {
4858 char *s;
4859 va_list v;
4860 va_start (v,p);
4861 s = g (p, va_arg (v,int));
4862 va_end (v);
4863 return s;
4864 }
4865
4866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4867 function prototypes and stuff, but not '\xHH' hex character constants.
4868 These don't provoke an error unfortunately, instead are silently treated
4869 as 'x'. The following induces an error, until -std is added to get
4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4871 array size at least. It's necessary to write '\x00'==0 to get something
4872 that's true only with -std. */
4873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4874
4875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4876 inside strings and character constants. */
4877 #define FOO(x) 'x'
4878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4879
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884 int argc;
4885 char **argv;
4886 int
4887 main ()
4888 {
4889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4896 do
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_prog_cc_c89=$ac_arg
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4903 done
4904 rm -f conftest.$ac_ext
4905 CC=$ac_save_CC
4906
4907 fi
4908 # AC_CACHE_VAL
4909 case "x$ac_cv_prog_cc_c89" in
4910 x)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4912 $as_echo "none needed" >&6; } ;;
4913 xno)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4915 $as_echo "unsupported" >&6; } ;;
4916 *)
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4920 esac
4921 if test "x$ac_cv_prog_cc_c89" != xno; then :
4922
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932
4933
4934
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$RANLIB"; then
4944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 RANLIB=$ac_cv_prog_RANLIB
4964 if test -n "$RANLIB"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4966 $as_echo "$RANLIB" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972
4973 fi
4974 if test -z "$ac_cv_prog_RANLIB"; then
4975 ac_ct_RANLIB=$RANLIB
4976 # Extract the first word of "ranlib", so it can be a program name with args.
4977 set dummy ranlib; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$ac_ct_RANLIB"; then
4984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_ac_ct_RANLIB="ranlib"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5004 if test -n "$ac_ct_RANLIB"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5006 $as_echo "$ac_ct_RANLIB" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012 if test "x$ac_ct_RANLIB" = x; then
5013 RANLIB=":"
5014 else
5015 case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5020 esac
5021 RANLIB=$ac_ct_RANLIB
5022 fi
5023 else
5024 RANLIB="$ac_cv_prog_RANLIB"
5025 fi
5026
5027
5028 for ac_prog in gawk mawk nawk awk
5029 do
5030 # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_AWK+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$AWK"; then
5038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_AWK="$ac_prog"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 AWK=$ac_cv_prog_AWK
5058 if test -n "$AWK"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5060 $as_echo "$AWK" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 test -n "$AWK" && break
5068 done
5069
5070 case "$AWK" in
5071 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5072 esac
5073
5074 case `pwd` in
5075 *\ * | *\ *)
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5077 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5078 esac
5079
5080
5081
5082 macro_version='2.2.7a'
5083 macro_revision='1.3134'
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 ltmain="$ac_aux_dir/ltmain.sh"
5098
5099 # Backslashify metacharacters that are still active within
5100 # double-quoted strings.
5101 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5102
5103 # Same as above, but do not quote variable references.
5104 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5105
5106 # Sed substitution to delay expansion of an escaped shell variable in a
5107 # double_quote_subst'ed string.
5108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5109
5110 # Sed substitution to delay expansion of an escaped single quote.
5111 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5112
5113 # Sed substitution to avoid accidental globbing in evaled expressions
5114 no_glob_subst='s/\*/\\\*/g'
5115
5116 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5121 $as_echo_n "checking how to print strings... " >&6; }
5122 # Test print first, because it will be a builtin if present.
5123 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5124 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5125 ECHO='print -r --'
5126 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5127 ECHO='printf %s\n'
5128 else
5129 # Use this function as a fallback that always works.
5130 func_fallback_echo ()
5131 {
5132 eval 'cat <<_LTECHO_EOF
5133 $1
5134 _LTECHO_EOF'
5135 }
5136 ECHO='func_fallback_echo'
5137 fi
5138
5139 # func_echo_all arg...
5140 # Invoke $ECHO with all args, space-separated.
5141 func_echo_all ()
5142 {
5143 $ECHO ""
5144 }
5145
5146 case "$ECHO" in
5147 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5148 $as_echo "printf" >&6; } ;;
5149 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5150 $as_echo "print -r" >&6; } ;;
5151 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5152 $as_echo "cat" >&6; } ;;
5153 esac
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5170 if test "${ac_cv_path_SED+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5174 for ac_i in 1 2 3 4 5 6 7; do
5175 ac_script="$ac_script$as_nl$ac_script"
5176 done
5177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5178 { ac_script=; unset ac_script;}
5179 if test -z "$SED"; then
5180 ac_path_SED_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in sed gsed; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5191 # Check for GNU ac_path_SED and select it if it is found.
5192 # Check for GNU $ac_path_SED
5193 case `"$ac_path_SED" --version 2>&1` in
5194 *GNU*)
5195 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5196 *)
5197 ac_count=0
5198 $as_echo_n 0123456789 >"conftest.in"
5199 while :
5200 do
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo '' >> "conftest.nl"
5205 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_SED_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_SED="$ac_path_SED"
5211 ac_path_SED_max=$ac_count
5212 fi
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5215 done
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219 $ac_path_SED_found && break 3
5220 done
5221 done
5222 done
5223 IFS=$as_save_IFS
5224 if test -z "$ac_cv_path_SED"; then
5225 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5226 fi
5227 else
5228 ac_cv_path_SED=$SED
5229 fi
5230
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5233 $as_echo "$ac_cv_path_SED" >&6; }
5234 SED="$ac_cv_path_SED"
5235 rm -f conftest.sed
5236
5237 test -z "$SED" && SED=sed
5238 Xsed="$SED -e 1s/^X//"
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5251 $as_echo_n "checking for fgrep... " >&6; }
5252 if test "${ac_cv_path_FGREP+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5256 then ac_cv_path_FGREP="$GREP -F"
5257 else
5258 if test -z "$FGREP"; then
5259 ac_path_FGREP_found=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_prog in fgrep; do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5270 # Check for GNU ac_path_FGREP and select it if it is found.
5271 # Check for GNU $ac_path_FGREP
5272 case `"$ac_path_FGREP" --version 2>&1` in
5273 *GNU*)
5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5275 *)
5276 ac_count=0
5277 $as_echo_n 0123456789 >"conftest.in"
5278 while :
5279 do
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'FGREP' >> "conftest.nl"
5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 as_fn_arith $ac_count + 1 && ac_count=$as_val
5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_FGREP="$ac_path_FGREP"
5290 ac_path_FGREP_max=$ac_count
5291 fi
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 esac
5297
5298 $ac_path_FGREP_found && break 3
5299 done
5300 done
5301 done
5302 IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_FGREP"; then
5304 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 fi
5306 else
5307 ac_cv_path_FGREP=$FGREP
5308 fi
5309
5310 fi
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5313 $as_echo "$ac_cv_path_FGREP" >&6; }
5314 FGREP="$ac_cv_path_FGREP"
5315
5316
5317 test -z "$GREP" && GREP=grep
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 # Check whether --with-gnu-ld was given.
5338 if test "${with_gnu_ld+set}" = set; then :
5339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5340 else
5341 with_gnu_ld=no
5342 fi
5343
5344 ac_prog=ld
5345 if test "$GCC" = yes; then
5346 # Check if gcc -print-prog-name=ld gives a path.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5348 $as_echo_n "checking for ld used by $CC... " >&6; }
5349 case $host in
5350 *-*-mingw*)
5351 # gcc leaves a trailing carriage return which upsets mingw
5352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5353 *)
5354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5355 esac
5356 case $ac_prog in
5357 # Accept absolute paths.
5358 [\\/]* | ?:[\\/]*)
5359 re_direlt='/[^/][^/]*/\.\./'
5360 # Canonicalize the pathname of ld
5361 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5362 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5363 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5364 done
5365 test -z "$LD" && LD="$ac_prog"
5366 ;;
5367 "")
5368 # If it fails, then pretend we aren't using GCC.
5369 ac_prog=ld
5370 ;;
5371 *)
5372 # If it is relative, then search for the first ld in PATH.
5373 with_gnu_ld=unknown
5374 ;;
5375 esac
5376 elif test "$with_gnu_ld" = yes; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5378 $as_echo_n "checking for GNU ld... " >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5381 $as_echo_n "checking for non-GNU ld... " >&6; }
5382 fi
5383 if test "${lt_cv_path_LD+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -z "$LD"; then
5387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5388 for ac_dir in $PATH; do
5389 IFS="$lt_save_ifs"
5390 test -z "$ac_dir" && ac_dir=.
5391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5392 lt_cv_path_LD="$ac_dir/$ac_prog"
5393 # Check to see if the program is GNU ld. I'd rather use --version,
5394 # but apparently some variants of GNU ld only accept -v.
5395 # Break only if it was the GNU/non-GNU ld that we prefer.
5396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5397 *GNU* | *'with BFD'*)
5398 test "$with_gnu_ld" != no && break
5399 ;;
5400 *)
5401 test "$with_gnu_ld" != yes && break
5402 ;;
5403 esac
5404 fi
5405 done
5406 IFS="$lt_save_ifs"
5407 else
5408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5409 fi
5410 fi
5411
5412 LD="$lt_cv_path_LD"
5413 if test -n "$LD"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5415 $as_echo "$LD" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5422 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5423 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5427 case `$LD -v 2>&1 </dev/null` in
5428 *GNU* | *'with BFD'*)
5429 lt_cv_prog_gnu_ld=yes
5430 ;;
5431 *)
5432 lt_cv_prog_gnu_ld=no
5433 ;;
5434 esac
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5437 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5438 with_gnu_ld=$lt_cv_prog_gnu_ld
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5449 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5450 if test "${lt_cv_path_NM+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$NM"; then
5454 # Let the user override the test.
5455 lt_cv_path_NM="$NM"
5456 else
5457 lt_nm_to_check="${ac_tool_prefix}nm"
5458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5459 lt_nm_to_check="$lt_nm_to_check nm"
5460 fi
5461 for lt_tmp_nm in $lt_nm_to_check; do
5462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5464 IFS="$lt_save_ifs"
5465 test -z "$ac_dir" && ac_dir=.
5466 tmp_nm="$ac_dir/$lt_tmp_nm"
5467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5468 # Check to see if the nm accepts a BSD-compat flag.
5469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5470 # nm: unknown option "B" ignored
5471 # Tru64's nm complains that /dev/null is an invalid object file
5472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5473 */dev/null* | *'Invalid file or object type'*)
5474 lt_cv_path_NM="$tmp_nm -B"
5475 break
5476 ;;
5477 *)
5478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5479 */dev/null*)
5480 lt_cv_path_NM="$tmp_nm -p"
5481 break
5482 ;;
5483 *)
5484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5485 continue # so that we can try to find one that supports BSD flags
5486 ;;
5487 esac
5488 ;;
5489 esac
5490 fi
5491 done
5492 IFS="$lt_save_ifs"
5493 done
5494 : ${lt_cv_path_NM=no}
5495 fi
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5498 $as_echo "$lt_cv_path_NM" >&6; }
5499 if test "$lt_cv_path_NM" != "no"; then
5500 NM="$lt_cv_path_NM"
5501 else
5502 # Didn't find any BSD compatible name lister, look for dumpbin.
5503 if test -n "$DUMPBIN"; then :
5504 # Let the user override the test.
5505 else
5506 if test -n "$ac_tool_prefix"; then
5507 for ac_prog in dumpbin "link -dump"
5508 do
5509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$DUMPBIN"; then
5517 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 DUMPBIN=$ac_cv_prog_DUMPBIN
5537 if test -n "$DUMPBIN"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5539 $as_echo "$DUMPBIN" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 test -n "$DUMPBIN" && break
5547 done
5548 fi
5549 if test -z "$DUMPBIN"; then
5550 ac_ct_DUMPBIN=$DUMPBIN
5551 for ac_prog in dumpbin "link -dump"
5552 do
5553 # Extract the first word of "$ac_prog", so it can be a program name with args.
5554 set dummy $ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_DUMPBIN"; then
5561 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5581 if test -n "$ac_ct_DUMPBIN"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5583 $as_echo "$ac_ct_DUMPBIN" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 test -n "$ac_ct_DUMPBIN" && break
5591 done
5592
5593 if test "x$ac_ct_DUMPBIN" = x; then
5594 DUMPBIN=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 DUMPBIN=$ac_ct_DUMPBIN
5603 fi
5604 fi
5605
5606 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5607 *COFF*)
5608 DUMPBIN="$DUMPBIN -symbols"
5609 ;;
5610 *)
5611 DUMPBIN=:
5612 ;;
5613 esac
5614 fi
5615
5616 if test "$DUMPBIN" != ":"; then
5617 NM="$DUMPBIN"
5618 fi
5619 fi
5620 test -z "$NM" && NM=nm
5621
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5628 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5629 if test "${lt_cv_nm_interface+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 lt_cv_nm_interface="BSD nm"
5633 echo "int some_variable = 0;" > conftest.$ac_ext
5634 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5635 (eval "$ac_compile" 2>conftest.err)
5636 cat conftest.err >&5
5637 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5638 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5639 cat conftest.err >&5
5640 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5641 cat conftest.out >&5
5642 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5643 lt_cv_nm_interface="MS dumpbin"
5644 fi
5645 rm -f conftest*
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5648 $as_echo "$lt_cv_nm_interface" >&6; }
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5651 $as_echo_n "checking whether ln -s works... " >&6; }
5652 LN_S=$as_ln_s
5653 if test "$LN_S" = "ln -s"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5658 $as_echo "no, using $LN_S" >&6; }
5659 fi
5660
5661 # find the maximum length of command line arguments
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5663 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5664 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 i=0
5668 teststring="ABCD"
5669
5670 case $build_os in
5671 msdosdjgpp*)
5672 # On DJGPP, this test can blow up pretty badly due to problems in libc
5673 # (any single argument exceeding 2000 bytes causes a buffer overrun
5674 # during glob expansion). Even if it were fixed, the result of this
5675 # check would be larger than it should be.
5676 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5677 ;;
5678
5679 gnu*)
5680 # Under GNU Hurd, this test is not required because there is
5681 # no limit to the length of command line arguments.
5682 # Libtool will interpret -1 as no limit whatsoever
5683 lt_cv_sys_max_cmd_len=-1;
5684 ;;
5685
5686 cygwin* | mingw* | cegcc*)
5687 # On Win9x/ME, this test blows up -- it succeeds, but takes
5688 # about 5 minutes as the teststring grows exponentially.
5689 # Worse, since 9x/ME are not pre-emptively multitasking,
5690 # you end up with a "frozen" computer, even though with patience
5691 # the test eventually succeeds (with a max line length of 256k).
5692 # Instead, let's just punt: use the minimum linelength reported by
5693 # all of the supported platforms: 8192 (on NT/2K/XP).
5694 lt_cv_sys_max_cmd_len=8192;
5695 ;;
5696
5697 mint*)
5698 # On MiNT this can take a long time and run out of memory.
5699 lt_cv_sys_max_cmd_len=8192;
5700 ;;
5701
5702 amigaos*)
5703 # On AmigaOS with pdksh, this test takes hours, literally.
5704 # So we just punt and use a minimum line length of 8192.
5705 lt_cv_sys_max_cmd_len=8192;
5706 ;;
5707
5708 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5709 # This has been around since 386BSD, at least. Likely further.
5710 if test -x /sbin/sysctl; then
5711 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5712 elif test -x /usr/sbin/sysctl; then
5713 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5714 else
5715 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5716 fi
5717 # And add a safety zone
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 ;;
5721
5722 interix*)
5723 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5724 lt_cv_sys_max_cmd_len=196608
5725 ;;
5726
5727 osf*)
5728 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5729 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5730 # nice to cause kernel panics so lets avoid the loop below.
5731 # First set a reasonable default.
5732 lt_cv_sys_max_cmd_len=16384
5733 #
5734 if test -x /sbin/sysconfig; then
5735 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5736 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5737 esac
5738 fi
5739 ;;
5740 sco3.2v5*)
5741 lt_cv_sys_max_cmd_len=102400
5742 ;;
5743 sysv5* | sco5v6* | sysv4.2uw2*)
5744 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5745 if test -n "$kargmax"; then
5746 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5747 else
5748 lt_cv_sys_max_cmd_len=32768
5749 fi
5750 ;;
5751 *)
5752 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5753 if test -n "$lt_cv_sys_max_cmd_len"; then
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5756 else
5757 # Make teststring a little bigger before we do anything with it.
5758 # a 1K string should be a reasonable start.
5759 for i in 1 2 3 4 5 6 7 8 ; do
5760 teststring=$teststring$teststring
5761 done
5762 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5763 # If test is not a shell built-in, we'll probably end up computing a
5764 # maximum length that is only half of the actual maximum length, but
5765 # we can't tell.
5766 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5767 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5768 test $i != 17 # 1/2 MB should be enough
5769 do
5770 i=`expr $i + 1`
5771 teststring=$teststring$teststring
5772 done
5773 # Only check the string length outside the loop.
5774 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5775 teststring=
5776 # Add a significant safety factor because C++ compilers can tack on
5777 # massive amounts of additional arguments before passing them to the
5778 # linker. It appears as though 1/2 is a usable value.
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5780 fi
5781 ;;
5782 esac
5783
5784 fi
5785
5786 if test -n $lt_cv_sys_max_cmd_len ; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5788 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5791 $as_echo "none" >&6; }
5792 fi
5793 max_cmd_len=$lt_cv_sys_max_cmd_len
5794
5795
5796
5797
5798
5799
5800 : ${CP="cp -f"}
5801 : ${MV="mv -f"}
5802 : ${RM="rm -f"}
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5805 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5806 # Try some XSI features
5807 xsi_shell=no
5808 ( _lt_dummy="a/b/c"
5809 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5810 = c,a/b,, \
5811 && eval 'test $(( 1 + 1 )) -eq 2 \
5812 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5813 && xsi_shell=yes
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5815 $as_echo "$xsi_shell" >&6; }
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5819 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5820 lt_shell_append=no
5821 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5822 >/dev/null 2>&1 \
5823 && lt_shell_append=yes
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5825 $as_echo "$lt_shell_append" >&6; }
5826
5827
5828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5829 lt_unset=unset
5830 else
5831 lt_unset=false
5832 fi
5833
5834
5835
5836
5837
5838 # test EBCDIC or ASCII
5839 case `echo X|tr X '\101'` in
5840 A) # ASCII based system
5841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5842 lt_SP2NL='tr \040 \012'
5843 lt_NL2SP='tr \015\012 \040\040'
5844 ;;
5845 *) # EBCDIC based system
5846 lt_SP2NL='tr \100 \n'
5847 lt_NL2SP='tr \r\n \100\100'
5848 ;;
5849 esac
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5861 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 lt_cv_ld_reload_flag='-r'
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5868 reload_flag=$lt_cv_ld_reload_flag
5869 case $reload_flag in
5870 "" | " "*) ;;
5871 *) reload_flag=" $reload_flag" ;;
5872 esac
5873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5874 case $host_os in
5875 darwin*)
5876 if test "$GCC" = yes; then
5877 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5878 else
5879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5880 fi
5881 ;;
5882 esac
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -n "$OBJDUMP"; then
5901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 OBJDUMP=$ac_cv_prog_OBJDUMP
5921 if test -n "$OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5923 $as_echo "$OBJDUMP" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930 fi
5931 if test -z "$ac_cv_prog_OBJDUMP"; then
5932 ac_ct_OBJDUMP=$OBJDUMP
5933 # Extract the first word of "objdump", so it can be a program name with args.
5934 set dummy objdump; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5961 if test -n "$ac_ct_OBJDUMP"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5963 $as_echo "$ac_ct_OBJDUMP" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969 if test "x$ac_ct_OBJDUMP" = x; then
5970 OBJDUMP="false"
5971 else
5972 case $cross_compiling:$ac_tool_warned in
5973 yes:)
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978 OBJDUMP=$ac_ct_OBJDUMP
5979 fi
5980 else
5981 OBJDUMP="$ac_cv_prog_OBJDUMP"
5982 fi
5983
5984 test -z "$OBJDUMP" && OBJDUMP=objdump
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5996 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 lt_cv_file_magic_cmd='$MAGIC_CMD'
6000 lt_cv_file_magic_test_file=
6001 lt_cv_deplibs_check_method='unknown'
6002 # Need to set the preceding variable on all platforms that support
6003 # interlibrary dependencies.
6004 # 'none' -- dependencies not supported.
6005 # `unknown' -- same as none, but documents that we really don't know.
6006 # 'pass_all' -- all dependencies passed with no checks.
6007 # 'test_compile' -- check by making test program.
6008 # 'file_magic [[regex]]' -- check by looking for files in library path
6009 # which responds to the $file_magic_cmd with a given extended regex.
6010 # If you have `file' or equivalent on your system and you're not sure
6011 # whether `pass_all' will *always* work, you probably want this one.
6012
6013 case $host_os in
6014 aix[4-9]*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 beos*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 bsdi[45]*)
6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6024 lt_cv_file_magic_cmd='/usr/bin/file -L'
6025 lt_cv_file_magic_test_file=/shlib/libc.so
6026 ;;
6027
6028 cygwin*)
6029 # func_win32_libid is a shell function defined in ltmain.sh
6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6031 lt_cv_file_magic_cmd='func_win32_libid'
6032 ;;
6033
6034 mingw* | pw32*)
6035 # Base MSYS/MinGW do not provide the 'file' command needed by
6036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6037 # unless we find 'file', for example because we are cross-compiling.
6038 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6039 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041 lt_cv_file_magic_cmd='func_win32_libid'
6042 else
6043 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 fi
6046 ;;
6047
6048 cegcc*)
6049 # use the weaker test based on 'objdump'. See mingw*.
6050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051 lt_cv_file_magic_cmd='$OBJDUMP -f'
6052 ;;
6053
6054 darwin* | rhapsody*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 freebsd* | dragonfly*)
6059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060 case $host_cpu in
6061 i*86 )
6062 # Not sure whether the presence of OpenBSD here was a mistake.
6063 # Let's accept both of them until this is cleared up.
6064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067 ;;
6068 esac
6069 else
6070 lt_cv_deplibs_check_method=pass_all
6071 fi
6072 ;;
6073
6074 gnu*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 haiku*)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081
6082 hpux10.20* | hpux11*)
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 case $host_cpu in
6085 ia64*)
6086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6087 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6088 ;;
6089 hppa*64*)
6090 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]'
6091 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6092 ;;
6093 *)
6094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6095 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6096 ;;
6097 esac
6098 ;;
6099
6100 interix[3-9]*)
6101 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6103 ;;
6104
6105 irix5* | irix6* | nonstopux*)
6106 case $LD in
6107 *-32|*"-32 ") libmagic=32-bit;;
6108 *-n32|*"-n32 ") libmagic=N32;;
6109 *-64|*"-64 ") libmagic=64-bit;;
6110 *) libmagic=never-match;;
6111 esac
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115 # This must be Linux ELF.
6116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 netbsd*)
6121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123 else
6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6125 fi
6126 ;;
6127
6128 newos6*)
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6130 lt_cv_file_magic_cmd=/usr/bin/file
6131 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6132 ;;
6133
6134 *nto* | *qnx*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 openbsd*)
6139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6141 else
6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143 fi
6144 ;;
6145
6146 osf3* | osf4* | osf5*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 rdos*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 solaris*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 sysv4 | sysv4.3*)
6163 case $host_vendor in
6164 motorola)
6165 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]'
6166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6167 ;;
6168 ncr)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171 sequent)
6172 lt_cv_file_magic_cmd='/bin/file'
6173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6174 ;;
6175 sni)
6176 lt_cv_file_magic_cmd='/bin/file'
6177 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6178 lt_cv_file_magic_test_file=/lib/libc.so
6179 ;;
6180 siemens)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183 pc)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186 esac
6187 ;;
6188
6189 tpf*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192 esac
6193
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6196 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6197 file_magic_cmd=$lt_cv_file_magic_cmd
6198 deplibs_check_method=$lt_cv_deplibs_check_method
6199 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}ar; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$AR"; then
6221 ac_cv_prog_AR="$AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_AR="${ac_tool_prefix}ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 AR=$ac_cv_prog_AR
6241 if test -n "$AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6243 $as_echo "$AR" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_AR"; then
6252 ac_ct_AR=$AR
6253 # Extract the first word of "ar", so it can be a program name with args.
6254 set dummy ar; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_AR"; then
6261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_AR="ar"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6281 if test -n "$ac_ct_AR"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6283 $as_echo "$ac_ct_AR" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_AR" = x; then
6290 AR="false"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 AR=$ac_ct_AR
6299 fi
6300 else
6301 AR="$ac_cv_prog_AR"
6302 fi
6303
6304 test -z "$AR" && AR=ar
6305 test -z "$AR_FLAGS" && AR_FLAGS=cru
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "$ac_tool_prefix"; then
6318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}strip; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$STRIP"; then
6326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 STRIP=$ac_cv_prog_STRIP
6346 if test -n "$STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6348 $as_echo "$STRIP" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_STRIP"; then
6357 ac_ct_STRIP=$STRIP
6358 # Extract the first word of "strip", so it can be a program name with args.
6359 set dummy strip; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$ac_ct_STRIP"; then
6366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_ac_ct_STRIP="strip"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6386 if test -n "$ac_ct_STRIP"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6388 $as_echo "$ac_ct_STRIP" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_STRIP" = x; then
6395 STRIP=":"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 STRIP=$ac_ct_STRIP
6404 fi
6405 else
6406 STRIP="$ac_cv_prog_STRIP"
6407 fi
6408
6409 test -z "$STRIP" && STRIP=:
6410
6411
6412
6413
6414
6415
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$RANLIB"; then
6425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 RANLIB=$ac_cv_prog_RANLIB
6445 if test -n "$RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6447 $as_echo "$RANLIB" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454 fi
6455 if test -z "$ac_cv_prog_RANLIB"; then
6456 ac_ct_RANLIB=$RANLIB
6457 # Extract the first word of "ranlib", so it can be a program name with args.
6458 set dummy ranlib; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_RANLIB"; then
6465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_RANLIB="ranlib"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6485 if test -n "$ac_ct_RANLIB"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6487 $as_echo "$ac_ct_RANLIB" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493 if test "x$ac_ct_RANLIB" = x; then
6494 RANLIB=":"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 RANLIB=$ac_ct_RANLIB
6503 fi
6504 else
6505 RANLIB="$ac_cv_prog_RANLIB"
6506 fi
6507
6508 test -z "$RANLIB" && RANLIB=:
6509
6510
6511
6512
6513
6514
6515 # Determine commands to create old-style static archives.
6516 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6517 old_postinstall_cmds='chmod 644 $oldlib'
6518 old_postuninstall_cmds=
6519
6520 if test -n "$RANLIB"; then
6521 case $host_os in
6522 openbsd*)
6523 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6524 ;;
6525 *)
6526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6527 ;;
6528 esac
6529 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6530 fi
6531
6532 case $host_os in
6533 darwin*)
6534 lock_old_archive_extraction=yes ;;
6535 *)
6536 lock_old_archive_extraction=no ;;
6537 esac
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
6574
6575
6576
6577 # If no C compiler was specified, use CC.
6578 LTCC=${LTCC-"$CC"}
6579
6580 # If no C compiler flags were specified, use CFLAGS.
6581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6582
6583 # Allow CC to be a program name with arguments.
6584 compiler=$CC
6585
6586
6587 # Check for command to grab the raw symbol name followed by C symbol from nm.
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6589 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593
6594 # These are sane defaults that work on at least a few old systems.
6595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6596
6597 # Character class describing NM global symbol codes.
6598 symcode='[BCDEGRST]'
6599
6600 # Regexp to match symbols that can be accessed directly from C.
6601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6602
6603 # Define system-specific variables.
6604 case $host_os in
6605 aix*)
6606 symcode='[BCDT]'
6607 ;;
6608 cygwin* | mingw* | pw32* | cegcc*)
6609 symcode='[ABCDGISTW]'
6610 ;;
6611 hpux*)
6612 if test "$host_cpu" = ia64; then
6613 symcode='[ABCDEGRST]'
6614 fi
6615 ;;
6616 irix* | nonstopux*)
6617 symcode='[BCDEGRST]'
6618 ;;
6619 osf*)
6620 symcode='[BCDEGQRST]'
6621 ;;
6622 solaris*)
6623 symcode='[BDRT]'
6624 ;;
6625 sco3.2v5*)
6626 symcode='[DT]'
6627 ;;
6628 sysv4.2uw2*)
6629 symcode='[DT]'
6630 ;;
6631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6632 symcode='[ABDT]'
6633 ;;
6634 sysv4)
6635 symcode='[DFNSTU]'
6636 ;;
6637 esac
6638
6639 # If we're using GNU nm, then use its standard symbol codes.
6640 case `$NM -V 2>&1` in
6641 *GNU* | *'with BFD'*)
6642 symcode='[ABCDGIRSTW]' ;;
6643 esac
6644
6645 # Transform an extracted symbol line into a proper C declaration.
6646 # Some systems (esp. on ia64) link data and code symbols differently,
6647 # so use this general approach.
6648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6649
6650 # Transform an extracted symbol line into symbol name and symbol address
6651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6652 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'"
6653
6654 # Handle CRLF in mingw tool chain
6655 opt_cr=
6656 case $build_os in
6657 mingw*)
6658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6659 ;;
6660 esac
6661
6662 # Try without a prefix underscore, then with it.
6663 for ac_symprfx in "" "_"; do
6664
6665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6666 symxfrm="\\1 $ac_symprfx\\2 \\2"
6667
6668 # Write the raw and C identifiers.
6669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6670 # Fake it for dumpbin and say T for any non-static function
6671 # and D for any global variable.
6672 # Also find C++ and __fastcall symbols from MSVC++,
6673 # which start with @ or ?.
6674 lt_cv_sys_global_symbol_pipe="$AWK '"\
6675 " {last_section=section; section=\$ 3};"\
6676 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6677 " \$ 0!~/External *\|/{next};"\
6678 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6679 " {if(hide[section]) next};"\
6680 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6681 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6682 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6683 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6684 " ' prfx=^$ac_symprfx"
6685 else
6686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6687 fi
6688
6689 # Check to see that the pipe works correctly.
6690 pipe_works=no
6691
6692 rm -f conftest*
6693 cat > conftest.$ac_ext <<_LT_EOF
6694 #ifdef __cplusplus
6695 extern "C" {
6696 #endif
6697 char nm_test_var;
6698 void nm_test_func(void);
6699 void nm_test_func(void){}
6700 #ifdef __cplusplus
6701 }
6702 #endif
6703 int main(){nm_test_var='a';nm_test_func();return(0);}
6704 _LT_EOF
6705
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 # Now try to grab the symbols.
6712 nlist=conftest.nm
6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6714 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; } && test -s "$nlist"; then
6718 # Try sorting and uniquifying the output.
6719 if sort "$nlist" | uniq > "$nlist"T; then
6720 mv -f "$nlist"T "$nlist"
6721 else
6722 rm -f "$nlist"T
6723 fi
6724
6725 # Make sure that we snagged all the symbols we need.
6726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6728 cat <<_LT_EOF > conftest.$ac_ext
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732
6733 _LT_EOF
6734 # Now generate the symbol file.
6735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6736
6737 cat <<_LT_EOF >> conftest.$ac_ext
6738
6739 /* The mapping between symbol names and symbols. */
6740 const struct {
6741 const char *name;
6742 void *address;
6743 }
6744 lt__PROGRAM__LTX_preloaded_symbols[] =
6745 {
6746 { "@PROGRAM@", (void *) 0 },
6747 _LT_EOF
6748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6749 cat <<\_LT_EOF >> conftest.$ac_ext
6750 {0, (void *) 0}
6751 };
6752
6753 /* This works around a problem in FreeBSD linker */
6754 #ifdef FREEBSD_WORKAROUND
6755 static const void *lt_preloaded_setup() {
6756 return lt__PROGRAM__LTX_preloaded_symbols;
6757 }
6758 #endif
6759
6760 #ifdef __cplusplus
6761 }
6762 #endif
6763 _LT_EOF
6764 # Now try linking the two files.
6765 mv conftest.$ac_objext conftstm.$ac_objext
6766 lt_save_LIBS="$LIBS"
6767 lt_save_CFLAGS="$CFLAGS"
6768 LIBS="conftstm.$ac_objext"
6769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6771 (eval $ac_link) 2>&5
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6775 pipe_works=yes
6776 fi
6777 LIBS="$lt_save_LIBS"
6778 CFLAGS="$lt_save_CFLAGS"
6779 else
6780 echo "cannot find nm_test_func in $nlist" >&5
6781 fi
6782 else
6783 echo "cannot find nm_test_var in $nlist" >&5
6784 fi
6785 else
6786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6787 fi
6788 else
6789 echo "$progname: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 fi
6792 rm -rf conftest* conftst*
6793
6794 # Do not use the global_symbol_pipe unless it works.
6795 if test "$pipe_works" = yes; then
6796 break
6797 else
6798 lt_cv_sys_global_symbol_pipe=
6799 fi
6800 done
6801
6802 fi
6803
6804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6805 lt_cv_sys_global_symbol_to_cdecl=
6806 fi
6807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6809 $as_echo "failed" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6812 $as_echo "ok" >&6; }
6813 fi
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 # Check whether --enable-libtool-lock was given.
6837 if test "${enable_libtool_lock+set}" = set; then :
6838 enableval=$enable_libtool_lock;
6839 fi
6840
6841 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6842
6843 # Some flags need to be propagated to the compiler or linker for good
6844 # libtool support.
6845 case $host in
6846 ia64-*-hpux*)
6847 # Find out which ABI we are using.
6848 echo 'int i;' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *ELF-32*)
6856 HPUX_IA64_MODE="32"
6857 ;;
6858 *ELF-64*)
6859 HPUX_IA64_MODE="64"
6860 ;;
6861 esac
6862 fi
6863 rm -rf conftest*
6864 ;;
6865 *-*-irix6*)
6866 # Find out which ABI we are using.
6867 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 if test "$lt_cv_prog_gnu_ld" = yes; then
6874 case `/usr/bin/file conftest.$ac_objext` in
6875 *32-bit*)
6876 LD="${LD-ld} -melf32bsmip"
6877 ;;
6878 *N32*)
6879 LD="${LD-ld} -melf32bmipn32"
6880 ;;
6881 *64-bit*)
6882 LD="${LD-ld} -melf64bmip"
6883 ;;
6884 esac
6885 else
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *32-bit*)
6888 LD="${LD-ld} -32"
6889 ;;
6890 *N32*)
6891 LD="${LD-ld} -n32"
6892 ;;
6893 *64-bit*)
6894 LD="${LD-ld} -64"
6895 ;;
6896 esac
6897 fi
6898 fi
6899 rm -rf conftest*
6900 ;;
6901
6902 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6903 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6904 # Find out which ABI we are using.
6905 echo 'int i;' > conftest.$ac_ext
6906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6907 (eval $ac_compile) 2>&5
6908 ac_status=$?
6909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910 test $ac_status = 0; }; then
6911 case `/usr/bin/file conftest.o` in
6912 *32-bit*)
6913 case $host in
6914 x86_64-*kfreebsd*-gnu)
6915 LD="${LD-ld} -m elf_i386_fbsd"
6916 ;;
6917 x86_64-*linux*)
6918 case `/usr/bin/file conftest.o` in
6919 *x86-64*)
6920 LD="${LD-ld} -m elf32_x86_64"
6921 ;;
6922 *)
6923 LD="${LD-ld} -m elf_i386"
6924 ;;
6925 esac
6926 ;;
6927 powerpc64le-*linux*)
6928 LD="${LD-ld} -m elf32lppclinux"
6929 ;;
6930 powerpc64-*linux*)
6931 LD="${LD-ld} -m elf32ppclinux"
6932 ;;
6933 s390x-*linux*)
6934 LD="${LD-ld} -m elf_s390"
6935 ;;
6936 sparc64-*linux*)
6937 LD="${LD-ld} -m elf32_sparc"
6938 ;;
6939 esac
6940 ;;
6941 *64-bit*)
6942 case $host in
6943 x86_64-*kfreebsd*-gnu)
6944 LD="${LD-ld} -m elf_x86_64_fbsd"
6945 ;;
6946 x86_64-*linux*)
6947 LD="${LD-ld} -m elf_x86_64"
6948 ;;
6949 powerpcle-*linux*)
6950 LD="${LD-ld} -m elf64lppc"
6951 ;;
6952 powerpc-*linux*)
6953 LD="${LD-ld} -m elf64ppc"
6954 ;;
6955 s390*-*linux*|s390*-*tpf*)
6956 LD="${LD-ld} -m elf64_s390"
6957 ;;
6958 sparc*-*linux*)
6959 LD="${LD-ld} -m elf64_sparc"
6960 ;;
6961 esac
6962 ;;
6963 esac
6964 fi
6965 rm -rf conftest*
6966 ;;
6967
6968 *-*-sco3.2v5*)
6969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6970 SAVE_CFLAGS="$CFLAGS"
6971 CFLAGS="$CFLAGS -belf"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6973 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6974 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 ac_ext=c
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 lt_cv_cc_needs_belf=yes
6996 else
6997 lt_cv_cc_needs_belf=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 ac_ext=c
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7009 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7010 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7011 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7012 CFLAGS="$SAVE_CFLAGS"
7013 fi
7014 ;;
7015 sparc*-*solaris*)
7016 # Find out which ABI we are using.
7017 echo 'int i;' > conftest.$ac_ext
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7019 (eval $ac_compile) 2>&5
7020 ac_status=$?
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; }; then
7023 case `/usr/bin/file conftest.o` in
7024 *64-bit*)
7025 case $lt_cv_prog_gnu_ld in
7026 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7027 *)
7028 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7029 LD="${LD-ld} -64"
7030 fi
7031 ;;
7032 esac
7033 ;;
7034 esac
7035 fi
7036 rm -rf conftest*
7037 ;;
7038 esac
7039
7040 need_locks="$enable_libtool_lock"
7041
7042
7043 case $host_os in
7044 rhapsody* | darwin*)
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$DSYMUTIL"; then
7054 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7074 if test -n "$DSYMUTIL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7076 $as_echo "$DSYMUTIL" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082
7083 fi
7084 if test -z "$ac_cv_prog_DSYMUTIL"; then
7085 ac_ct_DSYMUTIL=$DSYMUTIL
7086 # Extract the first word of "dsymutil", so it can be a program name with args.
7087 set dummy dsymutil; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$ac_ct_DSYMUTIL"; then
7094 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7114 if test -n "$ac_ct_DSYMUTIL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7116 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122 if test "x$ac_ct_DSYMUTIL" = x; then
7123 DSYMUTIL=":"
7124 else
7125 case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131 DSYMUTIL=$ac_ct_DSYMUTIL
7132 fi
7133 else
7134 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7135 fi
7136
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$NMEDIT"; then
7146 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 NMEDIT=$ac_cv_prog_NMEDIT
7166 if test -n "$NMEDIT"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7168 $as_echo "$NMEDIT" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_NMEDIT"; then
7177 ac_ct_NMEDIT=$NMEDIT
7178 # Extract the first word of "nmedit", so it can be a program name with args.
7179 set dummy nmedit; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_NMEDIT"; then
7186 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7206 if test -n "$ac_ct_NMEDIT"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7208 $as_echo "$ac_ct_NMEDIT" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_ct_NMEDIT" = x; then
7215 NMEDIT=":"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 NMEDIT=$ac_ct_NMEDIT
7224 fi
7225 else
7226 NMEDIT="$ac_cv_prog_NMEDIT"
7227 fi
7228
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_LIPO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$LIPO"; then
7238 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 LIPO=$ac_cv_prog_LIPO
7258 if test -n "$LIPO"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7260 $as_echo "$LIPO" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266
7267 fi
7268 if test -z "$ac_cv_prog_LIPO"; then
7269 ac_ct_LIPO=$LIPO
7270 # Extract the first word of "lipo", so it can be a program name with args.
7271 set dummy lipo; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$ac_ct_LIPO"; then
7278 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_ac_ct_LIPO="lipo"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7298 if test -n "$ac_ct_LIPO"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7300 $as_echo "$ac_ct_LIPO" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306 if test "x$ac_ct_LIPO" = x; then
7307 LIPO=":"
7308 else
7309 case $cross_compiling:$ac_tool_warned in
7310 yes:)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313 ac_tool_warned=yes ;;
7314 esac
7315 LIPO=$ac_ct_LIPO
7316 fi
7317 else
7318 LIPO="$ac_cv_prog_LIPO"
7319 fi
7320
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}otool; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$OTOOL"; then
7330 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347 fi
7348 fi
7349 OTOOL=$ac_cv_prog_OTOOL
7350 if test -n "$OTOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7352 $as_echo "$OTOOL" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358
7359 fi
7360 if test -z "$ac_cv_prog_OTOOL"; then
7361 ac_ct_OTOOL=$OTOOL
7362 # Extract the first word of "otool", so it can be a program name with args.
7363 set dummy otool; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -n "$ac_ct_OTOOL"; then
7370 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_ac_ct_OTOOL="otool"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7382 fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7390 if test -n "$ac_ct_OTOOL"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7392 $as_echo "$ac_ct_OTOOL" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398 if test "x$ac_ct_OTOOL" = x; then
7399 OTOOL=":"
7400 else
7401 case $cross_compiling:$ac_tool_warned in
7402 yes:)
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7406 esac
7407 OTOOL=$ac_ct_OTOOL
7408 fi
7409 else
7410 OTOOL="$ac_cv_prog_OTOOL"
7411 fi
7412
7413 if test -n "$ac_tool_prefix"; then
7414 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7415 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$OTOOL64"; then
7422 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439 fi
7440 fi
7441 OTOOL64=$ac_cv_prog_OTOOL64
7442 if test -n "$OTOOL64"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7444 $as_echo "$OTOOL64" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450
7451 fi
7452 if test -z "$ac_cv_prog_OTOOL64"; then
7453 ac_ct_OTOOL64=$OTOOL64
7454 # Extract the first word of "otool64", so it can be a program name with args.
7455 set dummy otool64; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 if test -n "$ac_ct_OTOOL64"; then
7462 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_prog_ac_ct_OTOOL64="otool64"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479 fi
7480 fi
7481 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7482 if test -n "$ac_ct_OTOOL64"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7484 $as_echo "$ac_ct_OTOOL64" >&6; }
7485 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490 if test "x$ac_ct_OTOOL64" = x; then
7491 OTOOL64=":"
7492 else
7493 case $cross_compiling:$ac_tool_warned in
7494 yes:)
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497 ac_tool_warned=yes ;;
7498 esac
7499 OTOOL64=$ac_ct_OTOOL64
7500 fi
7501 else
7502 OTOOL64="$ac_cv_prog_OTOOL64"
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7532 $as_echo_n "checking for -single_module linker flag... " >&6; }
7533 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 lt_cv_apple_cc_single_mod=no
7537 if test -z "${LT_MULTI_MODULE}"; then
7538 # By default we will add the -single_module flag. You can override
7539 # by either setting the environment variable LT_MULTI_MODULE
7540 # non-empty at configure time, or by adding -multi_module to the
7541 # link flags.
7542 rm -rf libconftest.dylib*
7543 echo "int foo(void){return 1;}" > conftest.c
7544 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7545 -dynamiclib -Wl,-single_module conftest.c" >&5
7546 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7547 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7548 _lt_result=$?
7549 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7550 lt_cv_apple_cc_single_mod=yes
7551 else
7552 cat conftest.err >&5
7553 fi
7554 rm -rf libconftest.dylib*
7555 rm -f conftest.*
7556 fi
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7559 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7561 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7562 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 lt_cv_ld_exported_symbols_list=no
7566 save_LDFLAGS=$LDFLAGS
7567 echo "_main" > conftest.sym
7568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571
7572 int
7573 main ()
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_link "$LINENO"; then :
7581 lt_cv_ld_exported_symbols_list=yes
7582 else
7583 lt_cv_ld_exported_symbols_list=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 LDFLAGS="$save_LDFLAGS"
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7591 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7593 $as_echo_n "checking for -force_load linker flag... " >&6; }
7594 if test "${lt_cv_ld_force_load+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 lt_cv_ld_force_load=no
7598 cat > conftest.c << _LT_EOF
7599 int forced_loaded() { return 2;}
7600 _LT_EOF
7601 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7602 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7603 echo "$AR cru libconftest.a conftest.o" >&5
7604 $AR cru libconftest.a conftest.o 2>&5
7605 cat > conftest.c << _LT_EOF
7606 int main() { return 0;}
7607 _LT_EOF
7608 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7609 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7610 _lt_result=$?
7611 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7612 lt_cv_ld_force_load=yes
7613 else
7614 cat conftest.err >&5
7615 fi
7616 rm -f conftest.err libconftest.a conftest conftest.c
7617 rm -rf conftest.dSYM
7618
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7621 $as_echo "$lt_cv_ld_force_load" >&6; }
7622 case $host_os in
7623 rhapsody* | darwin1.[012])
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7625 darwin1.*)
7626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7627 darwin*) # darwin 5.x on
7628 # if running on 10.5 or later, the deployment target defaults
7629 # to the OS version, if on x86, and 10.4, the deployment
7630 # target defaults to 10.4. Don't you love it?
7631 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7632 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7633 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7634 10.[012][,.]*)
7635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7636 10.*)
7637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7638 esac
7639 ;;
7640 esac
7641 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7642 _lt_dar_single_mod='$single_module'
7643 fi
7644 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7645 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7646 else
7647 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7648 fi
7649 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7650 _lt_dsymutil='~$DSYMUTIL $lib || :'
7651 else
7652 _lt_dsymutil=
7653 fi
7654 ;;
7655 esac
7656
7657 for ac_header in dlfcn.h
7658 do :
7659 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660 "
7661 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE_DLFCN_H 1
7664 _ACEOF
7665
7666 fi
7667
7668 done
7669
7670
7671
7672
7673
7674 # Set options
7675
7676
7677
7678 enable_dlopen=no
7679
7680
7681 enable_win32_dll=no
7682
7683
7684 # Check whether --enable-shared was given.
7685 if test "${enable_shared+set}" = set; then :
7686 enableval=$enable_shared; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_shared=yes ;;
7689 no) enable_shared=no ;;
7690 *)
7691 enable_shared=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_shared=yes
7698 fi
7699 done
7700 IFS="$lt_save_ifs"
7701 ;;
7702 esac
7703 else
7704 enable_shared=yes
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 # Check whether --enable-static was given.
7716 if test "${enable_static+set}" = set; then :
7717 enableval=$enable_static; p=${PACKAGE-default}
7718 case $enableval in
7719 yes) enable_static=yes ;;
7720 no) enable_static=no ;;
7721 *)
7722 enable_static=no
7723 # Look at the argument we got. We use all the common list separators.
7724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725 for pkg in $enableval; do
7726 IFS="$lt_save_ifs"
7727 if test "X$pkg" = "X$p"; then
7728 enable_static=yes
7729 fi
7730 done
7731 IFS="$lt_save_ifs"
7732 ;;
7733 esac
7734 else
7735 enable_static=yes
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 # Check whether --with-pic was given.
7748 if test "${with_pic+set}" = set; then :
7749 withval=$with_pic; pic_mode="$withval"
7750 else
7751 pic_mode=default
7752 fi
7753
7754
7755 test -z "$pic_mode" && pic_mode=default
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-fast-install was given.
7764 if test "${enable_fast_install+set}" = set; then :
7765 enableval=$enable_fast_install; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_fast_install=yes ;;
7768 no) enable_fast_install=no ;;
7769 *)
7770 enable_fast_install=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_fast_install=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782 else
7783 enable_fast_install=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 # This can be used to rebuild libtool when needed
7797 LIBTOOL_DEPS="$ltmain"
7798
7799 # Always use our own libtool.
7800 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 test -z "$LN_S" && LN_S="ln -s"
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842 if test -n "${ZSH_VERSION+set}" ; then
7843 setopt NO_GLOB_SUBST
7844 fi
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847 $as_echo_n "checking for objdir... " >&6; }
7848 if test "${lt_cv_objdir+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 rm -f .libs 2>/dev/null
7852 mkdir .libs 2>/dev/null
7853 if test -d .libs; then
7854 lt_cv_objdir=.libs
7855 else
7856 # MS-DOS does not allow filenames that begin with a dot.
7857 lt_cv_objdir=_libs
7858 fi
7859 rmdir .libs 2>/dev/null
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862 $as_echo "$lt_cv_objdir" >&6; }
7863 objdir=$lt_cv_objdir
7864
7865
7866
7867
7868
7869 cat >>confdefs.h <<_ACEOF
7870 #define LT_OBJDIR "$lt_cv_objdir/"
7871 _ACEOF
7872
7873
7874
7875
7876 case $host_os in
7877 aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7884 fi
7885 ;;
7886 esac
7887
7888 # Global variables:
7889 ofile=libtool
7890 can_build_shared=yes
7891
7892 # All known linkers require a `.a' archive for static linking (except MSVC,
7893 # which needs '.lib').
7894 libext=a
7895
7896 with_gnu_ld="$lt_cv_prog_gnu_ld"
7897
7898 old_CC="$CC"
7899 old_CFLAGS="$CFLAGS"
7900
7901 # Set sane defaults for various variables
7902 test -z "$CC" && CC=cc
7903 test -z "$LTCC" && LTCC=$CC
7904 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7905 test -z "$LD" && LD=ld
7906 test -z "$ac_objext" && ac_objext=o
7907
7908 for cc_temp in $compiler""; do
7909 case $cc_temp in
7910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912 \-*) ;;
7913 *) break;;
7914 esac
7915 done
7916 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7917
7918
7919 # Only perform the check for file, if the check method requires it
7920 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7921 case $deplibs_check_method in
7922 file_magic*)
7923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7925 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7926 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 case $MAGIC_CMD in
7930 [\\/*] | ?:[\\/]*)
7931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 lt_save_MAGIC_CMD="$MAGIC_CMD"
7935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7937 for ac_dir in $ac_dummy; do
7938 IFS="$lt_save_ifs"
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/${ac_tool_prefix}file; then
7941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7942 if test -n "$file_magic_test_file"; then
7943 case $deplibs_check_method in
7944 "file_magic "*)
7945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7948 $EGREP "$file_magic_regex" > /dev/null; then
7949 :
7950 else
7951 cat <<_LT_EOF 1>&2
7952
7953 *** Warning: the command libtool uses to detect shared libraries,
7954 *** $file_magic_cmd, produces output that libtool cannot recognize.
7955 *** The result is that libtool may fail to recognize shared libraries
7956 *** as such. This will affect the creation of libtool libraries that
7957 *** depend on shared libraries, but programs linked with such libtool
7958 *** libraries will work regardless of this problem. Nevertheless, you
7959 *** may want to report the problem to your system manager and/or to
7960 *** bug-libtool@gnu.org
7961
7962 _LT_EOF
7963 fi ;;
7964 esac
7965 fi
7966 break
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 MAGIC_CMD="$lt_save_MAGIC_CMD"
7971 ;;
7972 esac
7973 fi
7974
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if test -n "$MAGIC_CMD"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7978 $as_echo "$MAGIC_CMD" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985
7986
7987
7988 if test -z "$lt_cv_path_MAGIC_CMD"; then
7989 if test -n "$ac_tool_prefix"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7991 $as_echo_n "checking for file... " >&6; }
7992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 case $MAGIC_CMD in
7996 [\\/*] | ?:[\\/]*)
7997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7998 ;;
7999 *)
8000 lt_save_MAGIC_CMD="$MAGIC_CMD"
8001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003 for ac_dir in $ac_dummy; do
8004 IFS="$lt_save_ifs"
8005 test -z "$ac_dir" && ac_dir=.
8006 if test -f $ac_dir/file; then
8007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8008 if test -n "$file_magic_test_file"; then
8009 case $deplibs_check_method in
8010 "file_magic "*)
8011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014 $EGREP "$file_magic_regex" > /dev/null; then
8015 :
8016 else
8017 cat <<_LT_EOF 1>&2
8018
8019 *** Warning: the command libtool uses to detect shared libraries,
8020 *** $file_magic_cmd, produces output that libtool cannot recognize.
8021 *** The result is that libtool may fail to recognize shared libraries
8022 *** as such. This will affect the creation of libtool libraries that
8023 *** depend on shared libraries, but programs linked with such libtool
8024 *** libraries will work regardless of this problem. Nevertheless, you
8025 *** may want to report the problem to your system manager and/or to
8026 *** bug-libtool@gnu.org
8027
8028 _LT_EOF
8029 fi ;;
8030 esac
8031 fi
8032 break
8033 fi
8034 done
8035 IFS="$lt_save_ifs"
8036 MAGIC_CMD="$lt_save_MAGIC_CMD"
8037 ;;
8038 esac
8039 fi
8040
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if test -n "$MAGIC_CMD"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044 $as_echo "$MAGIC_CMD" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051 else
8052 MAGIC_CMD=:
8053 fi
8054 fi
8055
8056 fi
8057 ;;
8058 esac
8059
8060 # Use C for the default configuration in the libtool script
8061
8062 lt_save_CC="$CC"
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069
8070 # Source file extension for C test sources.
8071 ac_ext=c
8072
8073 # Object file extension for compiled C test sources.
8074 objext=o
8075 objext=$objext
8076
8077 # Code to be used in simple compile tests
8078 lt_simple_compile_test_code="int some_variable = 0;"
8079
8080 # Code to be used in simple link tests
8081 lt_simple_link_test_code='int main(){return(0);}'
8082
8083
8084
8085
8086
8087
8088
8089 # If no C compiler was specified, use CC.
8090 LTCC=${LTCC-"$CC"}
8091
8092 # If no C compiler flags were specified, use CFLAGS.
8093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8094
8095 # Allow CC to be a program name with arguments.
8096 compiler=$CC
8097
8098 # Save the default compiler, since it gets overwritten when the other
8099 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8100 compiler_DEFAULT=$CC
8101
8102 # save warnings/boilerplate of simple test code
8103 ac_outfile=conftest.$ac_objext
8104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8106 _lt_compiler_boilerplate=`cat conftest.err`
8107 $RM conftest*
8108
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8112 _lt_linker_boilerplate=`cat conftest.err`
8113 $RM -r conftest*
8114
8115
8116 ## CAVEAT EMPTOR:
8117 ## There is no encapsulation within the following macros, do not change
8118 ## the running order or otherwise move them around unless you know exactly
8119 ## what you are doing...
8120 if test -n "$compiler"; then
8121
8122 lt_prog_compiler_no_builtin_flag=
8123
8124 if test "$GCC" = yes; then
8125 case $cc_basename in
8126 nvcc*)
8127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8128 *)
8129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8130 esac
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8133 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_prog_compiler_rtti_exceptions=no
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140 lt_compiler_flag="-fno-rtti -fno-exceptions"
8141 # Insert the option either (1) after the last *FLAGS variable, or
8142 # (2) before a word containing "conftest.", or (3) at the end.
8143 # Note that $ac_compile itself does not contain backslashes and begins
8144 # with a dollar sign (not a hyphen), so the echo should work correctly.
8145 # The option is referenced via a variable to avoid confusing sed.
8146 lt_compile=`echo "$ac_compile" | $SED \
8147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149 -e 's:$: $lt_compiler_flag:'`
8150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151 (eval "$lt_compile" 2>conftest.err)
8152 ac_status=$?
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 if (exit $ac_status) && test -s "$ac_outfile"; then
8156 # The compiler can only warn and ignore the option if not recognized
8157 # So say no if there are warnings other than the usual output.
8158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8161 lt_cv_prog_compiler_rtti_exceptions=yes
8162 fi
8163 fi
8164 $RM conftest*
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8169
8170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8172 else
8173 :
8174 fi
8175
8176 fi
8177
8178
8179
8180
8181
8182
8183 lt_prog_compiler_wl=
8184 lt_prog_compiler_pic=
8185 lt_prog_compiler_static=
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8189
8190 if test "$GCC" = yes; then
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_static='-static'
8193
8194 case $host_os in
8195 aix*)
8196 # All AIX code is PIC.
8197 if test "$host_cpu" = ia64; then
8198 # AIX 5 now supports IA64 processor
8199 lt_prog_compiler_static='-Bstatic'
8200 fi
8201 lt_prog_compiler_pic='-fPIC'
8202 ;;
8203
8204 amigaos*)
8205 case $host_cpu in
8206 powerpc)
8207 # see comment about AmigaOS4 .so support
8208 lt_prog_compiler_pic='-fPIC'
8209 ;;
8210 m68k)
8211 # FIXME: we need at least 68020 code to build shared libraries, but
8212 # adding the `-m68020' flag to GCC prevents building anything better,
8213 # like `-m68040'.
8214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8215 ;;
8216 esac
8217 ;;
8218
8219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8220 # PIC is the default for these OSes.
8221 ;;
8222
8223 mingw* | cygwin* | pw32* | os2* | cegcc*)
8224 # This hack is so that the source file can tell whether it is being
8225 # built for inclusion in a dll (and should export symbols for example).
8226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8227 # (--disable-auto-import) libraries
8228 lt_prog_compiler_pic='-DDLL_EXPORT'
8229 ;;
8230
8231 darwin* | rhapsody*)
8232 # PIC is the default on this platform
8233 # Common symbols not allowed in MH_DYLIB files
8234 lt_prog_compiler_pic='-fno-common'
8235 ;;
8236
8237 haiku*)
8238 # PIC is the default for Haiku.
8239 # The "-static" flag exists, but is broken.
8240 lt_prog_compiler_static=
8241 ;;
8242
8243 hpux*)
8244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8246 # sets the default TLS model and affects inlining.
8247 case $host_cpu in
8248 hppa*64*)
8249 # +Z the default
8250 ;;
8251 *)
8252 lt_prog_compiler_pic='-fPIC'
8253 ;;
8254 esac
8255 ;;
8256
8257 interix[3-9]*)
8258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8259 # Instead, we relocate shared libraries at runtime.
8260 ;;
8261
8262 msdosdjgpp*)
8263 # Just because we use GCC doesn't mean we suddenly get shared libraries
8264 # on systems that don't support them.
8265 lt_prog_compiler_can_build_shared=no
8266 enable_shared=no
8267 ;;
8268
8269 *nto* | *qnx*)
8270 # QNX uses GNU C++, but need to define -shared option too, otherwise
8271 # it will coredump.
8272 lt_prog_compiler_pic='-fPIC -shared'
8273 ;;
8274
8275 sysv4*MP*)
8276 if test -d /usr/nec; then
8277 lt_prog_compiler_pic=-Kconform_pic
8278 fi
8279 ;;
8280
8281 *)
8282 lt_prog_compiler_pic='-fPIC'
8283 ;;
8284 esac
8285
8286 case $cc_basename in
8287 nvcc*) # Cuda Compiler Driver 2.2
8288 lt_prog_compiler_wl='-Xlinker '
8289 lt_prog_compiler_pic='-Xcompiler -fPIC'
8290 ;;
8291 esac
8292 else
8293 # PORTME Check for flag to pass linker flags through the system compiler.
8294 case $host_os in
8295 aix*)
8296 lt_prog_compiler_wl='-Wl,'
8297 if test "$host_cpu" = ia64; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 else
8301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302 fi
8303 ;;
8304
8305 mingw* | cygwin* | pw32* | os2* | cegcc*)
8306 # This hack is so that the source file can tell whether it is being
8307 # built for inclusion in a dll (and should export symbols for example).
8308 lt_prog_compiler_pic='-DDLL_EXPORT'
8309 ;;
8310
8311 hpux9* | hpux10* | hpux11*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8314 # not for PA HP-UX.
8315 case $host_cpu in
8316 hppa*64*|ia64*)
8317 # +Z the default
8318 ;;
8319 *)
8320 lt_prog_compiler_pic='+Z'
8321 ;;
8322 esac
8323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8324 lt_prog_compiler_static='${wl}-a ${wl}archive'
8325 ;;
8326
8327 irix5* | irix6* | nonstopux*)
8328 lt_prog_compiler_wl='-Wl,'
8329 # PIC (with -KPIC) is the default.
8330 lt_prog_compiler_static='-non_shared'
8331 ;;
8332
8333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8334 case $cc_basename in
8335 # old Intel for x86_64 which still supported -KPIC.
8336 ecc*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-static'
8340 ;;
8341 # icc used to be incompatible with GCC.
8342 # ICC 10 doesn't accept -KPIC any more.
8343 icc* | ifort*)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fPIC'
8346 lt_prog_compiler_static='-static'
8347 ;;
8348 # Lahey Fortran 8.1.
8349 lf95*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='--shared'
8352 lt_prog_compiler_static='--static'
8353 ;;
8354 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8355 # Portland Group compilers (*not* the Pentium gcc compiler,
8356 # which looks to be a dead project)
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_pic='-fpic'
8359 lt_prog_compiler_static='-Bstatic'
8360 ;;
8361 ccc*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All Alpha code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8365 ;;
8366 xl* | bgxl* | bgf* | mpixl*)
8367 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-qpic'
8370 lt_prog_compiler_static='-qstaticlink'
8371 ;;
8372 *)
8373 case `$CC -V 2>&1 | sed 5q` in
8374 *Sun\ F* | *Sun*Fortran*)
8375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl=''
8379 ;;
8380 *Sun\ C*)
8381 # Sun C 5.9
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 lt_prog_compiler_wl='-Wl,'
8385 ;;
8386 esac
8387 ;;
8388 esac
8389 ;;
8390
8391 newsos6)
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 ;;
8395
8396 *nto* | *qnx*)
8397 # QNX uses GNU C++, but need to define -shared option too, otherwise
8398 # it will coredump.
8399 lt_prog_compiler_pic='-fPIC -shared'
8400 ;;
8401
8402 osf3* | osf4* | osf5*)
8403 lt_prog_compiler_wl='-Wl,'
8404 # All OSF/1 code is PIC.
8405 lt_prog_compiler_static='-non_shared'
8406 ;;
8407
8408 rdos*)
8409 lt_prog_compiler_static='-non_shared'
8410 ;;
8411
8412 solaris*)
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 case $cc_basename in
8416 f77* | f90* | f95*)
8417 lt_prog_compiler_wl='-Qoption ld ';;
8418 *)
8419 lt_prog_compiler_wl='-Wl,';;
8420 esac
8421 ;;
8422
8423 sunos4*)
8424 lt_prog_compiler_wl='-Qoption ld '
8425 lt_prog_compiler_pic='-PIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428
8429 sysv4 | sysv4.2uw2* | sysv4.3*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 sysv4*MP*)
8436 if test -d /usr/nec ;then
8437 lt_prog_compiler_pic='-Kconform_pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 fi
8440 ;;
8441
8442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 ;;
8447
8448 unicos*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_can_build_shared=no
8451 ;;
8452
8453 uts4*)
8454 lt_prog_compiler_pic='-pic'
8455 lt_prog_compiler_static='-Bstatic'
8456 ;;
8457
8458 *)
8459 lt_prog_compiler_can_build_shared=no
8460 ;;
8461 esac
8462 fi
8463
8464 case $host_os in
8465 # For platforms which do not support PIC, -DPIC is meaningless:
8466 *djgpp*)
8467 lt_prog_compiler_pic=
8468 ;;
8469 *)
8470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8471 ;;
8472 esac
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8474 $as_echo "$lt_prog_compiler_pic" >&6; }
8475
8476
8477
8478
8479
8480
8481 #
8482 # Check to make sure the PIC flag actually works.
8483 #
8484 if test -n "$lt_prog_compiler_pic"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_prog_compiler_pic_works=no
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err)
8505 ac_status=$?
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_pic_works=yes
8515 fi
8516 fi
8517 $RM conftest*
8518
8519 fi
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522
8523 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524 case $lt_prog_compiler_pic in
8525 "" | " "*) ;;
8526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527 esac
8528 else
8529 lt_prog_compiler_pic=
8530 lt_prog_compiler_can_build_shared=no
8531 fi
8532
8533 fi
8534
8535
8536
8537
8538
8539
8540 #
8541 # Check to make sure the static flag actually works.
8542 #
8543 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8545 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8546 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_prog_compiler_static_works=no
8550 save_LDFLAGS="$LDFLAGS"
8551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8554 # The linker can only warn and ignore the option if not recognized
8555 # So say no if there are warnings
8556 if test -s conftest.err; then
8557 # Append any errors to the config.log.
8558 cat conftest.err 1>&5
8559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8561 if diff conftest.exp conftest.er2 >/dev/null; then
8562 lt_cv_prog_compiler_static_works=yes
8563 fi
8564 else
8565 lt_cv_prog_compiler_static_works=yes
8566 fi
8567 fi
8568 $RM -r conftest*
8569 LDFLAGS="$save_LDFLAGS"
8570
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8573 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574
8575 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8576 :
8577 else
8578 lt_prog_compiler_static=
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 lt_cv_prog_compiler_c_o=no
8593 $RM -r conftest 2>/dev/null
8594 mkdir conftest
8595 cd conftest
8596 mkdir out
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599 lt_compiler_flag="-o out/conftest2.$ac_objext"
8600 # Insert the option either (1) after the last *FLAGS variable, or
8601 # (2) before a word containing "conftest.", or (3) at the end.
8602 # Note that $ac_compile itself does not contain backslashes and begins
8603 # with a dollar sign (not a hyphen), so the echo should work correctly.
8604 lt_compile=`echo "$ac_compile" | $SED \
8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607 -e 's:$: $lt_compiler_flag:'`
8608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609 (eval "$lt_compile" 2>out/conftest.err)
8610 ac_status=$?
8611 cat out/conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 then
8615 # The compiler can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_c_o=yes
8621 fi
8622 fi
8623 chmod u+w . 2>&5
8624 $RM conftest*
8625 # SGI C++ compiler will create directory out/ii_files/ for
8626 # template instantiation
8627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628 $RM out/* && rmdir out
8629 cd ..
8630 $RM -r conftest
8631 $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8636
8637
8638
8639
8640
8641
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8644 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_prog_compiler_c_o=no
8648 $RM -r conftest 2>/dev/null
8649 mkdir conftest
8650 cd conftest
8651 mkdir out
8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653
8654 lt_compiler_flag="-o out/conftest2.$ac_objext"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>out/conftest.err)
8665 ac_status=$?
8666 cat out/conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669 then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_c_o=yes
8676 fi
8677 fi
8678 chmod u+w . 2>&5
8679 $RM conftest*
8680 # SGI C++ compiler will create directory out/ii_files/ for
8681 # template instantiation
8682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8683 $RM out/* && rmdir out
8684 cd ..
8685 $RM -r conftest
8686 $RM conftest*
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8691
8692
8693
8694
8695 hard_links="nottested"
8696 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8697 # do not overwrite the value of need_locks provided by the user
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8699 $as_echo_n "checking if we can lock with hard links... " >&6; }
8700 hard_links=yes
8701 $RM conftest*
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 touch conftest.a
8704 ln conftest.a conftest.b 2>&5 || hard_links=no
8705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8707 $as_echo "$hard_links" >&6; }
8708 if test "$hard_links" = no; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8710 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8711 need_locks=warn
8712 fi
8713 else
8714 need_locks=no
8715 fi
8716
8717
8718
8719
8720
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8723 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8724
8725 runpath_var=
8726 allow_undefined_flag=
8727 always_export_symbols=no
8728 archive_cmds=
8729 archive_expsym_cmds=
8730 compiler_needs_object=no
8731 enable_shared_with_static_runtimes=no
8732 export_dynamic_flag_spec=
8733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8734 hardcode_automatic=no
8735 hardcode_direct=no
8736 hardcode_direct_absolute=no
8737 hardcode_libdir_flag_spec=
8738 hardcode_libdir_flag_spec_ld=
8739 hardcode_libdir_separator=
8740 hardcode_minus_L=no
8741 hardcode_shlibpath_var=unsupported
8742 inherit_rpath=no
8743 link_all_deplibs=unknown
8744 module_cmds=
8745 module_expsym_cmds=
8746 old_archive_from_new_cmds=
8747 old_archive_from_expsyms_cmds=
8748 thread_safe_flag_spec=
8749 whole_archive_flag_spec=
8750 # include_expsyms should be a list of space-separated symbols to be *always*
8751 # included in the symbol list
8752 include_expsyms=
8753 # exclude_expsyms can be an extended regexp of symbols to exclude
8754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8756 # as well as any symbol that contains `d'.
8757 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759 # platforms (ab)use it in PIC code, but their linkers get confused if
8760 # the symbol is explicitly referenced. Since portable code cannot
8761 # rely on this symbol name, it's probably fine to never include it in
8762 # preloaded symbol tables.
8763 # Exclude shared library initialization/finalization symbols.
8764 extract_expsyms_cmds=
8765
8766 case $host_os in
8767 cygwin* | mingw* | pw32* | cegcc*)
8768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769 # When not using gcc, we currently assume that we are using
8770 # Microsoft Visual C++.
8771 if test "$GCC" != yes; then
8772 with_gnu_ld=no
8773 fi
8774 ;;
8775 interix*)
8776 # we just hope/assume this is gcc and not c89 (= MSVC++)
8777 with_gnu_ld=yes
8778 ;;
8779 openbsd*)
8780 with_gnu_ld=no
8781 ;;
8782 esac
8783
8784 ld_shlibs=yes
8785
8786 # On some targets, GNU ld is compatible enough with the native linker
8787 # that we're better off using the native interface for both.
8788 lt_use_gnu_ld_interface=no
8789 if test "$with_gnu_ld" = yes; then
8790 case $host_os in
8791 aix*)
8792 # The AIX port of GNU ld has always aspired to compatibility
8793 # with the native linker. However, as the warning in the GNU ld
8794 # block says, versions before 2.19.5* couldn't really create working
8795 # shared libraries, regardless of the interface used.
8796 case `$LD -v 2>&1` in
8797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8800 *)
8801 lt_use_gnu_ld_interface=yes
8802 ;;
8803 esac
8804 ;;
8805 *)
8806 lt_use_gnu_ld_interface=yes
8807 ;;
8808 esac
8809 fi
8810
8811 if test "$lt_use_gnu_ld_interface" = yes; then
8812 # If archive_cmds runs LD, not CC, wlarc should be empty
8813 wlarc='${wl}'
8814
8815 # Set some defaults for GNU ld with shared library support. These
8816 # are reset later if shared libraries are not supported. Putting them
8817 # here allows them to be overridden if necessary.
8818 runpath_var=LD_RUN_PATH
8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 export_dynamic_flag_spec='${wl}--export-dynamic'
8821 # ancient GNU ld didn't support --whole-archive et. al.
8822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8824 else
8825 whole_archive_flag_spec=
8826 fi
8827 supports_anon_versioning=no
8828 case `$LD -v 2>&1` in
8829 *GNU\ gold*) supports_anon_versioning=yes ;;
8830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8833 *\ 2.11.*) ;; # other 2.11 versions
8834 *) supports_anon_versioning=yes ;;
8835 esac
8836
8837 # See if GNU ld supports shared libraries.
8838 case $host_os in
8839 aix[3-9]*)
8840 # On AIX/PPC, the GNU linker is very broken
8841 if test "$host_cpu" != ia64; then
8842 ld_shlibs=no
8843 cat <<_LT_EOF 1>&2
8844
8845 *** Warning: the GNU linker, at least up to release 2.19, is reported
8846 *** to be unable to reliably create shared libraries on AIX.
8847 *** Therefore, libtool is disabling shared libraries support. If you
8848 *** really care for shared libraries, you may want to install binutils
8849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8850 *** You will then need to restart the configuration process.
8851
8852 _LT_EOF
8853 fi
8854 ;;
8855
8856 amigaos*)
8857 case $host_cpu in
8858 powerpc)
8859 # see comment about AmigaOS4 .so support
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds=''
8862 ;;
8863 m68k)
8864 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)'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_minus_L=yes
8867 ;;
8868 esac
8869 ;;
8870
8871 beos*)
8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873 allow_undefined_flag=unsupported
8874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8875 # support --undefined. This deserves some investigation. FIXME
8876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 else
8878 ld_shlibs=no
8879 fi
8880 ;;
8881
8882 cygwin* | mingw* | pw32* | cegcc*)
8883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8884 # as there is no search path for DLLs.
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 export_dynamic_flag_spec='${wl}--export-all-symbols'
8887 allow_undefined_flag=unsupported
8888 always_export_symbols=no
8889 enable_shared_with_static_runtimes=yes
8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8891
8892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 # If the export-symbols file already is a .def file (1st line
8895 # is EXPORTS), use it as is; otherwise, prepend...
8896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8897 cp $export_symbols $output_objdir/$soname.def;
8898 else
8899 echo EXPORTS > $output_objdir/$soname.def;
8900 cat $export_symbols >> $output_objdir/$soname.def;
8901 fi~
8902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903 else
8904 ld_shlibs=no
8905 fi
8906 ;;
8907
8908 haiku*)
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 link_all_deplibs=yes
8911 ;;
8912
8913 interix[3-9]*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 export_dynamic_flag_spec='${wl}-E'
8918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919 # Instead, shared libraries are loaded at an image base (0x10000000 by
8920 # default) and relocated if they conflict, which is a slow very memory
8921 # consuming and fragmenting process. To avoid this, we pick a random,
8922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925 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'
8926 ;;
8927
8928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 tmp_diet=no
8930 if test "$host_os" = linux-dietlibc; then
8931 case $cc_basename in
8932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8933 esac
8934 fi
8935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8936 && test "$tmp_diet" = no
8937 then
8938 tmp_addflag=' $pic_flag'
8939 tmp_sharedflag='-shared'
8940 case $cc_basename,$host_cpu in
8941 pgcc*) # Portland Group C compiler
8942 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'
8943 tmp_addflag=' $pic_flag'
8944 ;;
8945 pgf77* | pgf90* | pgf95* | pgfortran*)
8946 # Portland Group f77 and f90 compilers
8947 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'
8948 tmp_addflag=' $pic_flag -Mnomain' ;;
8949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8950 tmp_addflag=' -i_dynamic' ;;
8951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8952 tmp_addflag=' -i_dynamic -nofor_main' ;;
8953 ifc* | ifort*) # Intel Fortran compiler
8954 tmp_addflag=' -nofor_main' ;;
8955 lf95*) # Lahey Fortran 8.1
8956 whole_archive_flag_spec=
8957 tmp_sharedflag='--shared' ;;
8958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8959 tmp_sharedflag='-qmkshrobj'
8960 tmp_addflag= ;;
8961 nvcc*) # Cuda Compiler Driver 2.2
8962 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'
8963 compiler_needs_object=yes
8964 ;;
8965 esac
8966 case `$CC -V 2>&1 | sed 5q` in
8967 *Sun\ C*) # Sun C 5.9
8968 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'
8969 compiler_needs_object=yes
8970 tmp_sharedflag='-G' ;;
8971 *Sun\ F*) # Sun Fortran 8.3
8972 tmp_sharedflag='-G' ;;
8973 esac
8974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975
8976 if test "x$supports_anon_versioning" = xyes; then
8977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979 echo "local: *; };" >> $output_objdir/$libname.ver~
8980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8981 fi
8982
8983 case $cc_basename in
8984 xlf* | bgf* | bgxlf* | mpixlf*)
8985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8990 if test "x$supports_anon_versioning" = xyes; then
8991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993 echo "local: *; };" >> $output_objdir/$libname.ver~
8994 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8995 fi
8996 ;;
8997 esac
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 netbsd*)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006 wlarc=
9007 else
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 fi
9011 ;;
9012
9013 solaris*)
9014 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019 *** create shared libraries on Solaris systems. Therefore, libtool
9020 *** is disabling shared libraries support. We urge you to upgrade GNU
9021 *** binutils to release 2.9.1 or newer. Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9024
9025 _LT_EOF
9026 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9031 fi
9032 ;;
9033
9034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035 case `$LD -v 2>&1` in
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9039
9040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041 *** reliably create shared libraries on SCO systems. Therefore, libtool
9042 *** is disabling shared libraries support. We urge you to upgrade GNU
9043 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9044 *** your PATH or compiler configuration so that the native linker is
9045 *** used, and then restart.
9046
9047 _LT_EOF
9048 ;;
9049 *)
9050 # For security reasons, it is highly recommended that you always
9051 # use absolute paths for naming shared libraries, and exclude the
9052 # DT_RUNPATH tag from executables and libraries. But doing so
9053 # requires that you compile everything twice, which is a pain.
9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062 esac
9063 ;;
9064
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080 esac
9081
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9087 fi
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9102 fi
9103 ;;
9104
9105 aix[4-9]*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 # Also, AIX nm treats weak defined symbols like other global
9116 # defined symbols, whereas GNU nm marks them as "W".
9117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9118 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'
9119 else
9120 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'
9121 fi
9122 aix_use_runtimelinking=no
9123
9124 # Test if we are trying to use run time linking or normal
9125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9126 # need to do runtime linking.
9127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9128 for ld_flag in $LDFLAGS; do
9129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9130 aix_use_runtimelinking=yes
9131 break
9132 fi
9133 done
9134 ;;
9135 esac
9136
9137 exp_sym_flag='-bexport'
9138 no_entry_flag='-bnoentry'
9139 fi
9140
9141 # When large executables or shared objects are built, AIX ld can
9142 # have problems creating the table of contents. If linking a library
9143 # or program results in "error TOC overflow" add -mminimal-toc to
9144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9146
9147 archive_cmds=''
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 file_list_spec='${wl}-f,'
9153
9154 if test "$GCC" = yes; then
9155 case $host_os in aix4.[012]|aix4.[012].*)
9156 # We only want to do this on AIX 4.2 and lower, the check
9157 # below for broken collect2 doesn't work under 4.3+
9158 collect2name=`${CC} -print-prog-name=collect2`
9159 if test -f "$collect2name" &&
9160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9161 then
9162 # We have reworked collect2
9163 :
9164 else
9165 # We have old collect2
9166 hardcode_direct=unsupported
9167 # It fails to find uninstalled libraries when the uninstalled
9168 # path is not listed in the libpath. Setting hardcode_minus_L
9169 # to unsupported forces relinking
9170 hardcode_minus_L=yes
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_libdir_separator=
9173 fi
9174 ;;
9175 esac
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9179 fi
9180 else
9181 # not using gcc
9182 if test "$host_cpu" = ia64; then
9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184 # chokes on -Wl,-G. The following line is correct:
9185 shared_flag='-G'
9186 else
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag='${wl}-G'
9189 else
9190 shared_flag='${wl}-bM:SRE'
9191 fi
9192 fi
9193 fi
9194
9195 export_dynamic_flag_spec='${wl}-bexpall'
9196 # It seems that -bexpall does not export symbols beginning with
9197 # underscore (_), so it is better to generate a list of symbols to export.
9198 always_export_symbols=yes
9199 if test "$aix_use_runtimelinking" = yes; then
9200 # Warning - without using the other runtime loading flags (-brtl),
9201 # -berok will link without error, but may produce a broken library.
9202 allow_undefined_flag='-berok'
9203 # Determine the default libpath from the value encoded in an
9204 # empty executable.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207
9208 int
9209 main ()
9210 {
9211
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217
9218 lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9222 p
9223 }
9224 }'
9225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 # Check for a 64-bit object if we didn't find anything.
9227 if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 fi
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 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"
9237 else
9238 if test "$host_cpu" = ia64; then
9239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240 allow_undefined_flag="-z nodefs"
9241 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"
9242 else
9243 # Determine the default libpath from the value encoded in an
9244 # empty executable.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247
9248 int
9249 main ()
9250 {
9251
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257
9258 lt_aix_libpath_sed='
9259 /Import File Strings/,/^$/ {
9260 /^0/ {
9261 s/^0 *\(.*\)$/\1/
9262 p
9263 }
9264 }'
9265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266 # Check for a 64-bit object if we didn't find anything.
9267 if test -z "$aix_libpath"; then
9268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269 fi
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 if test "$with_gnu_ld" = yes; then
9281 # We only use this code for GNU lds that support --whole-archive.
9282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283 else
9284 # Exported symbols can be pulled into shared objects from archives
9285 whole_archive_flag_spec='$convenience'
9286 fi
9287 archive_cmds_need_lc=yes
9288 # This is similar to how AIX traditionally builds its shared libraries.
9289 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'
9290 fi
9291 fi
9292 ;;
9293
9294 amigaos*)
9295 case $host_cpu in
9296 powerpc)
9297 # see comment about AmigaOS4 .so support
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds=''
9300 ;;
9301 m68k)
9302 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)'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_minus_L=yes
9305 ;;
9306 esac
9307 ;;
9308
9309 bsdi[45]*)
9310 export_dynamic_flag_spec=-rdynamic
9311 ;;
9312
9313 cygwin* | mingw* | pw32* | cegcc*)
9314 # When not using gcc, we currently assume that we are using
9315 # Microsoft Visual C++.
9316 # hardcode_libdir_flag_spec is actually meaningless, as there is
9317 # no search path for DLLs.
9318 hardcode_libdir_flag_spec=' '
9319 allow_undefined_flag=unsupported
9320 # Tell ltmain to make .lib files, not .a files.
9321 libext=lib
9322 # Tell ltmain to make .dll files, not .so files.
9323 shrext_cmds=".dll"
9324 # FIXME: Setting linknames here is a bad hack.
9325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9326 # The linker will automatically build a .lib file if we build a DLL.
9327 old_archive_from_new_cmds='true'
9328 # FIXME: Should let the user specify the lib program.
9329 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330 fix_srcfile_path='`cygpath -w "$srcfile"`'
9331 enable_shared_with_static_runtimes=yes
9332 ;;
9333
9334 darwin* | rhapsody*)
9335
9336
9337 archive_cmds_need_lc=no
9338 hardcode_direct=no
9339 hardcode_automatic=yes
9340 hardcode_shlibpath_var=unsupported
9341 if test "$lt_cv_ld_force_load" = "yes"; then
9342 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\"`'
9343 else
9344 whole_archive_flag_spec=''
9345 fi
9346 link_all_deplibs=yes
9347 allow_undefined_flag="$_lt_dar_allow_undefined"
9348 case $cc_basename in
9349 ifort*) _lt_dar_can_shared=yes ;;
9350 *) _lt_dar_can_shared=$GCC ;;
9351 esac
9352 if test "$_lt_dar_can_shared" = "yes"; then
9353 output_verbose_link_cmd=func_echo_all
9354 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356 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}"
9357 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}"
9358
9359 else
9360 ld_shlibs=no
9361 fi
9362
9363 ;;
9364
9365 dgux*)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372 # support. Future versions do this automatically, but an explicit c++rt0.o
9373 # does not break anything, and helps significantly (at the cost of a little
9374 # extra space).
9375 freebsd2.2*)
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383 freebsd2.*)
9384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=yes
9386 hardcode_minus_L=yes
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391 freebsd* | dragonfly*)
9392 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 hpux9*)
9399 if test "$GCC" = yes; then
9400 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'
9401 else
9402 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'
9403 fi
9404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 hardcode_direct=yes
9407
9408 # hardcode_minus_L: Not really in the search PATH,
9409 # but as the default location of the library.
9410 hardcode_minus_L=yes
9411 export_dynamic_flag_spec='${wl}-E'
9412 ;;
9413
9414 hpux10*)
9415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 fi
9420 if test "$with_gnu_ld" = no; then
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_flag_spec_ld='+b $libdir'
9423 hardcode_libdir_separator=:
9424 hardcode_direct=yes
9425 hardcode_direct_absolute=yes
9426 export_dynamic_flag_spec='${wl}-E'
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9430 fi
9431 ;;
9432
9433 hpux11*)
9434 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435 case $host_cpu in
9436 hppa*64*)
9437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 ia64*)
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 *)
9443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 ;;
9445 esac
9446 else
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 ia64*)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 *)
9455
9456 # Older versions of the 11.00 compiler do not understand -b yet
9457 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9459 $as_echo_n "checking if $CC understands -b... " >&6; }
9460 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler__b=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS -b"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler__b=yes
9477 fi
9478 else
9479 lt_cv_prog_compiler__b=yes
9480 fi
9481 fi
9482 $RM -r conftest*
9483 LDFLAGS="$save_LDFLAGS"
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9487 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9488
9489 if test x"$lt_cv_prog_compiler__b" = xyes; then
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9493 fi
9494
9495 ;;
9496 esac
9497 fi
9498 if test "$with_gnu_ld" = no; then
9499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501
9502 case $host_cpu in
9503 hppa*64*|ia64*)
9504 hardcode_direct=no
9505 hardcode_shlibpath_var=no
9506 ;;
9507 *)
9508 hardcode_direct=yes
9509 hardcode_direct_absolute=yes
9510 export_dynamic_flag_spec='${wl}-E'
9511
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9515 ;;
9516 esac
9517 fi
9518 ;;
9519
9520 irix5* | irix6* | nonstopux*)
9521 if test "$GCC" = yes; then
9522 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'
9523 # Try to use the -exported_symbol ld option, if it does not
9524 # work, assume that -exports_file does not work either and
9525 # implicitly export all symbols.
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int foo(void) {}
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 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'
9534
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LDFLAGS="$save_LDFLAGS"
9539 else
9540 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'
9541 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'
9542 fi
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 inherit_rpath=yes
9547 link_all_deplibs=yes
9548 ;;
9549
9550 netbsd*)
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9553 else
9554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9555 fi
9556 hardcode_libdir_flag_spec='-R$libdir'
9557 hardcode_direct=yes
9558 hardcode_shlibpath_var=no
9559 ;;
9560
9561 newsos6)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=yes
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566 hardcode_shlibpath_var=no
9567 ;;
9568
9569 *nto* | *qnx*)
9570 ;;
9571
9572 openbsd*)
9573 if test -f /usr/libexec/ld.so; then
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 hardcode_direct_absolute=yes
9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581 export_dynamic_flag_spec='${wl}-E'
9582 else
9583 case $host_os in
9584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 ;;
9588 *)
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 ;;
9592 esac
9593 fi
9594 else
9595 ld_shlibs=no
9596 fi
9597 ;;
9598
9599 os2*)
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 allow_undefined_flag=unsupported
9603 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'
9604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9605 ;;
9606
9607 osf3*)
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 else
9612 allow_undefined_flag=' -expect_unresolved \*'
9613 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'
9614 fi
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 ;;
9619
9620 osf4* | osf5*) # as osf3* with the addition of -msym flag
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 else
9626 allow_undefined_flag=' -expect_unresolved \*'
9627 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'
9628 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~
9629 $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'
9630
9631 # Both c and cxx compiler support -rpath directly
9632 hardcode_libdir_flag_spec='-rpath $libdir'
9633 fi
9634 archive_cmds_need_lc='no'
9635 hardcode_libdir_separator=:
9636 ;;
9637
9638 solaris*)
9639 no_undefined_flag=' -z defs'
9640 if test "$GCC" = yes; then
9641 wlarc='${wl}'
9642 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 else
9646 case `$CC -V 2>&1` in
9647 *"Compilers 5.0"*)
9648 wlarc=''
9649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9652 ;;
9653 *)
9654 wlarc='${wl}'
9655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658 ;;
9659 esac
9660 fi
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9663 case $host_os in
9664 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 *)
9666 # The compiler driver will combine and reorder linker options,
9667 # but understands `-z linker_flag'. GCC discards it without `$wl',
9668 # but is careful enough not to reorder.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9670 if test "$GCC" = yes; then
9671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672 else
9673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9674 fi
9675 ;;
9676 esac
9677 link_all_deplibs=yes
9678 ;;
9679
9680 sunos4*)
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687 fi
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_direct=yes
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4)
9695 case $host_vendor in
9696 sni)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9699 ;;
9700 siemens)
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9705 hardcode_direct=no
9706 ;;
9707 motorola)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710 ;;
9711 esac
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 sysv4.3*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9720 ;;
9721
9722 sysv4*MP*)
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9728 ld_shlibs=yes
9729 fi
9730 ;;
9731
9732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9733 no_undefined_flag='${wl}-z,text'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 runpath_var='LD_RUN_PATH'
9737
9738 if test "$GCC" = yes; then
9739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 fi
9745 ;;
9746
9747 sysv5* | sco3.2v5* | sco5v6*)
9748 # Note: We can NOT use -z defs as we might desire, because we do not
9749 # link with -lc, and that would cause any symbols used from libc to
9750 # always be unresolved, which means just about no library would
9751 # ever link correctly. If we're not using GNU ld we use -z text
9752 # though, which does catch some bad symbols but isn't as heavy-handed
9753 # as -z defs.
9754 no_undefined_flag='${wl}-z,text'
9755 allow_undefined_flag='${wl}-z,nodefs'
9756 archive_cmds_need_lc=no
9757 hardcode_shlibpath_var=no
9758 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9759 hardcode_libdir_separator=':'
9760 link_all_deplibs=yes
9761 export_dynamic_flag_spec='${wl}-Bexport'
9762 runpath_var='LD_RUN_PATH'
9763
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 fi
9771 ;;
9772
9773 uts4*)
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 *)
9780 ld_shlibs=no
9781 ;;
9782 esac
9783
9784 if test x$host_vendor = xsni; then
9785 case $host in
9786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9787 export_dynamic_flag_spec='${wl}-Blargedynsym'
9788 ;;
9789 esac
9790 fi
9791 fi
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9794 $as_echo "$ld_shlibs" >&6; }
9795 test "$ld_shlibs" = no && can_build_shared=no
9796
9797 with_gnu_ld=$with_gnu_ld
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9820
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9823 *'~'*)
9824 # FIXME: we may have to deal with multi-command sequences.
9825 ;;
9826 '$CC '*)
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9832 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 $RM conftest*
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9840 ac_status=$?
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; } 2>conftest.err; then
9843 soname=conftest
9844 lib=conftest
9845 libobjs=conftest.$ac_objext
9846 deplibs=
9847 wl=$lt_prog_compiler_wl
9848 pic_flag=$lt_prog_compiler_pic
9849 compiler_flags=-v
9850 linker_flags=-v
9851 verstring=
9852 output_objdir=.
9853 libname=conftest
9854 lt_save_allow_undefined_flag=$allow_undefined_flag
9855 allow_undefined_flag=
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }
9861 then
9862 lt_cv_archive_cmds_need_lc=no
9863 else
9864 lt_cv_archive_cmds_need_lc=yes
9865 fi
9866 allow_undefined_flag=$lt_save_allow_undefined_flag
9867 else
9868 cat conftest.err 1>&5
9869 fi
9870 $RM conftest*
9871
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9874 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9876 ;;
9877 esac
9878 fi
9879 ;;
9880 esac
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
10035
10036
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10040
10041 if test "$GCC" = yes; then
10042 case $host_os in
10043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10044 *) lt_awk_arg="/^libraries:/" ;;
10045 esac
10046 case $host_os in
10047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10048 *) lt_sed_strip_eq="s,=/,/,g" ;;
10049 esac
10050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10051 case $lt_search_path_spec in
10052 *\;*)
10053 # if the path contains ";" then we assume it to be the separator
10054 # otherwise default to the standard path separator (i.e. ":") - it is
10055 # assumed that no part of a normal pathname contains ";" but that should
10056 # okay in the real world where ";" in dirpaths is itself problematic.
10057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10058 ;;
10059 *)
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10061 ;;
10062 esac
10063 # Ok, now we have the path, separated by spaces, we can step through it
10064 # and add multilib dir if necessary.
10065 lt_tmp_lt_search_path_spec=
10066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10067 for lt_sys_path in $lt_search_path_spec; do
10068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070 else
10071 test -d "$lt_sys_path" && \
10072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10073 fi
10074 done
10075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10076 BEGIN {RS=" "; FS="/|\n";} {
10077 lt_foo="";
10078 lt_count=0;
10079 for (lt_i = NF; lt_i > 0; lt_i--) {
10080 if ($lt_i != "" && $lt_i != ".") {
10081 if ($lt_i == "..") {
10082 lt_count++;
10083 } else {
10084 if (lt_count == 0) {
10085 lt_foo="/" $lt_i lt_foo;
10086 } else {
10087 lt_count--;
10088 }
10089 }
10090 }
10091 }
10092 if (lt_foo != "") { lt_freq[lt_foo]++; }
10093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094 }'`
10095 # AWK program above erroneously prepends '/' to C:/dos/paths
10096 # for these hosts.
10097 case $host_os in
10098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100 esac
10101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102 else
10103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10104 fi
10105 library_names_spec=
10106 libname_spec='lib$name'
10107 soname_spec=
10108 shrext_cmds=".so"
10109 postinstall_cmds=
10110 postuninstall_cmds=
10111 finish_cmds=
10112 finish_eval=
10113 shlibpath_var=
10114 shlibpath_overrides_runpath=unknown
10115 version_type=none
10116 dynamic_linker="$host_os ld.so"
10117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10118 need_lib_prefix=unknown
10119 hardcode_into_libs=no
10120
10121 # when you set need_version to no, make sure it does not cause -set_version
10122 # flags to be left without arguments
10123 need_version=unknown
10124
10125 case $host_os in
10126 aix3*)
10127 version_type=linux
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10129 shlibpath_var=LIBPATH
10130
10131 # AIX 3 has no versioning support, so we append a major version to the name.
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 ;;
10134
10135 aix[4-9]*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 hardcode_into_libs=yes
10140 if test "$host_cpu" = ia64; then
10141 # AIX 5 supports IA64
10142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 else
10145 # With GCC up to 2.95.x, collect2 would create an import file
10146 # for dependence libraries. The import file would start with
10147 # the line `#! .'. This would cause the generated library to
10148 # depend on `.', always an invalid library. This was fixed in
10149 # development snapshots of GCC prior to 3.0.
10150 case $host_os in
10151 aix4 | aix4.[01] | aix4.[01].*)
10152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153 echo ' yes '
10154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10155 :
10156 else
10157 can_build_shared=no
10158 fi
10159 ;;
10160 esac
10161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10162 # soname into executable. Probably we can add versioning support to
10163 # collect2, so additional links can be useful in future.
10164 if test "$aix_use_runtimelinking" = yes; then
10165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10166 # instead of lib<name>.a to let people know that these are not
10167 # typical AIX shared libraries.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 else
10170 # We preserve .a as extension for shared libraries through AIX4.2
10171 # and later when we are not doing run time linking.
10172 library_names_spec='${libname}${release}.a $libname.a'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 fi
10175 shlibpath_var=LIBPATH
10176 fi
10177 ;;
10178
10179 amigaos*)
10180 case $host_cpu in
10181 powerpc)
10182 # Since July 2007 AmigaOS4 officially supports .so libraries.
10183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 ;;
10186 m68k)
10187 library_names_spec='$libname.ixlibrary $libname.a'
10188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10189 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'
10190 ;;
10191 esac
10192 ;;
10193
10194 beos*)
10195 library_names_spec='${libname}${shared_ext}'
10196 dynamic_linker="$host_os ld.so"
10197 shlibpath_var=LIBRARY_PATH
10198 ;;
10199
10200 bsdi[45]*)
10201 version_type=linux
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10209 # the default ld.so.conf also contains /usr/contrib/lib and
10210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10211 # libtool to hard-code these into programs
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 version_type=windows
10216 shrext_cmds=".dll"
10217 need_version=no
10218 need_lib_prefix=no
10219
10220 case $GCC,$host_os in
10221 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10222 library_names_spec='$libname.dll.a'
10223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10224 postinstall_cmds='base_file=`basename \${file}`~
10225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10226 dldir=$destdir/`dirname \$dlpath`~
10227 test -d \$dldir || mkdir -p \$dldir~
10228 $install_prog $dir/$dlname \$dldir/$dlname~
10229 chmod a+x \$dldir/$dlname~
10230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232 fi'
10233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10234 dlpath=$dir/\$dldll~
10235 $RM \$dlpath'
10236 shlibpath_overrides_runpath=yes
10237
10238 case $host_os in
10239 cygwin*)
10240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242
10243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10244 ;;
10245 mingw* | cegcc*)
10246 # MinGW DLLs use traditional 'lib' prefix
10247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 ;;
10249 pw32*)
10250 # pw32 DLLs use 'pw' prefix rather than 'lib'
10251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252 ;;
10253 esac
10254 ;;
10255
10256 *)
10257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10258 ;;
10259 esac
10260 dynamic_linker='Win32 ld.exe'
10261 # FIXME: first we should search . and the directory the executable is in
10262 shlibpath_var=PATH
10263 ;;
10264
10265 darwin* | rhapsody*)
10266 dynamic_linker="$host_os dyld"
10267 version_type=darwin
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10271 soname_spec='${libname}${release}${major}$shared_ext'
10272 shlibpath_overrides_runpath=yes
10273 shlibpath_var=DYLD_LIBRARY_PATH
10274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275
10276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10278 ;;
10279
10280 dgux*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 ;;
10288
10289 freebsd* | dragonfly*)
10290 # DragonFly does not have aout. When/if they implement a new
10291 # versioning mechanism, adjust this.
10292 if test -x /usr/bin/objformat; then
10293 objformat=`/usr/bin/objformat`
10294 else
10295 case $host_os in
10296 freebsd[23].*) objformat=aout ;;
10297 *) objformat=elf ;;
10298 esac
10299 fi
10300 version_type=freebsd-$objformat
10301 case $version_type in
10302 freebsd-elf*)
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 need_version=no
10305 need_lib_prefix=no
10306 ;;
10307 freebsd-*)
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10309 need_version=yes
10310 ;;
10311 esac
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_os in
10314 freebsd2.*)
10315 shlibpath_overrides_runpath=yes
10316 ;;
10317 freebsd3.[01]* | freebsdelf3.[01]*)
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10325 ;;
10326 *) # from 4.6 on, and DragonFly
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 ;;
10330 esac
10331 ;;
10332
10333 gnu*)
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 hardcode_into_libs=yes
10341 ;;
10342
10343 haiku*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 dynamic_linker="$host_os runtime_loader"
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10353 hardcode_into_libs=yes
10354 ;;
10355
10356 hpux9* | hpux10* | hpux11*)
10357 # Give a soname corresponding to the major version so that dld.sl refuses to
10358 # link against other versions.
10359 version_type=sunos
10360 need_lib_prefix=no
10361 need_version=no
10362 case $host_cpu in
10363 ia64*)
10364 shrext_cmds='.so'
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 if test "X$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373 else
10374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375 fi
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377 ;;
10378 hppa*64*)
10379 shrext_cmds='.sl'
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.sl"
10382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388 ;;
10389 *)
10390 shrext_cmds='.sl'
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=SHLIB_PATH
10393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 ;;
10397 esac
10398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10399 postinstall_cmds='chmod 555 $lib'
10400 # or fails outright, so override atomically:
10401 install_override_mode=555
10402 ;;
10403
10404 interix[3-9]*)
10405 version_type=linux
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10414 ;;
10415
10416 irix5* | irix6* | nonstopux*)
10417 case $host_os in
10418 nonstopux*) version_type=nonstopux ;;
10419 *)
10420 if test "$lt_cv_prog_gnu_ld" = yes; then
10421 version_type=linux
10422 else
10423 version_type=irix
10424 fi ;;
10425 esac
10426 need_lib_prefix=no
10427 need_version=no
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 case $host_os in
10431 irix5* | nonstopux*)
10432 libsuff= shlibsuff=
10433 ;;
10434 *)
10435 case $LD in # libtool.m4 will add one of these switches to LD
10436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10437 libsuff= shlibsuff= libmagic=32-bit;;
10438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10439 libsuff=32 shlibsuff=N32 libmagic=N32;;
10440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10442 *) libsuff= shlibsuff= libmagic=never-match;;
10443 esac
10444 ;;
10445 esac
10446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10447 shlibpath_overrides_runpath=no
10448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10450 hardcode_into_libs=yes
10451 ;;
10452
10453 # No shared lib support for Linux oldld, aout, or coff.
10454 linux*oldld* | linux*aout* | linux*coff*)
10455 dynamic_linker=no
10456 ;;
10457
10458 # This must be Linux ELF.
10459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468
10469 # Some binutils ld are patched to set DT_RUNPATH
10470 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 lt_cv_shlibpath_overrides_runpath=no
10474 save_LDFLAGS=$LDFLAGS
10475 save_libdir=$libdir
10476 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10477 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480
10481 int
10482 main ()
10483 {
10484
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10491 lt_cv_shlibpath_overrides_runpath=yes
10492 fi
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LDFLAGS=$save_LDFLAGS
10497 libdir=$save_libdir
10498
10499 fi
10500
10501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10502
10503 # This implies no fast_install, which is unacceptable.
10504 # Some rework will be needed to allow for fast_install
10505 # before this can be enabled.
10506 hardcode_into_libs=yes
10507
10508 # Append ld.so.conf contents to the search path
10509 if test -f /etc/ld.so.conf; then
10510 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' ' '`
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10512 fi
10513
10514 # We used to test for /lib/ld.so.1 and disable shared libraries on
10515 # powerpc, because MkLinux only supported shared libraries with the
10516 # GNU dynamic linker. Since this was broken with cross compilers,
10517 # most powerpc-linux boxes support dynamic linking these days and
10518 # people can always --disable-shared, the test was removed, and we
10519 # assume the GNU/Linux dynamic linker is in use.
10520 dynamic_linker='GNU/Linux ld.so'
10521 ;;
10522
10523 netbsd*)
10524 version_type=sunos
10525 need_lib_prefix=no
10526 need_version=no
10527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 dynamic_linker='NetBSD (a.out) ld.so'
10531 else
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 dynamic_linker='NetBSD ld.elf_so'
10535 fi
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10539 ;;
10540
10541 newsos6)
10542 version_type=linux
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 ;;
10547
10548 *nto* | *qnx*)
10549 version_type=qnx
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10557 dynamic_linker='ldqnx.so'
10558 ;;
10559
10560 openbsd*)
10561 version_type=sunos
10562 sys_lib_dlsearch_path_spec="/usr/lib"
10563 need_lib_prefix=no
10564 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10565 case $host_os in
10566 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10567 *) need_version=no ;;
10568 esac
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10573 case $host_os in
10574 openbsd2.[89] | openbsd2.[89].*)
10575 shlibpath_overrides_runpath=no
10576 ;;
10577 *)
10578 shlibpath_overrides_runpath=yes
10579 ;;
10580 esac
10581 else
10582 shlibpath_overrides_runpath=yes
10583 fi
10584 ;;
10585
10586 os2*)
10587 libname_spec='$name'
10588 shrext_cmds=".dll"
10589 need_lib_prefix=no
10590 library_names_spec='$libname${shared_ext} $libname.a'
10591 dynamic_linker='OS/2 ld.exe'
10592 shlibpath_var=LIBPATH
10593 ;;
10594
10595 osf3* | osf4* | osf5*)
10596 version_type=osf
10597 need_lib_prefix=no
10598 need_version=no
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10604 ;;
10605
10606 rdos*)
10607 dynamic_linker=no
10608 ;;
10609
10610 solaris*)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 # ldd complains unless libraries are executable
10620 postinstall_cmds='chmod +x $lib'
10621 ;;
10622
10623 sunos4*)
10624 version_type=sunos
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 if test "$with_gnu_ld" = yes; then
10630 need_lib_prefix=no
10631 fi
10632 need_version=yes
10633 ;;
10634
10635 sysv4 | sysv4.3*)
10636 version_type=linux
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 case $host_vendor in
10641 sni)
10642 shlibpath_overrides_runpath=no
10643 need_lib_prefix=no
10644 runpath_var=LD_RUN_PATH
10645 ;;
10646 siemens)
10647 need_lib_prefix=no
10648 ;;
10649 motorola)
10650 need_lib_prefix=no
10651 need_version=no
10652 shlibpath_overrides_runpath=no
10653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10654 ;;
10655 esac
10656 ;;
10657
10658 sysv4*MP*)
10659 if test -d /usr/nec ;then
10660 version_type=linux
10661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10662 soname_spec='$libname${shared_ext}.$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 fi
10665 ;;
10666
10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668 version_type=freebsd-elf
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 if test "$with_gnu_ld" = yes; then
10677 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10678 else
10679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10680 case $host_os in
10681 sco3.2v5*)
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10683 ;;
10684 esac
10685 fi
10686 sys_lib_dlsearch_path_spec='/usr/lib'
10687 ;;
10688
10689 tpf*)
10690 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=no
10697 hardcode_into_libs=yes
10698 ;;
10699
10700 uts4*)
10701 version_type=linux
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 ;;
10706
10707 *)
10708 dynamic_linker=no
10709 ;;
10710 esac
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10712 $as_echo "$dynamic_linker" >&6; }
10713 test "$dynamic_linker" = no && can_build_shared=no
10714
10715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10716 if test "$GCC" = yes; then
10717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10718 fi
10719
10720 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10721 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10722 fi
10723 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10724 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10725 fi
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
10815
10816
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10820 hardcode_action=
10821 if test -n "$hardcode_libdir_flag_spec" ||
10822 test -n "$runpath_var" ||
10823 test "X$hardcode_automatic" = "Xyes" ; then
10824
10825 # We can hardcode non-existent directories.
10826 if test "$hardcode_direct" != no &&
10827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10828 # have to relink, otherwise we might link with an installed library
10829 # when we should be linking with a yet-to-be-installed one
10830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10831 test "$hardcode_minus_L" != no; then
10832 # Linking always hardcodes the temporary library directory.
10833 hardcode_action=relink
10834 else
10835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10836 hardcode_action=immediate
10837 fi
10838 else
10839 # We cannot hardcode anything, or else we can only hardcode existing
10840 # directories.
10841 hardcode_action=unsupported
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10844 $as_echo "$hardcode_action" >&6; }
10845
10846 if test "$hardcode_action" = relink ||
10847 test "$inherit_rpath" = yes; then
10848 # Fast installation is not supported
10849 enable_fast_install=no
10850 elif test "$shlibpath_overrides_runpath" = yes ||
10851 test "$enable_shared" = no; then
10852 # Fast installation is not necessary
10853 enable_fast_install=needless
10854 fi
10855
10856
10857
10858
10859
10860
10861 if test "x$enable_dlopen" != xyes; then
10862 enable_dlopen=unknown
10863 enable_dlopen_self=unknown
10864 enable_dlopen_self_static=unknown
10865 else
10866 lt_cv_dlopen=no
10867 lt_cv_dlopen_libs=
10868
10869 case $host_os in
10870 beos*)
10871 lt_cv_dlopen="load_add_on"
10872 lt_cv_dlopen_libs=
10873 lt_cv_dlopen_self=yes
10874 ;;
10875
10876 mingw* | pw32* | cegcc*)
10877 lt_cv_dlopen="LoadLibrary"
10878 lt_cv_dlopen_libs=
10879 ;;
10880
10881 cygwin*)
10882 lt_cv_dlopen="dlopen"
10883 lt_cv_dlopen_libs=
10884 ;;
10885
10886 darwin*)
10887 # if libdl is installed we need to link against it
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldl $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10905 int
10906 main ()
10907 {
10908 return dlopen ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dl_dlopen=yes
10915 else
10916 ac_cv_lib_dl_dlopen=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10924 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10926 else
10927
10928 lt_cv_dlopen="dyld"
10929 lt_cv_dlopen_libs=
10930 lt_cv_dlopen_self=yes
10931
10932 fi
10933
10934 ;;
10935
10936 *)
10937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10938 if test "x$ac_cv_func_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10942 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10943 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldld $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char shl_load ();
10958 int
10959 main ()
10960 {
10961 return shl_load ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_dld_shl_load=yes
10968 else
10969 ac_cv_lib_dld_shl_load=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10976 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10977 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10979 else
10980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10981 if test "x$ac_cv_func_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen"
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldl $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11001 int
11002 main ()
11003 {
11004 return dlopen ();
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_dl_dlopen=yes
11011 else
11012 ac_cv_lib_dl_dlopen=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-lsvld $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11040 int
11041 main ()
11042 {
11043 return dlopen ();
11044 ;
11045 return 0;
11046 }
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_svld_dlopen=yes
11050 else
11051 ac_cv_lib_svld_dlopen=no
11052 fi
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11056 fi
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11058 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11059 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11063 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-ldld $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char dld_link ();
11079 int
11080 main ()
11081 {
11082 return dld_link ();
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_dld_dld_link=yes
11089 else
11090 ac_cv_lib_dld_dld_link=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11097 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11098 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11100 fi
11101
11102
11103 fi
11104
11105
11106 fi
11107
11108
11109 fi
11110
11111
11112 fi
11113
11114
11115 fi
11116
11117 ;;
11118 esac
11119
11120 if test "x$lt_cv_dlopen" != xno; then
11121 enable_dlopen=yes
11122 else
11123 enable_dlopen=no
11124 fi
11125
11126 case $lt_cv_dlopen in
11127 dlopen)
11128 save_CPPFLAGS="$CPPFLAGS"
11129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11130
11131 save_LDFLAGS="$LDFLAGS"
11132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11133
11134 save_LIBS="$LIBS"
11135 LIBS="$lt_cv_dlopen_libs $LIBS"
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11138 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11139 if test "${lt_cv_dlopen_self+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test "$cross_compiling" = yes; then :
11143 lt_cv_dlopen_self=cross
11144 else
11145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11146 lt_status=$lt_dlunknown
11147 cat > conftest.$ac_ext <<_LT_EOF
11148 #line 11148 "configure"
11149 #include "confdefs.h"
11150
11151 #if HAVE_DLFCN_H
11152 #include <dlfcn.h>
11153 #endif
11154
11155 #include <stdio.h>
11156
11157 #ifdef RTLD_GLOBAL
11158 # define LT_DLGLOBAL RTLD_GLOBAL
11159 #else
11160 # ifdef DL_GLOBAL
11161 # define LT_DLGLOBAL DL_GLOBAL
11162 # else
11163 # define LT_DLGLOBAL 0
11164 # endif
11165 #endif
11166
11167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11168 find out it does not work in some platform. */
11169 #ifndef LT_DLLAZY_OR_NOW
11170 # ifdef RTLD_LAZY
11171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11172 # else
11173 # ifdef DL_LAZY
11174 # define LT_DLLAZY_OR_NOW DL_LAZY
11175 # else
11176 # ifdef RTLD_NOW
11177 # define LT_DLLAZY_OR_NOW RTLD_NOW
11178 # else
11179 # ifdef DL_NOW
11180 # define LT_DLLAZY_OR_NOW DL_NOW
11181 # else
11182 # define LT_DLLAZY_OR_NOW 0
11183 # endif
11184 # endif
11185 # endif
11186 # endif
11187 #endif
11188
11189 /* When -fvisbility=hidden is used, assume the code has been annotated
11190 correspondingly for the symbols needed. */
11191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11192 void fnord () __attribute__((visibility("default")));
11193 #endif
11194
11195 void fnord () { int i=42; }
11196 int main ()
11197 {
11198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199 int status = $lt_dlunknown;
11200
11201 if (self)
11202 {
11203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11204 else
11205 {
11206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11207 else puts (dlerror ());
11208 }
11209 /* dlclose (self); */
11210 }
11211 else
11212 puts (dlerror ());
11213
11214 return status;
11215 }
11216 _LT_EOF
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11218 (eval $ac_link) 2>&5
11219 ac_status=$?
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11222 (./conftest; exit; ) >&5 2>/dev/null
11223 lt_status=$?
11224 case x$lt_status in
11225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228 esac
11229 else :
11230 # compilation failed
11231 lt_cv_dlopen_self=no
11232 fi
11233 fi
11234 rm -fr conftest*
11235
11236
11237 fi
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11239 $as_echo "$lt_cv_dlopen_self" >&6; }
11240
11241 if test "x$lt_cv_dlopen_self" = xyes; then
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11245 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test "$cross_compiling" = yes; then :
11249 lt_cv_dlopen_self_static=cross
11250 else
11251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252 lt_status=$lt_dlunknown
11253 cat > conftest.$ac_ext <<_LT_EOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11256
11257 #if HAVE_DLFCN_H
11258 #include <dlfcn.h>
11259 #endif
11260
11261 #include <stdio.h>
11262
11263 #ifdef RTLD_GLOBAL
11264 # define LT_DLGLOBAL RTLD_GLOBAL
11265 #else
11266 # ifdef DL_GLOBAL
11267 # define LT_DLGLOBAL DL_GLOBAL
11268 # else
11269 # define LT_DLGLOBAL 0
11270 # endif
11271 #endif
11272
11273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274 find out it does not work in some platform. */
11275 #ifndef LT_DLLAZY_OR_NOW
11276 # ifdef RTLD_LAZY
11277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11278 # else
11279 # ifdef DL_LAZY
11280 # define LT_DLLAZY_OR_NOW DL_LAZY
11281 # else
11282 # ifdef RTLD_NOW
11283 # define LT_DLLAZY_OR_NOW RTLD_NOW
11284 # else
11285 # ifdef DL_NOW
11286 # define LT_DLLAZY_OR_NOW DL_NOW
11287 # else
11288 # define LT_DLLAZY_OR_NOW 0
11289 # endif
11290 # endif
11291 # endif
11292 # endif
11293 #endif
11294
11295 /* When -fvisbility=hidden is used, assume the code has been annotated
11296 correspondingly for the symbols needed. */
11297 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11298 void fnord () __attribute__((visibility("default")));
11299 #endif
11300
11301 void fnord () { int i=42; }
11302 int main ()
11303 {
11304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305 int status = $lt_dlunknown;
11306
11307 if (self)
11308 {
11309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11310 else
11311 {
11312 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11313 else puts (dlerror ());
11314 }
11315 /* dlclose (self); */
11316 }
11317 else
11318 puts (dlerror ());
11319
11320 return status;
11321 }
11322 _LT_EOF
11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11324 (eval $ac_link) 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11328 (./conftest; exit; ) >&5 2>/dev/null
11329 lt_status=$?
11330 case x$lt_status in
11331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11333 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11334 esac
11335 else :
11336 # compilation failed
11337 lt_cv_dlopen_self_static=no
11338 fi
11339 fi
11340 rm -fr conftest*
11341
11342
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11345 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11346 fi
11347
11348 CPPFLAGS="$save_CPPFLAGS"
11349 LDFLAGS="$save_LDFLAGS"
11350 LIBS="$save_LIBS"
11351 ;;
11352 esac
11353
11354 case $lt_cv_dlopen_self in
11355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11356 *) enable_dlopen_self=unknown ;;
11357 esac
11358
11359 case $lt_cv_dlopen_self_static in
11360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11361 *) enable_dlopen_self_static=unknown ;;
11362 esac
11363 fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 striplib=
11382 old_striplib=
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11384 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11385 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 # FIXME - insert some real tests, host_os isn't really good enough
11392 case $host_os in
11393 darwin*)
11394 if test -n "$STRIP" ; then
11395 striplib="$STRIP -x"
11396 old_striplib="$STRIP -S"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398 $as_echo "yes" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403 ;;
11404 *)
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 ;;
11408 esac
11409 fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422 # Report which library types will actually be built
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11424 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11426 $as_echo "$can_build_shared" >&6; }
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11429 $as_echo_n "checking whether to build shared libraries... " >&6; }
11430 test "$can_build_shared" = "no" && enable_shared=no
11431
11432 # On AIX, shared libraries and static libraries use the same namespace, and
11433 # are all built from PIC.
11434 case $host_os in
11435 aix3*)
11436 test "$enable_shared" = yes && enable_static=no
11437 if test -n "$RANLIB"; then
11438 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11439 postinstall_cmds='$RANLIB $lib'
11440 fi
11441 ;;
11442
11443 aix[4-9]*)
11444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11445 test "$enable_shared" = yes && enable_static=no
11446 fi
11447 ;;
11448 esac
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11450 $as_echo "$enable_shared" >&6; }
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11453 $as_echo_n "checking whether to build static libraries... " >&6; }
11454 # Make sure either enable_shared or enable_static is yes.
11455 test "$enable_shared" = yes || enable_static=yes
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11457 $as_echo "$enable_static" >&6; }
11458
11459
11460
11461
11462 fi
11463 ac_ext=c
11464 ac_cpp='$CPP $CPPFLAGS'
11465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468
11469 CC="$lt_save_CC"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 ac_config_commands="$ac_config_commands libtool"
11484
11485
11486
11487
11488 # Only expand once:
11489
11490
11491
11492
11493 # Check whether --enable-largefile was given.
11494 if test "${enable_largefile+set}" = set; then :
11495 enableval=$enable_largefile;
11496 fi
11497
11498 if test "$enable_largefile" != no; then
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11501 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11502 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_cv_sys_largefile_CC=no
11506 if test "$GCC" != yes; then
11507 ac_save_CC=$CC
11508 while :; do
11509 # IRIX 6.2 and later do not support large files by default,
11510 # so use the C compiler's -n32 option if that helps.
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #include <sys/types.h>
11514 /* Check that off_t can represent 2**63 - 1 correctly.
11515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11516 since some C++ compilers masquerading as C compilers
11517 incorrectly reject 9223372036854775807. */
11518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11520 && LARGE_OFF_T % 2147483647 == 1)
11521 ? 1 : -1];
11522 int
11523 main ()
11524 {
11525
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531 break
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext
11534 CC="$CC -n32"
11535 if ac_fn_c_try_compile "$LINENO"; then :
11536 ac_cv_sys_largefile_CC=' -n32'; break
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext
11539 break
11540 done
11541 CC=$ac_save_CC
11542 rm -f conftest.$ac_ext
11543 fi
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11546 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11547 if test "$ac_cv_sys_largefile_CC" != no; then
11548 CC=$CC$ac_cv_sys_largefile_CC
11549 fi
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11552 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11553 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 while :; do
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #include <sys/types.h>
11560 /* Check that off_t can represent 2**63 - 1 correctly.
11561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11562 since some C++ compilers masquerading as C compilers
11563 incorrectly reject 9223372036854775807. */
11564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11566 && LARGE_OFF_T % 2147483647 == 1)
11567 ? 1 : -1];
11568 int
11569 main ()
11570 {
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_compile "$LINENO"; then :
11577 ac_cv_sys_file_offset_bits=no; break
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #define _FILE_OFFSET_BITS 64
11583 #include <sys/types.h>
11584 /* Check that off_t can represent 2**63 - 1 correctly.
11585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11586 since some C++ compilers masquerading as C compilers
11587 incorrectly reject 9223372036854775807. */
11588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11590 && LARGE_OFF_T % 2147483647 == 1)
11591 ? 1 : -1];
11592 int
11593 main ()
11594 {
11595
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 if ac_fn_c_try_compile "$LINENO"; then :
11601 ac_cv_sys_file_offset_bits=64; break
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 ac_cv_sys_file_offset_bits=unknown
11605 break
11606 done
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11609 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11610 case $ac_cv_sys_file_offset_bits in #(
11611 no | unknown) ;;
11612 *)
11613 cat >>confdefs.h <<_ACEOF
11614 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11615 _ACEOF
11616 ;;
11617 esac
11618 rm -rf conftest*
11619 if test $ac_cv_sys_file_offset_bits = unknown; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11621 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11622 if test "${ac_cv_sys_large_files+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 while :; do
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 /* Check that off_t can represent 2**63 - 1 correctly.
11630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11631 since some C++ compilers masquerading as C compilers
11632 incorrectly reject 9223372036854775807. */
11633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11635 && LARGE_OFF_T % 2147483647 == 1)
11636 ? 1 : -1];
11637 int
11638 main ()
11639 {
11640
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_compile "$LINENO"; then :
11646 ac_cv_sys_large_files=no; break
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651 #define _LARGE_FILES 1
11652 #include <sys/types.h>
11653 /* Check that off_t can represent 2**63 - 1 correctly.
11654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11655 since some C++ compilers masquerading as C compilers
11656 incorrectly reject 9223372036854775807. */
11657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11659 && LARGE_OFF_T % 2147483647 == 1)
11660 ? 1 : -1];
11661 int
11662 main ()
11663 {
11664
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_compile "$LINENO"; then :
11670 ac_cv_sys_large_files=1; break
11671 fi
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 ac_cv_sys_large_files=unknown
11674 break
11675 done
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11678 $as_echo "$ac_cv_sys_large_files" >&6; }
11679 case $ac_cv_sys_large_files in #(
11680 no | unknown) ;;
11681 *)
11682 cat >>confdefs.h <<_ACEOF
11683 #define _LARGE_FILES $ac_cv_sys_large_files
11684 _ACEOF
11685 ;;
11686 esac
11687 rm -rf conftest*
11688 fi
11689 fi
11690
11691
11692 backtrace_supported=yes
11693
11694 if test -n "${with_target_subdir}"; then
11695 # We are compiling a GCC library. We can assume that the unwind
11696 # library exists.
11697 BACKTRACE_FILE="backtrace.lo simple.lo"
11698 else
11699 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11700 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11701 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11702 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11703 BACKTRACE_FILE="backtrace.lo simple.lo"
11704 else
11705 BACKTRACE_FILE="nounwind.lo"
11706 backtrace_supported=no
11707 fi
11708
11709 else
11710 BACKTRACE_FILE="nounwind.lo"
11711 backtrace_supported=no
11712 fi
11713
11714
11715 fi
11716
11717
11718 EXTRA_FLAGS=
11719 if test -n "${with_target_subdir}"; then
11720 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11723 $as_echo_n "checking for -funwind-tables option... " >&6; }
11724 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 CFLAGS_hold="$CFLAGS"
11728 CFLAGS="$CFLAGS -funwind-tables"
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11731 static int f() { return 0; }
11732 int
11733 main ()
11734 {
11735 return f();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_compile "$LINENO"; then :
11741 libbacktrace_cv_c_unwind_tables=yes
11742 else
11743 libbacktrace_cv_c_unwind_tables=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 CFLAGS="$CFLAGS_hold"
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11749 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11750 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11751 EXTRA_FLAGS=-funwind-tables
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11754 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11755 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 CFLAGS_hold="$CFLAGS"
11759 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 int
11764 main ()
11765 {
11766 return 0;
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_compile "$LINENO"; then :
11772 libbacktrace_cv_c_random_seed_string=yes
11773 else
11774 libbacktrace_cv_c_random_seed_string=no
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 CFLAGS="$CFLAGS_hold"
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11780 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11781 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11782 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11783 fi
11784 fi
11785
11786
11787 ac_ext=c
11788 ac_cpp='$CPP $CPPFLAGS'
11789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11792
11793 WARN_FLAGS=
11794 save_CFLAGS="$CFLAGS"
11795 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11796 -Wmissing-prototypes -Wold-style-definition \
11797 -Wmissing-format-attribute -Wcast-qual; do
11798 # Do the check with the no- prefix removed since gcc silently
11799 # accepts any -Wno-* option on purpose
11800 case $real_option in
11801 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11802 *) option=$real_option ;;
11803 esac
11804 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11807 $as_echo_n "checking whether $CC supports $option... " >&6; }
11808 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 CFLAGS="$option"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 int
11816 main ()
11817 {
11818
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 eval "$as_acx_Woption=yes"
11825 else
11826 eval "$as_acx_Woption=no"
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829
11830 fi
11831 eval ac_res=\$$as_acx_Woption
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11833 $as_echo "$ac_res" >&6; }
11834 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11835 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11836 fi
11837 done
11838 CFLAGS="$save_CFLAGS"
11839 ac_ext=c
11840 ac_cpp='$CPP $CPPFLAGS'
11841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11844
11845
11846
11847 if test -n "${with_target_subdir}"; then
11848 WARN_FLAGS="$WARN_FLAGS -Werror"
11849 fi
11850
11851
11852
11853 if test -n "${with_target_subdir}"; then
11854
11855
11856 # Check whether --with-system-libunwind was given.
11857 if test "${with_system_libunwind+set}" = set; then :
11858 withval=$with_system_libunwind;
11859 fi
11860
11861 # If system-libunwind was not specifically set, pick a default setting.
11862 if test x$with_system_libunwind = x; then
11863 case ${target} in
11864 ia64-*-hpux*) with_system_libunwind=yes ;;
11865 *) with_system_libunwind=no ;;
11866 esac
11867 fi
11868 # Based on system-libunwind and target, do we have ipinfo?
11869 if test x$with_system_libunwind = xyes; then
11870 case ${target} in
11871 ia64-*-*) have_unwind_getipinfo=no ;;
11872 *) have_unwind_getipinfo=yes ;;
11873 esac
11874 else
11875 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11876
11877 case ${target} in
11878 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11879 *) have_unwind_getipinfo=yes ;;
11880 esac
11881
11882 fi
11883
11884 if test x$have_unwind_getipinfo = xyes; then
11885
11886 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11887
11888 fi
11889
11890 else
11891 ac_save_CFFLAGS="$CFLAGS"
11892 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11894 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897 #include "unwind.h"
11898 struct _Unwind_Context *context;
11899 int ip_before_insn = 0;
11900 int
11901 main ()
11902 {
11903 return _Unwind_GetIPInfo (context, &ip_before_insn);
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 have_unwind_getipinfo=yes
11910 else
11911 have_unwind_getipinfo=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 CFLAGS="$ac_save_CFLAGS"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11917 $as_echo "$have_unwind_getipinfo" >&6; }
11918 if test "$have_unwind_getipinfo" = "yes"; then
11919
11920 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11921
11922 fi
11923 fi
11924
11925 # Enable --enable-host-shared.
11926 # Check whether --enable-host-shared was given.
11927 if test "${enable_host_shared+set}" = set; then :
11928 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11929 else
11930 PIC_FLAG=
11931 fi
11932
11933
11934
11935 # Test for __sync support.
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11937 $as_echo_n "checking __sync extensions... " >&6; }
11938 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 if test -n "${with_target_subdir}"; then
11942 case "${host}" in
11943 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11944 *) libbacktrace_cv_sys_sync=yes ;;
11945 esac
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 int i;
11950 int
11951 main ()
11952 {
11953 __sync_bool_compare_and_swap (&i, i, i);
11954 __sync_lock_test_and_set (&i, 1);
11955 __sync_lock_release (&i);
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 libbacktrace_cv_sys_sync=yes
11962 else
11963 libbacktrace_cv_sys_sync=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 fi
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11970 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11971 BACKTRACE_SUPPORTS_THREADS=0
11972 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11973 BACKTRACE_SUPPORTS_THREADS=1
11974
11975 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11976
11977 fi
11978
11979
11980 # Test for __atomic support.
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11982 $as_echo_n "checking __atomic extensions... " >&6; }
11983 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 if test -n "${with_target_subdir}"; then
11987 libbacktrace_cv_sys_atomic=yes
11988 else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 int i;
11992 int
11993 main ()
11994 {
11995 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11996 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 libbacktrace_cv_sys_atomic=yes
12003 else
12004 libbacktrace_cv_sys_atomic=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 fi
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12011 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12012 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12013
12014 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12015
12016 fi
12017
12018 # The library needs to be able to read the executable itself. Compile
12019 # a file to determine the executable format. The awk script
12020 # filetype.awk prints out the file type.
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12022 $as_echo_n "checking output filetype... " >&6; }
12023 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 filetype=
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 int i;
12030 int
12031 main ()
12032 {
12033 int j;
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_compile "$LINENO"; then :
12039 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12040 else
12041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12043 as_fn_error "compiler failed
12044 See \`config.log' for more details." "$LINENO" 5; }
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 libbacktrace_cv_sys_filetype=$filetype
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12050 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12051
12052 # Match the file type to decide what files to compile.
12053 FORMAT_FILE=
12054 backtrace_supports_data=yes
12055 case "$libbacktrace_cv_sys_filetype" in
12056 elf*) FORMAT_FILE="elf.lo" ;;
12057 pecoff) FORMAT_FILE="pecoff.lo"
12058 backtrace_supports_data=no
12059 ;;
12060 xcoff*) FORMAT_FILE="xcoff.lo"
12061 backtrace_supports_data=no
12062 ;;
12063 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12064 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12065 FORMAT_FILE="unknown.lo"
12066 backtrace_supported=no
12067 ;;
12068 esac
12069
12070
12071 # ELF defines.
12072 elfsize=
12073 case "$libbacktrace_cv_sys_filetype" in
12074 elf32) elfsize=32 ;;
12075 elf64) elfsize=64 ;;
12076 *) elfsize=unused
12077 esac
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define BACKTRACE_ELF_SIZE $elfsize
12081 _ACEOF
12082
12083
12084 # XCOFF defines.
12085 xcoffsize=
12086 case "$libbacktrace_cv_sys_filetype" in
12087 xcoff32) xcoffsize=32 ;;
12088 xcoff64) xcoffsize=64 ;;
12089 *) xcoffsize=unused
12090 esac
12091
12092 cat >>confdefs.h <<_ACEOF
12093 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12094 _ACEOF
12095
12096
12097 BACKTRACE_SUPPORTED=0
12098 if test "$backtrace_supported" = "yes"; then
12099 BACKTRACE_SUPPORTED=1
12100 fi
12101
12102
12103 BACKTRACE_SUPPORTS_DATA=0
12104 if test "$backtrace_supports_data" = "yes"; then
12105 BACKTRACE_SUPPORTS_DATA=1
12106 fi
12107
12108
12109
12110
12111 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12112
12113 acx_cv_header_stdint=stddef.h
12114 acx_cv_header_stdint_kind="(already complete)"
12115 for i in stdint.h $inttype_headers; do
12116 unset ac_cv_type_uintptr_t
12117 unset ac_cv_type_uintmax_t
12118 unset ac_cv_type_int_least32_t
12119 unset ac_cv_type_int_fast32_t
12120 unset ac_cv_type_uint64_t
12121 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12122 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12123 #include <$i>
12124 "
12125 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12126 acx_cv_header_stdint=$i
12127 else
12128 continue
12129 fi
12130
12131 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12132 #include <$i>
12133 "
12134 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12135
12136 else
12137 acx_cv_header_stdint_kind="(mostly complete)"
12138 fi
12139
12140 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12141 #include <$i>
12142 "
12143 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12144
12145 else
12146 acx_cv_header_stdint_kind="(mostly complete)"
12147 fi
12148
12149 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12150 #include <$i>
12151 "
12152 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12153
12154 else
12155 acx_cv_header_stdint_kind="(mostly complete)"
12156 fi
12157
12158 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12159 #include <$i>
12160 "
12161 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12162
12163 else
12164 acx_cv_header_stdint_kind="(lacks uint64_t)"
12165 fi
12166
12167 break
12168 done
12169 if test "$acx_cv_header_stdint" = stddef.h; then
12170 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12171 for i in stdint.h $inttype_headers; do
12172 unset ac_cv_type_uintptr_t
12173 unset ac_cv_type_uint32_t
12174 unset ac_cv_type_uint64_t
12175 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12176 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12177 #include <$i>
12178 "
12179 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12180 acx_cv_header_stdint=$i
12181 else
12182 continue
12183 fi
12184
12185 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12186 #include <$i>
12187 "
12188 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12189
12190 fi
12191
12192 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12193 #include <$i>
12194 "
12195 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12196
12197 fi
12198
12199 break
12200 done
12201 fi
12202 if test "$acx_cv_header_stdint" = stddef.h; then
12203 acx_cv_header_stdint_kind="(u_intXX_t style)"
12204 for i in sys/types.h $inttype_headers; do
12205 unset ac_cv_type_u_int32_t
12206 unset ac_cv_type_u_int64_t
12207 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12208 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12209 #include <$i>
12210 "
12211 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12212 acx_cv_header_stdint=$i
12213 else
12214 continue
12215 fi
12216
12217 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12218 #include <$i>
12219 "
12220 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12221
12222 fi
12223
12224 break
12225 done
12226 fi
12227 if test "$acx_cv_header_stdint" = stddef.h; then
12228 acx_cv_header_stdint_kind="(using manual detection)"
12229 fi
12230
12231 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12232 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12233 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12234 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12235 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12236
12237 # ----------------- Summarize what we found so far
12238
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12240 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12241
12242 case `$as_basename -- gstdint.h ||
12243 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12244 Xgstdint.h : 'X\(//\)$' \| \
12245 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12246 $as_echo X/gstdint.h |
12247 sed '/^.*\/\([^/][^/]*\)\/*$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\/\(\/\/\)$/{
12252 s//\1/
12253 q
12254 }
12255 /^X\/\(\/\).*/{
12256 s//\1/
12257 q
12258 }
12259 s/.*/./; q'` in
12260 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12261 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12262 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12263 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12264 *) ;;
12265 esac
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12268 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12269
12270 # ----------------- done included file, check C basic types --------
12271
12272 # Lacking an uintptr_t? Test size of void *
12273 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12274 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12277 # This bug is HP SR number 8606223364.
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12279 $as_echo_n "checking size of void *... " >&6; }
12280 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12284
12285 else
12286 if test "$ac_cv_type_void_p" = yes; then
12287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12289 { as_fn_set_status 77
12290 as_fn_error "cannot compute sizeof (void *)
12291 See \`config.log' for more details." "$LINENO" 5; }; }
12292 else
12293 ac_cv_sizeof_void_p=0
12294 fi
12295 fi
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12299 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12300
12301
12302
12303 cat >>confdefs.h <<_ACEOF
12304 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12305 _ACEOF
12306
12307 ;;
12308 esac
12309
12310 # Lacking an uint64_t? Test size of long
12311 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12312 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12315 # This bug is HP SR number 8606223364.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12317 $as_echo_n "checking size of long... " >&6; }
12318 if test "${ac_cv_sizeof_long+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12322
12323 else
12324 if test "$ac_cv_type_long" = yes; then
12325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12327 { as_fn_set_status 77
12328 as_fn_error "cannot compute sizeof (long)
12329 See \`config.log' for more details." "$LINENO" 5; }; }
12330 else
12331 ac_cv_sizeof_long=0
12332 fi
12333 fi
12334
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12337 $as_echo "$ac_cv_sizeof_long" >&6; }
12338
12339
12340
12341 cat >>confdefs.h <<_ACEOF
12342 #define SIZEOF_LONG $ac_cv_sizeof_long
12343 _ACEOF
12344
12345 ;;
12346 esac
12347
12348 if test $acx_cv_header_stdint = stddef.h; then
12349 # Lacking a good header? Test size of everything and deduce all types.
12350 # The cast to long int works around a bug in the HP C Compiler
12351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12353 # This bug is HP SR number 8606223364.
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12355 $as_echo_n "checking size of int... " >&6; }
12356 if test "${ac_cv_sizeof_int+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12360
12361 else
12362 if test "$ac_cv_type_int" = yes; then
12363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 { as_fn_set_status 77
12366 as_fn_error "cannot compute sizeof (int)
12367 See \`config.log' for more details." "$LINENO" 5; }; }
12368 else
12369 ac_cv_sizeof_int=0
12370 fi
12371 fi
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12375 $as_echo "$ac_cv_sizeof_int" >&6; }
12376
12377
12378
12379 cat >>confdefs.h <<_ACEOF
12380 #define SIZEOF_INT $ac_cv_sizeof_int
12381 _ACEOF
12382
12383
12384 # The cast to long int works around a bug in the HP C Compiler
12385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12387 # This bug is HP SR number 8606223364.
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12389 $as_echo_n "checking size of short... " >&6; }
12390 if test "${ac_cv_sizeof_short+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12394
12395 else
12396 if test "$ac_cv_type_short" = yes; then
12397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12399 { as_fn_set_status 77
12400 as_fn_error "cannot compute sizeof (short)
12401 See \`config.log' for more details." "$LINENO" 5; }; }
12402 else
12403 ac_cv_sizeof_short=0
12404 fi
12405 fi
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12409 $as_echo "$ac_cv_sizeof_short" >&6; }
12410
12411
12412
12413 cat >>confdefs.h <<_ACEOF
12414 #define SIZEOF_SHORT $ac_cv_sizeof_short
12415 _ACEOF
12416
12417
12418 # The cast to long int works around a bug in the HP C Compiler
12419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12421 # This bug is HP SR number 8606223364.
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12423 $as_echo_n "checking size of char... " >&6; }
12424 if test "${ac_cv_sizeof_char+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12428
12429 else
12430 if test "$ac_cv_type_char" = yes; then
12431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12433 { as_fn_set_status 77
12434 as_fn_error "cannot compute sizeof (char)
12435 See \`config.log' for more details." "$LINENO" 5; }; }
12436 else
12437 ac_cv_sizeof_char=0
12438 fi
12439 fi
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12443 $as_echo "$ac_cv_sizeof_char" >&6; }
12444
12445
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define SIZEOF_CHAR $ac_cv_sizeof_char
12449 _ACEOF
12450
12451
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12454 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12455 case "$ac_cv_sizeof_char" in
12456 1) acx_cv_type_int8_t=char ;;
12457 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12458 esac
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12460 $as_echo "$acx_cv_type_int8_t" >&6; }
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12463 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12464 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12465 2:*) acx_cv_type_int16_t=int ;;
12466 *:2) acx_cv_type_int16_t=short ;;
12467 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12468 esac
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12470 $as_echo "$acx_cv_type_int16_t" >&6; }
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12473 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12474 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12475 4:*) acx_cv_type_int32_t=int ;;
12476 *:4) acx_cv_type_int32_t=long ;;
12477 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12478 esac
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12480 $as_echo "$acx_cv_type_int32_t" >&6; }
12481 fi
12482
12483 # These tests are here to make the output prettier
12484
12485 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12486 case "$ac_cv_sizeof_long" in
12487 8) acx_cv_type_int64_t=long ;;
12488 esac
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12490 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12492 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12493 fi
12494
12495 # Now we can use the above types
12496
12497 if test "$ac_cv_type_uintptr_t" != yes; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12499 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12500 case $ac_cv_sizeof_void_p in
12501 2) acx_cv_type_intptr_t=int16_t ;;
12502 4) acx_cv_type_intptr_t=int32_t ;;
12503 8) acx_cv_type_intptr_t=int64_t ;;
12504 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12505 esac
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12507 $as_echo "$acx_cv_type_intptr_t" >&6; }
12508 fi
12509
12510 # ----------------- done all checks, emit header -------------
12511 ac_config_commands="$ac_config_commands gstdint.h"
12512
12513
12514
12515
12516 for ac_header in sys/mman.h
12517 do :
12518 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12519 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define HAVE_SYS_MMAN_H 1
12522 _ACEOF
12523
12524 fi
12525
12526 done
12527
12528 if test "$ac_cv_header_sys_mman_h" = "no"; then
12529 have_mmap=no
12530 else
12531 if test -n "${with_target_subdir}"; then
12532 # When built as a GCC target library, we can't do a link test. We
12533 # simply assume that if we have mman.h, we have mmap.
12534 have_mmap=yes
12535 case "${host}" in
12536 spu-*-*|*-*-msdosdjgpp)
12537 # The SPU does not have mmap, but it has a sys/mman.h header file
12538 # containing "mmap_eaddr" and the mmap flags, confusing the test.
12539 # DJGPP also has sys/man.h, but no mmap
12540 have_mmap=no ;;
12541 esac
12542 else
12543 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12544 if test "x$ac_cv_func_mmap" = x""yes; then :
12545 have_mmap=yes
12546 else
12547 have_mmap=no
12548 fi
12549
12550 fi
12551 fi
12552 if test "$have_mmap" = "no"; then
12553 VIEW_FILE=read.lo
12554 ALLOC_FILE=alloc.lo
12555 else
12556 VIEW_FILE=mmapio.lo
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559
12560 #include <sys/mman.h>
12561 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12562 #error no MAP_ANONYMOUS
12563 #endif
12564
12565 _ACEOF
12566 if ac_fn_c_try_cpp "$LINENO"; then :
12567 ALLOC_FILE=mmap.lo
12568 else
12569 ALLOC_FILE=alloc.lo
12570 fi
12571 rm -f conftest.err conftest.$ac_ext
12572 fi
12573
12574
12575
12576 BACKTRACE_USES_MALLOC=0
12577 if test "$ALLOC_FILE" = "alloc.lo"; then
12578 BACKTRACE_USES_MALLOC=1
12579 fi
12580
12581
12582 # Check for dl_iterate_phdr.
12583 for ac_header in link.h
12584 do :
12585 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12586 if test "x$ac_cv_header_link_h" = x""yes; then :
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_LINK_H 1
12589 _ACEOF
12590
12591 fi
12592
12593 done
12594
12595 if test "$ac_cv_header_link_h" = "no"; then
12596 have_dl_iterate_phdr=no
12597 else
12598 if test -n "${with_target_subdir}"; then
12599 # When built as a GCC target library, we can't do a link test.
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602 #include <link.h>
12603
12604 _ACEOF
12605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12606 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12607 have_dl_iterate_phdr=yes
12608 else
12609 have_dl_iterate_phdr=no
12610 fi
12611 rm -f conftest*
12612
12613 case "${host}" in
12614 *-*-solaris2.10*)
12615 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12616 # header file but is only in -ldl.
12617 have_dl_iterate_phdr=no ;;
12618 esac
12619 else
12620 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12621 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12622 have_dl_iterate_phdr=yes
12623 else
12624 have_dl_iterate_phdr=no
12625 fi
12626
12627 fi
12628 fi
12629 if test "$have_dl_iterate_phdr" = "yes"; then
12630
12631 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12632
12633 fi
12634
12635 # Check for loadquery.
12636 for ac_header in sys/ldr.h
12637 do :
12638 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12639 if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_SYS_LDR_H 1
12642 _ACEOF
12643
12644 fi
12645
12646 done
12647
12648 if test "$ac_cv_header_sys_ldr_h" = "no"; then
12649 have_loadquery=no
12650 else
12651 if test -n "${with_target_subdir}"; then
12652 # When built as a GCC target library, we can't do a link test.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655 #include <sys/ldr.h>
12656
12657 _ACEOF
12658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12659 $EGREP "loadquery" >/dev/null 2>&1; then :
12660 have_loadquery=yes
12661 else
12662 have_loadquery=no
12663 fi
12664 rm -f conftest*
12665
12666 else
12667 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12668 if test "x$ac_cv_func_loadquery" = x""yes; then :
12669 have_loadquery=yes
12670 else
12671 have_loadquery=no
12672 fi
12673
12674 fi
12675 fi
12676 if test "$have_loadquery" = "yes"; then
12677
12678 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12679
12680 fi
12681
12682 # Check for the fcntl function.
12683 if test -n "${with_target_subdir}"; then
12684 case "${host}" in
12685 *-*-mingw*) have_fcntl=no ;;
12686 spu-*-*) have_fcntl=no ;;
12687 *) have_fcntl=yes ;;
12688 esac
12689 else
12690 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12691 if test "x$ac_cv_func_fcntl" = x""yes; then :
12692 have_fcntl=yes
12693 else
12694 have_fcntl=no
12695 fi
12696
12697 fi
12698 if test "$have_fcntl" = "yes"; then
12699
12700 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12701
12702 fi
12703
12704 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12705 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12706 ac_have_decl=1
12707 else
12708 ac_have_decl=0
12709 fi
12710
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_DECL_STRNLEN $ac_have_decl
12713 _ACEOF
12714
12715 for ac_func in lstat readlink
12716 do :
12717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12719 eval as_val=\$$as_ac_var
12720 if test "x$as_val" = x""yes; then :
12721 cat >>confdefs.h <<_ACEOF
12722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 _ACEOF
12724
12725 fi
12726 done
12727
12728
12729 # Check for getexecname function.
12730 if test -n "${with_target_subdir}"; then
12731 case "${host}" in
12732 *-*-solaris2*) have_getexecname=yes ;;
12733 *) have_getexecname=no ;;
12734 esac
12735 else
12736 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12737 if test "x$ac_cv_func_getexecname" = x""yes; then :
12738 have_getexecname=yes
12739 else
12740 have_getexecname=no
12741 fi
12742
12743 fi
12744 if test "$have_getexecname" = "yes"; then
12745
12746 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12747
12748 fi
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12751 $as_echo_n "checking whether -pthread is supported... " >&6; }
12752 if test "${libgo_cv_lib_pthread+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 CFLAGS_hold=$CFLAGS
12756 CFLAGS="$CFLAGS -pthread"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 int i;
12760 _ACEOF
12761 if ac_fn_c_try_compile "$LINENO"; then :
12762 libgo_cv_lib_pthread=yes
12763 else
12764 libgo_cv_lib_pthread=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767 CFLAGS=$CFLAGS_hold
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12770 $as_echo "$libgo_cv_lib_pthread" >&6; }
12771 PTHREAD_CFLAGS=
12772 if test "$libgo_cv_lib_pthread" = yes; then
12773 PTHREAD_CFLAGS=-pthread
12774 fi
12775
12776
12777 if test "$libgo_cv_lib_pthread" = yes; then
12778 HAVE_PTHREAD_TRUE=
12779 HAVE_PTHREAD_FALSE='#'
12780 else
12781 HAVE_PTHREAD_TRUE='#'
12782 HAVE_PTHREAD_FALSE=
12783 fi
12784
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
12787 $as_echo_n "checking for compress in -lz... " >&6; }
12788 if test "${ac_cv_lib_z_compress+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 ac_check_lib_save_LIBS=$LIBS
12792 LIBS="-lz $LIBS"
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char compress ();
12803 int
12804 main ()
12805 {
12806 return compress ();
12807 ;
12808 return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_link "$LINENO"; then :
12812 ac_cv_lib_z_compress=yes
12813 else
12814 ac_cv_lib_z_compress=no
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
12821 $as_echo "$ac_cv_lib_z_compress" >&6; }
12822 if test "x$ac_cv_lib_z_compress" = x""yes; then :
12823 cat >>confdefs.h <<_ACEOF
12824 #define HAVE_LIBZ 1
12825 _ACEOF
12826
12827 LIBS="-lz $LIBS"
12828
12829 fi
12830
12831 if test $ac_cv_lib_z_compress = "yes"; then
12832
12833 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12834
12835 fi
12836 if test "$ac_cv_lib_z_compress" = yes; then
12837 HAVE_ZLIB_TRUE=
12838 HAVE_ZLIB_FALSE='#'
12839 else
12840 HAVE_ZLIB_TRUE='#'
12841 HAVE_ZLIB_FALSE=
12842 fi
12843
12844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
12846 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
12847 if test "${libgo_cv_ld_compress+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 LDFLAGS_hold=$LDFLAGS
12851 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854
12855 int
12856 main ()
12857 {
12858
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 libgo_cv_ld_compress=yes
12865 else
12866 libgo_cv_ld_compress=no
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870 LDFLAGS=$LDFLAGS_hold
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
12873 $as_echo "$libgo_cv_ld_compress" >&6; }
12874 if test "$libgo_cv_ld_compress" = yes; then
12875 HAVE_COMPRESSED_DEBUG_TRUE=
12876 HAVE_COMPRESSED_DEBUG_FALSE='#'
12877 else
12878 HAVE_COMPRESSED_DEBUG_TRUE='#'
12879 HAVE_COMPRESSED_DEBUG_FALSE=
12880 fi
12881
12882
12883
12884 # Extract the first word of "objcopy", so it can be a program name with args.
12885 set dummy objcopy; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$OBJCOPY"; then
12892 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_OBJCOPY="objcopy"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 OBJCOPY=$ac_cv_prog_OBJCOPY
12912 if test -n "$OBJCOPY"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12914 $as_echo "$OBJCOPY" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
12922 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
12923 if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 if test -n "${with_target_subdir}"; then
12927 libbacktrace_cv_objcopy_debuglink=no
12928 elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
12929 rm -f /tmp/ls$$
12930 libbacktrace_cv_objcopy_debuglink=yes
12931 else
12932 libbacktrace_cv_objcopy_debuglink=no
12933 fi
12934 fi
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
12936 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
12937 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
12938 HAVE_OBJCOPY_DEBUGLINK_TRUE=
12939 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
12940 else
12941 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
12942 HAVE_OBJCOPY_DEBUGLINK_FALSE=
12943 fi
12944
12945
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12947 $as_echo_n "checking whether tests can run... " >&6; }
12948 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 if test "$cross_compiling" = yes; then :
12952 libbacktrace_cv_sys_native=no
12953 else
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956
12957 int
12958 main ()
12959 {
12960 return 0;
12961 ;
12962 return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_run "$LINENO"; then :
12966 libbacktrace_cv_sys_native=yes
12967 else
12968 libbacktrace_cv_sys_native=no
12969 fi
12970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12971 conftest.$ac_objext conftest.beam conftest.$ac_ext
12972 fi
12973
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12976 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12977 if test "$libbacktrace_cv_sys_native" = "yes"; then
12978 NATIVE_TRUE=
12979 NATIVE_FALSE='#'
12980 else
12981 NATIVE_TRUE='#'
12982 NATIVE_FALSE=
12983 fi
12984
12985
12986 if test "${multilib}" = "yes"; then
12987 multilib_arg="--enable-multilib"
12988 else
12989 multilib_arg=
12990 fi
12991
12992 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12993
12994
12995 # We need multilib support, but only if configuring for the target.
12996 ac_config_commands="$ac_config_commands default"
12997
12998
12999 cat >confcache <<\_ACEOF
13000 # This file is a shell script that caches the results of configure
13001 # tests run on this system so they can be shared between configure
13002 # scripts and configure runs, see configure's option --config-cache.
13003 # It is not useful on other systems. If it contains results you don't
13004 # want to keep, you may remove or edit it.
13005 #
13006 # config.status only pays attention to the cache file if you give it
13007 # the --recheck option to rerun configure.
13008 #
13009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13011 # following values.
13012
13013 _ACEOF
13014
13015 # The following way of writing the cache mishandles newlines in values,
13016 # but we know of no workaround that is simple, portable, and efficient.
13017 # So, we kill variables containing newlines.
13018 # Ultrix sh set writes to stderr and can't be redirected directly,
13019 # and sets the high bit in the cache file unless we assign to the vars.
13020 (
13021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13022 eval ac_val=\$$ac_var
13023 case $ac_val in #(
13024 *${as_nl}*)
13025 case $ac_var in #(
13026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13028 esac
13029 case $ac_var in #(
13030 _ | IFS | as_nl) ;; #(
13031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13032 *) { eval $ac_var=; unset $ac_var;} ;;
13033 esac ;;
13034 esac
13035 done
13036
13037 (set) 2>&1 |
13038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13039 *${as_nl}ac_space=\ *)
13040 # `set' does not quote correctly, so add quotes: double-quote
13041 # substitution turns \\\\ into \\, and sed turns \\ into \.
13042 sed -n \
13043 "s/'/'\\\\''/g;
13044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13045 ;; #(
13046 *)
13047 # `set' quotes correctly as required by POSIX, so do not add quotes.
13048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13049 ;;
13050 esac |
13051 sort
13052 ) |
13053 sed '
13054 /^ac_cv_env_/b end
13055 t clear
13056 :clear
13057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13058 t end
13059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13060 :end' >>confcache
13061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13062 if test -w "$cache_file"; then
13063 test "x$cache_file" != "x/dev/null" &&
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13065 $as_echo "$as_me: updating cache $cache_file" >&6;}
13066 cat confcache >$cache_file
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13069 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13070 fi
13071 fi
13072 rm -f confcache
13073
13074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13075 # Let make expand exec_prefix.
13076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13077
13078 DEFS=-DHAVE_CONFIG_H
13079
13080 ac_libobjs=
13081 ac_ltlibobjs=
13082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13083 # 1. Remove the extension, and $U if already installed.
13084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13087 # will be set to the directory where LIBOBJS objects are built.
13088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13090 done
13091 LIBOBJS=$ac_libobjs
13092
13093 LTLIBOBJS=$ac_ltlibobjs
13094
13095
13096 if test -n "$EXEEXT"; then
13097 am__EXEEXT_TRUE=
13098 am__EXEEXT_FALSE='#'
13099 else
13100 am__EXEEXT_TRUE='#'
13101 am__EXEEXT_FALSE=
13102 fi
13103
13104 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13105 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 fi
13108 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
13109 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
13110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 fi
13112 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
13113 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
13114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 fi
13116 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
13117 as_fn_error "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 fi
13120 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
13121 as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 fi
13124 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
13125 as_fn_error "conditional \"NATIVE\" was never defined.
13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 fi
13128
13129 : ${CONFIG_STATUS=./config.status}
13130 ac_write_fail=0
13131 ac_clean_files_save=$ac_clean_files
13132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13135 as_write_fail=0
13136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13137 #! $SHELL
13138 # Generated by $as_me.
13139 # Run this file to recreate the current configuration.
13140 # Compiler output produced by configure, useful for debugging
13141 # configure, is in config.log if it exists.
13142
13143 debug=false
13144 ac_cs_recheck=false
13145 ac_cs_silent=false
13146
13147 SHELL=\${CONFIG_SHELL-$SHELL}
13148 export SHELL
13149 _ASEOF
13150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13151 ## -------------------- ##
13152 ## M4sh Initialization. ##
13153 ## -------------------- ##
13154
13155 # Be more Bourne compatible
13156 DUALCASE=1; export DUALCASE # for MKS sh
13157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13158 emulate sh
13159 NULLCMD=:
13160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13161 # is contrary to our usage. Disable this feature.
13162 alias -g '${1+"$@"}'='"$@"'
13163 setopt NO_GLOB_SUBST
13164 else
13165 case `(set -o) 2>/dev/null` in #(
13166 *posix*) :
13167 set -o posix ;; #(
13168 *) :
13169 ;;
13170 esac
13171 fi
13172
13173
13174 as_nl='
13175 '
13176 export as_nl
13177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13181 # Prefer a ksh shell builtin over an external printf program on Solaris,
13182 # but without wasting forks for bash or zsh.
13183 if test -z "$BASH_VERSION$ZSH_VERSION" \
13184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13185 as_echo='print -r --'
13186 as_echo_n='print -rn --'
13187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13188 as_echo='printf %s\n'
13189 as_echo_n='printf %s'
13190 else
13191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13193 as_echo_n='/usr/ucb/echo -n'
13194 else
13195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13196 as_echo_n_body='eval
13197 arg=$1;
13198 case $arg in #(
13199 *"$as_nl"*)
13200 expr "X$arg" : "X\\(.*\\)$as_nl";
13201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13202 esac;
13203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13204 '
13205 export as_echo_n_body
13206 as_echo_n='sh -c $as_echo_n_body as_echo'
13207 fi
13208 export as_echo_body
13209 as_echo='sh -c $as_echo_body as_echo'
13210 fi
13211
13212 # The user is always right.
13213 if test "${PATH_SEPARATOR+set}" != set; then
13214 PATH_SEPARATOR=:
13215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13217 PATH_SEPARATOR=';'
13218 }
13219 fi
13220
13221
13222 # IFS
13223 # We need space, tab and new line, in precisely that order. Quoting is
13224 # there to prevent editors from complaining about space-tab.
13225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13226 # splitting by setting IFS to empty value.)
13227 IFS=" "" $as_nl"
13228
13229 # Find who we are. Look in the path if we contain no directory separator.
13230 case $0 in #((
13231 *[\\/]* ) as_myself=$0 ;;
13232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13238 done
13239 IFS=$as_save_IFS
13240
13241 ;;
13242 esac
13243 # We did not find ourselves, most probably we were run as `sh COMMAND'
13244 # in which case we are not to be found in the path.
13245 if test "x$as_myself" = x; then
13246 as_myself=$0
13247 fi
13248 if test ! -f "$as_myself"; then
13249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13250 exit 1
13251 fi
13252
13253 # Unset variables that we do not need and which cause bugs (e.g. in
13254 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13255 # suppresses any "Segmentation fault" message there. '((' could
13256 # trigger a bug in pdksh 5.2.14.
13257 for as_var in BASH_ENV ENV MAIL MAILPATH
13258 do eval test x\${$as_var+set} = xset \
13259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13260 done
13261 PS1='$ '
13262 PS2='> '
13263 PS4='+ '
13264
13265 # NLS nuisances.
13266 LC_ALL=C
13267 export LC_ALL
13268 LANGUAGE=C
13269 export LANGUAGE
13270
13271 # CDPATH.
13272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13273
13274
13275 # as_fn_error ERROR [LINENO LOG_FD]
13276 # ---------------------------------
13277 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13278 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13279 # script with status $?, using 1 if that was 0.
13280 as_fn_error ()
13281 {
13282 as_status=$?; test $as_status -eq 0 && as_status=1
13283 if test "$3"; then
13284 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13286 fi
13287 $as_echo "$as_me: error: $1" >&2
13288 as_fn_exit $as_status
13289 } # as_fn_error
13290
13291
13292 # as_fn_set_status STATUS
13293 # -----------------------
13294 # Set $? to STATUS, without forking.
13295 as_fn_set_status ()
13296 {
13297 return $1
13298 } # as_fn_set_status
13299
13300 # as_fn_exit STATUS
13301 # -----------------
13302 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13303 as_fn_exit ()
13304 {
13305 set +e
13306 as_fn_set_status $1
13307 exit $1
13308 } # as_fn_exit
13309
13310 # as_fn_unset VAR
13311 # ---------------
13312 # Portably unset VAR.
13313 as_fn_unset ()
13314 {
13315 { eval $1=; unset $1;}
13316 }
13317 as_unset=as_fn_unset
13318 # as_fn_append VAR VALUE
13319 # ----------------------
13320 # Append the text in VALUE to the end of the definition contained in VAR. Take
13321 # advantage of any shell optimizations that allow amortized linear growth over
13322 # repeated appends, instead of the typical quadratic growth present in naive
13323 # implementations.
13324 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13325 eval 'as_fn_append ()
13326 {
13327 eval $1+=\$2
13328 }'
13329 else
13330 as_fn_append ()
13331 {
13332 eval $1=\$$1\$2
13333 }
13334 fi # as_fn_append
13335
13336 # as_fn_arith ARG...
13337 # ------------------
13338 # Perform arithmetic evaluation on the ARGs, and store the result in the
13339 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13340 # must be portable across $(()) and expr.
13341 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13342 eval 'as_fn_arith ()
13343 {
13344 as_val=$(( $* ))
13345 }'
13346 else
13347 as_fn_arith ()
13348 {
13349 as_val=`expr "$@" || test $? -eq 1`
13350 }
13351 fi # as_fn_arith
13352
13353
13354 if expr a : '\(a\)' >/dev/null 2>&1 &&
13355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13356 as_expr=expr
13357 else
13358 as_expr=false
13359 fi
13360
13361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13362 as_basename=basename
13363 else
13364 as_basename=false
13365 fi
13366
13367 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13368 as_dirname=dirname
13369 else
13370 as_dirname=false
13371 fi
13372
13373 as_me=`$as_basename -- "$0" ||
13374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13375 X"$0" : 'X\(//\)$' \| \
13376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13377 $as_echo X/"$0" |
13378 sed '/^.*\/\([^/][^/]*\)\/*$/{
13379 s//\1/
13380 q
13381 }
13382 /^X\/\(\/\/\)$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\/\(\/\).*/{
13387 s//\1/
13388 q
13389 }
13390 s/.*/./; q'`
13391
13392 # Avoid depending upon Character Ranges.
13393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13396 as_cr_digits='0123456789'
13397 as_cr_alnum=$as_cr_Letters$as_cr_digits
13398
13399 ECHO_C= ECHO_N= ECHO_T=
13400 case `echo -n x` in #(((((
13401 -n*)
13402 case `echo 'xy\c'` in
13403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13404 xy) ECHO_C='\c';;
13405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13406 ECHO_T=' ';;
13407 esac;;
13408 *)
13409 ECHO_N='-n';;
13410 esac
13411
13412 rm -f conf$$ conf$$.exe conf$$.file
13413 if test -d conf$$.dir; then
13414 rm -f conf$$.dir/conf$$.file
13415 else
13416 rm -f conf$$.dir
13417 mkdir conf$$.dir 2>/dev/null
13418 fi
13419 if (echo >conf$$.file) 2>/dev/null; then
13420 if ln -s conf$$.file conf$$ 2>/dev/null; then
13421 as_ln_s='ln -s'
13422 # ... but there are two gotchas:
13423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13425 # In both cases, we have to default to `cp -p'.
13426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13427 as_ln_s='cp -p'
13428 elif ln conf$$.file conf$$ 2>/dev/null; then
13429 as_ln_s=ln
13430 else
13431 as_ln_s='cp -p'
13432 fi
13433 else
13434 as_ln_s='cp -p'
13435 fi
13436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13437 rmdir conf$$.dir 2>/dev/null
13438
13439
13440 # as_fn_mkdir_p
13441 # -------------
13442 # Create "$as_dir" as a directory, including parents if necessary.
13443 as_fn_mkdir_p ()
13444 {
13445
13446 case $as_dir in #(
13447 -*) as_dir=./$as_dir;;
13448 esac
13449 test -d "$as_dir" || eval $as_mkdir_p || {
13450 as_dirs=
13451 while :; do
13452 case $as_dir in #(
13453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13454 *) as_qdir=$as_dir;;
13455 esac
13456 as_dirs="'$as_qdir' $as_dirs"
13457 as_dir=`$as_dirname -- "$as_dir" ||
13458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13459 X"$as_dir" : 'X\(//\)[^/]' \| \
13460 X"$as_dir" : 'X\(//\)$' \| \
13461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13462 $as_echo X"$as_dir" |
13463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13464 s//\1/
13465 q
13466 }
13467 /^X\(\/\/\)[^/].*/{
13468 s//\1/
13469 q
13470 }
13471 /^X\(\/\/\)$/{
13472 s//\1/
13473 q
13474 }
13475 /^X\(\/\).*/{
13476 s//\1/
13477 q
13478 }
13479 s/.*/./; q'`
13480 test -d "$as_dir" && break
13481 done
13482 test -z "$as_dirs" || eval "mkdir $as_dirs"
13483 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13484
13485
13486 } # as_fn_mkdir_p
13487 if mkdir -p . 2>/dev/null; then
13488 as_mkdir_p='mkdir -p "$as_dir"'
13489 else
13490 test -d ./-p && rmdir ./-p
13491 as_mkdir_p=false
13492 fi
13493
13494 if test -x / >/dev/null 2>&1; then
13495 as_test_x='test -x'
13496 else
13497 if ls -dL / >/dev/null 2>&1; then
13498 as_ls_L_option=L
13499 else
13500 as_ls_L_option=
13501 fi
13502 as_test_x='
13503 eval sh -c '\''
13504 if test -d "$1"; then
13505 test -d "$1/.";
13506 else
13507 case $1 in #(
13508 -*)set "./$1";;
13509 esac;
13510 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13511 ???[sx]*):;;*)false;;esac;fi
13512 '\'' sh
13513 '
13514 fi
13515 as_executable_p=$as_test_x
13516
13517 # Sed expression to map a string onto a valid CPP name.
13518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13519
13520 # Sed expression to map a string onto a valid variable name.
13521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13522
13523
13524 exec 6>&1
13525 ## ----------------------------------- ##
13526 ## Main body of $CONFIG_STATUS script. ##
13527 ## ----------------------------------- ##
13528 _ASEOF
13529 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13530
13531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13532 # Save the log message, to keep $0 and so on meaningful, and to
13533 # report actual input values of CONFIG_FILES etc. instead of their
13534 # values after options handling.
13535 ac_log="
13536 This file was extended by package-unused $as_me version-unused, which was
13537 generated by GNU Autoconf 2.64. Invocation command line was
13538
13539 CONFIG_FILES = $CONFIG_FILES
13540 CONFIG_HEADERS = $CONFIG_HEADERS
13541 CONFIG_LINKS = $CONFIG_LINKS
13542 CONFIG_COMMANDS = $CONFIG_COMMANDS
13543 $ $0 $@
13544
13545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13546 "
13547
13548 _ACEOF
13549
13550 case $ac_config_files in *"
13551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13552 esac
13553
13554 case $ac_config_headers in *"
13555 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13556 esac
13557
13558
13559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13560 # Files that config.status was made for.
13561 config_files="$ac_config_files"
13562 config_headers="$ac_config_headers"
13563 config_commands="$ac_config_commands"
13564
13565 _ACEOF
13566
13567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13568 ac_cs_usage="\
13569 \`$as_me' instantiates files and other configuration actions
13570 from templates according to the current configuration. Unless the files
13571 and actions are specified as TAGs, all are instantiated by default.
13572
13573 Usage: $0 [OPTION]... [TAG]...
13574
13575 -h, --help print this help, then exit
13576 -V, --version print version number and configuration settings, then exit
13577 -q, --quiet, --silent
13578 do not print progress messages
13579 -d, --debug don't remove temporary files
13580 --recheck update $as_me by reconfiguring in the same conditions
13581 --file=FILE[:TEMPLATE]
13582 instantiate the configuration file FILE
13583 --header=FILE[:TEMPLATE]
13584 instantiate the configuration header FILE
13585
13586 Configuration files:
13587 $config_files
13588
13589 Configuration headers:
13590 $config_headers
13591
13592 Configuration commands:
13593 $config_commands
13594
13595 Report bugs to the package provider."
13596
13597 _ACEOF
13598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13599 ac_cs_version="\\
13600 package-unused config.status version-unused
13601 configured by $0, generated by GNU Autoconf 2.64,
13602 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13603
13604 Copyright (C) 2009 Free Software Foundation, Inc.
13605 This config.status script is free software; the Free Software Foundation
13606 gives unlimited permission to copy, distribute and modify it."
13607
13608 ac_pwd='$ac_pwd'
13609 srcdir='$srcdir'
13610 INSTALL='$INSTALL'
13611 MKDIR_P='$MKDIR_P'
13612 AWK='$AWK'
13613 test -n "\$AWK" || AWK=awk
13614 _ACEOF
13615
13616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13617 # The default lists apply if the user does not specify any file.
13618 ac_need_defaults=:
13619 while test $# != 0
13620 do
13621 case $1 in
13622 --*=*)
13623 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13624 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13625 ac_shift=:
13626 ;;
13627 *)
13628 ac_option=$1
13629 ac_optarg=$2
13630 ac_shift=shift
13631 ;;
13632 esac
13633
13634 case $ac_option in
13635 # Handling of the options.
13636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13637 ac_cs_recheck=: ;;
13638 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13639 $as_echo "$ac_cs_version"; exit ;;
13640 --debug | --debu | --deb | --de | --d | -d )
13641 debug=: ;;
13642 --file | --fil | --fi | --f )
13643 $ac_shift
13644 case $ac_optarg in
13645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13646 esac
13647 as_fn_append CONFIG_FILES " '$ac_optarg'"
13648 ac_need_defaults=false;;
13649 --header | --heade | --head | --hea )
13650 $ac_shift
13651 case $ac_optarg in
13652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13653 esac
13654 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13655 ac_need_defaults=false;;
13656 --he | --h)
13657 # Conflict between --help and --header
13658 as_fn_error "ambiguous option: \`$1'
13659 Try \`$0 --help' for more information.";;
13660 --help | --hel | -h )
13661 $as_echo "$ac_cs_usage"; exit ;;
13662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13664 ac_cs_silent=: ;;
13665
13666 # This is an error.
13667 -*) as_fn_error "unrecognized option: \`$1'
13668 Try \`$0 --help' for more information." ;;
13669
13670 *) as_fn_append ac_config_targets " $1"
13671 ac_need_defaults=false ;;
13672
13673 esac
13674 shift
13675 done
13676
13677 ac_configure_extra_args=
13678
13679 if $ac_cs_silent; then
13680 exec 6>/dev/null
13681 ac_configure_extra_args="$ac_configure_extra_args --silent"
13682 fi
13683
13684 _ACEOF
13685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13686 if \$ac_cs_recheck; then
13687 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13688 shift
13689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13690 CONFIG_SHELL='$SHELL'
13691 export CONFIG_SHELL
13692 exec "\$@"
13693 fi
13694
13695 _ACEOF
13696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697 exec 5>>config.log
13698 {
13699 echo
13700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13701 ## Running $as_me. ##
13702 _ASBOX
13703 $as_echo "$ac_log"
13704 } >&5
13705
13706 _ACEOF
13707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13708 #
13709 # INIT-COMMANDS
13710 #
13711
13712 srcdir="$srcdir"
13713 host="$host"
13714 target="$target"
13715 with_multisubdir="$with_multisubdir"
13716 with_multisrctop="$with_multisrctop"
13717 with_target_subdir="$with_target_subdir"
13718 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13719 multi_basedir="$multi_basedir"
13720 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13721 CC="$CC"
13722 CXX="$CXX"
13723 GFORTRAN="$GFORTRAN"
13724
13725
13726 # The HP-UX ksh and POSIX shell print the target directory to stdout
13727 # if CDPATH is set.
13728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13729
13730 sed_quote_subst='$sed_quote_subst'
13731 double_quote_subst='$double_quote_subst'
13732 delay_variable_subst='$delay_variable_subst'
13733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13735 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13736 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13737 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13738 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13739 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13740 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13741 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13742 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13743 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13744 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13745 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13746 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13747 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13748 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13749 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13750 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13751 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13752 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13753 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13754 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13755 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13756 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13757 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13758 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13759 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13760 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13761 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13762 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13763 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13764 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13765 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13766 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13767 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13768 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13769 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13770 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13771 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13772 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13773 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13774 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13775 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13776 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13777 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13778 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13779 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13780 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13781 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"`'
13782 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13783 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13784 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13785 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13786 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13787 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13788 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13789 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13790 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13791 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13792 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13793 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13794 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13795 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13796 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13797 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13798 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13799 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13800 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13801 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13802 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13803 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13804 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13805 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13806 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13807 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13808 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13809 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13810 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13811 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13812 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13813 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13814 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13815 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13816 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13817 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13818 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13819 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13820 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13821 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13822 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13823 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13824 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13825 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13826 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13827 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13828 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13829 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13830 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13831 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13832 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13833 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13834 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13835 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13836 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13837 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13838 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13839 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13840 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13841 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13842 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13843 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13844 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13845 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13846 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13847 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13848 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13849 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13850 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13851 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13852 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13853
13854 LTCC='$LTCC'
13855 LTCFLAGS='$LTCFLAGS'
13856 compiler='$compiler_DEFAULT'
13857
13858 # A function that is used when there is no print builtin or printf.
13859 func_fallback_echo ()
13860 {
13861 eval 'cat <<_LTECHO_EOF
13862 \$1
13863 _LTECHO_EOF'
13864 }
13865
13866 # Quote evaled strings.
13867 for var in SHELL \
13868 ECHO \
13869 SED \
13870 GREP \
13871 EGREP \
13872 FGREP \
13873 LD \
13874 NM \
13875 LN_S \
13876 lt_SP2NL \
13877 lt_NL2SP \
13878 reload_flag \
13879 OBJDUMP \
13880 deplibs_check_method \
13881 file_magic_cmd \
13882 AR \
13883 AR_FLAGS \
13884 STRIP \
13885 RANLIB \
13886 CC \
13887 CFLAGS \
13888 compiler \
13889 lt_cv_sys_global_symbol_pipe \
13890 lt_cv_sys_global_symbol_to_cdecl \
13891 lt_cv_sys_global_symbol_to_c_name_address \
13892 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13893 lt_prog_compiler_no_builtin_flag \
13894 lt_prog_compiler_wl \
13895 lt_prog_compiler_pic \
13896 lt_prog_compiler_static \
13897 lt_cv_prog_compiler_c_o \
13898 need_locks \
13899 DSYMUTIL \
13900 NMEDIT \
13901 LIPO \
13902 OTOOL \
13903 OTOOL64 \
13904 shrext_cmds \
13905 export_dynamic_flag_spec \
13906 whole_archive_flag_spec \
13907 compiler_needs_object \
13908 with_gnu_ld \
13909 allow_undefined_flag \
13910 no_undefined_flag \
13911 hardcode_libdir_flag_spec \
13912 hardcode_libdir_flag_spec_ld \
13913 hardcode_libdir_separator \
13914 fix_srcfile_path \
13915 exclude_expsyms \
13916 include_expsyms \
13917 file_list_spec \
13918 variables_saved_for_relink \
13919 libname_spec \
13920 library_names_spec \
13921 soname_spec \
13922 install_override_mode \
13923 finish_eval \
13924 old_striplib \
13925 striplib; do
13926 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13927 *[\\\\\\\`\\"\\\$]*)
13928 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13929 ;;
13930 *)
13931 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13932 ;;
13933 esac
13934 done
13935
13936 # Double-quote double-evaled strings.
13937 for var in reload_cmds \
13938 old_postinstall_cmds \
13939 old_postuninstall_cmds \
13940 old_archive_cmds \
13941 extract_expsyms_cmds \
13942 old_archive_from_new_cmds \
13943 old_archive_from_expsyms_cmds \
13944 archive_cmds \
13945 archive_expsym_cmds \
13946 module_cmds \
13947 module_expsym_cmds \
13948 export_symbols_cmds \
13949 prelink_cmds \
13950 postinstall_cmds \
13951 postuninstall_cmds \
13952 finish_cmds \
13953 sys_lib_search_path_spec \
13954 sys_lib_dlsearch_path_spec; do
13955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13956 *[\\\\\\\`\\"\\\$]*)
13957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13958 ;;
13959 *)
13960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13961 ;;
13962 esac
13963 done
13964
13965 ac_aux_dir='$ac_aux_dir'
13966 xsi_shell='$xsi_shell'
13967 lt_shell_append='$lt_shell_append'
13968
13969 # See if we are running on zsh, and set the options which allow our
13970 # commands through without removal of \ escapes INIT.
13971 if test -n "\${ZSH_VERSION+set}" ; then
13972 setopt NO_GLOB_SUBST
13973 fi
13974
13975
13976 PACKAGE='$PACKAGE'
13977 VERSION='$VERSION'
13978 TIMESTAMP='$TIMESTAMP'
13979 RM='$RM'
13980 ofile='$ofile'
13981
13982
13983
13984
13985 GCC="$GCC"
13986 CC="$CC"
13987 acx_cv_header_stdint="$acx_cv_header_stdint"
13988 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13989 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13990 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13991 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13992 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13993 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13994 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13995 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13996 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13997 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13998 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13999 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14000 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14001
14002
14003 # Variables needed in config.status (file generation) which aren't already
14004 # passed by autoconf.
14005 SUBDIRS="$SUBDIRS"
14006
14007
14008 _ACEOF
14009
14010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14011
14012 # Handling of arguments.
14013 for ac_config_target in $ac_config_targets
14014 do
14015 case $ac_config_target in
14016 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14017 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14018 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14019 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
14020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14021 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14022 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14023
14024 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14025 esac
14026 done
14027
14028
14029 # If the user did not use the arguments to specify the items to instantiate,
14030 # then the envvar interface is used. Set only those that are not.
14031 # We use the long form for the default assignment because of an extremely
14032 # bizarre bug on SunOS 4.1.3.
14033 if $ac_need_defaults; then
14034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14037 fi
14038
14039 # Have a temporary directory for convenience. Make it in the build tree
14040 # simply because there is no reason against having it here, and in addition,
14041 # creating and moving files from /tmp can sometimes cause problems.
14042 # Hook for its removal unless debugging.
14043 # Note that there is a small window in which the directory will not be cleaned:
14044 # after its creation but before its name has been assigned to `$tmp'.
14045 $debug ||
14046 {
14047 tmp=
14048 trap 'exit_status=$?
14049 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14050 ' 0
14051 trap 'as_fn_exit 1' 1 2 13 15
14052 }
14053 # Create a (secure) tmp directory for tmp files.
14054
14055 {
14056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14057 test -n "$tmp" && test -d "$tmp"
14058 } ||
14059 {
14060 tmp=./conf$$-$RANDOM
14061 (umask 077 && mkdir "$tmp")
14062 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14063
14064 # Set up the scripts for CONFIG_FILES section.
14065 # No need to generate them if there are no CONFIG_FILES.
14066 # This happens for instance with `./config.status config.h'.
14067 if test -n "$CONFIG_FILES"; then
14068
14069
14070 ac_cr=`echo X | tr X '\015'`
14071 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14072 # But we know of no other shell where ac_cr would be empty at this
14073 # point, so we can use a bashism as a fallback.
14074 if test "x$ac_cr" = x; then
14075 eval ac_cr=\$\'\\r\'
14076 fi
14077 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14078 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14079 ac_cs_awk_cr='\r'
14080 else
14081 ac_cs_awk_cr=$ac_cr
14082 fi
14083
14084 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14085 _ACEOF
14086
14087
14088 {
14089 echo "cat >conf$$subs.awk <<_ACEOF" &&
14090 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14091 echo "_ACEOF"
14092 } >conf$$subs.sh ||
14093 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14094 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14095 ac_delim='%!_!# '
14096 for ac_last_try in false false false false false :; do
14097 . ./conf$$subs.sh ||
14098 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14099
14100 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14101 if test $ac_delim_n = $ac_delim_num; then
14102 break
14103 elif $ac_last_try; then
14104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14105 else
14106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14107 fi
14108 done
14109 rm -f conf$$subs.sh
14110
14111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14112 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14113 _ACEOF
14114 sed -n '
14115 h
14116 s/^/S["/; s/!.*/"]=/
14117 p
14118 g
14119 s/^[^!]*!//
14120 :repl
14121 t repl
14122 s/'"$ac_delim"'$//
14123 t delim
14124 :nl
14125 h
14126 s/\(.\{148\}\).*/\1/
14127 t more1
14128 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14129 p
14130 n
14131 b repl
14132 :more1
14133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14134 p
14135 g
14136 s/.\{148\}//
14137 t nl
14138 :delim
14139 h
14140 s/\(.\{148\}\).*/\1/
14141 t more2
14142 s/["\\]/\\&/g; s/^/"/; s/$/"/
14143 p
14144 b
14145 :more2
14146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14147 p
14148 g
14149 s/.\{148\}//
14150 t delim
14151 ' <conf$$subs.awk | sed '
14152 /^[^""]/{
14153 N
14154 s/\n//
14155 }
14156 ' >>$CONFIG_STATUS || ac_write_fail=1
14157 rm -f conf$$subs.awk
14158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159 _ACAWK
14160 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14161 for (key in S) S_is_set[key] = 1
14162 FS = "\a"
14163
14164 }
14165 {
14166 line = $ 0
14167 nfields = split(line, field, "@")
14168 substed = 0
14169 len = length(field[1])
14170 for (i = 2; i < nfields; i++) {
14171 key = field[i]
14172 keylen = length(key)
14173 if (S_is_set[key]) {
14174 value = S[key]
14175 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14176 len += length(value) + length(field[++i])
14177 substed = 1
14178 } else
14179 len += 1 + keylen
14180 }
14181
14182 print line
14183 }
14184
14185 _ACAWK
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14189 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14190 else
14191 cat
14192 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14193 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14194 _ACEOF
14195
14196 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14197 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14198 # trailing colons and then remove the whole line if VPATH becomes empty
14199 # (actually we leave an empty line to preserve line numbers).
14200 if test "x$srcdir" = x.; then
14201 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14202 s/:*\$(srcdir):*/:/
14203 s/:*\${srcdir}:*/:/
14204 s/:*@srcdir@:*/:/
14205 s/^\([^=]*=[ ]*\):*/\1/
14206 s/:*$//
14207 s/^[^=]*=[ ]*$//
14208 }'
14209 fi
14210
14211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14212 fi # test -n "$CONFIG_FILES"
14213
14214 # Set up the scripts for CONFIG_HEADERS section.
14215 # No need to generate them if there are no CONFIG_HEADERS.
14216 # This happens for instance with `./config.status Makefile'.
14217 if test -n "$CONFIG_HEADERS"; then
14218 cat >"$tmp/defines.awk" <<\_ACAWK ||
14219 BEGIN {
14220 _ACEOF
14221
14222 # Transform confdefs.h into an awk script `defines.awk', embedded as
14223 # here-document in config.status, that substitutes the proper values into
14224 # config.h.in to produce config.h.
14225
14226 # Create a delimiter string that does not exist in confdefs.h, to ease
14227 # handling of long lines.
14228 ac_delim='%!_!# '
14229 for ac_last_try in false false :; do
14230 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14231 if test -z "$ac_t"; then
14232 break
14233 elif $ac_last_try; then
14234 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14235 else
14236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14237 fi
14238 done
14239
14240 # For the awk script, D is an array of macro values keyed by name,
14241 # likewise P contains macro parameters if any. Preserve backslash
14242 # newline sequences.
14243
14244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14245 sed -n '
14246 s/.\{148\}/&'"$ac_delim"'/g
14247 t rset
14248 :rset
14249 s/^[ ]*#[ ]*define[ ][ ]*/ /
14250 t def
14251 d
14252 :def
14253 s/\\$//
14254 t bsnl
14255 s/["\\]/\\&/g
14256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14257 D["\1"]=" \3"/p
14258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14259 d
14260 :bsnl
14261 s/["\\]/\\&/g
14262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14263 D["\1"]=" \3\\\\\\n"\\/p
14264 t cont
14265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14266 t cont
14267 d
14268 :cont
14269 n
14270 s/.\{148\}/&'"$ac_delim"'/g
14271 t clear
14272 :clear
14273 s/\\$//
14274 t bsnlc
14275 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14276 d
14277 :bsnlc
14278 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14279 b cont
14280 ' <confdefs.h | sed '
14281 s/'"$ac_delim"'/"\\\
14282 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14283
14284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14285 for (key in D) D_is_set[key] = 1
14286 FS = "\a"
14287 }
14288 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14289 line = \$ 0
14290 split(line, arg, " ")
14291 if (arg[1] == "#") {
14292 defundef = arg[2]
14293 mac1 = arg[3]
14294 } else {
14295 defundef = substr(arg[1], 2)
14296 mac1 = arg[2]
14297 }
14298 split(mac1, mac2, "(") #)
14299 macro = mac2[1]
14300 prefix = substr(line, 1, index(line, defundef) - 1)
14301 if (D_is_set[macro]) {
14302 # Preserve the white space surrounding the "#".
14303 print prefix "define", macro P[macro] D[macro]
14304 next
14305 } else {
14306 # Replace #undef with comments. This is necessary, for example,
14307 # in the case of _POSIX_SOURCE, which is predefined and required
14308 # on some systems where configure will not decide to define it.
14309 if (defundef == "undef") {
14310 print "/*", prefix defundef, macro, "*/"
14311 next
14312 }
14313 }
14314 }
14315 { print }
14316 _ACAWK
14317 _ACEOF
14318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14319 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14320 fi # test -n "$CONFIG_HEADERS"
14321
14322
14323 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14324 shift
14325 for ac_tag
14326 do
14327 case $ac_tag in
14328 :[FHLC]) ac_mode=$ac_tag; continue;;
14329 esac
14330 case $ac_mode$ac_tag in
14331 :[FHL]*:*);;
14332 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14333 :[FH]-) ac_tag=-:-;;
14334 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14335 esac
14336 ac_save_IFS=$IFS
14337 IFS=:
14338 set x $ac_tag
14339 IFS=$ac_save_IFS
14340 shift
14341 ac_file=$1
14342 shift
14343
14344 case $ac_mode in
14345 :L) ac_source=$1;;
14346 :[FH])
14347 ac_file_inputs=
14348 for ac_f
14349 do
14350 case $ac_f in
14351 -) ac_f="$tmp/stdin";;
14352 *) # Look for the file first in the build tree, then in the source tree
14353 # (if the path is not absolute). The absolute path cannot be DOS-style,
14354 # because $ac_f cannot contain `:'.
14355 test -f "$ac_f" ||
14356 case $ac_f in
14357 [\\/$]*) false;;
14358 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14359 esac ||
14360 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14361 esac
14362 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14363 as_fn_append ac_file_inputs " '$ac_f'"
14364 done
14365
14366 # Let's still pretend it is `configure' which instantiates (i.e., don't
14367 # use $as_me), people would be surprised to read:
14368 # /* config.h. Generated by config.status. */
14369 configure_input='Generated from '`
14370 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14371 `' by configure.'
14372 if test x"$ac_file" != x-; then
14373 configure_input="$ac_file. $configure_input"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14375 $as_echo "$as_me: creating $ac_file" >&6;}
14376 fi
14377 # Neutralize special characters interpreted by sed in replacement strings.
14378 case $configure_input in #(
14379 *\&* | *\|* | *\\* )
14380 ac_sed_conf_input=`$as_echo "$configure_input" |
14381 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14382 *) ac_sed_conf_input=$configure_input;;
14383 esac
14384
14385 case $ac_tag in
14386 *:-:* | *:-) cat >"$tmp/stdin" \
14387 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14388 esac
14389 ;;
14390 esac
14391
14392 ac_dir=`$as_dirname -- "$ac_file" ||
14393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14394 X"$ac_file" : 'X\(//\)[^/]' \| \
14395 X"$ac_file" : 'X\(//\)$' \| \
14396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14397 $as_echo X"$ac_file" |
14398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14399 s//\1/
14400 q
14401 }
14402 /^X\(\/\/\)[^/].*/{
14403 s//\1/
14404 q
14405 }
14406 /^X\(\/\/\)$/{
14407 s//\1/
14408 q
14409 }
14410 /^X\(\/\).*/{
14411 s//\1/
14412 q
14413 }
14414 s/.*/./; q'`
14415 as_dir="$ac_dir"; as_fn_mkdir_p
14416 ac_builddir=.
14417
14418 case "$ac_dir" in
14419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14420 *)
14421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14422 # A ".." for each directory in $ac_dir_suffix.
14423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14424 case $ac_top_builddir_sub in
14425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14427 esac ;;
14428 esac
14429 ac_abs_top_builddir=$ac_pwd
14430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14431 # for backward compatibility:
14432 ac_top_builddir=$ac_top_build_prefix
14433
14434 case $srcdir in
14435 .) # We are building in place.
14436 ac_srcdir=.
14437 ac_top_srcdir=$ac_top_builddir_sub
14438 ac_abs_top_srcdir=$ac_pwd ;;
14439 [\\/]* | ?:[\\/]* ) # Absolute name.
14440 ac_srcdir=$srcdir$ac_dir_suffix;
14441 ac_top_srcdir=$srcdir
14442 ac_abs_top_srcdir=$srcdir ;;
14443 *) # Relative name.
14444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14445 ac_top_srcdir=$ac_top_build_prefix$srcdir
14446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14447 esac
14448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14449
14450
14451 case $ac_mode in
14452 :F)
14453 #
14454 # CONFIG_FILE
14455 #
14456
14457 case $INSTALL in
14458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14460 esac
14461 ac_MKDIR_P=$MKDIR_P
14462 case $MKDIR_P in
14463 [\\/$]* | ?:[\\/]* ) ;;
14464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14465 esac
14466 _ACEOF
14467
14468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14469 # If the template does not know about datarootdir, expand it.
14470 # FIXME: This hack should be removed a few years after 2.60.
14471 ac_datarootdir_hack=; ac_datarootdir_seen=
14472 ac_sed_dataroot='
14473 /datarootdir/ {
14474 p
14475 q
14476 }
14477 /@datadir@/p
14478 /@docdir@/p
14479 /@infodir@/p
14480 /@localedir@/p
14481 /@mandir@/p'
14482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14483 *datarootdir*) ac_datarootdir_seen=yes;;
14484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14487 _ACEOF
14488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14489 ac_datarootdir_hack='
14490 s&@datadir@&$datadir&g
14491 s&@docdir@&$docdir&g
14492 s&@infodir@&$infodir&g
14493 s&@localedir@&$localedir&g
14494 s&@mandir@&$mandir&g
14495 s&\\\${datarootdir}&$datarootdir&g' ;;
14496 esac
14497 _ACEOF
14498
14499 # Neutralize VPATH when `$srcdir' = `.'.
14500 # Shell code in configure.ac might set extrasub.
14501 # FIXME: do we really want to maintain this feature?
14502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14503 ac_sed_extra="$ac_vpsub
14504 $extrasub
14505 _ACEOF
14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14507 :t
14508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14509 s|@configure_input@|$ac_sed_conf_input|;t t
14510 s&@top_builddir@&$ac_top_builddir_sub&;t t
14511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14512 s&@srcdir@&$ac_srcdir&;t t
14513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14514 s&@top_srcdir@&$ac_top_srcdir&;t t
14515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14516 s&@builddir@&$ac_builddir&;t t
14517 s&@abs_builddir@&$ac_abs_builddir&;t t
14518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14519 s&@INSTALL@&$ac_INSTALL&;t t
14520 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14521 $ac_datarootdir_hack
14522 "
14523 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14524 || as_fn_error "could not create $ac_file" "$LINENO" 5
14525
14526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14527 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14530 which seems to be undefined. Please make sure it is defined." >&5
14531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14532 which seems to be undefined. Please make sure it is defined." >&2;}
14533
14534 rm -f "$tmp/stdin"
14535 case $ac_file in
14536 -) cat "$tmp/out" && rm -f "$tmp/out";;
14537 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14538 esac \
14539 || as_fn_error "could not create $ac_file" "$LINENO" 5
14540 ;;
14541 :H)
14542 #
14543 # CONFIG_HEADER
14544 #
14545 if test x"$ac_file" != x-; then
14546 {
14547 $as_echo "/* $configure_input */" \
14548 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14549 } >"$tmp/config.h" \
14550 || as_fn_error "could not create $ac_file" "$LINENO" 5
14551 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14554 else
14555 rm -f "$ac_file"
14556 mv "$tmp/config.h" "$ac_file" \
14557 || as_fn_error "could not create $ac_file" "$LINENO" 5
14558 fi
14559 else
14560 $as_echo "/* $configure_input */" \
14561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14562 || as_fn_error "could not create -" "$LINENO" 5
14563 fi
14564 # Compute "$ac_file"'s index in $config_headers.
14565 _am_arg="$ac_file"
14566 _am_stamp_count=1
14567 for _am_header in $config_headers :; do
14568 case $_am_header in
14569 $_am_arg | $_am_arg:* )
14570 break ;;
14571 * )
14572 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14573 esac
14574 done
14575 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14576 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14577 X"$_am_arg" : 'X\(//\)[^/]' \| \
14578 X"$_am_arg" : 'X\(//\)$' \| \
14579 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14580 $as_echo X"$_am_arg" |
14581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 s//\1/
14583 q
14584 }
14585 /^X\(\/\/\)[^/].*/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)$/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\).*/{
14594 s//\1/
14595 q
14596 }
14597 s/.*/./; q'`/stamp-h$_am_stamp_count
14598 ;;
14599
14600 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14601 $as_echo "$as_me: executing $ac_file commands" >&6;}
14602 ;;
14603 esac
14604
14605
14606 case $ac_file$ac_mode in
14607 "default-1":C)
14608 # Only add multilib support code if we just rebuilt the top-level
14609 # Makefile.
14610 case " $CONFIG_FILES " in
14611 *" Makefile "*)
14612 ac_file=Makefile . ${multi_basedir}/config-ml.in
14613 ;;
14614 esac ;;
14615 "libtool":C)
14616
14617 # See if we are running on zsh, and set the options which allow our
14618 # commands through without removal of \ escapes.
14619 if test -n "${ZSH_VERSION+set}" ; then
14620 setopt NO_GLOB_SUBST
14621 fi
14622
14623 cfgfile="${ofile}T"
14624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14625 $RM "$cfgfile"
14626
14627 cat <<_LT_EOF >> "$cfgfile"
14628 #! $SHELL
14629
14630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14634 #
14635 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14636 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14637 # Written by Gordon Matzigkeit, 1996
14638 #
14639 # This file is part of GNU Libtool.
14640 #
14641 # GNU Libtool is free software; you can redistribute it and/or
14642 # modify it under the terms of the GNU General Public License as
14643 # published by the Free Software Foundation; either version 2 of
14644 # the License, or (at your option) any later version.
14645 #
14646 # As a special exception to the GNU General Public License,
14647 # if you distribute this file as part of a program or library that
14648 # is built using GNU Libtool, you may include this file under the
14649 # same distribution terms that you use for the rest of that program.
14650 #
14651 # GNU Libtool is distributed in the hope that it will be useful,
14652 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14654 # GNU General Public License for more details.
14655 #
14656 # You should have received a copy of the GNU General Public License
14657 # along with GNU Libtool; see the file COPYING. If not, a copy
14658 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14659 # obtained by writing to the Free Software Foundation, Inc.,
14660 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14661
14662
14663 # The names of the tagged configurations supported by this script.
14664 available_tags=""
14665
14666 # ### BEGIN LIBTOOL CONFIG
14667
14668 # Which release of libtool.m4 was used?
14669 macro_version=$macro_version
14670 macro_revision=$macro_revision
14671
14672 # Whether or not to build shared libraries.
14673 build_libtool_libs=$enable_shared
14674
14675 # Whether or not to build static libraries.
14676 build_old_libs=$enable_static
14677
14678 # What type of objects to build.
14679 pic_mode=$pic_mode
14680
14681 # Whether or not to optimize for fast installation.
14682 fast_install=$enable_fast_install
14683
14684 # Shell to use when invoking shell scripts.
14685 SHELL=$lt_SHELL
14686
14687 # An echo program that protects backslashes.
14688 ECHO=$lt_ECHO
14689
14690 # The host system.
14691 host_alias=$host_alias
14692 host=$host
14693 host_os=$host_os
14694
14695 # The build system.
14696 build_alias=$build_alias
14697 build=$build
14698 build_os=$build_os
14699
14700 # A sed program that does not truncate output.
14701 SED=$lt_SED
14702
14703 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14704 Xsed="\$SED -e 1s/^X//"
14705
14706 # A grep program that handles long lines.
14707 GREP=$lt_GREP
14708
14709 # An ERE matcher.
14710 EGREP=$lt_EGREP
14711
14712 # A literal string matcher.
14713 FGREP=$lt_FGREP
14714
14715 # A BSD- or MS-compatible name lister.
14716 NM=$lt_NM
14717
14718 # Whether we need soft or hard links.
14719 LN_S=$lt_LN_S
14720
14721 # What is the maximum length of a command?
14722 max_cmd_len=$max_cmd_len
14723
14724 # Object file suffix (normally "o").
14725 objext=$ac_objext
14726
14727 # Executable file suffix (normally "").
14728 exeext=$exeext
14729
14730 # whether the shell understands "unset".
14731 lt_unset=$lt_unset
14732
14733 # turn spaces into newlines.
14734 SP2NL=$lt_lt_SP2NL
14735
14736 # turn newlines into spaces.
14737 NL2SP=$lt_lt_NL2SP
14738
14739 # An object symbol dumper.
14740 OBJDUMP=$lt_OBJDUMP
14741
14742 # Method to check whether dependent libraries are shared objects.
14743 deplibs_check_method=$lt_deplibs_check_method
14744
14745 # Command to use when deplibs_check_method == "file_magic".
14746 file_magic_cmd=$lt_file_magic_cmd
14747
14748 # The archiver.
14749 AR=$lt_AR
14750 AR_FLAGS=$lt_AR_FLAGS
14751
14752 # A symbol stripping program.
14753 STRIP=$lt_STRIP
14754
14755 # Commands used to install an old-style archive.
14756 RANLIB=$lt_RANLIB
14757 old_postinstall_cmds=$lt_old_postinstall_cmds
14758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14759
14760 # Whether to use a lock for old archive extraction.
14761 lock_old_archive_extraction=$lock_old_archive_extraction
14762
14763 # A C compiler.
14764 LTCC=$lt_CC
14765
14766 # LTCC compiler flags.
14767 LTCFLAGS=$lt_CFLAGS
14768
14769 # Take the output of nm and produce a listing of raw symbols and C names.
14770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14771
14772 # Transform the output of nm in a proper C declaration.
14773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14774
14775 # Transform the output of nm in a C name address pair.
14776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14777
14778 # Transform the output of nm in a C name address pair when lib prefix is needed.
14779 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14780
14781 # The name of the directory that contains temporary libtool files.
14782 objdir=$objdir
14783
14784 # Used to examine libraries when file_magic_cmd begins with "file".
14785 MAGIC_CMD=$MAGIC_CMD
14786
14787 # Must we lock files when doing compilation?
14788 need_locks=$lt_need_locks
14789
14790 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14791 DSYMUTIL=$lt_DSYMUTIL
14792
14793 # Tool to change global to local symbols on Mac OS X.
14794 NMEDIT=$lt_NMEDIT
14795
14796 # Tool to manipulate fat objects and archives on Mac OS X.
14797 LIPO=$lt_LIPO
14798
14799 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14800 OTOOL=$lt_OTOOL
14801
14802 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14803 OTOOL64=$lt_OTOOL64
14804
14805 # Old archive suffix (normally "a").
14806 libext=$libext
14807
14808 # Shared library suffix (normally ".so").
14809 shrext_cmds=$lt_shrext_cmds
14810
14811 # The commands to extract the exported symbol list from a shared archive.
14812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14813
14814 # Variables whose values should be saved in libtool wrapper scripts and
14815 # restored at link time.
14816 variables_saved_for_relink=$lt_variables_saved_for_relink
14817
14818 # Do we need the "lib" prefix for modules?
14819 need_lib_prefix=$need_lib_prefix
14820
14821 # Do we need a version for libraries?
14822 need_version=$need_version
14823
14824 # Library versioning type.
14825 version_type=$version_type
14826
14827 # Shared library runtime path variable.
14828 runpath_var=$runpath_var
14829
14830 # Shared library path variable.
14831 shlibpath_var=$shlibpath_var
14832
14833 # Is shlibpath searched before the hard-coded library search path?
14834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14835
14836 # Format of library name prefix.
14837 libname_spec=$lt_libname_spec
14838
14839 # List of archive names. First name is the real one, the rest are links.
14840 # The last name is the one that the linker finds with -lNAME
14841 library_names_spec=$lt_library_names_spec
14842
14843 # The coded name of the library, if different from the real name.
14844 soname_spec=$lt_soname_spec
14845
14846 # Permission mode override for installation of shared libraries.
14847 install_override_mode=$lt_install_override_mode
14848
14849 # Command to use after installation of a shared archive.
14850 postinstall_cmds=$lt_postinstall_cmds
14851
14852 # Command to use after uninstallation of a shared archive.
14853 postuninstall_cmds=$lt_postuninstall_cmds
14854
14855 # Commands used to finish a libtool library installation in a directory.
14856 finish_cmds=$lt_finish_cmds
14857
14858 # As "finish_cmds", except a single script fragment to be evaled but
14859 # not shown.
14860 finish_eval=$lt_finish_eval
14861
14862 # Whether we should hardcode library paths into libraries.
14863 hardcode_into_libs=$hardcode_into_libs
14864
14865 # Compile-time system search path for libraries.
14866 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14867
14868 # Run-time system search path for libraries.
14869 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14870
14871 # Whether dlopen is supported.
14872 dlopen_support=$enable_dlopen
14873
14874 # Whether dlopen of programs is supported.
14875 dlopen_self=$enable_dlopen_self
14876
14877 # Whether dlopen of statically linked programs is supported.
14878 dlopen_self_static=$enable_dlopen_self_static
14879
14880 # Commands to strip libraries.
14881 old_striplib=$lt_old_striplib
14882 striplib=$lt_striplib
14883
14884
14885 # The linker used to build libraries.
14886 LD=$lt_LD
14887
14888 # How to create reloadable object files.
14889 reload_flag=$lt_reload_flag
14890 reload_cmds=$lt_reload_cmds
14891
14892 # Commands used to build an old-style archive.
14893 old_archive_cmds=$lt_old_archive_cmds
14894
14895 # A language specific compiler.
14896 CC=$lt_compiler
14897
14898 # Is the compiler the GNU compiler?
14899 with_gcc=$GCC
14900
14901 # Compiler flag to turn off builtin functions.
14902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14903
14904 # How to pass a linker flag through the compiler.
14905 wl=$lt_lt_prog_compiler_wl
14906
14907 # Additional compiler flags for building library objects.
14908 pic_flag=$lt_lt_prog_compiler_pic
14909
14910 # Compiler flag to prevent dynamic linking.
14911 link_static_flag=$lt_lt_prog_compiler_static
14912
14913 # Does compiler simultaneously support -c and -o options?
14914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14915
14916 # Whether or not to add -lc for building shared libraries.
14917 build_libtool_need_lc=$archive_cmds_need_lc
14918
14919 # Whether or not to disallow shared libs when runtime libs are static.
14920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14921
14922 # Compiler flag to allow reflexive dlopens.
14923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14924
14925 # Compiler flag to generate shared objects directly from archives.
14926 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14927
14928 # Whether the compiler copes with passing no objects directly.
14929 compiler_needs_object=$lt_compiler_needs_object
14930
14931 # Create an old-style archive from a shared archive.
14932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14933
14934 # Create a temporary old-style archive to link instead of a shared archive.
14935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14936
14937 # Commands used to build a shared archive.
14938 archive_cmds=$lt_archive_cmds
14939 archive_expsym_cmds=$lt_archive_expsym_cmds
14940
14941 # Commands used to build a loadable module if different from building
14942 # a shared archive.
14943 module_cmds=$lt_module_cmds
14944 module_expsym_cmds=$lt_module_expsym_cmds
14945
14946 # Whether we are building with GNU ld or not.
14947 with_gnu_ld=$lt_with_gnu_ld
14948
14949 # Flag that allows shared libraries with undefined symbols to be built.
14950 allow_undefined_flag=$lt_allow_undefined_flag
14951
14952 # Flag that enforces no undefined symbols.
14953 no_undefined_flag=$lt_no_undefined_flag
14954
14955 # Flag to hardcode \$libdir into a binary during linking.
14956 # This must work even if \$libdir does not exist
14957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14958
14959 # If ld is used when linking, flag to hardcode \$libdir into a binary
14960 # during linking. This must work even if \$libdir does not exist.
14961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14962
14963 # Whether we need a single "-rpath" flag with a separated argument.
14964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14965
14966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14967 # DIR into the resulting binary.
14968 hardcode_direct=$hardcode_direct
14969
14970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14971 # DIR into the resulting binary and the resulting library dependency is
14972 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14973 # library is relocated.
14974 hardcode_direct_absolute=$hardcode_direct_absolute
14975
14976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14977 # into the resulting binary.
14978 hardcode_minus_L=$hardcode_minus_L
14979
14980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14981 # into the resulting binary.
14982 hardcode_shlibpath_var=$hardcode_shlibpath_var
14983
14984 # Set to "yes" if building a shared library automatically hardcodes DIR
14985 # into the library and all subsequent libraries and executables linked
14986 # against it.
14987 hardcode_automatic=$hardcode_automatic
14988
14989 # Set to yes if linker adds runtime paths of dependent libraries
14990 # to runtime path list.
14991 inherit_rpath=$inherit_rpath
14992
14993 # Whether libtool must link a program against all its dependency libraries.
14994 link_all_deplibs=$link_all_deplibs
14995
14996 # Fix the shell variable \$srcfile for the compiler.
14997 fix_srcfile_path=$lt_fix_srcfile_path
14998
14999 # Set to "yes" if exported symbols are required.
15000 always_export_symbols=$always_export_symbols
15001
15002 # The commands to list exported symbols.
15003 export_symbols_cmds=$lt_export_symbols_cmds
15004
15005 # Symbols that should not be listed in the preloaded symbols.
15006 exclude_expsyms=$lt_exclude_expsyms
15007
15008 # Symbols that must always be exported.
15009 include_expsyms=$lt_include_expsyms
15010
15011 # Commands necessary for linking programs (against libraries) with templates.
15012 prelink_cmds=$lt_prelink_cmds
15013
15014 # Specify filename containing input files.
15015 file_list_spec=$lt_file_list_spec
15016
15017 # How to hardcode a shared library path into an executable.
15018 hardcode_action=$hardcode_action
15019
15020 # ### END LIBTOOL CONFIG
15021
15022 _LT_EOF
15023
15024 case $host_os in
15025 aix3*)
15026 cat <<\_LT_EOF >> "$cfgfile"
15027 # AIX sometimes has problems with the GCC collect2 program. For some
15028 # reason, if we set the COLLECT_NAMES environment variable, the problems
15029 # vanish in a puff of smoke.
15030 if test "X${COLLECT_NAMES+set}" != Xset; then
15031 COLLECT_NAMES=
15032 export COLLECT_NAMES
15033 fi
15034 _LT_EOF
15035 ;;
15036 esac
15037
15038
15039 ltmain="$ac_aux_dir/ltmain.sh"
15040
15041
15042 # We use sed instead of cat because bash on DJGPP gets confused if
15043 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15044 # text mode, it properly converts lines to CR/LF. This bash problem
15045 # is reportedly fixed, but why not run on old versions too?
15046 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15047 || (rm -f "$cfgfile"; exit 1)
15048
15049 case $xsi_shell in
15050 yes)
15051 cat << \_LT_EOF >> "$cfgfile"
15052
15053 # func_dirname file append nondir_replacement
15054 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15055 # otherwise set result to NONDIR_REPLACEMENT.
15056 func_dirname ()
15057 {
15058 case ${1} in
15059 */*) func_dirname_result="${1%/*}${2}" ;;
15060 * ) func_dirname_result="${3}" ;;
15061 esac
15062 }
15063
15064 # func_basename file
15065 func_basename ()
15066 {
15067 func_basename_result="${1##*/}"
15068 }
15069
15070 # func_dirname_and_basename file append nondir_replacement
15071 # perform func_basename and func_dirname in a single function
15072 # call:
15073 # dirname: Compute the dirname of FILE. If nonempty,
15074 # add APPEND to the result, otherwise set result
15075 # to NONDIR_REPLACEMENT.
15076 # value returned in "$func_dirname_result"
15077 # basename: Compute filename of FILE.
15078 # value retuned in "$func_basename_result"
15079 # Implementation must be kept synchronized with func_dirname
15080 # and func_basename. For efficiency, we do not delegate to
15081 # those functions but instead duplicate the functionality here.
15082 func_dirname_and_basename ()
15083 {
15084 case ${1} in
15085 */*) func_dirname_result="${1%/*}${2}" ;;
15086 * ) func_dirname_result="${3}" ;;
15087 esac
15088 func_basename_result="${1##*/}"
15089 }
15090
15091 # func_stripname prefix suffix name
15092 # strip PREFIX and SUFFIX off of NAME.
15093 # PREFIX and SUFFIX must not contain globbing or regex special
15094 # characters, hashes, percent signs, but SUFFIX may contain a leading
15095 # dot (in which case that matches only a dot).
15096 func_stripname ()
15097 {
15098 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15099 # positional parameters, so assign one to ordinary parameter first.
15100 func_stripname_result=${3}
15101 func_stripname_result=${func_stripname_result#"${1}"}
15102 func_stripname_result=${func_stripname_result%"${2}"}
15103 }
15104
15105 # func_opt_split
15106 func_opt_split ()
15107 {
15108 func_opt_split_opt=${1%%=*}
15109 func_opt_split_arg=${1#*=}
15110 }
15111
15112 # func_lo2o object
15113 func_lo2o ()
15114 {
15115 case ${1} in
15116 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15117 *) func_lo2o_result=${1} ;;
15118 esac
15119 }
15120
15121 # func_xform libobj-or-source
15122 func_xform ()
15123 {
15124 func_xform_result=${1%.*}.lo
15125 }
15126
15127 # func_arith arithmetic-term...
15128 func_arith ()
15129 {
15130 func_arith_result=$(( $* ))
15131 }
15132
15133 # func_len string
15134 # STRING may not start with a hyphen.
15135 func_len ()
15136 {
15137 func_len_result=${#1}
15138 }
15139
15140 _LT_EOF
15141 ;;
15142 *) # Bourne compatible functions.
15143 cat << \_LT_EOF >> "$cfgfile"
15144
15145 # func_dirname file append nondir_replacement
15146 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15147 # otherwise set result to NONDIR_REPLACEMENT.
15148 func_dirname ()
15149 {
15150 # Extract subdirectory from the argument.
15151 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15152 if test "X$func_dirname_result" = "X${1}"; then
15153 func_dirname_result="${3}"
15154 else
15155 func_dirname_result="$func_dirname_result${2}"
15156 fi
15157 }
15158
15159 # func_basename file
15160 func_basename ()
15161 {
15162 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15163 }
15164
15165
15166 # func_stripname prefix suffix name
15167 # strip PREFIX and SUFFIX off of NAME.
15168 # PREFIX and SUFFIX must not contain globbing or regex special
15169 # characters, hashes, percent signs, but SUFFIX may contain a leading
15170 # dot (in which case that matches only a dot).
15171 # func_strip_suffix prefix name
15172 func_stripname ()
15173 {
15174 case ${2} in
15175 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15176 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15177 esac
15178 }
15179
15180 # sed scripts:
15181 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15182 my_sed_long_arg='1s/^-[^=]*=//'
15183
15184 # func_opt_split
15185 func_opt_split ()
15186 {
15187 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15188 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15189 }
15190
15191 # func_lo2o object
15192 func_lo2o ()
15193 {
15194 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15195 }
15196
15197 # func_xform libobj-or-source
15198 func_xform ()
15199 {
15200 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15201 }
15202
15203 # func_arith arithmetic-term...
15204 func_arith ()
15205 {
15206 func_arith_result=`expr "$@"`
15207 }
15208
15209 # func_len string
15210 # STRING may not start with a hyphen.
15211 func_len ()
15212 {
15213 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15214 }
15215
15216 _LT_EOF
15217 esac
15218
15219 case $lt_shell_append in
15220 yes)
15221 cat << \_LT_EOF >> "$cfgfile"
15222
15223 # func_append var value
15224 # Append VALUE to the end of shell variable VAR.
15225 func_append ()
15226 {
15227 eval "$1+=\$2"
15228 }
15229 _LT_EOF
15230 ;;
15231 *)
15232 cat << \_LT_EOF >> "$cfgfile"
15233
15234 # func_append var value
15235 # Append VALUE to the end of shell variable VAR.
15236 func_append ()
15237 {
15238 eval "$1=\$$1\$2"
15239 }
15240
15241 _LT_EOF
15242 ;;
15243 esac
15244
15245
15246 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15247 || (rm -f "$cfgfile"; exit 1)
15248
15249 mv -f "$cfgfile" "$ofile" ||
15250 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15251 chmod +x "$ofile"
15252
15253 ;;
15254 "gstdint.h":C)
15255 if test "$GCC" = yes; then
15256 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15257 else
15258 echo "/* generated for $CC */" > tmp-stdint.h
15259 fi
15260
15261 sed 's/^ *//' >> tmp-stdint.h <<EOF
15262
15263 #ifndef GCC_GENERATED_STDINT_H
15264 #define GCC_GENERATED_STDINT_H 1
15265
15266 #include <sys/types.h>
15267 EOF
15268
15269 if test "$acx_cv_header_stdint" != stdint.h; then
15270 echo "#include <stddef.h>" >> tmp-stdint.h
15271 fi
15272 if test "$acx_cv_header_stdint" != stddef.h; then
15273 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15274 fi
15275
15276 sed 's/^ *//' >> tmp-stdint.h <<EOF
15277 /* glibc uses these symbols as guards to prevent redefinitions. */
15278 #ifdef __int8_t_defined
15279 #define _INT8_T
15280 #define _INT16_T
15281 #define _INT32_T
15282 #endif
15283 #ifdef __uint32_t_defined
15284 #define _UINT32_T
15285 #endif
15286
15287 EOF
15288
15289 # ----------------- done header, emit basic int types -------------
15290 if test "$acx_cv_header_stdint" = stddef.h; then
15291 sed 's/^ *//' >> tmp-stdint.h <<EOF
15292
15293 #ifndef _UINT8_T
15294 #define _UINT8_T
15295 #ifndef __uint8_t_defined
15296 #define __uint8_t_defined
15297 #ifndef uint8_t
15298 typedef unsigned $acx_cv_type_int8_t uint8_t;
15299 #endif
15300 #endif
15301 #endif
15302
15303 #ifndef _UINT16_T
15304 #define _UINT16_T
15305 #ifndef __uint16_t_defined
15306 #define __uint16_t_defined
15307 #ifndef uint16_t
15308 typedef unsigned $acx_cv_type_int16_t uint16_t;
15309 #endif
15310 #endif
15311 #endif
15312
15313 #ifndef _UINT32_T
15314 #define _UINT32_T
15315 #ifndef __uint32_t_defined
15316 #define __uint32_t_defined
15317 #ifndef uint32_t
15318 typedef unsigned $acx_cv_type_int32_t uint32_t;
15319 #endif
15320 #endif
15321 #endif
15322
15323 #ifndef _INT8_T
15324 #define _INT8_T
15325 #ifndef __int8_t_defined
15326 #define __int8_t_defined
15327 #ifndef int8_t
15328 typedef $acx_cv_type_int8_t int8_t;
15329 #endif
15330 #endif
15331 #endif
15332
15333 #ifndef _INT16_T
15334 #define _INT16_T
15335 #ifndef __int16_t_defined
15336 #define __int16_t_defined
15337 #ifndef int16_t
15338 typedef $acx_cv_type_int16_t int16_t;
15339 #endif
15340 #endif
15341 #endif
15342
15343 #ifndef _INT32_T
15344 #define _INT32_T
15345 #ifndef __int32_t_defined
15346 #define __int32_t_defined
15347 #ifndef int32_t
15348 typedef $acx_cv_type_int32_t int32_t;
15349 #endif
15350 #endif
15351 #endif
15352 EOF
15353 elif test "$ac_cv_type_u_int32_t" = yes; then
15354 sed 's/^ *//' >> tmp-stdint.h <<EOF
15355
15356 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15357 #ifndef _INT8_T
15358 #define _INT8_T
15359 #endif
15360 #ifndef _INT16_T
15361 #define _INT16_T
15362 #endif
15363 #ifndef _INT32_T
15364 #define _INT32_T
15365 #endif
15366
15367 #ifndef _UINT8_T
15368 #define _UINT8_T
15369 #ifndef __uint8_t_defined
15370 #define __uint8_t_defined
15371 #ifndef uint8_t
15372 typedef u_int8_t uint8_t;
15373 #endif
15374 #endif
15375 #endif
15376
15377 #ifndef _UINT16_T
15378 #define _UINT16_T
15379 #ifndef __uint16_t_defined
15380 #define __uint16_t_defined
15381 #ifndef uint16_t
15382 typedef u_int16_t uint16_t;
15383 #endif
15384 #endif
15385 #endif
15386
15387 #ifndef _UINT32_T
15388 #define _UINT32_T
15389 #ifndef __uint32_t_defined
15390 #define __uint32_t_defined
15391 #ifndef uint32_t
15392 typedef u_int32_t uint32_t;
15393 #endif
15394 #endif
15395 #endif
15396 EOF
15397 else
15398 sed 's/^ *//' >> tmp-stdint.h <<EOF
15399
15400 /* Some systems have guard macros to prevent redefinitions, define them. */
15401 #ifndef _INT8_T
15402 #define _INT8_T
15403 #endif
15404 #ifndef _INT16_T
15405 #define _INT16_T
15406 #endif
15407 #ifndef _INT32_T
15408 #define _INT32_T
15409 #endif
15410 #ifndef _UINT8_T
15411 #define _UINT8_T
15412 #endif
15413 #ifndef _UINT16_T
15414 #define _UINT16_T
15415 #endif
15416 #ifndef _UINT32_T
15417 #define _UINT32_T
15418 #endif
15419 EOF
15420 fi
15421
15422 # ------------- done basic int types, emit int64_t types ------------
15423 if test "$ac_cv_type_uint64_t" = yes; then
15424 sed 's/^ *//' >> tmp-stdint.h <<EOF
15425
15426 /* system headers have good uint64_t and int64_t */
15427 #ifndef _INT64_T
15428 #define _INT64_T
15429 #endif
15430 #ifndef _UINT64_T
15431 #define _UINT64_T
15432 #endif
15433 EOF
15434 elif test "$ac_cv_type_u_int64_t" = yes; then
15435 sed 's/^ *//' >> tmp-stdint.h <<EOF
15436
15437 /* system headers have an u_int64_t (and int64_t) */
15438 #ifndef _INT64_T
15439 #define _INT64_T
15440 #endif
15441 #ifndef _UINT64_T
15442 #define _UINT64_T
15443 #ifndef __uint64_t_defined
15444 #define __uint64_t_defined
15445 #ifndef uint64_t
15446 typedef u_int64_t uint64_t;
15447 #endif
15448 #endif
15449 #endif
15450 EOF
15451 elif test -n "$acx_cv_type_int64_t"; then
15452 sed 's/^ *//' >> tmp-stdint.h <<EOF
15453
15454 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15455 #ifndef _INT64_T
15456 #define _INT64_T
15457 #ifndef int64_t
15458 typedef $acx_cv_type_int64_t int64_t;
15459 #endif
15460 #endif
15461 #ifndef _UINT64_T
15462 #define _UINT64_T
15463 #ifndef __uint64_t_defined
15464 #define __uint64_t_defined
15465 #ifndef uint64_t
15466 typedef unsigned $acx_cv_type_int64_t uint64_t;
15467 #endif
15468 #endif
15469 #endif
15470 EOF
15471 else
15472 sed 's/^ *//' >> tmp-stdint.h <<EOF
15473
15474 /* some common heuristics for int64_t, using compiler-specific tests */
15475 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15476 #ifndef _INT64_T
15477 #define _INT64_T
15478 #ifndef __int64_t_defined
15479 #ifndef int64_t
15480 typedef long long int64_t;
15481 #endif
15482 #endif
15483 #endif
15484 #ifndef _UINT64_T
15485 #define _UINT64_T
15486 #ifndef uint64_t
15487 typedef unsigned long long uint64_t;
15488 #endif
15489 #endif
15490
15491 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15492 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15493 does not implement __extension__. But that compiler doesn't define
15494 __GNUC_MINOR__. */
15495 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15496 # define __extension__
15497 # endif
15498
15499 # ifndef _INT64_T
15500 # define _INT64_T
15501 # ifndef int64_t
15502 __extension__ typedef long long int64_t;
15503 # endif
15504 # endif
15505 # ifndef _UINT64_T
15506 # define _UINT64_T
15507 # ifndef uint64_t
15508 __extension__ typedef unsigned long long uint64_t;
15509 # endif
15510 # endif
15511
15512 #elif !defined __STRICT_ANSI__
15513 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15514
15515 # ifndef _INT64_T
15516 # define _INT64_T
15517 # ifndef int64_t
15518 typedef __int64 int64_t;
15519 # endif
15520 # endif
15521 # ifndef _UINT64_T
15522 # define _UINT64_T
15523 # ifndef uint64_t
15524 typedef unsigned __int64 uint64_t;
15525 # endif
15526 # endif
15527 # endif /* compiler */
15528
15529 #endif /* ANSI version */
15530 EOF
15531 fi
15532
15533 # ------------- done int64_t types, emit intptr types ------------
15534 if test "$ac_cv_type_uintptr_t" != yes; then
15535 sed 's/^ *//' >> tmp-stdint.h <<EOF
15536
15537 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15538 #ifndef __uintptr_t_defined
15539 #ifndef uintptr_t
15540 typedef u$acx_cv_type_intptr_t uintptr_t;
15541 #endif
15542 #endif
15543 #ifndef __intptr_t_defined
15544 #ifndef intptr_t
15545 typedef $acx_cv_type_intptr_t intptr_t;
15546 #endif
15547 #endif
15548 EOF
15549 fi
15550
15551 # ------------- done intptr types, emit int_least types ------------
15552 if test "$ac_cv_type_int_least32_t" != yes; then
15553 sed 's/^ *//' >> tmp-stdint.h <<EOF
15554
15555 /* Define int_least types */
15556 typedef int8_t int_least8_t;
15557 typedef int16_t int_least16_t;
15558 typedef int32_t int_least32_t;
15559 #ifdef _INT64_T
15560 typedef int64_t int_least64_t;
15561 #endif
15562
15563 typedef uint8_t uint_least8_t;
15564 typedef uint16_t uint_least16_t;
15565 typedef uint32_t uint_least32_t;
15566 #ifdef _UINT64_T
15567 typedef uint64_t uint_least64_t;
15568 #endif
15569 EOF
15570 fi
15571
15572 # ------------- done intptr types, emit int_fast types ------------
15573 if test "$ac_cv_type_int_fast32_t" != yes; then
15574 sed 's/^ *//' >> tmp-stdint.h <<EOF
15575
15576 /* Define int_fast types. short is often slow */
15577 typedef int8_t int_fast8_t;
15578 typedef int int_fast16_t;
15579 typedef int32_t int_fast32_t;
15580 #ifdef _INT64_T
15581 typedef int64_t int_fast64_t;
15582 #endif
15583
15584 typedef uint8_t uint_fast8_t;
15585 typedef unsigned int uint_fast16_t;
15586 typedef uint32_t uint_fast32_t;
15587 #ifdef _UINT64_T
15588 typedef uint64_t uint_fast64_t;
15589 #endif
15590 EOF
15591 fi
15592
15593 if test "$ac_cv_type_uintmax_t" != yes; then
15594 sed 's/^ *//' >> tmp-stdint.h <<EOF
15595
15596 /* Define intmax based on what we found */
15597 #ifndef intmax_t
15598 #ifdef _INT64_T
15599 typedef int64_t intmax_t;
15600 #else
15601 typedef long intmax_t;
15602 #endif
15603 #endif
15604 #ifndef uintmax_t
15605 #ifdef _UINT64_T
15606 typedef uint64_t uintmax_t;
15607 #else
15608 typedef unsigned long uintmax_t;
15609 #endif
15610 #endif
15611 EOF
15612 fi
15613
15614 sed 's/^ *//' >> tmp-stdint.h <<EOF
15615
15616 #endif /* GCC_GENERATED_STDINT_H */
15617 EOF
15618
15619 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15620 rm -f tmp-stdint.h
15621 else
15622 mv -f tmp-stdint.h gstdint.h
15623 fi
15624
15625 ;;
15626 "default":C) if test -n "$CONFIG_FILES"; then
15627 if test -n "${with_target_subdir}"; then
15628 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15629 # that multilib installs will end up installed in the correct place.
15630 # The testsuite needs it for multilib-aware ABI baseline files.
15631 # To work around this not being passed down from config-ml.in ->
15632 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15633 # append it here. Only modify Makefiles that have just been created.
15634 #
15635 # Also, get rid of this simulated-VPATH thing that automake does.
15636 cat > vpsed << \_EOF
15637 s!`test -f '$<' || echo '$(srcdir)/'`!!
15638 _EOF
15639 for i in $SUBDIRS; do
15640 case $CONFIG_FILES in
15641 *${i}/Makefile*)
15642 #echo "Adding MULTISUBDIR to $i/Makefile"
15643 sed -f vpsed $i/Makefile > tmp
15644 grep '^MULTISUBDIR =' Makefile >> tmp
15645 mv tmp $i/Makefile
15646 ;;
15647 esac
15648 done
15649 rm vpsed
15650 fi
15651 fi
15652 ;;
15653
15654 esac
15655 done # for ac_tag
15656
15657
15658 as_fn_exit 0
15659 _ACEOF
15660 ac_clean_files=$ac_clean_files_save
15661
15662 test $ac_write_fail = 0 ||
15663 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15664
15665
15666 # configure is writing to config.log, and then calls config.status.
15667 # config.status does its own redirection, appending to config.log.
15668 # Unfortunately, on DOS this fails, as config.log is still kept open
15669 # by configure, so config.status won't be able to write to it; its
15670 # output is simply discarded. So we exec the FD to /dev/null,
15671 # effectively closing config.log, so it can be properly (re)opened and
15672 # appended to by config.status. When coming back to configure, we
15673 # need to make the FD available again.
15674 if test "$no_create" != yes; then
15675 ac_cs_success=:
15676 ac_config_status_args=
15677 test "$silent" = yes &&
15678 ac_config_status_args="$ac_config_status_args --quiet"
15679 exec 5>/dev/null
15680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15681 exec 5>>config.log
15682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15683 # would make configure fail if this is the last instruction.
15684 $ac_cs_success || as_fn_exit $?
15685 fi
15686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15689 fi
15690