]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
libbacktrace/:
[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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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 BACKTRACE_USES_MALLOC
608 ALLOC_FILE
609 VIEW_FILE
610 BACKTRACE_SUPPORTED
611 FORMAT_FILE
612 BACKTRACE_SUPPORTS_THREADS
613 PIC_FLAG
614 WARN_FLAGS
615 BACKTRACE_FILE
616 multi_basedir
617 CPP
618 OTOOL64
619 OTOOL
620 LIPO
621 NMEDIT
622 DSYMUTIL
623 AR
624 OBJDUMP
625 LN_S
626 NM
627 ac_ct_DUMPBIN
628 DUMPBIN
629 LD
630 FGREP
631 EGREP
632 GREP
633 SED
634 LIBTOOL
635 RANLIB
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 AMDEPBACKSLASH
640 AMDEP_FALSE
641 AMDEP_TRUE
642 am__quote
643 am__include
644 DEPDIR
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 MAINT
653 MAINTAINER_MODE_FALSE
654 MAINTAINER_MODE_TRUE
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 AWK
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 libtool_VERSION
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 with_target_subdir
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
741 enable_multilib
742 with_system_libunwind
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CPP
748 CPPFLAGS'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
808 fi
809
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information."
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of package-unused version-unused:";;
1362 esac
1363 cat <<\_ACEOF
1364
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-maintainer-mode enable make rules and dependencies not useful
1370 (and sometimes confusing) to the casual installer
1371 --disable-dependency-tracking speeds up one-time build
1372 --enable-dependency-tracking do not reject slow dependency extractors
1373 --enable-shared[=PKGS] build shared libraries [default=no]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1378 --enable-multilib build many library versions (default)
1379
1380 Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1384 --with-pic try to use only PIC/non-PIC objects [default=use
1385 both]
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1387 --with-system-libunwind use installed libunwind
1388
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 package-unused configure version-unused
1466 generated by GNU Autoconf 2.64
1467
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1473 fi
1474
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1478
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1483 {
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511 fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515 } # ac_fn_c_try_compile
1516
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551 ac_retval=1
1552 fi
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1560
1561 } # ac_fn_c_try_link
1562
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1574 else
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1577 $4
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582 else
1583 eval "$3=no"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
1592 } # ac_fn_c_check_header_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=$ac_status
1666 fi
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1689
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1694
1695 #ifdef __STDC__
1696 # include <limits.h>
1697 #else
1698 # include <assert.h>
1699 #endif
1700
1701 #undef $2
1702
1703 /* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1706 #ifdef __cplusplus
1707 extern "C"
1708 #endif
1709 char $2 ();
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined __stub_$2 || defined __stub___$2
1714 choke me
1715 #endif
1716
1717 int
1718 main ()
1719 {
1720 return $2 ();
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_link "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738 } # ac_fn_c_check_func
1739
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1744 # accordingly.
1745 ac_fn_c_check_header_mongrel ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 else
1758 # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 ac_header_compiler=yes
1768 else
1769 ac_header_compiler=no
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1774
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783 ac_header_preproc=yes
1784 else
1785 ac_header_preproc=no
1786 fi
1787 rm -f conftest.err conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1790
1791 # So? What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793 yes:no: )
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 ;;
1799 no:yes:* )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 esac
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1816 else
1817 eval "$3=\$ac_header_compiler"
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 fi
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825 } # ac_fn_c_check_header_mongrel
1826 cat >config.log <<_ACEOF
1827 This file contains any messages produced by compilers while
1828 running configure, to aid debugging if configure makes a mistake.
1829
1830 It was created by package-unused $as_me version-unused, which was
1831 generated by GNU Autoconf 2.64. Invocation command line was
1832
1833 $ $0 $@
1834
1835 _ACEOF
1836 exec 5>>config.log
1837 {
1838 cat <<_ASUNAME
1839 ## --------- ##
1840 ## Platform. ##
1841 ## --------- ##
1842
1843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1848
1849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1851
1852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859
1860 _ASUNAME
1861
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 $as_echo "PATH: $as_dir"
1868 done
1869 IFS=$as_save_IFS
1870
1871 } >&5
1872
1873 cat >&5 <<_ACEOF
1874
1875
1876 ## ----------- ##
1877 ## Core tests. ##
1878 ## ----------- ##
1879
1880 _ACEOF
1881
1882
1883 # Keep a trace of the command line.
1884 # Strip out --no-create and --no-recursion so they do not pile up.
1885 # Strip out --silent because we don't want to record it for future runs.
1886 # Also quote any args containing shell meta-characters.
1887 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_configure_args=
1889 ac_configure_args0=
1890 ac_configure_args1=
1891 ac_must_keep_next=false
1892 for ac_pass in 1 2
1893 do
1894 for ac_arg
1895 do
1896 case $ac_arg in
1897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899 | -silent | --silent | --silen | --sile | --sil)
1900 continue ;;
1901 *\'*)
1902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 esac
1904 case $ac_pass in
1905 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1906 2)
1907 as_fn_append ac_configure_args1 " '$ac_arg'"
1908 if test $ac_must_keep_next = true; then
1909 ac_must_keep_next=false # Got value, back to normal.
1910 else
1911 case $ac_arg in
1912 *=* | --config-cache | -C | -disable-* | --disable-* \
1913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1915 | -with-* | --with-* | -without-* | --without-* | --x)
1916 case "$ac_configure_args0 " in
1917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918 esac
1919 ;;
1920 -* ) ac_must_keep_next=true ;;
1921 esac
1922 fi
1923 as_fn_append ac_configure_args " '$ac_arg'"
1924 ;;
1925 esac
1926 done
1927 done
1928 { ac_configure_args0=; unset ac_configure_args0;}
1929 { ac_configure_args1=; unset ac_configure_args1;}
1930
1931 # When interrupted or exit'd, cleanup temporary files, and complete
1932 # config.log. We remove comments because anyway the quotes in there
1933 # would cause problems or look ugly.
1934 # WARNING: Use '\'' to represent an apostrophe within the trap.
1935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1936 trap 'exit_status=$?
1937 # Save into config.log some information that might help in debugging.
1938 {
1939 echo
1940
1941 cat <<\_ASBOX
1942 ## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##
1945 _ASBOX
1946 echo
1947 # The following way of writing the cache mishandles newlines in values,
1948 (
1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in #(
1952 *${as_nl}*)
1953 case $ac_var in #(
1954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956 esac
1957 case $ac_var in #(
1958 _ | IFS | as_nl) ;; #(
1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1960 *) { eval $ac_var=; unset $ac_var;} ;;
1961 esac ;;
1962 esac
1963 done
1964 (set) 2>&1 |
1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1966 *${as_nl}ac_space=\ *)
1967 sed -n \
1968 "s/'\''/'\''\\\\'\'''\''/g;
1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970 ;; #(
1971 *)
1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1973 ;;
1974 esac |
1975 sort
1976 )
1977 echo
1978
1979 cat <<\_ASBOX
1980 ## ----------------- ##
1981 ## Output variables. ##
1982 ## ----------------- ##
1983 _ASBOX
1984 echo
1985 for ac_var in $ac_subst_vars
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 $as_echo "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994
1995 if test -n "$ac_subst_files"; then
1996 cat <<\_ASBOX
1997 ## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##
2000 _ASBOX
2001 echo
2002 for ac_var in $ac_subst_files
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 $as_echo "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011 fi
2012
2013 if test -s confdefs.h; then
2014 cat <<\_ASBOX
2015 ## ----------- ##
2016 ## confdefs.h. ##
2017 ## ----------- ##
2018 _ASBOX
2019 echo
2020 cat confdefs.h
2021 echo
2022 fi
2023 test "$ac_signal" != 0 &&
2024 $as_echo "$as_me: caught signal $ac_signal"
2025 $as_echo "$as_me: exit $exit_status"
2026 } >&5
2027 rm -f core *.core core.conftest.* &&
2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029 exit $exit_status
2030 ' 0
2031 for ac_signal in 1 2 13 15; do
2032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033 done
2034 ac_signal=0
2035
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2038
2039 $as_echo "/* confdefs.h */" > confdefs.h
2040
2041 # Predefined preprocessor variables.
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_URL "$PACKAGE_URL"
2065 _ACEOF
2066
2067
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2070 ac_site_file1=NONE
2071 ac_site_file2=NONE
2072 if test -n "$CONFIG_SITE"; then
2073 ac_site_file1=$CONFIG_SITE
2074 elif test "x$prefix" != xNONE; then
2075 ac_site_file1=$prefix/share/config.site
2076 ac_site_file2=$prefix/etc/config.site
2077 else
2078 ac_site_file1=$ac_default_prefix/share/config.site
2079 ac_site_file2=$ac_default_prefix/etc/config.site
2080 fi
2081 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2082 do
2083 test "x$ac_site_file" = xNONE && continue
2084 if test -r "$ac_site_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2086 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2087 sed 's/^/| /' "$ac_site_file" >&5
2088 . "$ac_site_file"
2089 fi
2090 done
2091
2092 if test -r "$cache_file"; then
2093 # Some versions of bash will fail to source /dev/null (special
2094 # files actually), so we avoid doing that.
2095 if test -f "$cache_file"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097 $as_echo "$as_me: loading cache $cache_file" >&6;}
2098 case $cache_file in
2099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100 *) . "./$cache_file";;
2101 esac
2102 fi
2103 else
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105 $as_echo "$as_me: creating cache $cache_file" >&6;}
2106 >$cache_file
2107 fi
2108
2109 # Check that the precious variables saved in the cache have kept the same
2110 # value.
2111 ac_cache_corrupted=false
2112 for ac_var in $ac_precious_vars; do
2113 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2114 eval ac_new_set=\$ac_env_${ac_var}_set
2115 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2116 eval ac_new_val=\$ac_env_${ac_var}_value
2117 case $ac_old_set,$ac_new_set in
2118 set,)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,set)
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2124 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2126 ,);;
2127 *)
2128 if test "x$ac_old_val" != "x$ac_new_val"; then
2129 # differences in whitespace do not lead to failure.
2130 ac_old_val_w=`echo x $ac_old_val`
2131 ac_new_val_w=`echo x $ac_new_val`
2132 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2134 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 ac_cache_corrupted=:
2136 else
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2138 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2139 eval $ac_var=\$ac_old_val
2140 fi
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2142 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2144 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 fi;;
2146 esac
2147 # Pass precious variables to config.status.
2148 if test "$ac_new_set" = set; then
2149 case $ac_new_val in
2150 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 *) ac_arg=$ac_var=$ac_new_val ;;
2152 esac
2153 case " $ac_configure_args " in
2154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2155 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2156 esac
2157 fi
2158 done
2159 if $ac_cache_corrupted; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2163 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2165 fi
2166 ## -------------------- ##
2167 ## Main body of script. ##
2168 ## -------------------- ##
2169
2170 ac_ext=c
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
2176
2177
2178
2179
2180
2181 ac_config_headers="$ac_config_headers config.h"
2182
2183
2184 ac_aux_dir=
2185 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2186 for ac_t in install-sh install.sh shtool; do
2187 if test -f "$ac_dir/$ac_t"; then
2188 ac_aux_dir=$ac_dir
2189 ac_install_sh="$ac_aux_dir/$ac_t -c"
2190 break 2
2191 fi
2192 done
2193 done
2194 if test -z "$ac_aux_dir"; then
2195 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2196 fi
2197
2198 # These three variables are undocumented and unsupported,
2199 # and are intended to be withdrawn in a future Autoconf release.
2200 # They can cause serious problems if a builder's source tree is in a directory
2201 # whose full name contains unusual characters.
2202 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2203 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2204 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2205
2206
2207 # Make sure we can run config.sub.
2208 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2209 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2210
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2212 $as_echo_n "checking build system type... " >&6; }
2213 if test "${ac_cv_build+set}" = set; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 ac_build_alias=$build_alias
2217 test "x$ac_build_alias" = x &&
2218 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2219 test "x$ac_build_alias" = x &&
2220 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2221 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2222 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2223
2224 fi
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2226 $as_echo "$ac_cv_build" >&6; }
2227 case $ac_cv_build in
2228 *-*-*) ;;
2229 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2230 esac
2231 build=$ac_cv_build
2232 ac_save_IFS=$IFS; IFS='-'
2233 set x $ac_cv_build
2234 shift
2235 build_cpu=$1
2236 build_vendor=$2
2237 shift; shift
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2240 build_os=$*
2241 IFS=$ac_save_IFS
2242 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2243
2244
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2246 $as_echo_n "checking host system type... " >&6; }
2247 if test "${ac_cv_host+set}" = set; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 if test "x$host_alias" = x; then
2251 ac_cv_host=$ac_cv_build
2252 else
2253 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2254 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2255 fi
2256
2257 fi
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2259 $as_echo "$ac_cv_host" >&6; }
2260 case $ac_cv_host in
2261 *-*-*) ;;
2262 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2263 esac
2264 host=$ac_cv_host
2265 ac_save_IFS=$IFS; IFS='-'
2266 set x $ac_cv_host
2267 shift
2268 host_cpu=$1
2269 host_vendor=$2
2270 shift; shift
2271 # Remember, the first character of IFS is used to create $*,
2272 # except with old shells:
2273 host_os=$*
2274 IFS=$ac_save_IFS
2275 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2276
2277
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2279 $as_echo_n "checking target system type... " >&6; }
2280 if test "${ac_cv_target+set}" = set; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 if test "x$target_alias" = x; then
2284 ac_cv_target=$ac_cv_host
2285 else
2286 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2287 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2288 fi
2289
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2292 $as_echo "$ac_cv_target" >&6; }
2293 case $ac_cv_target in
2294 *-*-*) ;;
2295 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2296 esac
2297 target=$ac_cv_target
2298 ac_save_IFS=$IFS; IFS='-'
2299 set x $ac_cv_target
2300 shift
2301 target_cpu=$1
2302 target_vendor=$2
2303 shift; shift
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2306 target_os=$*
2307 IFS=$ac_save_IFS
2308 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2309
2310
2311 # The aliases save the names the user supplied, while $host etc.
2312 # will get canonicalized.
2313 test -n "$target_alias" &&
2314 test "$program_prefix$program_suffix$program_transform_name" = \
2315 NONENONEs,x,x, &&
2316 program_prefix=${target_alias}-
2317
2318 target_alias=${target_alias-$host_alias}
2319
2320 libtool_VERSION=1:0:0
2321
2322
2323 am__api_version='1.11'
2324
2325 # Find a good install program. We prefer a C program (faster),
2326 # so one script is as good as another. But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if test "${ac_cv_path_install+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352 ./ | .// | /[cC]/* | \
2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355 /usr/ucb/* ) ;;
2356 *)
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2359 # by default.
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2366 :
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2370 :
2371 else
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2375 mkdir conftest.dir
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2380 then
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382 break 3
2383 fi
2384 fi
2385 fi
2386 done
2387 done
2388 ;;
2389 esac
2390
2391 done
2392 IFS=$as_save_IFS
2393
2394 rm -rf conftest.one conftest.two conftest.dir
2395
2396 fi
2397 if test "${ac_cv_path_install+set}" = set; then
2398 INSTALL=$ac_cv_path_install
2399 else
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the value is a relative name.
2404 INSTALL=$ac_install_sh
2405 fi
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2409
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Just in case
2421 sleep 1
2422 echo timestamp > conftest.file
2423 # Reject unsafe characters in $srcdir or the absolute working directory
2424 # name. Accept space and tab only in the latter.
2425 am_lf='
2426 '
2427 case `pwd` in
2428 *[\\\"\#\$\&\'\`$am_lf]*)
2429 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2430 esac
2431 case $srcdir in
2432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2433 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2434 esac
2435
2436 # Do `set' in a subshell so we don't clobber the current shell's
2437 # arguments. Must try -L first in case configure is actually a
2438 # symlink; some systems play weird games with the mod time of symlinks
2439 # (eg FreeBSD returns the mod time of the symlink's containing
2440 # directory).
2441 if (
2442 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2443 if test "$*" = "X"; then
2444 # -L didn't work.
2445 set X `ls -t "$srcdir/configure" conftest.file`
2446 fi
2447 rm -f conftest.file
2448 if test "$*" != "X $srcdir/configure conftest.file" \
2449 && test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451 # If neither matched, then we have a broken ls. This can happen
2452 # if, for instance, CONFIG_SHELL is bash and it inherits a
2453 # broken ls alias from the environment. This has actually
2454 # happened. Such a system could not be considered "sane".
2455 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2456 alias in your environment" "$LINENO" 5
2457 fi
2458
2459 test "$2" = conftest.file
2460 )
2461 then
2462 # Ok.
2463 :
2464 else
2465 as_fn_error "newly created file is older than distributed files!
2466 Check your system clock" "$LINENO" 5
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2469 $as_echo "yes" >&6; }
2470 test "$program_prefix" != NONE &&
2471 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2472 # Use a double $ so make ignores it.
2473 test "$program_suffix" != NONE &&
2474 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2475 # Double any \ or $.
2476 # By default was `s,x,x', remove it if useless.
2477 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2478 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2479
2480 # expand $ac_aux_dir to an absolute path
2481 am_aux_dir=`cd $ac_aux_dir && pwd`
2482
2483 if test x"${MISSING+set}" != xset; then
2484 case $am_aux_dir in
2485 *\ * | *\ *)
2486 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2487 *)
2488 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2489 esac
2490 fi
2491 # Use eval to expand $SHELL
2492 if eval "$MISSING --run true"; then
2493 am_missing_run="$MISSING --run "
2494 else
2495 am_missing_run=
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2497 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2498 fi
2499
2500 if test x"${install_sh}" != xset; then
2501 case $am_aux_dir in
2502 *\ * | *\ *)
2503 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2504 *)
2505 install_sh="\${SHELL} $am_aux_dir/install-sh"
2506 esac
2507 fi
2508
2509 # Installed binaries are usually stripped using `strip' when the user
2510 # run `make install-strip'. However `strip' might not be the right
2511 # tool to use in cross-compilation environments, therefore Automake
2512 # will honor the `STRIP' environment variable to overrule this program.
2513 if test "$cross_compiling" != no; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}strip; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_STRIP+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$STRIP"; then
2523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 STRIP=$ac_cv_prog_STRIP
2543 if test -n "$STRIP"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2545 $as_echo "$STRIP" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 fi
2553 if test -z "$ac_cv_prog_STRIP"; then
2554 ac_ct_STRIP=$STRIP
2555 # Extract the first word of "strip", so it can be a program name with args.
2556 set dummy strip; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$ac_ct_STRIP"; then
2563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_STRIP="strip"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2583 if test -n "$ac_ct_STRIP"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2585 $as_echo "$ac_ct_STRIP" >&6; }
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2590
2591 if test "x$ac_ct_STRIP" = x; then
2592 STRIP=":"
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595 yes:)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 STRIP=$ac_ct_STRIP
2601 fi
2602 else
2603 STRIP="$ac_cv_prog_STRIP"
2604 fi
2605
2606 fi
2607 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2611 if test -z "$MKDIR_P"; then
2612 if test "${ac_cv_path_mkdir+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_prog in mkdir gmkdir; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2624 'mkdir (GNU coreutils) '* | \
2625 'mkdir (coreutils) '* | \
2626 'mkdir (fileutils) '4.1*)
2627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2628 break 3;;
2629 esac
2630 done
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636
2637 if test "${ac_cv_path_mkdir+set}" = set; then
2638 MKDIR_P="$ac_cv_path_mkdir -p"
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for MKDIR_P within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 test -d ./--version && rmdir ./--version
2645 MKDIR_P="$ac_install_sh -d"
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2649 $as_echo "$MKDIR_P" >&6; }
2650
2651 mkdir_p="$MKDIR_P"
2652 case $mkdir_p in
2653 [\\/$]* | ?:[\\/]*) ;;
2654 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2655 esac
2656
2657 for ac_prog in gawk mawk nawk awk
2658 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if test "${ac_cv_prog_AWK+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 AWK=$ac_cv_prog_AWK
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 test -n "$AWK" && break
2697 done
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701 set x ${MAKE-make}
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat >conftest.make <<\_ACEOF
2707 SHELL = /bin/sh
2708 all:
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2710 _ACEOF
2711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713 *@@@%%%=?*=@@@%%%*)
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2715 *)
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2717 esac
2718 rm -f conftest.make
2719 fi
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 SET_MAKE=
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2728 fi
2729
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2733 am__leading_dot=.
2734 else
2735 am__leading_dot=_
2736 fi
2737 rmdir .tst 2>/dev/null
2738
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746 fi
2747 fi
2748
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2753 else
2754 CYGPATH_W=echo
2755 fi
2756 fi
2757
2758
2759 # Define the identity of the package.
2760 PACKAGE='libbacktrace'
2761 VERSION='version-unused'
2762
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # We need awk for the "check" target. The system "awk" is bad on
2781 # some platforms.
2782 # Always define AMTAR for backward compatibility.
2783
2784 AMTAR=${AMTAR-"${am_missing_run}tar"}
2785
2786 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2787
2788
2789
2790
2791
2792
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2795 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2796 # Check whether --enable-maintainer-mode was given.
2797 if test "${enable_maintainer_mode+set}" = set; then :
2798 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2799 else
2800 USE_MAINTAINER_MODE=no
2801 fi
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2804 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2805 if test $USE_MAINTAINER_MODE = yes; then
2806 MAINTAINER_MODE_TRUE=
2807 MAINTAINER_MODE_FALSE='#'
2808 else
2809 MAINTAINER_MODE_TRUE='#'
2810 MAINTAINER_MODE_FALSE=
2811 fi
2812
2813 MAINT=$MAINTAINER_MODE_TRUE
2814
2815
2816
2817
2818 # Check whether --with-target-subdir was given.
2819 if test "${with_target_subdir+set}" = set; then :
2820 withval=$with_target_subdir;
2821 fi
2822
2823
2824 # We must force CC to /not/ be precious variables; otherwise
2825 # the wrong, non-multilib-adjusted value will be used in multilibs.
2826 # As a side effect, we have to subst CFLAGS ourselves.
2827
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2921 fi
2922 else
2923 CC="$ac_cv_prog_CC"
2924 fi
2925
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}cc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 fi
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 ac_prog_rejected=no
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009 fi
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 test -n "$CC" && break
3065 done
3066 fi
3067 if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl.exe
3070 do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 test -n "$ac_ct_CC" && break
3109 done
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 CC=$ac_ct_CC
3121 fi
3122 fi
3123
3124 fi
3125
3126
3127 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error "no acceptable C compiler found in \$PATH
3130 See \`config.log' for more details." "$LINENO" 5; }
3131
3132 # Provide some information about the compiler.
3133 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134 set X $ac_compile
3135 ac_compiler=$2
3136 for ac_option in --version -v -V -qversion; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 ac_status=$?
3146 if test -s conftest.err; then
3147 sed '10a\
3148 ... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3152 fi
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 done
3156
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3172 # of exeext.
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174 $as_echo_n "checking for C compiler default output file name... " >&6; }
3175 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177 # The possible output files:
3178 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
3180 ac_rmfiles=
3181 for ac_file in $ac_files
3182 do
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187 done
3188 rm -f $ac_rmfiles
3189
3190 if { { ac_try="$ac_link_default"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3205 # Autoconf.
3206 for ac_file in $ac_files ''
3207 do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3211 ;;
3212 [ab].out )
3213 # We found the default executable, but exeext='' is most
3214 # certainly right.
3215 break;;
3216 *.* )
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 then :; else
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 fi
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3225 # actually working.
3226 break;;
3227 * )
3228 break;;
3229 esac
3230 done
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
3233 else
3234 ac_file=''
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3237 $as_echo "$ac_file" >&6; }
3238 if test -z "$ac_file"; then :
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { as_fn_set_status 77
3245 as_fn_error "C compiler cannot create executables
3246 See \`config.log' for more details." "$LINENO" 5; }; }
3247 fi
3248 ac_exeext=$ac_cv_exeext
3249
3250 # Check that the compiler produces executables we can run. If not, either
3251 # the compiler is broken, or we cross compile.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3253 $as_echo_n "checking whether the C compiler works... " >&6; }
3254 # If not cross compiling, check that we can run a simple program.
3255 if test "$cross_compiling" != yes; then
3256 if { ac_try='./$ac_file'
3257 { { case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3267 cross_compiling=no
3268 else
3269 if test "$cross_compiling" = maybe; then
3270 cross_compiling=yes
3271 else
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error "cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." "$LINENO" 5; }
3277 fi
3278 fi
3279 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282
3283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 # Check that the compiler produces executables we can run. If not, either
3286 # the compiler is broken, or we cross compile.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3288 $as_echo_n "checking whether we are cross compiling... " >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290 $as_echo "$cross_compiling" >&6; }
3291
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317 done
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details." "$LINENO" 5; }
3323 fi
3324 rm -f conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if test "${ac_cv_objext+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { { ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366 done
3367 else
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error "cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details." "$LINENO" 5; }
3375 fi
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379 $as_echo "$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394 choke me
3395 #endif
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_compiler_gnu=yes
3403 else
3404 ac_compiler_gnu=no
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412 if test $ac_compiler_gnu = yes; then
3413 GCC=yes
3414 else
3415 GCC=
3416 fi
3417 ac_test_CFLAGS=${CFLAGS+set}
3418 ac_save_CFLAGS=$CFLAGS
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3421 if test "${ac_cv_prog_cc_g+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_save_c_werror_flag=$ac_c_werror_flag
3425 ac_c_werror_flag=yes
3426 ac_cv_prog_cc_g=no
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3441 else
3442 CFLAGS=""
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455
3456 else
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_prog_cc_g=yes
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481 $as_echo "$ac_cv_prog_cc_g" >&6; }
3482 if test "$ac_test_CFLAGS" = set; then
3483 CFLAGS=$ac_save_CFLAGS
3484 elif test $ac_cv_prog_cc_g = yes; then
3485 if test "$GCC" = yes; then
3486 CFLAGS="-g -O2"
3487 else
3488 CFLAGS="-g"
3489 fi
3490 else
3491 if test "$GCC" = yes; then
3492 CFLAGS="-O2"
3493 else
3494 CFLAGS=
3495 fi
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 ac_cv_prog_cc_c89=no
3503 ac_save_CC=$CC
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3514 char **p;
3515 int i;
3516 {
3517 return p[i];
3518 }
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3520 {
3521 char *s;
3522 va_list v;
3523 va_start (v,p);
3524 s = g (p, va_arg (v,int));
3525 va_end (v);
3526 return s;
3527 }
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3540 #define FOO(x) 'x'
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 int argc;
3548 char **argv;
3549 int
3550 main ()
3551 {
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 do
3560 CC="$ac_save_CC $ac_arg"
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_c89=$ac_arg
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext
3565 test "x$ac_cv_prog_cc_c89" != "xno" && break
3566 done
3567 rm -f conftest.$ac_ext
3568 CC=$ac_save_CC
3569
3570 fi
3571 # AC_CACHE_VAL
3572 case "x$ac_cv_prog_cc_c89" in
3573 x)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3575 $as_echo "none needed" >&6; } ;;
3576 xno)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3578 $as_echo "unsupported" >&6; } ;;
3579 *)
3580 CC="$CC $ac_cv_prog_cc_c89"
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3583 esac
3584 if test "x$ac_cv_prog_cc_c89" != xno; then :
3585
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 DEPDIR="${am__leading_dot}deps"
3594
3595 ac_config_commands="$ac_config_commands depfiles"
3596
3597
3598 am_make=${MAKE-make}
3599 cat > confinc << 'END'
3600 am__doit:
3601 @echo this is the am__doit target
3602 .PHONY: am__doit
3603 END
3604 # If we don't find an include directive, just comment out the code.
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3606 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3607 am__include="#"
3608 am__quote=
3609 _am_result=none
3610 # First try GNU make style include.
3611 echo "include confinc" > confmf
3612 # Ignore all kinds of additional output from `make'.
3613 case `$am_make -s -f confmf 2> /dev/null` in #(
3614 *the\ am__doit\ target*)
3615 am__include=include
3616 am__quote=
3617 _am_result=GNU
3618 ;;
3619 esac
3620 # Now try BSD make style include.
3621 if test "$am__include" = "#"; then
3622 echo '.include "confinc"' > confmf
3623 case `$am_make -s -f confmf 2> /dev/null` in #(
3624 *the\ am__doit\ target*)
3625 am__include=.include
3626 am__quote="\""
3627 _am_result=BSD
3628 ;;
3629 esac
3630 fi
3631
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3634 $as_echo "$_am_result" >&6; }
3635 rm -f confinc confmf
3636
3637 # Check whether --enable-dependency-tracking was given.
3638 if test "${enable_dependency_tracking+set}" = set; then :
3639 enableval=$enable_dependency_tracking;
3640 fi
3641
3642 if test "x$enable_dependency_tracking" != xno; then
3643 am_depcomp="$ac_aux_dir/depcomp"
3644 AMDEPBACKSLASH='\'
3645 fi
3646 if test "x$enable_dependency_tracking" != xno; then
3647 AMDEP_TRUE=
3648 AMDEP_FALSE='#'
3649 else
3650 AMDEP_TRUE='#'
3651 AMDEP_FALSE=
3652 fi
3653
3654
3655
3656 depcc="$CC" am_compiler_list=
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3659 $as_echo_n "checking dependency style of $depcc... " >&6; }
3660 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3664 # We make a subdir and do the tests there. Otherwise we can end up
3665 # making bogus files that we don't know about and never remove. For
3666 # instance it was reported that on HP-UX the gcc test will end up
3667 # making a dummy file named `D' -- because `-MD' means `put the output
3668 # in D'.
3669 mkdir conftest.dir
3670 # Copy depcomp to subdir because otherwise we won't find it if we're
3671 # using a relative directory.
3672 cp "$am_depcomp" conftest.dir
3673 cd conftest.dir
3674 # We will build objects and dependencies in a subdirectory because
3675 # it helps to detect inapplicable dependency modes. For instance
3676 # both Tru64's cc and ICC support -MD to output dependencies as a
3677 # side effect of compilation, but ICC will put the dependencies in
3678 # the current directory while Tru64 will put them in the object
3679 # directory.
3680 mkdir sub
3681
3682 am_cv_CC_dependencies_compiler_type=none
3683 if test "$am_compiler_list" = ""; then
3684 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3685 fi
3686 am__universal=false
3687 case " $depcc " in #(
3688 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3689 esac
3690
3691 for depmode in $am_compiler_list; do
3692 # Setup a source with many dependencies, because some compilers
3693 # like to wrap large dependency lists on column 80 (with \), and
3694 # we should not choose a depcomp mode which is confused by this.
3695 #
3696 # We need to recreate these files for each test, as the compiler may
3697 # overwrite some of them when testing with obscure command lines.
3698 # This happens at least with the AIX C compiler.
3699 : > sub/conftest.c
3700 for i in 1 2 3 4 5 6; do
3701 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3702 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3703 # Solaris 8's {/usr,}/bin/sh.
3704 touch sub/conftst$i.h
3705 done
3706 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3707
3708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709 # mode. It turns out that the SunPro C++ compiler does not properly
3710 # handle `-M -o', and we need to detect this. Also, some Intel
3711 # versions had trouble with output in subdirs
3712 am__obj=sub/conftest.${OBJEXT-o}
3713 am__minus_obj="-o $am__obj"
3714 case $depmode in
3715 gcc)
3716 # This depmode causes a compiler race in universal mode.
3717 test "$am__universal" = false || continue
3718 ;;
3719 nosideeffect)
3720 # after this tag, mechanisms are not by side-effect, so they'll
3721 # only be used when explicitly requested
3722 if test "x$enable_dependency_tracking" = xyes; then
3723 continue
3724 else
3725 break
3726 fi
3727 ;;
3728 msvisualcpp | msvcmsys)
3729 # This compiler won't grok `-c -o', but also, the minuso test has
3730 # not run yet. These depmodes are late enough in the game, and
3731 # so weak that their functioning should not be impacted.
3732 am__obj=conftest.${OBJEXT-o}
3733 am__minus_obj=
3734 ;;
3735 none) break ;;
3736 esac
3737 if depmode=$depmode \
3738 source=sub/conftest.c object=$am__obj \
3739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3740 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3741 >/dev/null 2>conftest.err &&
3742 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3744 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3746 # icc doesn't choke on unknown options, it will just issue warnings
3747 # or remarks (even with -Werror). So we grep stderr for any message
3748 # that says an option was ignored or not supported.
3749 # When given -MP, icc 7.0 and 7.1 complain thusly:
3750 # icc: Command line warning: ignoring option '-M'; no argument required
3751 # The diagnosis changed in icc 8.0:
3752 # icc: Command line remark: option '-MP' not supported
3753 if (grep 'ignoring option' conftest.err ||
3754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3755 am_cv_CC_dependencies_compiler_type=$depmode
3756 break
3757 fi
3758 fi
3759 done
3760
3761 cd ..
3762 rm -rf conftest.dir
3763 else
3764 am_cv_CC_dependencies_compiler_type=none
3765 fi
3766
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3769 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3770 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3771
3772 if
3773 test "x$enable_dependency_tracking" != xno \
3774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3775 am__fastdepCC_TRUE=
3776 am__fastdepCC_FALSE='#'
3777 else
3778 am__fastdepCC_TRUE='#'
3779 am__fastdepCC_FALSE=
3780 fi
3781
3782
3783
3784
3785
3786
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$RANLIB"; then
3796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 RANLIB=$ac_cv_prog_RANLIB
3816 if test -n "$RANLIB"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3818 $as_echo "$RANLIB" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825 fi
3826 if test -z "$ac_cv_prog_RANLIB"; then
3827 ac_ct_RANLIB=$RANLIB
3828 # Extract the first word of "ranlib", so it can be a program name with args.
3829 set dummy ranlib; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$ac_ct_RANLIB"; then
3836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_ac_ct_RANLIB="ranlib"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi
3854 fi
3855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3856 if test -n "$ac_ct_RANLIB"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3858 $as_echo "$ac_ct_RANLIB" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 fi
3863
3864 if test "x$ac_ct_RANLIB" = x; then
3865 RANLIB=":"
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868 yes:)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned=yes ;;
3872 esac
3873 RANLIB=$ac_ct_RANLIB
3874 fi
3875 else
3876 RANLIB="$ac_cv_prog_RANLIB"
3877 fi
3878
3879
3880 for ac_prog in gawk mawk nawk awk
3881 do
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_AWK+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$AWK"; then
3890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_AWK="$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 AWK=$ac_cv_prog_AWK
3910 if test -n "$AWK"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3912 $as_echo "$AWK" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918
3919 test -n "$AWK" && break
3920 done
3921
3922 case "$AWK" in
3923 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
3924 esac
3925
3926 case `pwd` in
3927 *\ * | *\ *)
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3929 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3930 esac
3931
3932
3933
3934 macro_version='2.2.7a'
3935 macro_revision='1.3134'
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949 ltmain="$ac_aux_dir/ltmain.sh"
3950
3951 # Backslashify metacharacters that are still active within
3952 # double-quoted strings.
3953 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3954
3955 # Same as above, but do not quote variable references.
3956 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3957
3958 # Sed substitution to delay expansion of an escaped shell variable in a
3959 # double_quote_subst'ed string.
3960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3961
3962 # Sed substitution to delay expansion of an escaped single quote.
3963 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3964
3965 # Sed substitution to avoid accidental globbing in evaled expressions
3966 no_glob_subst='s/\*/\\\*/g'
3967
3968 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3973 $as_echo_n "checking how to print strings... " >&6; }
3974 # Test print first, because it will be a builtin if present.
3975 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3976 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3977 ECHO='print -r --'
3978 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3979 ECHO='printf %s\n'
3980 else
3981 # Use this function as a fallback that always works.
3982 func_fallback_echo ()
3983 {
3984 eval 'cat <<_LTECHO_EOF
3985 $1
3986 _LTECHO_EOF'
3987 }
3988 ECHO='func_fallback_echo'
3989 fi
3990
3991 # func_echo_all arg...
3992 # Invoke $ECHO with all args, space-separated.
3993 func_echo_all ()
3994 {
3995 $ECHO ""
3996 }
3997
3998 case "$ECHO" in
3999 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4000 $as_echo "printf" >&6; } ;;
4001 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4002 $as_echo "print -r" >&6; } ;;
4003 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4004 $as_echo "cat" >&6; } ;;
4005 esac
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4021 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4022 if test "${ac_cv_path_SED+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4026 for ac_i in 1 2 3 4 5 6 7; do
4027 ac_script="$ac_script$as_nl$ac_script"
4028 done
4029 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4030 { ac_script=; unset ac_script;}
4031 if test -z "$SED"; then
4032 ac_path_SED_found=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_prog in sed gsed; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4042 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4043 # Check for GNU ac_path_SED and select it if it is found.
4044 # Check for GNU $ac_path_SED
4045 case `"$ac_path_SED" --version 2>&1` in
4046 *GNU*)
4047 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4048 *)
4049 ac_count=0
4050 $as_echo_n 0123456789 >"conftest.in"
4051 while :
4052 do
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo '' >> "conftest.nl"
4057 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4060 if test $ac_count -gt ${ac_path_SED_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_SED="$ac_path_SED"
4063 ac_path_SED_max=$ac_count
4064 fi
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4067 done
4068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4069 esac
4070
4071 $ac_path_SED_found && break 3
4072 done
4073 done
4074 done
4075 IFS=$as_save_IFS
4076 if test -z "$ac_cv_path_SED"; then
4077 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4078 fi
4079 else
4080 ac_cv_path_SED=$SED
4081 fi
4082
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4085 $as_echo "$ac_cv_path_SED" >&6; }
4086 SED="$ac_cv_path_SED"
4087 rm -f conftest.sed
4088
4089 test -z "$SED" && SED=sed
4090 Xsed="$SED -e 1s/^X//"
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4104 if test "${ac_cv_path_GREP+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -z "$GREP"; then
4108 ac_path_GREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in grep ggrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4119 # Check for GNU ac_path_GREP and select it if it is found.
4120 # Check for GNU $ac_path_GREP
4121 case `"$ac_path_GREP" --version 2>&1` in
4122 *GNU*)
4123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4124 *)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'GREP' >> "conftest.nl"
4133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_GREP="$ac_path_GREP"
4139 ac_path_GREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4146
4147 $ac_path_GREP_found && break 3
4148 done
4149 done
4150 done
4151 IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_GREP"; then
4153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 fi
4155 else
4156 ac_cv_path_GREP=$GREP
4157 fi
4158
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4161 $as_echo "$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4166 $as_echo_n "checking for egrep... " >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171 then ac_cv_path_EGREP="$GREP -E"
4172 else
4173 if test -z "$EGREP"; then
4174 ac_path_EGREP_found=false
4175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178 do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_prog in egrep; do
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4185 # Check for GNU ac_path_EGREP and select it if it is found.
4186 # Check for GNU $ac_path_EGREP
4187 case `"$ac_path_EGREP" --version 2>&1` in
4188 *GNU*)
4189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4190 *)
4191 ac_count=0
4192 $as_echo_n 0123456789 >"conftest.in"
4193 while :
4194 do
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 $as_echo 'EGREP' >> "conftest.nl"
4199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4201 as_fn_arith $ac_count + 1 && ac_count=$as_val
4202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_EGREP="$ac_path_EGREP"
4205 ac_path_EGREP_max=$ac_count
4206 fi
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4209 done
4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 esac
4212
4213 $ac_path_EGREP_found && break 3
4214 done
4215 done
4216 done
4217 IFS=$as_save_IFS
4218 if test -z "$ac_cv_path_EGREP"; then
4219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4220 fi
4221 else
4222 ac_cv_path_EGREP=$EGREP
4223 fi
4224
4225 fi
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4228 $as_echo "$ac_cv_path_EGREP" >&6; }
4229 EGREP="$ac_cv_path_EGREP"
4230
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4233 $as_echo_n "checking for fgrep... " >&6; }
4234 if test "${ac_cv_path_FGREP+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4238 then ac_cv_path_FGREP="$GREP -F"
4239 else
4240 if test -z "$FGREP"; then
4241 ac_path_FGREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in fgrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4252 # Check for GNU ac_path_FGREP and select it if it is found.
4253 # Check for GNU $ac_path_FGREP
4254 case `"$ac_path_FGREP" --version 2>&1` in
4255 *GNU*)
4256 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4257 *)
4258 ac_count=0
4259 $as_echo_n 0123456789 >"conftest.in"
4260 while :
4261 do
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo 'FGREP' >> "conftest.nl"
4266 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 as_fn_arith $ac_count + 1 && ac_count=$as_val
4269 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_FGREP="$ac_path_FGREP"
4272 ac_path_FGREP_max=$ac_count
4273 fi
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4276 done
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4279
4280 $ac_path_FGREP_found && break 3
4281 done
4282 done
4283 done
4284 IFS=$as_save_IFS
4285 if test -z "$ac_cv_path_FGREP"; then
4286 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 fi
4288 else
4289 ac_cv_path_FGREP=$FGREP
4290 fi
4291
4292 fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4295 $as_echo "$ac_cv_path_FGREP" >&6; }
4296 FGREP="$ac_cv_path_FGREP"
4297
4298
4299 test -z "$GREP" && GREP=grep
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319 # Check whether --with-gnu-ld was given.
4320 if test "${with_gnu_ld+set}" = set; then :
4321 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4322 else
4323 with_gnu_ld=no
4324 fi
4325
4326 ac_prog=ld
4327 if test "$GCC" = yes; then
4328 # Check if gcc -print-prog-name=ld gives a path.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4330 $as_echo_n "checking for ld used by $CC... " >&6; }
4331 case $host in
4332 *-*-mingw*)
4333 # gcc leaves a trailing carriage return which upsets mingw
4334 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4335 *)
4336 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4337 esac
4338 case $ac_prog in
4339 # Accept absolute paths.
4340 [\\/]* | ?:[\\/]*)
4341 re_direlt='/[^/][^/]*/\.\./'
4342 # Canonicalize the pathname of ld
4343 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4344 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4345 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4346 done
4347 test -z "$LD" && LD="$ac_prog"
4348 ;;
4349 "")
4350 # If it fails, then pretend we aren't using GCC.
4351 ac_prog=ld
4352 ;;
4353 *)
4354 # If it is relative, then search for the first ld in PATH.
4355 with_gnu_ld=unknown
4356 ;;
4357 esac
4358 elif test "$with_gnu_ld" = yes; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4360 $as_echo_n "checking for GNU ld... " >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4363 $as_echo_n "checking for non-GNU ld... " >&6; }
4364 fi
4365 if test "${lt_cv_path_LD+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -z "$LD"; then
4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370 for ac_dir in $PATH; do
4371 IFS="$lt_save_ifs"
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4374 lt_cv_path_LD="$ac_dir/$ac_prog"
4375 # Check to see if the program is GNU ld. I'd rather use --version,
4376 # but apparently some variants of GNU ld only accept -v.
4377 # Break only if it was the GNU/non-GNU ld that we prefer.
4378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4379 *GNU* | *'with BFD'*)
4380 test "$with_gnu_ld" != no && break
4381 ;;
4382 *)
4383 test "$with_gnu_ld" != yes && break
4384 ;;
4385 esac
4386 fi
4387 done
4388 IFS="$lt_save_ifs"
4389 else
4390 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4391 fi
4392 fi
4393
4394 LD="$lt_cv_path_LD"
4395 if test -n "$LD"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4397 $as_echo "$LD" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4404 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4405 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4409 case `$LD -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 lt_cv_prog_gnu_ld=yes
4412 ;;
4413 *)
4414 lt_cv_prog_gnu_ld=no
4415 ;;
4416 esac
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4419 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4420 with_gnu_ld=$lt_cv_prog_gnu_ld
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4431 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4432 if test "${lt_cv_path_NM+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$NM"; then
4436 # Let the user override the test.
4437 lt_cv_path_NM="$NM"
4438 else
4439 lt_nm_to_check="${ac_tool_prefix}nm"
4440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4441 lt_nm_to_check="$lt_nm_to_check nm"
4442 fi
4443 for lt_tmp_nm in $lt_nm_to_check; do
4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4446 IFS="$lt_save_ifs"
4447 test -z "$ac_dir" && ac_dir=.
4448 tmp_nm="$ac_dir/$lt_tmp_nm"
4449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4450 # Check to see if the nm accepts a BSD-compat flag.
4451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4452 # nm: unknown option "B" ignored
4453 # Tru64's nm complains that /dev/null is an invalid object file
4454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4455 */dev/null* | *'Invalid file or object type'*)
4456 lt_cv_path_NM="$tmp_nm -B"
4457 break
4458 ;;
4459 *)
4460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4461 */dev/null*)
4462 lt_cv_path_NM="$tmp_nm -p"
4463 break
4464 ;;
4465 *)
4466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4467 continue # so that we can try to find one that supports BSD flags
4468 ;;
4469 esac
4470 ;;
4471 esac
4472 fi
4473 done
4474 IFS="$lt_save_ifs"
4475 done
4476 : ${lt_cv_path_NM=no}
4477 fi
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4480 $as_echo "$lt_cv_path_NM" >&6; }
4481 if test "$lt_cv_path_NM" != "no"; then
4482 NM="$lt_cv_path_NM"
4483 else
4484 # Didn't find any BSD compatible name lister, look for dumpbin.
4485 if test -n "$DUMPBIN"; then :
4486 # Let the user override the test.
4487 else
4488 if test -n "$ac_tool_prefix"; then
4489 for ac_prog in dumpbin "link -dump"
4490 do
4491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if test -n "$DUMPBIN"; then
4499 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 DUMPBIN=$ac_cv_prog_DUMPBIN
4519 if test -n "$DUMPBIN"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4521 $as_echo "$DUMPBIN" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527
4528 test -n "$DUMPBIN" && break
4529 done
4530 fi
4531 if test -z "$DUMPBIN"; then
4532 ac_ct_DUMPBIN=$DUMPBIN
4533 for ac_prog in dumpbin "link -dump"
4534 do
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$ac_ct_DUMPBIN"; then
4543 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
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 fi
4561 fi
4562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4563 if test -n "$ac_ct_DUMPBIN"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4565 $as_echo "$ac_ct_DUMPBIN" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571
4572 test -n "$ac_ct_DUMPBIN" && break
4573 done
4574
4575 if test "x$ac_ct_DUMPBIN" = x; then
4576 DUMPBIN=":"
4577 else
4578 case $cross_compiling:$ac_tool_warned in
4579 yes:)
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582 ac_tool_warned=yes ;;
4583 esac
4584 DUMPBIN=$ac_ct_DUMPBIN
4585 fi
4586 fi
4587
4588 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4589 *COFF*)
4590 DUMPBIN="$DUMPBIN -symbols"
4591 ;;
4592 *)
4593 DUMPBIN=:
4594 ;;
4595 esac
4596 fi
4597
4598 if test "$DUMPBIN" != ":"; then
4599 NM="$DUMPBIN"
4600 fi
4601 fi
4602 test -z "$NM" && NM=nm
4603
4604
4605
4606
4607
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4610 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4611 if test "${lt_cv_nm_interface+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 lt_cv_nm_interface="BSD nm"
4615 echo "int some_variable = 0;" > conftest.$ac_ext
4616 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4617 (eval "$ac_compile" 2>conftest.err)
4618 cat conftest.err >&5
4619 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4620 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4621 cat conftest.err >&5
4622 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4623 cat conftest.out >&5
4624 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4625 lt_cv_nm_interface="MS dumpbin"
4626 fi
4627 rm -f conftest*
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4630 $as_echo "$lt_cv_nm_interface" >&6; }
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4633 $as_echo_n "checking whether ln -s works... " >&6; }
4634 LN_S=$as_ln_s
4635 if test "$LN_S" = "ln -s"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4637 $as_echo "yes" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4640 $as_echo "no, using $LN_S" >&6; }
4641 fi
4642
4643 # find the maximum length of command line arguments
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4645 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4646 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 i=0
4650 teststring="ABCD"
4651
4652 case $build_os in
4653 msdosdjgpp*)
4654 # On DJGPP, this test can blow up pretty badly due to problems in libc
4655 # (any single argument exceeding 2000 bytes causes a buffer overrun
4656 # during glob expansion). Even if it were fixed, the result of this
4657 # check would be larger than it should be.
4658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4659 ;;
4660
4661 gnu*)
4662 # Under GNU Hurd, this test is not required because there is
4663 # no limit to the length of command line arguments.
4664 # Libtool will interpret -1 as no limit whatsoever
4665 lt_cv_sys_max_cmd_len=-1;
4666 ;;
4667
4668 cygwin* | mingw* | cegcc*)
4669 # On Win9x/ME, this test blows up -- it succeeds, but takes
4670 # about 5 minutes as the teststring grows exponentially.
4671 # Worse, since 9x/ME are not pre-emptively multitasking,
4672 # you end up with a "frozen" computer, even though with patience
4673 # the test eventually succeeds (with a max line length of 256k).
4674 # Instead, let's just punt: use the minimum linelength reported by
4675 # all of the supported platforms: 8192 (on NT/2K/XP).
4676 lt_cv_sys_max_cmd_len=8192;
4677 ;;
4678
4679 mint*)
4680 # On MiNT this can take a long time and run out of memory.
4681 lt_cv_sys_max_cmd_len=8192;
4682 ;;
4683
4684 amigaos*)
4685 # On AmigaOS with pdksh, this test takes hours, literally.
4686 # So we just punt and use a minimum line length of 8192.
4687 lt_cv_sys_max_cmd_len=8192;
4688 ;;
4689
4690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4691 # This has been around since 386BSD, at least. Likely further.
4692 if test -x /sbin/sysctl; then
4693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4694 elif test -x /usr/sbin/sysctl; then
4695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4696 else
4697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4698 fi
4699 # And add a safety zone
4700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4702 ;;
4703
4704 interix*)
4705 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4706 lt_cv_sys_max_cmd_len=196608
4707 ;;
4708
4709 osf*)
4710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4712 # nice to cause kernel panics so lets avoid the loop below.
4713 # First set a reasonable default.
4714 lt_cv_sys_max_cmd_len=16384
4715 #
4716 if test -x /sbin/sysconfig; then
4717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4718 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4719 esac
4720 fi
4721 ;;
4722 sco3.2v5*)
4723 lt_cv_sys_max_cmd_len=102400
4724 ;;
4725 sysv5* | sco5v6* | sysv4.2uw2*)
4726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4727 if test -n "$kargmax"; then
4728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4729 else
4730 lt_cv_sys_max_cmd_len=32768
4731 fi
4732 ;;
4733 *)
4734 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4735 if test -n "$lt_cv_sys_max_cmd_len"; then
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4738 else
4739 # Make teststring a little bigger before we do anything with it.
4740 # a 1K string should be a reasonable start.
4741 for i in 1 2 3 4 5 6 7 8 ; do
4742 teststring=$teststring$teststring
4743 done
4744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4745 # If test is not a shell built-in, we'll probably end up computing a
4746 # maximum length that is only half of the actual maximum length, but
4747 # we can't tell.
4748 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4749 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4750 test $i != 17 # 1/2 MB should be enough
4751 do
4752 i=`expr $i + 1`
4753 teststring=$teststring$teststring
4754 done
4755 # Only check the string length outside the loop.
4756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4757 teststring=
4758 # Add a significant safety factor because C++ compilers can tack on
4759 # massive amounts of additional arguments before passing them to the
4760 # linker. It appears as though 1/2 is a usable value.
4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4762 fi
4763 ;;
4764 esac
4765
4766 fi
4767
4768 if test -n $lt_cv_sys_max_cmd_len ; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4770 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4773 $as_echo "none" >&6; }
4774 fi
4775 max_cmd_len=$lt_cv_sys_max_cmd_len
4776
4777
4778
4779
4780
4781
4782 : ${CP="cp -f"}
4783 : ${MV="mv -f"}
4784 : ${RM="rm -f"}
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4787 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4788 # Try some XSI features
4789 xsi_shell=no
4790 ( _lt_dummy="a/b/c"
4791 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4792 = c,a/b,, \
4793 && eval 'test $(( 1 + 1 )) -eq 2 \
4794 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4795 && xsi_shell=yes
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4797 $as_echo "$xsi_shell" >&6; }
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4801 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4802 lt_shell_append=no
4803 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4804 >/dev/null 2>&1 \
4805 && lt_shell_append=yes
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4807 $as_echo "$lt_shell_append" >&6; }
4808
4809
4810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4811 lt_unset=unset
4812 else
4813 lt_unset=false
4814 fi
4815
4816
4817
4818
4819
4820 # test EBCDIC or ASCII
4821 case `echo X|tr X '\101'` in
4822 A) # ASCII based system
4823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4824 lt_SP2NL='tr \040 \012'
4825 lt_NL2SP='tr \015\012 \040\040'
4826 ;;
4827 *) # EBCDIC based system
4828 lt_SP2NL='tr \100 \n'
4829 lt_NL2SP='tr \r\n \100\100'
4830 ;;
4831 esac
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4842 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4843 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 lt_cv_ld_reload_flag='-r'
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4849 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4850 reload_flag=$lt_cv_ld_reload_flag
4851 case $reload_flag in
4852 "" | " "*) ;;
4853 *) reload_flag=" $reload_flag" ;;
4854 esac
4855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4856 case $host_os in
4857 darwin*)
4858 if test "$GCC" = yes; then
4859 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4860 else
4861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4862 fi
4863 ;;
4864 esac
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 if test -n "$ac_tool_prefix"; then
4875 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$OBJDUMP"; then
4883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 OBJDUMP=$ac_cv_prog_OBJDUMP
4903 if test -n "$OBJDUMP"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4905 $as_echo "$OBJDUMP" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912 fi
4913 if test -z "$ac_cv_prog_OBJDUMP"; then
4914 ac_ct_OBJDUMP=$OBJDUMP
4915 # Extract the first word of "objdump", so it can be a program name with args.
4916 set dummy objdump; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$ac_ct_OBJDUMP"; then
4923 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4943 if test -n "$ac_ct_OBJDUMP"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4945 $as_echo "$ac_ct_OBJDUMP" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951 if test "x$ac_ct_OBJDUMP" = x; then
4952 OBJDUMP="false"
4953 else
4954 case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960 OBJDUMP=$ac_ct_OBJDUMP
4961 fi
4962 else
4963 OBJDUMP="$ac_cv_prog_OBJDUMP"
4964 fi
4965
4966 test -z "$OBJDUMP" && OBJDUMP=objdump
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4977 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4978 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 lt_cv_file_magic_cmd='$MAGIC_CMD'
4982 lt_cv_file_magic_test_file=
4983 lt_cv_deplibs_check_method='unknown'
4984 # Need to set the preceding variable on all platforms that support
4985 # interlibrary dependencies.
4986 # 'none' -- dependencies not supported.
4987 # `unknown' -- same as none, but documents that we really don't know.
4988 # 'pass_all' -- all dependencies passed with no checks.
4989 # 'test_compile' -- check by making test program.
4990 # 'file_magic [[regex]]' -- check by looking for files in library path
4991 # which responds to the $file_magic_cmd with a given extended regex.
4992 # If you have `file' or equivalent on your system and you're not sure
4993 # whether `pass_all' will *always* work, you probably want this one.
4994
4995 case $host_os in
4996 aix[4-9]*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 beos*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004 bsdi[45]*)
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5006 lt_cv_file_magic_cmd='/usr/bin/file -L'
5007 lt_cv_file_magic_test_file=/shlib/libc.so
5008 ;;
5009
5010 cygwin*)
5011 # func_win32_libid is a shell function defined in ltmain.sh
5012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5013 lt_cv_file_magic_cmd='func_win32_libid'
5014 ;;
5015
5016 mingw* | pw32*)
5017 # Base MSYS/MinGW do not provide the 'file' command needed by
5018 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5019 # unless we find 'file', for example because we are cross-compiling.
5020 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5021 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023 lt_cv_file_magic_cmd='func_win32_libid'
5024 else
5025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5026 lt_cv_file_magic_cmd='$OBJDUMP -f'
5027 fi
5028 ;;
5029
5030 cegcc*)
5031 # use the weaker test based on 'objdump'. See mingw*.
5032 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5033 lt_cv_file_magic_cmd='$OBJDUMP -f'
5034 ;;
5035
5036 darwin* | rhapsody*)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039
5040 freebsd* | dragonfly*)
5041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5042 case $host_cpu in
5043 i*86 )
5044 # Not sure whether the presence of OpenBSD here was a mistake.
5045 # Let's accept both of them until this is cleared up.
5046 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5047 lt_cv_file_magic_cmd=/usr/bin/file
5048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5049 ;;
5050 esac
5051 else
5052 lt_cv_deplibs_check_method=pass_all
5053 fi
5054 ;;
5055
5056 gnu*)
5057 lt_cv_deplibs_check_method=pass_all
5058 ;;
5059
5060 haiku*)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063
5064 hpux10.20* | hpux11*)
5065 lt_cv_file_magic_cmd=/usr/bin/file
5066 case $host_cpu in
5067 ia64*)
5068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5070 ;;
5071 hppa*64*)
5072 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]'
5073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5074 ;;
5075 *)
5076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5078 ;;
5079 esac
5080 ;;
5081
5082 interix[3-9]*)
5083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5085 ;;
5086
5087 irix5* | irix6* | nonstopux*)
5088 case $LD in
5089 *-32|*"-32 ") libmagic=32-bit;;
5090 *-n32|*"-n32 ") libmagic=N32;;
5091 *-64|*"-64 ") libmagic=64-bit;;
5092 *) libmagic=never-match;;
5093 esac
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 # This must be Linux ELF.
5098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101
5102 netbsd*)
5103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105 else
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5107 fi
5108 ;;
5109
5110 newos6*)
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5112 lt_cv_file_magic_cmd=/usr/bin/file
5113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5114 ;;
5115
5116 *nto* | *qnx*)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120 openbsd*)
5121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5123 else
5124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5125 fi
5126 ;;
5127
5128 osf3* | osf4* | osf5*)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131
5132 rdos*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 solaris*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143
5144 sysv4 | sysv4.3*)
5145 case $host_vendor in
5146 motorola)
5147 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]'
5148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5149 ;;
5150 ncr)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153 sequent)
5154 lt_cv_file_magic_cmd='/bin/file'
5155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5156 ;;
5157 sni)
5158 lt_cv_file_magic_cmd='/bin/file'
5159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5160 lt_cv_file_magic_test_file=/lib/libc.so
5161 ;;
5162 siemens)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165 pc)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168 esac
5169 ;;
5170
5171 tpf*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174 esac
5175
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5178 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5179 file_magic_cmd=$lt_cv_file_magic_cmd
5180 deplibs_check_method=$lt_cv_deplibs_check_method
5181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}ar; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_AR+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$AR"; then
5203 ac_cv_prog_AR="$AR" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 AR=$ac_cv_prog_AR
5223 if test -n "$AR"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5225 $as_echo "$AR" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 fi
5233 if test -z "$ac_cv_prog_AR"; then
5234 ac_ct_AR=$AR
5235 # Extract the first word of "ar", so it can be a program name with args.
5236 set dummy ar; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$ac_ct_AR"; then
5243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_ac_ct_AR="ar"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5263 if test -n "$ac_ct_AR"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5265 $as_echo "$ac_ct_AR" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271 if test "x$ac_ct_AR" = x; then
5272 AR="false"
5273 else
5274 case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280 AR=$ac_ct_AR
5281 fi
5282 else
5283 AR="$ac_cv_prog_AR"
5284 fi
5285
5286 test -z "$AR" && AR=ar
5287 test -z "$AR_FLAGS" && AR_FLAGS=cru
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}strip; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_prog_STRIP+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$STRIP"; then
5308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 STRIP=$ac_cv_prog_STRIP
5328 if test -n "$STRIP"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5330 $as_echo "$STRIP" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336
5337 fi
5338 if test -z "$ac_cv_prog_STRIP"; then
5339 ac_ct_STRIP=$STRIP
5340 # Extract the first word of "strip", so it can be a program name with args.
5341 set dummy strip; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$ac_ct_STRIP"; then
5348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_ac_ct_STRIP="strip"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5368 if test -n "$ac_ct_STRIP"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5370 $as_echo "$ac_ct_STRIP" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376 if test "x$ac_ct_STRIP" = x; then
5377 STRIP=":"
5378 else
5379 case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385 STRIP=$ac_ct_STRIP
5386 fi
5387 else
5388 STRIP="$ac_cv_prog_STRIP"
5389 fi
5390
5391 test -z "$STRIP" && STRIP=:
5392
5393
5394
5395
5396
5397
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$RANLIB"; then
5407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5419 fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi
5425 fi
5426 RANLIB=$ac_cv_prog_RANLIB
5427 if test -n "$RANLIB"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5429 $as_echo "$RANLIB" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435
5436 fi
5437 if test -z "$ac_cv_prog_RANLIB"; then
5438 ac_ct_RANLIB=$RANLIB
5439 # Extract the first word of "ranlib", so it can be a program name with args.
5440 set dummy ranlib; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if test -n "$ac_ct_RANLIB"; then
5447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_ac_ct_RANLIB="ranlib"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460 done
5461 done
5462 IFS=$as_save_IFS
5463
5464 fi
5465 fi
5466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5467 if test -n "$ac_ct_RANLIB"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5469 $as_echo "$ac_ct_RANLIB" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475 if test "x$ac_ct_RANLIB" = x; then
5476 RANLIB=":"
5477 else
5478 case $cross_compiling:$ac_tool_warned in
5479 yes:)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482 ac_tool_warned=yes ;;
5483 esac
5484 RANLIB=$ac_ct_RANLIB
5485 fi
5486 else
5487 RANLIB="$ac_cv_prog_RANLIB"
5488 fi
5489
5490 test -z "$RANLIB" && RANLIB=:
5491
5492
5493
5494
5495
5496
5497 # Determine commands to create old-style static archives.
5498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5499 old_postinstall_cmds='chmod 644 $oldlib'
5500 old_postuninstall_cmds=
5501
5502 if test -n "$RANLIB"; then
5503 case $host_os in
5504 openbsd*)
5505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5506 ;;
5507 *)
5508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5509 ;;
5510 esac
5511 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5512 fi
5513
5514 case $host_os in
5515 darwin*)
5516 lock_old_archive_extraction=yes ;;
5517 *)
5518 lock_old_archive_extraction=no ;;
5519 esac
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 # If no C compiler was specified, use CC.
5560 LTCC=${LTCC-"$CC"}
5561
5562 # If no C compiler flags were specified, use CFLAGS.
5563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5564
5565 # Allow CC to be a program name with arguments.
5566 compiler=$CC
5567
5568
5569 # Check for command to grab the raw symbol name followed by C symbol from nm.
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5571 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5572 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575
5576 # These are sane defaults that work on at least a few old systems.
5577 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5578
5579 # Character class describing NM global symbol codes.
5580 symcode='[BCDEGRST]'
5581
5582 # Regexp to match symbols that can be accessed directly from C.
5583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5584
5585 # Define system-specific variables.
5586 case $host_os in
5587 aix*)
5588 symcode='[BCDT]'
5589 ;;
5590 cygwin* | mingw* | pw32* | cegcc*)
5591 symcode='[ABCDGISTW]'
5592 ;;
5593 hpux*)
5594 if test "$host_cpu" = ia64; then
5595 symcode='[ABCDEGRST]'
5596 fi
5597 ;;
5598 irix* | nonstopux*)
5599 symcode='[BCDEGRST]'
5600 ;;
5601 osf*)
5602 symcode='[BCDEGQRST]'
5603 ;;
5604 solaris*)
5605 symcode='[BDRT]'
5606 ;;
5607 sco3.2v5*)
5608 symcode='[DT]'
5609 ;;
5610 sysv4.2uw2*)
5611 symcode='[DT]'
5612 ;;
5613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5614 symcode='[ABDT]'
5615 ;;
5616 sysv4)
5617 symcode='[DFNSTU]'
5618 ;;
5619 esac
5620
5621 # If we're using GNU nm, then use its standard symbol codes.
5622 case `$NM -V 2>&1` in
5623 *GNU* | *'with BFD'*)
5624 symcode='[ABCDGIRSTW]' ;;
5625 esac
5626
5627 # Transform an extracted symbol line into a proper C declaration.
5628 # Some systems (esp. on ia64) link data and code symbols differently,
5629 # so use this general approach.
5630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5631
5632 # Transform an extracted symbol line into symbol name and symbol address
5633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5634 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'"
5635
5636 # Handle CRLF in mingw tool chain
5637 opt_cr=
5638 case $build_os in
5639 mingw*)
5640 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5641 ;;
5642 esac
5643
5644 # Try without a prefix underscore, then with it.
5645 for ac_symprfx in "" "_"; do
5646
5647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5648 symxfrm="\\1 $ac_symprfx\\2 \\2"
5649
5650 # Write the raw and C identifiers.
5651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5652 # Fake it for dumpbin and say T for any non-static function
5653 # and D for any global variable.
5654 # Also find C++ and __fastcall symbols from MSVC++,
5655 # which start with @ or ?.
5656 lt_cv_sys_global_symbol_pipe="$AWK '"\
5657 " {last_section=section; section=\$ 3};"\
5658 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5659 " \$ 0!~/External *\|/{next};"\
5660 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5661 " {if(hide[section]) next};"\
5662 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5663 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5664 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5665 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5666 " ' prfx=^$ac_symprfx"
5667 else
5668 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5669 fi
5670
5671 # Check to see that the pipe works correctly.
5672 pipe_works=no
5673
5674 rm -f conftest*
5675 cat > conftest.$ac_ext <<_LT_EOF
5676 #ifdef __cplusplus
5677 extern "C" {
5678 #endif
5679 char nm_test_var;
5680 void nm_test_func(void);
5681 void nm_test_func(void){}
5682 #ifdef __cplusplus
5683 }
5684 #endif
5685 int main(){nm_test_var='a';nm_test_func();return(0);}
5686 _LT_EOF
5687
5688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5689 (eval $ac_compile) 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; }; then
5693 # Now try to grab the symbols.
5694 nlist=conftest.nm
5695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5696 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5697 ac_status=$?
5698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5699 test $ac_status = 0; } && test -s "$nlist"; then
5700 # Try sorting and uniquifying the output.
5701 if sort "$nlist" | uniq > "$nlist"T; then
5702 mv -f "$nlist"T "$nlist"
5703 else
5704 rm -f "$nlist"T
5705 fi
5706
5707 # Make sure that we snagged all the symbols we need.
5708 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5709 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5710 cat <<_LT_EOF > conftest.$ac_ext
5711 #ifdef __cplusplus
5712 extern "C" {
5713 #endif
5714
5715 _LT_EOF
5716 # Now generate the symbol file.
5717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5718
5719 cat <<_LT_EOF >> conftest.$ac_ext
5720
5721 /* The mapping between symbol names and symbols. */
5722 const struct {
5723 const char *name;
5724 void *address;
5725 }
5726 lt__PROGRAM__LTX_preloaded_symbols[] =
5727 {
5728 { "@PROGRAM@", (void *) 0 },
5729 _LT_EOF
5730 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5731 cat <<\_LT_EOF >> conftest.$ac_ext
5732 {0, (void *) 0}
5733 };
5734
5735 /* This works around a problem in FreeBSD linker */
5736 #ifdef FREEBSD_WORKAROUND
5737 static const void *lt_preloaded_setup() {
5738 return lt__PROGRAM__LTX_preloaded_symbols;
5739 }
5740 #endif
5741
5742 #ifdef __cplusplus
5743 }
5744 #endif
5745 _LT_EOF
5746 # Now try linking the two files.
5747 mv conftest.$ac_objext conftstm.$ac_objext
5748 lt_save_LIBS="$LIBS"
5749 lt_save_CFLAGS="$CFLAGS"
5750 LIBS="conftstm.$ac_objext"
5751 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5753 (eval $ac_link) 2>&5
5754 ac_status=$?
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5757 pipe_works=yes
5758 fi
5759 LIBS="$lt_save_LIBS"
5760 CFLAGS="$lt_save_CFLAGS"
5761 else
5762 echo "cannot find nm_test_func in $nlist" >&5
5763 fi
5764 else
5765 echo "cannot find nm_test_var in $nlist" >&5
5766 fi
5767 else
5768 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5769 fi
5770 else
5771 echo "$progname: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 fi
5774 rm -rf conftest* conftst*
5775
5776 # Do not use the global_symbol_pipe unless it works.
5777 if test "$pipe_works" = yes; then
5778 break
5779 else
5780 lt_cv_sys_global_symbol_pipe=
5781 fi
5782 done
5783
5784 fi
5785
5786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5787 lt_cv_sys_global_symbol_to_cdecl=
5788 fi
5789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5791 $as_echo "failed" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5794 $as_echo "ok" >&6; }
5795 fi
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 # Check whether --enable-libtool-lock was given.
5820 if test "${enable_libtool_lock+set}" = set; then :
5821 enableval=$enable_libtool_lock;
5822 fi
5823
5824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5825
5826 # Some flags need to be propagated to the compiler or linker for good
5827 # libtool support.
5828 case $host in
5829 ia64-*-hpux*)
5830 # Find out which ABI we are using.
5831 echo 'int i;' > conftest.$ac_ext
5832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5833 (eval $ac_compile) 2>&5
5834 ac_status=$?
5835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836 test $ac_status = 0; }; then
5837 case `/usr/bin/file conftest.$ac_objext` in
5838 *ELF-32*)
5839 HPUX_IA64_MODE="32"
5840 ;;
5841 *ELF-64*)
5842 HPUX_IA64_MODE="64"
5843 ;;
5844 esac
5845 fi
5846 rm -rf conftest*
5847 ;;
5848 *-*-irix6*)
5849 # Find out which ABI we are using.
5850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852 (eval $ac_compile) 2>&5
5853 ac_status=$?
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }; then
5856 if test "$lt_cv_prog_gnu_ld" = yes; then
5857 case `/usr/bin/file conftest.$ac_objext` in
5858 *32-bit*)
5859 LD="${LD-ld} -melf32bsmip"
5860 ;;
5861 *N32*)
5862 LD="${LD-ld} -melf32bmipn32"
5863 ;;
5864 *64-bit*)
5865 LD="${LD-ld} -melf64bmip"
5866 ;;
5867 esac
5868 else
5869 case `/usr/bin/file conftest.$ac_objext` in
5870 *32-bit*)
5871 LD="${LD-ld} -32"
5872 ;;
5873 *N32*)
5874 LD="${LD-ld} -n32"
5875 ;;
5876 *64-bit*)
5877 LD="${LD-ld} -64"
5878 ;;
5879 esac
5880 fi
5881 fi
5882 rm -rf conftest*
5883 ;;
5884
5885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5887 # Find out which ABI we are using.
5888 echo 'int i;' > conftest.$ac_ext
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; }; then
5894 case `/usr/bin/file conftest.o` in
5895 *32-bit*)
5896 case $host in
5897 x86_64-*kfreebsd*-gnu)
5898 LD="${LD-ld} -m elf_i386_fbsd"
5899 ;;
5900 x86_64-*linux*)
5901 case `/usr/bin/file conftest.o` in
5902 *x86-64*)
5903 LD="${LD-ld} -m elf32_x86_64"
5904 ;;
5905 *)
5906 LD="${LD-ld} -m elf_i386"
5907 ;;
5908 esac
5909 ;;
5910 ppc64-*linux*|powerpc64-*linux*)
5911 LD="${LD-ld} -m elf32ppclinux"
5912 ;;
5913 s390x-*linux*)
5914 LD="${LD-ld} -m elf_s390"
5915 ;;
5916 sparc64-*linux*)
5917 LD="${LD-ld} -m elf32_sparc"
5918 ;;
5919 esac
5920 ;;
5921 *64-bit*)
5922 case $host in
5923 x86_64-*kfreebsd*-gnu)
5924 LD="${LD-ld} -m elf_x86_64_fbsd"
5925 ;;
5926 x86_64-*linux*)
5927 LD="${LD-ld} -m elf_x86_64"
5928 ;;
5929 ppc*-*linux*|powerpc*-*linux*)
5930 LD="${LD-ld} -m elf64ppc"
5931 ;;
5932 s390*-*linux*|s390*-*tpf*)
5933 LD="${LD-ld} -m elf64_s390"
5934 ;;
5935 sparc*-*linux*)
5936 LD="${LD-ld} -m elf64_sparc"
5937 ;;
5938 esac
5939 ;;
5940 esac
5941 fi
5942 rm -rf conftest*
5943 ;;
5944
5945 *-*-sco3.2v5*)
5946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947 SAVE_CFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS -belf"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962
5963 int
5964 main ()
5965 {
5966
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 lt_cv_cc_needs_belf=yes
5973 else
5974 lt_cv_cc_needs_belf=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989 CFLAGS="$SAVE_CFLAGS"
5990 fi
5991 ;;
5992 sparc*-*solaris*)
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.o` in
6001 *64-bit*)
6002 case $lt_cv_prog_gnu_ld in
6003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6004 *)
6005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6006 LD="${LD-ld} -64"
6007 fi
6008 ;;
6009 esac
6010 ;;
6011 esac
6012 fi
6013 rm -rf conftest*
6014 ;;
6015 esac
6016
6017 need_locks="$enable_libtool_lock"
6018
6019
6020 case $host_os in
6021 rhapsody* | darwin*)
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$DSYMUTIL"; then
6031 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6051 if test -n "$DSYMUTIL"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6053 $as_echo "$DSYMUTIL" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$ac_cv_prog_DSYMUTIL"; then
6062 ac_ct_DSYMUTIL=$DSYMUTIL
6063 # Extract the first word of "dsymutil", so it can be a program name with args.
6064 set dummy dsymutil; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$ac_ct_DSYMUTIL"; then
6071 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6091 if test -n "$ac_ct_DSYMUTIL"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6093 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099 if test "x$ac_ct_DSYMUTIL" = x; then
6100 DSYMUTIL=":"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 DSYMUTIL=$ac_ct_DSYMUTIL
6109 fi
6110 else
6111 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6112 fi
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$NMEDIT"; then
6123 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 NMEDIT=$ac_cv_prog_NMEDIT
6143 if test -n "$NMEDIT"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6145 $as_echo "$NMEDIT" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151
6152 fi
6153 if test -z "$ac_cv_prog_NMEDIT"; then
6154 ac_ct_NMEDIT=$NMEDIT
6155 # Extract the first word of "nmedit", so it can be a program name with args.
6156 set dummy nmedit; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$ac_ct_NMEDIT"; then
6163 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6183 if test -n "$ac_ct_NMEDIT"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6185 $as_echo "$ac_ct_NMEDIT" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191 if test "x$ac_ct_NMEDIT" = x; then
6192 NMEDIT=":"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200 NMEDIT=$ac_ct_NMEDIT
6201 fi
6202 else
6203 NMEDIT="$ac_cv_prog_NMEDIT"
6204 fi
6205
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_LIPO+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$LIPO"; then
6215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 LIPO=$ac_cv_prog_LIPO
6235 if test -n "$LIPO"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6237 $as_echo "$LIPO" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244 fi
6245 if test -z "$ac_cv_prog_LIPO"; then
6246 ac_ct_LIPO=$LIPO
6247 # Extract the first word of "lipo", so it can be a program name with args.
6248 set dummy lipo; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$ac_ct_LIPO"; then
6255 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_LIPO="lipo"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6275 if test -n "$ac_ct_LIPO"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6277 $as_echo "$ac_ct_LIPO" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283 if test "x$ac_ct_LIPO" = x; then
6284 LIPO=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292 LIPO=$ac_ct_LIPO
6293 fi
6294 else
6295 LIPO="$ac_cv_prog_LIPO"
6296 fi
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}otool; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$OTOOL"; then
6307 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 OTOOL=$ac_cv_prog_OTOOL
6327 if test -n "$OTOOL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6329 $as_echo "$OTOOL" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_OTOOL"; then
6338 ac_ct_OTOOL=$OTOOL
6339 # Extract the first word of "otool", so it can be a program name with args.
6340 set dummy otool; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_OTOOL"; then
6347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_ac_ct_OTOOL="otool"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6367 if test -n "$ac_ct_OTOOL"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6369 $as_echo "$ac_ct_OTOOL" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375 if test "x$ac_ct_OTOOL" = x; then
6376 OTOOL=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 OTOOL=$ac_ct_OTOOL
6385 fi
6386 else
6387 OTOOL="$ac_cv_prog_OTOOL"
6388 fi
6389
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$OTOOL64"; then
6399 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 OTOOL64=$ac_cv_prog_OTOOL64
6419 if test -n "$OTOOL64"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6421 $as_echo "$OTOOL64" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_OTOOL64"; then
6430 ac_ct_OTOOL64=$OTOOL64
6431 # Extract the first word of "otool64", so it can be a program name with args.
6432 set dummy otool64; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$ac_ct_OTOOL64"; then
6439 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_OTOOL64="otool64"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6459 if test -n "$ac_ct_OTOOL64"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6461 $as_echo "$ac_ct_OTOOL64" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467 if test "x$ac_ct_OTOOL64" = x; then
6468 OTOOL64=":"
6469 else
6470 case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476 OTOOL64=$ac_ct_OTOOL64
6477 fi
6478 else
6479 OTOOL64="$ac_cv_prog_OTOOL64"
6480 fi
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6509 $as_echo_n "checking for -single_module linker flag... " >&6; }
6510 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 lt_cv_apple_cc_single_mod=no
6514 if test -z "${LT_MULTI_MODULE}"; then
6515 # By default we will add the -single_module flag. You can override
6516 # by either setting the environment variable LT_MULTI_MODULE
6517 # non-empty at configure time, or by adding -multi_module to the
6518 # link flags.
6519 rm -rf libconftest.dylib*
6520 echo "int foo(void){return 1;}" > conftest.c
6521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6522 -dynamiclib -Wl,-single_module conftest.c" >&5
6523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6525 _lt_result=$?
6526 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6527 lt_cv_apple_cc_single_mod=yes
6528 else
6529 cat conftest.err >&5
6530 fi
6531 rm -rf libconftest.dylib*
6532 rm -f conftest.*
6533 fi
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6536 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6538 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6539 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 lt_cv_ld_exported_symbols_list=no
6543 save_LDFLAGS=$LDFLAGS
6544 echo "_main" > conftest.sym
6545 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548
6549 int
6550 main ()
6551 {
6552
6553 ;
6554 return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_link "$LINENO"; then :
6558 lt_cv_ld_exported_symbols_list=yes
6559 else
6560 lt_cv_ld_exported_symbols_list=no
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 LDFLAGS="$save_LDFLAGS"
6565
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6568 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6570 $as_echo_n "checking for -force_load linker flag... " >&6; }
6571 if test "${lt_cv_ld_force_load+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_ld_force_load=no
6575 cat > conftest.c << _LT_EOF
6576 int forced_loaded() { return 2;}
6577 _LT_EOF
6578 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6579 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6580 echo "$AR cru libconftest.a conftest.o" >&5
6581 $AR cru libconftest.a conftest.o 2>&5
6582 cat > conftest.c << _LT_EOF
6583 int main() { return 0;}
6584 _LT_EOF
6585 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6586 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6587 _lt_result=$?
6588 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6589 lt_cv_ld_force_load=yes
6590 else
6591 cat conftest.err >&5
6592 fi
6593 rm -f conftest.err libconftest.a conftest conftest.c
6594 rm -rf conftest.dSYM
6595
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6598 $as_echo "$lt_cv_ld_force_load" >&6; }
6599 case $host_os in
6600 rhapsody* | darwin1.[012])
6601 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6602 darwin1.*)
6603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6604 darwin*) # darwin 5.x on
6605 # if running on 10.5 or later, the deployment target defaults
6606 # to the OS version, if on x86, and 10.4, the deployment
6607 # target defaults to 10.4. Don't you love it?
6608 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6609 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6610 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6611 10.[012]*)
6612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6613 10.*)
6614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6615 esac
6616 ;;
6617 esac
6618 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6619 _lt_dar_single_mod='$single_module'
6620 fi
6621 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6622 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6623 else
6624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6625 fi
6626 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6627 _lt_dsymutil='~$DSYMUTIL $lib || :'
6628 else
6629 _lt_dsymutil=
6630 fi
6631 ;;
6632 esac
6633
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6641 # On Suns, sometimes $CPP names a directory.
6642 if test -n "$CPP" && test -d "$CPP"; then
6643 CPP=
6644 fi
6645 if test -z "$CPP"; then
6646 if test "${ac_cv_prog_CPP+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 # Double quotes because CPP needs to be expanded
6650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6651 do
6652 ac_preproc_ok=false
6653 for ac_c_preproc_warn_flag in '' yes
6654 do
6655 # Use a header file that comes with gcc, so configuring glibc
6656 # with a fresh cross-compiler works.
6657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6658 # <limits.h> exists even on freestanding compilers.
6659 # On the NeXT, cc -E runs the code through the compiler's parser,
6660 # not just through cpp. "Syntax error" is here to catch this case.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #ifdef __STDC__
6664 # include <limits.h>
6665 #else
6666 # include <assert.h>
6667 #endif
6668 Syntax error
6669 _ACEOF
6670 if ac_fn_c_try_cpp "$LINENO"; then :
6671
6672 else
6673 # Broken: fails on valid input.
6674 continue
6675 fi
6676 rm -f conftest.err conftest.$ac_ext
6677
6678 # OK, works on sane cases. Now check whether nonexistent headers
6679 # can be detected and how.
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #include <ac_nonexistent.h>
6683 _ACEOF
6684 if ac_fn_c_try_cpp "$LINENO"; then :
6685 # Broken: success on invalid input.
6686 continue
6687 else
6688 # Passes both tests.
6689 ac_preproc_ok=:
6690 break
6691 fi
6692 rm -f conftest.err conftest.$ac_ext
6693
6694 done
6695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696 rm -f conftest.err conftest.$ac_ext
6697 if $ac_preproc_ok; then :
6698 break
6699 fi
6700
6701 done
6702 ac_cv_prog_CPP=$CPP
6703
6704 fi
6705 CPP=$ac_cv_prog_CPP
6706 else
6707 ac_cv_prog_CPP=$CPP
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6710 $as_echo "$CPP" >&6; }
6711 ac_preproc_ok=false
6712 for ac_c_preproc_warn_flag in '' yes
6713 do
6714 # Use a header file that comes with gcc, so configuring glibc
6715 # with a fresh cross-compiler works.
6716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717 # <limits.h> exists even on freestanding compilers.
6718 # On the NeXT, cc -E runs the code through the compiler's parser,
6719 # not just through cpp. "Syntax error" is here to catch this case.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #ifdef __STDC__
6723 # include <limits.h>
6724 #else
6725 # include <assert.h>
6726 #endif
6727 Syntax error
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730
6731 else
6732 # Broken: fails on valid input.
6733 continue
6734 fi
6735 rm -f conftest.err conftest.$ac_ext
6736
6737 # OK, works on sane cases. Now check whether nonexistent headers
6738 # can be detected and how.
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <ac_nonexistent.h>
6742 _ACEOF
6743 if ac_fn_c_try_cpp "$LINENO"; then :
6744 # Broken: success on invalid input.
6745 continue
6746 else
6747 # Passes both tests.
6748 ac_preproc_ok=:
6749 break
6750 fi
6751 rm -f conftest.err conftest.$ac_ext
6752
6753 done
6754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755 rm -f conftest.err conftest.$ac_ext
6756 if $ac_preproc_ok; then :
6757
6758 else
6759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6761 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6762 See \`config.log' for more details." "$LINENO" 5; }
6763 fi
6764
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6773 $as_echo_n "checking for ANSI C header files... " >&6; }
6774 if test "${ac_cv_header_stdc+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <stdlib.h>
6780 #include <stdarg.h>
6781 #include <string.h>
6782 #include <float.h>
6783
6784 int
6785 main ()
6786 {
6787
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 ac_cv_header_stdc=yes
6794 else
6795 ac_cv_header_stdc=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798
6799 if test $ac_cv_header_stdc = yes; then
6800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 #include <string.h>
6804
6805 _ACEOF
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807 $EGREP "memchr" >/dev/null 2>&1; then :
6808
6809 else
6810 ac_cv_header_stdc=no
6811 fi
6812 rm -f conftest*
6813
6814 fi
6815
6816 if test $ac_cv_header_stdc = yes; then
6817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #include <stdlib.h>
6821
6822 _ACEOF
6823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824 $EGREP "free" >/dev/null 2>&1; then :
6825
6826 else
6827 ac_cv_header_stdc=no
6828 fi
6829 rm -f conftest*
6830
6831 fi
6832
6833 if test $ac_cv_header_stdc = yes; then
6834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6835 if test "$cross_compiling" = yes; then :
6836 :
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <ctype.h>
6841 #include <stdlib.h>
6842 #if ((' ' & 0x0FF) == 0x020)
6843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845 #else
6846 # define ISLOWER(c) \
6847 (('a' <= (c) && (c) <= 'i') \
6848 || ('j' <= (c) && (c) <= 'r') \
6849 || ('s' <= (c) && (c) <= 'z'))
6850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851 #endif
6852
6853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6854 int
6855 main ()
6856 {
6857 int i;
6858 for (i = 0; i < 256; i++)
6859 if (XOR (islower (i), ISLOWER (i))
6860 || toupper (i) != TOUPPER (i))
6861 return 2;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_run "$LINENO"; then :
6866
6867 else
6868 ac_cv_header_stdc=no
6869 fi
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6871 conftest.$ac_objext conftest.beam conftest.$ac_ext
6872 fi
6873
6874 fi
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6877 $as_echo "$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6879
6880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6881
6882 fi
6883
6884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6886 inttypes.h stdint.h unistd.h
6887 do :
6888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6889 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6890 "
6891 eval as_val=\$$as_ac_Header
6892 if test "x$as_val" = x""yes; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 _ACEOF
6896
6897 fi
6898
6899 done
6900
6901
6902 for ac_header in dlfcn.h
6903 do :
6904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6905 "
6906 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_DLFCN_H 1
6909 _ACEOF
6910
6911 fi
6912
6913 done
6914
6915
6916
6917
6918
6919 # Set options
6920 # Check whether --enable-shared was given.
6921 if test "${enable_shared+set}" = set; then :
6922 enableval=$enable_shared; p=${PACKAGE-default}
6923 case $enableval in
6924 yes) enable_shared=yes ;;
6925 no) enable_shared=no ;;
6926 *)
6927 enable_shared=no
6928 # Look at the argument we got. We use all the common list separators.
6929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6930 for pkg in $enableval; do
6931 IFS="$lt_save_ifs"
6932 if test "X$pkg" = "X$p"; then
6933 enable_shared=yes
6934 fi
6935 done
6936 IFS="$lt_save_ifs"
6937 ;;
6938 esac
6939 else
6940 enable_shared=no
6941 fi
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952 enable_dlopen=no
6953
6954
6955 enable_win32_dll=no
6956
6957
6958
6959 # Check whether --enable-static was given.
6960 if test "${enable_static+set}" = set; then :
6961 enableval=$enable_static; p=${PACKAGE-default}
6962 case $enableval in
6963 yes) enable_static=yes ;;
6964 no) enable_static=no ;;
6965 *)
6966 enable_static=no
6967 # Look at the argument we got. We use all the common list separators.
6968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6969 for pkg in $enableval; do
6970 IFS="$lt_save_ifs"
6971 if test "X$pkg" = "X$p"; then
6972 enable_static=yes
6973 fi
6974 done
6975 IFS="$lt_save_ifs"
6976 ;;
6977 esac
6978 else
6979 enable_static=yes
6980 fi
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991 # Check whether --with-pic was given.
6992 if test "${with_pic+set}" = set; then :
6993 withval=$with_pic; pic_mode="$withval"
6994 else
6995 pic_mode=default
6996 fi
6997
6998
6999 test -z "$pic_mode" && pic_mode=default
7000
7001
7002
7003
7004
7005
7006
7007 # Check whether --enable-fast-install was given.
7008 if test "${enable_fast_install+set}" = set; then :
7009 enableval=$enable_fast_install; p=${PACKAGE-default}
7010 case $enableval in
7011 yes) enable_fast_install=yes ;;
7012 no) enable_fast_install=no ;;
7013 *)
7014 enable_fast_install=no
7015 # Look at the argument we got. We use all the common list separators.
7016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7017 for pkg in $enableval; do
7018 IFS="$lt_save_ifs"
7019 if test "X$pkg" = "X$p"; then
7020 enable_fast_install=yes
7021 fi
7022 done
7023 IFS="$lt_save_ifs"
7024 ;;
7025 esac
7026 else
7027 enable_fast_install=yes
7028 fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 # This can be used to rebuild libtool when needed
7041 LIBTOOL_DEPS="$ltmain"
7042
7043 # Always use our own libtool.
7044 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071 test -z "$LN_S" && LN_S="ln -s"
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 if test -n "${ZSH_VERSION+set}" ; then
7087 setopt NO_GLOB_SUBST
7088 fi
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7091 $as_echo_n "checking for objdir... " >&6; }
7092 if test "${lt_cv_objdir+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 rm -f .libs 2>/dev/null
7096 mkdir .libs 2>/dev/null
7097 if test -d .libs; then
7098 lt_cv_objdir=.libs
7099 else
7100 # MS-DOS does not allow filenames that begin with a dot.
7101 lt_cv_objdir=_libs
7102 fi
7103 rmdir .libs 2>/dev/null
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7106 $as_echo "$lt_cv_objdir" >&6; }
7107 objdir=$lt_cv_objdir
7108
7109
7110
7111
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define LT_OBJDIR "$lt_cv_objdir/"
7115 _ACEOF
7116
7117
7118
7119
7120 case $host_os in
7121 aix3*)
7122 # AIX sometimes has problems with the GCC collect2 program. For some
7123 # reason, if we set the COLLECT_NAMES environment variable, the problems
7124 # vanish in a puff of smoke.
7125 if test "X${COLLECT_NAMES+set}" != Xset; then
7126 COLLECT_NAMES=
7127 export COLLECT_NAMES
7128 fi
7129 ;;
7130 esac
7131
7132 # Global variables:
7133 ofile=libtool
7134 can_build_shared=yes
7135
7136 # All known linkers require a `.a' archive for static linking (except MSVC,
7137 # which needs '.lib').
7138 libext=a
7139
7140 with_gnu_ld="$lt_cv_prog_gnu_ld"
7141
7142 old_CC="$CC"
7143 old_CFLAGS="$CFLAGS"
7144
7145 # Set sane defaults for various variables
7146 test -z "$CC" && CC=cc
7147 test -z "$LTCC" && LTCC=$CC
7148 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7149 test -z "$LD" && LD=ld
7150 test -z "$ac_objext" && ac_objext=o
7151
7152 for cc_temp in $compiler""; do
7153 case $cc_temp in
7154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7156 \-*) ;;
7157 *) break;;
7158 esac
7159 done
7160 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7161
7162
7163 # Only perform the check for file, if the check method requires it
7164 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7165 case $deplibs_check_method in
7166 file_magic*)
7167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7169 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 case $MAGIC_CMD in
7174 [\\/*] | ?:[\\/]*)
7175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 lt_save_MAGIC_CMD="$MAGIC_CMD"
7179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7181 for ac_dir in $ac_dummy; do
7182 IFS="$lt_save_ifs"
7183 test -z "$ac_dir" && ac_dir=.
7184 if test -f $ac_dir/${ac_tool_prefix}file; then
7185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7186 if test -n "$file_magic_test_file"; then
7187 case $deplibs_check_method in
7188 "file_magic "*)
7189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7192 $EGREP "$file_magic_regex" > /dev/null; then
7193 :
7194 else
7195 cat <<_LT_EOF 1>&2
7196
7197 *** Warning: the command libtool uses to detect shared libraries,
7198 *** $file_magic_cmd, produces output that libtool cannot recognize.
7199 *** The result is that libtool may fail to recognize shared libraries
7200 *** as such. This will affect the creation of libtool libraries that
7201 *** depend on shared libraries, but programs linked with such libtool
7202 *** libraries will work regardless of this problem. Nevertheless, you
7203 *** may want to report the problem to your system manager and/or to
7204 *** bug-libtool@gnu.org
7205
7206 _LT_EOF
7207 fi ;;
7208 esac
7209 fi
7210 break
7211 fi
7212 done
7213 IFS="$lt_save_ifs"
7214 MAGIC_CMD="$lt_save_MAGIC_CMD"
7215 ;;
7216 esac
7217 fi
7218
7219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7220 if test -n "$MAGIC_CMD"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7222 $as_echo "$MAGIC_CMD" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228
7229
7230
7231
7232 if test -z "$lt_cv_path_MAGIC_CMD"; then
7233 if test -n "$ac_tool_prefix"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7235 $as_echo_n "checking for file... " >&6; }
7236 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 case $MAGIC_CMD in
7240 [\\/*] | ?:[\\/]*)
7241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7242 ;;
7243 *)
7244 lt_save_MAGIC_CMD="$MAGIC_CMD"
7245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7247 for ac_dir in $ac_dummy; do
7248 IFS="$lt_save_ifs"
7249 test -z "$ac_dir" && ac_dir=.
7250 if test -f $ac_dir/file; then
7251 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7252 if test -n "$file_magic_test_file"; then
7253 case $deplibs_check_method in
7254 "file_magic "*)
7255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7258 $EGREP "$file_magic_regex" > /dev/null; then
7259 :
7260 else
7261 cat <<_LT_EOF 1>&2
7262
7263 *** Warning: the command libtool uses to detect shared libraries,
7264 *** $file_magic_cmd, produces output that libtool cannot recognize.
7265 *** The result is that libtool may fail to recognize shared libraries
7266 *** as such. This will affect the creation of libtool libraries that
7267 *** depend on shared libraries, but programs linked with such libtool
7268 *** libraries will work regardless of this problem. Nevertheless, you
7269 *** may want to report the problem to your system manager and/or to
7270 *** bug-libtool@gnu.org
7271
7272 _LT_EOF
7273 fi ;;
7274 esac
7275 fi
7276 break
7277 fi
7278 done
7279 IFS="$lt_save_ifs"
7280 MAGIC_CMD="$lt_save_MAGIC_CMD"
7281 ;;
7282 esac
7283 fi
7284
7285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7286 if test -n "$MAGIC_CMD"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7288 $as_echo "$MAGIC_CMD" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 else
7296 MAGIC_CMD=:
7297 fi
7298 fi
7299
7300 fi
7301 ;;
7302 esac
7303
7304 # Use C for the default configuration in the libtool script
7305
7306 lt_save_CC="$CC"
7307 ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313
7314 # Source file extension for C test sources.
7315 ac_ext=c
7316
7317 # Object file extension for compiled C test sources.
7318 objext=o
7319 objext=$objext
7320
7321 # Code to be used in simple compile tests
7322 lt_simple_compile_test_code="int some_variable = 0;"
7323
7324 # Code to be used in simple link tests
7325 lt_simple_link_test_code='int main(){return(0);}'
7326
7327
7328
7329
7330
7331
7332
7333 # If no C compiler was specified, use CC.
7334 LTCC=${LTCC-"$CC"}
7335
7336 # If no C compiler flags were specified, use CFLAGS.
7337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7338
7339 # Allow CC to be a program name with arguments.
7340 compiler=$CC
7341
7342 # Save the default compiler, since it gets overwritten when the other
7343 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7344 compiler_DEFAULT=$CC
7345
7346 # save warnings/boilerplate of simple test code
7347 ac_outfile=conftest.$ac_objext
7348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7350 _lt_compiler_boilerplate=`cat conftest.err`
7351 $RM conftest*
7352
7353 ac_outfile=conftest.$ac_objext
7354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7356 _lt_linker_boilerplate=`cat conftest.err`
7357 $RM -r conftest*
7358
7359
7360 ## CAVEAT EMPTOR:
7361 ## There is no encapsulation within the following macros, do not change
7362 ## the running order or otherwise move them around unless you know exactly
7363 ## what you are doing...
7364 if test -n "$compiler"; then
7365
7366 lt_prog_compiler_no_builtin_flag=
7367
7368 if test "$GCC" = yes; then
7369 case $cc_basename in
7370 nvcc*)
7371 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7372 *)
7373 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7374 esac
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7377 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7378 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 lt_cv_prog_compiler_rtti_exceptions=no
7382 ac_outfile=conftest.$ac_objext
7383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7384 lt_compiler_flag="-fno-rtti -fno-exceptions"
7385 # Insert the option either (1) after the last *FLAGS variable, or
7386 # (2) before a word containing "conftest.", or (3) at the end.
7387 # Note that $ac_compile itself does not contain backslashes and begins
7388 # with a dollar sign (not a hyphen), so the echo should work correctly.
7389 # The option is referenced via a variable to avoid confusing sed.
7390 lt_compile=`echo "$ac_compile" | $SED \
7391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7393 -e 's:$: $lt_compiler_flag:'`
7394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7395 (eval "$lt_compile" 2>conftest.err)
7396 ac_status=$?
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 if (exit $ac_status) && test -s "$ac_outfile"; then
7400 # The compiler can only warn and ignore the option if not recognized
7401 # So say no if there are warnings other than the usual output.
7402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7405 lt_cv_prog_compiler_rtti_exceptions=yes
7406 fi
7407 fi
7408 $RM conftest*
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7412 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7413
7414 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7415 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7416 else
7417 :
7418 fi
7419
7420 fi
7421
7422
7423
7424
7425
7426
7427 lt_prog_compiler_wl=
7428 lt_prog_compiler_pic=
7429 lt_prog_compiler_static=
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7432 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7433
7434 if test "$GCC" = yes; then
7435 lt_prog_compiler_wl='-Wl,'
7436 lt_prog_compiler_static='-static'
7437
7438 case $host_os in
7439 aix*)
7440 # All AIX code is PIC.
7441 if test "$host_cpu" = ia64; then
7442 # AIX 5 now supports IA64 processor
7443 lt_prog_compiler_static='-Bstatic'
7444 fi
7445 ;;
7446
7447 amigaos*)
7448 case $host_cpu in
7449 powerpc)
7450 # see comment about AmigaOS4 .so support
7451 lt_prog_compiler_pic='-fPIC'
7452 ;;
7453 m68k)
7454 # FIXME: we need at least 68020 code to build shared libraries, but
7455 # adding the `-m68020' flag to GCC prevents building anything better,
7456 # like `-m68040'.
7457 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7458 ;;
7459 esac
7460 ;;
7461
7462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7463 # PIC is the default for these OSes.
7464 ;;
7465
7466 mingw* | cygwin* | pw32* | os2* | cegcc*)
7467 # This hack is so that the source file can tell whether it is being
7468 # built for inclusion in a dll (and should export symbols for example).
7469 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7470 # (--disable-auto-import) libraries
7471 lt_prog_compiler_pic='-DDLL_EXPORT'
7472 ;;
7473
7474 darwin* | rhapsody*)
7475 # PIC is the default on this platform
7476 # Common symbols not allowed in MH_DYLIB files
7477 lt_prog_compiler_pic='-fno-common'
7478 ;;
7479
7480 haiku*)
7481 # PIC is the default for Haiku.
7482 # The "-static" flag exists, but is broken.
7483 lt_prog_compiler_static=
7484 ;;
7485
7486 hpux*)
7487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7489 # sets the default TLS model and affects inlining.
7490 case $host_cpu in
7491 hppa*64*)
7492 # +Z the default
7493 ;;
7494 *)
7495 lt_prog_compiler_pic='-fPIC'
7496 ;;
7497 esac
7498 ;;
7499
7500 interix[3-9]*)
7501 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7502 # Instead, we relocate shared libraries at runtime.
7503 ;;
7504
7505 msdosdjgpp*)
7506 # Just because we use GCC doesn't mean we suddenly get shared libraries
7507 # on systems that don't support them.
7508 lt_prog_compiler_can_build_shared=no
7509 enable_shared=no
7510 ;;
7511
7512 *nto* | *qnx*)
7513 # QNX uses GNU C++, but need to define -shared option too, otherwise
7514 # it will coredump.
7515 lt_prog_compiler_pic='-fPIC -shared'
7516 ;;
7517
7518 sysv4*MP*)
7519 if test -d /usr/nec; then
7520 lt_prog_compiler_pic=-Kconform_pic
7521 fi
7522 ;;
7523
7524 *)
7525 lt_prog_compiler_pic='-fPIC'
7526 ;;
7527 esac
7528
7529 case $cc_basename in
7530 nvcc*) # Cuda Compiler Driver 2.2
7531 lt_prog_compiler_wl='-Xlinker '
7532 lt_prog_compiler_pic='-Xcompiler -fPIC'
7533 ;;
7534 esac
7535 else
7536 # PORTME Check for flag to pass linker flags through the system compiler.
7537 case $host_os in
7538 aix*)
7539 lt_prog_compiler_wl='-Wl,'
7540 if test "$host_cpu" = ia64; then
7541 # AIX 5 now supports IA64 processor
7542 lt_prog_compiler_static='-Bstatic'
7543 else
7544 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7545 fi
7546 ;;
7547
7548 mingw* | cygwin* | pw32* | os2* | cegcc*)
7549 # This hack is so that the source file can tell whether it is being
7550 # built for inclusion in a dll (and should export symbols for example).
7551 lt_prog_compiler_pic='-DDLL_EXPORT'
7552 ;;
7553
7554 hpux9* | hpux10* | hpux11*)
7555 lt_prog_compiler_wl='-Wl,'
7556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7557 # not for PA HP-UX.
7558 case $host_cpu in
7559 hppa*64*|ia64*)
7560 # +Z the default
7561 ;;
7562 *)
7563 lt_prog_compiler_pic='+Z'
7564 ;;
7565 esac
7566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7567 lt_prog_compiler_static='${wl}-a ${wl}archive'
7568 ;;
7569
7570 irix5* | irix6* | nonstopux*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # PIC (with -KPIC) is the default.
7573 lt_prog_compiler_static='-non_shared'
7574 ;;
7575
7576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7577 case $cc_basename in
7578 # old Intel for x86_64 which still supported -KPIC.
7579 ecc*)
7580 lt_prog_compiler_wl='-Wl,'
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-static'
7583 ;;
7584 # icc used to be incompatible with GCC.
7585 # ICC 10 doesn't accept -KPIC any more.
7586 icc* | ifort*)
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_pic='-fPIC'
7589 lt_prog_compiler_static='-static'
7590 ;;
7591 # Lahey Fortran 8.1.
7592 lf95*)
7593 lt_prog_compiler_wl='-Wl,'
7594 lt_prog_compiler_pic='--shared'
7595 lt_prog_compiler_static='--static'
7596 ;;
7597 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7598 # Portland Group compilers (*not* the Pentium gcc compiler,
7599 # which looks to be a dead project)
7600 lt_prog_compiler_wl='-Wl,'
7601 lt_prog_compiler_pic='-fpic'
7602 lt_prog_compiler_static='-Bstatic'
7603 ;;
7604 ccc*)
7605 lt_prog_compiler_wl='-Wl,'
7606 # All Alpha code is PIC.
7607 lt_prog_compiler_static='-non_shared'
7608 ;;
7609 xl* | bgxl* | bgf* | mpixl*)
7610 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-qpic'
7613 lt_prog_compiler_static='-qstaticlink'
7614 ;;
7615 *)
7616 case `$CC -V 2>&1 | sed 5q` in
7617 *Sun\ F* | *Sun*Fortran*)
7618 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7619 lt_prog_compiler_pic='-KPIC'
7620 lt_prog_compiler_static='-Bstatic'
7621 lt_prog_compiler_wl=''
7622 ;;
7623 *Sun\ C*)
7624 # Sun C 5.9
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7627 lt_prog_compiler_wl='-Wl,'
7628 ;;
7629 esac
7630 ;;
7631 esac
7632 ;;
7633
7634 newsos6)
7635 lt_prog_compiler_pic='-KPIC'
7636 lt_prog_compiler_static='-Bstatic'
7637 ;;
7638
7639 *nto* | *qnx*)
7640 # QNX uses GNU C++, but need to define -shared option too, otherwise
7641 # it will coredump.
7642 lt_prog_compiler_pic='-fPIC -shared'
7643 ;;
7644
7645 osf3* | osf4* | osf5*)
7646 lt_prog_compiler_wl='-Wl,'
7647 # All OSF/1 code is PIC.
7648 lt_prog_compiler_static='-non_shared'
7649 ;;
7650
7651 rdos*)
7652 lt_prog_compiler_static='-non_shared'
7653 ;;
7654
7655 solaris*)
7656 lt_prog_compiler_pic='-KPIC'
7657 lt_prog_compiler_static='-Bstatic'
7658 case $cc_basename in
7659 f77* | f90* | f95*)
7660 lt_prog_compiler_wl='-Qoption ld ';;
7661 *)
7662 lt_prog_compiler_wl='-Wl,';;
7663 esac
7664 ;;
7665
7666 sunos4*)
7667 lt_prog_compiler_wl='-Qoption ld '
7668 lt_prog_compiler_pic='-PIC'
7669 lt_prog_compiler_static='-Bstatic'
7670 ;;
7671
7672 sysv4 | sysv4.2uw2* | sysv4.3*)
7673 lt_prog_compiler_wl='-Wl,'
7674 lt_prog_compiler_pic='-KPIC'
7675 lt_prog_compiler_static='-Bstatic'
7676 ;;
7677
7678 sysv4*MP*)
7679 if test -d /usr/nec ;then
7680 lt_prog_compiler_pic='-Kconform_pic'
7681 lt_prog_compiler_static='-Bstatic'
7682 fi
7683 ;;
7684
7685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-Bstatic'
7689 ;;
7690
7691 unicos*)
7692 lt_prog_compiler_wl='-Wl,'
7693 lt_prog_compiler_can_build_shared=no
7694 ;;
7695
7696 uts4*)
7697 lt_prog_compiler_pic='-pic'
7698 lt_prog_compiler_static='-Bstatic'
7699 ;;
7700
7701 *)
7702 lt_prog_compiler_can_build_shared=no
7703 ;;
7704 esac
7705 fi
7706
7707 case $host_os in
7708 # For platforms which do not support PIC, -DPIC is meaningless:
7709 *djgpp*)
7710 lt_prog_compiler_pic=
7711 ;;
7712 *)
7713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7714 ;;
7715 esac
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7717 $as_echo "$lt_prog_compiler_pic" >&6; }
7718
7719
7720
7721
7722
7723
7724 #
7725 # Check to make sure the PIC flag actually works.
7726 #
7727 if test -n "$lt_prog_compiler_pic"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7729 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7730 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 lt_cv_prog_compiler_pic_works=no
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 # The option is referenced via a variable to avoid confusing sed.
7742 lt_compile=`echo "$ac_compile" | $SED \
7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7745 -e 's:$: $lt_compiler_flag:'`
7746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7747 (eval "$lt_compile" 2>conftest.err)
7748 ac_status=$?
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 if (exit $ac_status) && test -s "$ac_outfile"; then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings other than the usual output.
7754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7757 lt_cv_prog_compiler_pic_works=yes
7758 fi
7759 fi
7760 $RM conftest*
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7764 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7765
7766 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7767 case $lt_prog_compiler_pic in
7768 "" | " "*) ;;
7769 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7770 esac
7771 else
7772 lt_prog_compiler_pic=
7773 lt_prog_compiler_can_build_shared=no
7774 fi
7775
7776 fi
7777
7778
7779
7780
7781
7782
7783 #
7784 # Check to make sure the static flag actually works.
7785 #
7786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7789 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 lt_cv_prog_compiler_static_works=no
7793 save_LDFLAGS="$LDFLAGS"
7794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7797 # The linker can only warn and ignore the option if not recognized
7798 # So say no if there are warnings
7799 if test -s conftest.err; then
7800 # Append any errors to the config.log.
7801 cat conftest.err 1>&5
7802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7804 if diff conftest.exp conftest.er2 >/dev/null; then
7805 lt_cv_prog_compiler_static_works=yes
7806 fi
7807 else
7808 lt_cv_prog_compiler_static_works=yes
7809 fi
7810 fi
7811 $RM -r conftest*
7812 LDFLAGS="$save_LDFLAGS"
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7816 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7817
7818 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7819 :
7820 else
7821 lt_prog_compiler_static=
7822 fi
7823
7824
7825
7826
7827
7828
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 lt_cv_prog_compiler_c_o=no
7836 $RM -r conftest 2>/dev/null
7837 mkdir conftest
7838 cd conftest
7839 mkdir out
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841
7842 lt_compiler_flag="-o out/conftest2.$ac_objext"
7843 # Insert the option either (1) after the last *FLAGS variable, or
7844 # (2) before a word containing "conftest.", or (3) at the end.
7845 # Note that $ac_compile itself does not contain backslashes and begins
7846 # with a dollar sign (not a hyphen), so the echo should work correctly.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>out/conftest.err)
7853 ac_status=$?
7854 cat out/conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7857 then
7858 # The compiler can only warn and ignore the option if not recognized
7859 # So say no if there are warnings
7860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_c_o=yes
7864 fi
7865 fi
7866 chmod u+w . 2>&5
7867 $RM conftest*
7868 # SGI C++ compiler will create directory out/ii_files/ for
7869 # template instantiation
7870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7871 $RM out/* && rmdir out
7872 cd ..
7873 $RM -r conftest
7874 $RM conftest*
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7878 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7879
7880
7881
7882
7883
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7887 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 lt_cv_prog_compiler_c_o=no
7891 $RM -r conftest 2>/dev/null
7892 mkdir conftest
7893 cd conftest
7894 mkdir out
7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896
7897 lt_compiler_flag="-o out/conftest2.$ac_objext"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 lt_compile=`echo "$ac_compile" | $SED \
7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7905 -e 's:$: $lt_compiler_flag:'`
7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7907 (eval "$lt_compile" 2>out/conftest.err)
7908 ac_status=$?
7909 cat out/conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7912 then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings
7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7918 lt_cv_prog_compiler_c_o=yes
7919 fi
7920 fi
7921 chmod u+w . 2>&5
7922 $RM conftest*
7923 # SGI C++ compiler will create directory out/ii_files/ for
7924 # template instantiation
7925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7926 $RM out/* && rmdir out
7927 cd ..
7928 $RM -r conftest
7929 $RM conftest*
7930
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7934
7935
7936
7937
7938 hard_links="nottested"
7939 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7940 # do not overwrite the value of need_locks provided by the user
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7942 $as_echo_n "checking if we can lock with hard links... " >&6; }
7943 hard_links=yes
7944 $RM conftest*
7945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7946 touch conftest.a
7947 ln conftest.a conftest.b 2>&5 || hard_links=no
7948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7950 $as_echo "$hard_links" >&6; }
7951 if test "$hard_links" = no; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7953 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7954 need_locks=warn
7955 fi
7956 else
7957 need_locks=no
7958 fi
7959
7960
7961
7962
7963
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7967
7968 runpath_var=
7969 allow_undefined_flag=
7970 always_export_symbols=no
7971 archive_cmds=
7972 archive_expsym_cmds=
7973 compiler_needs_object=no
7974 enable_shared_with_static_runtimes=no
7975 export_dynamic_flag_spec=
7976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7977 hardcode_automatic=no
7978 hardcode_direct=no
7979 hardcode_direct_absolute=no
7980 hardcode_libdir_flag_spec=
7981 hardcode_libdir_flag_spec_ld=
7982 hardcode_libdir_separator=
7983 hardcode_minus_L=no
7984 hardcode_shlibpath_var=unsupported
7985 inherit_rpath=no
7986 link_all_deplibs=unknown
7987 module_cmds=
7988 module_expsym_cmds=
7989 old_archive_from_new_cmds=
7990 old_archive_from_expsyms_cmds=
7991 thread_safe_flag_spec=
7992 whole_archive_flag_spec=
7993 # include_expsyms should be a list of space-separated symbols to be *always*
7994 # included in the symbol list
7995 include_expsyms=
7996 # exclude_expsyms can be an extended regexp of symbols to exclude
7997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7999 # as well as any symbol that contains `d'.
8000 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8002 # platforms (ab)use it in PIC code, but their linkers get confused if
8003 # the symbol is explicitly referenced. Since portable code cannot
8004 # rely on this symbol name, it's probably fine to never include it in
8005 # preloaded symbol tables.
8006 # Exclude shared library initialization/finalization symbols.
8007 extract_expsyms_cmds=
8008
8009 case $host_os in
8010 cygwin* | mingw* | pw32* | cegcc*)
8011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8012 # When not using gcc, we currently assume that we are using
8013 # Microsoft Visual C++.
8014 if test "$GCC" != yes; then
8015 with_gnu_ld=no
8016 fi
8017 ;;
8018 interix*)
8019 # we just hope/assume this is gcc and not c89 (= MSVC++)
8020 with_gnu_ld=yes
8021 ;;
8022 openbsd*)
8023 with_gnu_ld=no
8024 ;;
8025 esac
8026
8027 ld_shlibs=yes
8028
8029 # On some targets, GNU ld is compatible enough with the native linker
8030 # that we're better off using the native interface for both.
8031 lt_use_gnu_ld_interface=no
8032 if test "$with_gnu_ld" = yes; then
8033 case $host_os in
8034 aix*)
8035 # The AIX port of GNU ld has always aspired to compatibility
8036 # with the native linker. However, as the warning in the GNU ld
8037 # block says, versions before 2.19.5* couldn't really create working
8038 # shared libraries, regardless of the interface used.
8039 case `$LD -v 2>&1` in
8040 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8041 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8042 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8043 *)
8044 lt_use_gnu_ld_interface=yes
8045 ;;
8046 esac
8047 ;;
8048 *)
8049 lt_use_gnu_ld_interface=yes
8050 ;;
8051 esac
8052 fi
8053
8054 if test "$lt_use_gnu_ld_interface" = yes; then
8055 # If archive_cmds runs LD, not CC, wlarc should be empty
8056 wlarc='${wl}'
8057
8058 # Set some defaults for GNU ld with shared library support. These
8059 # are reset later if shared libraries are not supported. Putting them
8060 # here allows them to be overridden if necessary.
8061 runpath_var=LD_RUN_PATH
8062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8063 export_dynamic_flag_spec='${wl}--export-dynamic'
8064 # ancient GNU ld didn't support --whole-archive et. al.
8065 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8066 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8067 else
8068 whole_archive_flag_spec=
8069 fi
8070 supports_anon_versioning=no
8071 case `$LD -v 2>&1` in
8072 *GNU\ gold*) supports_anon_versioning=yes ;;
8073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076 *\ 2.11.*) ;; # other 2.11 versions
8077 *) supports_anon_versioning=yes ;;
8078 esac
8079
8080 # See if GNU ld supports shared libraries.
8081 case $host_os in
8082 aix[3-9]*)
8083 # On AIX/PPC, the GNU linker is very broken
8084 if test "$host_cpu" != ia64; then
8085 ld_shlibs=no
8086 cat <<_LT_EOF 1>&2
8087
8088 *** Warning: the GNU linker, at least up to release 2.19, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support. If you
8091 *** really care for shared libraries, you may want to install binutils
8092 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8093 *** You will then need to restart the configuration process.
8094
8095 _LT_EOF
8096 fi
8097 ;;
8098
8099 amigaos*)
8100 case $host_cpu in
8101 powerpc)
8102 # see comment about AmigaOS4 .so support
8103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104 archive_expsym_cmds=''
8105 ;;
8106 m68k)
8107 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)'
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_minus_L=yes
8110 ;;
8111 esac
8112 ;;
8113
8114 beos*)
8115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8116 allow_undefined_flag=unsupported
8117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8118 # support --undefined. This deserves some investigation. FIXME
8119 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120 else
8121 ld_shlibs=no
8122 fi
8123 ;;
8124
8125 cygwin* | mingw* | pw32* | cegcc*)
8126 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8127 # as there is no search path for DLLs.
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 export_dynamic_flag_spec='${wl}--export-all-symbols'
8130 allow_undefined_flag=unsupported
8131 always_export_symbols=no
8132 enable_shared_with_static_runtimes=yes
8133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8134
8135 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8137 # If the export-symbols file already is a .def file (1st line
8138 # is EXPORTS), use it as is; otherwise, prepend...
8139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8140 cp $export_symbols $output_objdir/$soname.def;
8141 else
8142 echo EXPORTS > $output_objdir/$soname.def;
8143 cat $export_symbols >> $output_objdir/$soname.def;
8144 fi~
8145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8146 else
8147 ld_shlibs=no
8148 fi
8149 ;;
8150
8151 haiku*)
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153 link_all_deplibs=yes
8154 ;;
8155
8156 interix[3-9]*)
8157 hardcode_direct=no
8158 hardcode_shlibpath_var=no
8159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8160 export_dynamic_flag_spec='${wl}-E'
8161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8162 # Instead, shared libraries are loaded at an image base (0x10000000 by
8163 # default) and relocated if they conflict, which is a slow very memory
8164 # consuming and fragmenting process. To avoid this, we pick a random,
8165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8168 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'
8169 ;;
8170
8171 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8172 tmp_diet=no
8173 if test "$host_os" = linux-dietlibc; then
8174 case $cc_basename in
8175 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8176 esac
8177 fi
8178 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8179 && test "$tmp_diet" = no
8180 then
8181 tmp_addflag=
8182 tmp_sharedflag='-shared'
8183 case $cc_basename,$host_cpu in
8184 pgcc*) # Portland Group C compiler
8185 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'
8186 tmp_addflag=' $pic_flag'
8187 ;;
8188 pgf77* | pgf90* | pgf95* | pgfortran*)
8189 # Portland Group f77 and f90 compilers
8190 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'
8191 tmp_addflag=' $pic_flag -Mnomain' ;;
8192 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8193 tmp_addflag=' -i_dynamic' ;;
8194 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8195 tmp_addflag=' -i_dynamic -nofor_main' ;;
8196 ifc* | ifort*) # Intel Fortran compiler
8197 tmp_addflag=' -nofor_main' ;;
8198 lf95*) # Lahey Fortran 8.1
8199 whole_archive_flag_spec=
8200 tmp_sharedflag='--shared' ;;
8201 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8202 tmp_sharedflag='-qmkshrobj'
8203 tmp_addflag= ;;
8204 nvcc*) # Cuda Compiler Driver 2.2
8205 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'
8206 compiler_needs_object=yes
8207 ;;
8208 esac
8209 case `$CC -V 2>&1 | sed 5q` in
8210 *Sun\ C*) # Sun C 5.9
8211 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'
8212 compiler_needs_object=yes
8213 tmp_sharedflag='-G' ;;
8214 *Sun\ F*) # Sun Fortran 8.3
8215 tmp_sharedflag='-G' ;;
8216 esac
8217 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218
8219 if test "x$supports_anon_versioning" = xyes; then
8220 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8222 echo "local: *; };" >> $output_objdir/$libname.ver~
8223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8224 fi
8225
8226 case $cc_basename in
8227 xlf* | bgf* | bgxlf* | mpixlf*)
8228 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8229 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8230 hardcode_libdir_flag_spec=
8231 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8232 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8233 if test "x$supports_anon_versioning" = xyes; then
8234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8236 echo "local: *; };" >> $output_objdir/$libname.ver~
8237 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8238 fi
8239 ;;
8240 esac
8241 else
8242 ld_shlibs=no
8243 fi
8244 ;;
8245
8246 netbsd*)
8247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8248 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8249 wlarc=
8250 else
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253 fi
8254 ;;
8255
8256 solaris*)
8257 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8258 ld_shlibs=no
8259 cat <<_LT_EOF 1>&2
8260
8261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8262 *** create shared libraries on Solaris systems. Therefore, libtool
8263 *** is disabling shared libraries support. We urge you to upgrade GNU
8264 *** binutils to release 2.9.1 or newer. Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8267
8268 _LT_EOF
8269 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 else
8273 ld_shlibs=no
8274 fi
8275 ;;
8276
8277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8278 case `$LD -v 2>&1` in
8279 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8280 ld_shlibs=no
8281 cat <<_LT_EOF 1>&2
8282
8283 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8284 *** reliably create shared libraries on SCO systems. Therefore, libtool
8285 *** is disabling shared libraries support. We urge you to upgrade GNU
8286 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8287 *** your PATH or compiler configuration so that the native linker is
8288 *** used, and then restart.
8289
8290 _LT_EOF
8291 ;;
8292 *)
8293 # For security reasons, it is highly recommended that you always
8294 # use absolute paths for naming shared libraries, and exclude the
8295 # DT_RUNPATH tag from executables and libraries. But doing so
8296 # requires that you compile everything twice, which is a pain.
8297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8301 else
8302 ld_shlibs=no
8303 fi
8304 ;;
8305 esac
8306 ;;
8307
8308 sunos4*)
8309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310 wlarc=
8311 hardcode_direct=yes
8312 hardcode_shlibpath_var=no
8313 ;;
8314
8315 *)
8316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 else
8320 ld_shlibs=no
8321 fi
8322 ;;
8323 esac
8324
8325 if test "$ld_shlibs" = no; then
8326 runpath_var=
8327 hardcode_libdir_flag_spec=
8328 export_dynamic_flag_spec=
8329 whole_archive_flag_spec=
8330 fi
8331 else
8332 # PORTME fill in a description of your system's linker (not GNU ld)
8333 case $host_os in
8334 aix3*)
8335 allow_undefined_flag=unsupported
8336 always_export_symbols=yes
8337 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'
8338 # Note: this linker hardcodes the directories in LIBPATH if there
8339 # are no directories specified by -L.
8340 hardcode_minus_L=yes
8341 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8342 # Neither direct hardcoding nor static linking is supported with a
8343 # broken collect2.
8344 hardcode_direct=unsupported
8345 fi
8346 ;;
8347
8348 aix[4-9]*)
8349 if test "$host_cpu" = ia64; then
8350 # On IA64, the linker does run time linking by default, so we don't
8351 # have to do anything special.
8352 aix_use_runtimelinking=no
8353 exp_sym_flag='-Bexport'
8354 no_entry_flag=""
8355 else
8356 # If we're using GNU nm, then we don't want the "-C" option.
8357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358 # Also, AIX nm treats weak defined symbols like other global
8359 # defined symbols, whereas GNU nm marks them as "W".
8360 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8361 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'
8362 else
8363 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8364 fi
8365 aix_use_runtimelinking=no
8366
8367 # Test if we are trying to use run time linking or normal
8368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8369 # need to do runtime linking.
8370 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8371 for ld_flag in $LDFLAGS; do
8372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8373 aix_use_runtimelinking=yes
8374 break
8375 fi
8376 done
8377 ;;
8378 esac
8379
8380 exp_sym_flag='-bexport'
8381 no_entry_flag='-bnoentry'
8382 fi
8383
8384 # When large executables or shared objects are built, AIX ld can
8385 # have problems creating the table of contents. If linking a library
8386 # or program results in "error TOC overflow" add -mminimal-toc to
8387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8389
8390 archive_cmds=''
8391 hardcode_direct=yes
8392 hardcode_direct_absolute=yes
8393 hardcode_libdir_separator=':'
8394 link_all_deplibs=yes
8395 file_list_spec='${wl}-f,'
8396
8397 if test "$GCC" = yes; then
8398 case $host_os in aix4.[012]|aix4.[012].*)
8399 # We only want to do this on AIX 4.2 and lower, the check
8400 # below for broken collect2 doesn't work under 4.3+
8401 collect2name=`${CC} -print-prog-name=collect2`
8402 if test -f "$collect2name" &&
8403 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8404 then
8405 # We have reworked collect2
8406 :
8407 else
8408 # We have old collect2
8409 hardcode_direct=unsupported
8410 # It fails to find uninstalled libraries when the uninstalled
8411 # path is not listed in the libpath. Setting hardcode_minus_L
8412 # to unsupported forces relinking
8413 hardcode_minus_L=yes
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_libdir_separator=
8416 fi
8417 ;;
8418 esac
8419 shared_flag='-shared'
8420 if test "$aix_use_runtimelinking" = yes; then
8421 shared_flag="$shared_flag "'${wl}-G'
8422 fi
8423 else
8424 # not using gcc
8425 if test "$host_cpu" = ia64; then
8426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8427 # chokes on -Wl,-G. The following line is correct:
8428 shared_flag='-G'
8429 else
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag='${wl}-G'
8432 else
8433 shared_flag='${wl}-bM:SRE'
8434 fi
8435 fi
8436 fi
8437
8438 export_dynamic_flag_spec='${wl}-bexpall'
8439 # It seems that -bexpall does not export symbols beginning with
8440 # underscore (_), so it is better to generate a list of symbols to export.
8441 always_export_symbols=yes
8442 if test "$aix_use_runtimelinking" = yes; then
8443 # Warning - without using the other runtime loading flags (-brtl),
8444 # -berok will link without error, but may produce a broken library.
8445 allow_undefined_flag='-berok'
8446 # Determine the default libpath from the value encoded in an
8447 # empty executable.
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450
8451 int
8452 main ()
8453 {
8454
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_link "$LINENO"; then :
8460
8461 lt_aix_libpath_sed='
8462 /Import File Strings/,/^$/ {
8463 /^0/ {
8464 s/^0 *\(.*\)$/\1/
8465 p
8466 }
8467 }'
8468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469 # Check for a 64-bit object if we didn't find anything.
8470 if test -z "$aix_libpath"; then
8471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8472 fi
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8477
8478 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8479 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"
8480 else
8481 if test "$host_cpu" = ia64; then
8482 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8483 allow_undefined_flag="-z nodefs"
8484 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"
8485 else
8486 # Determine the default libpath from the value encoded in an
8487 # empty executable.
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490
8491 int
8492 main ()
8493 {
8494
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"; then :
8500
8501 lt_aix_libpath_sed='
8502 /Import File Strings/,/^$/ {
8503 /^0/ {
8504 s/^0 *\(.*\)$/\1/
8505 p
8506 }
8507 }'
8508 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509 # Check for a 64-bit object if we didn't find anything.
8510 if test -z "$aix_libpath"; then
8511 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8512 fi
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8517
8518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8519 # Warning - without using the other run time loading flags,
8520 # -berok will link without error, but may produce a broken library.
8521 no_undefined_flag=' ${wl}-bernotok'
8522 allow_undefined_flag=' ${wl}-berok'
8523 if test "$with_gnu_ld" = yes; then
8524 # We only use this code for GNU lds that support --whole-archive.
8525 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8526 else
8527 # Exported symbols can be pulled into shared objects from archives
8528 whole_archive_flag_spec='$convenience'
8529 fi
8530 archive_cmds_need_lc=yes
8531 # This is similar to how AIX traditionally builds its shared libraries.
8532 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'
8533 fi
8534 fi
8535 ;;
8536
8537 amigaos*)
8538 case $host_cpu in
8539 powerpc)
8540 # see comment about AmigaOS4 .so support
8541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542 archive_expsym_cmds=''
8543 ;;
8544 m68k)
8545 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)'
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_minus_L=yes
8548 ;;
8549 esac
8550 ;;
8551
8552 bsdi[45]*)
8553 export_dynamic_flag_spec=-rdynamic
8554 ;;
8555
8556 cygwin* | mingw* | pw32* | cegcc*)
8557 # When not using gcc, we currently assume that we are using
8558 # Microsoft Visual C++.
8559 # hardcode_libdir_flag_spec is actually meaningless, as there is
8560 # no search path for DLLs.
8561 hardcode_libdir_flag_spec=' '
8562 allow_undefined_flag=unsupported
8563 # Tell ltmain to make .lib files, not .a files.
8564 libext=lib
8565 # Tell ltmain to make .dll files, not .so files.
8566 shrext_cmds=".dll"
8567 # FIXME: Setting linknames here is a bad hack.
8568 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8569 # The linker will automatically build a .lib file if we build a DLL.
8570 old_archive_from_new_cmds='true'
8571 # FIXME: Should let the user specify the lib program.
8572 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8573 fix_srcfile_path='`cygpath -w "$srcfile"`'
8574 enable_shared_with_static_runtimes=yes
8575 ;;
8576
8577 darwin* | rhapsody*)
8578
8579
8580 archive_cmds_need_lc=no
8581 hardcode_direct=no
8582 hardcode_automatic=yes
8583 hardcode_shlibpath_var=unsupported
8584 if test "$lt_cv_ld_force_load" = "yes"; then
8585 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\"`'
8586 else
8587 whole_archive_flag_spec=''
8588 fi
8589 link_all_deplibs=yes
8590 allow_undefined_flag="$_lt_dar_allow_undefined"
8591 case $cc_basename in
8592 ifort*) _lt_dar_can_shared=yes ;;
8593 *) _lt_dar_can_shared=$GCC ;;
8594 esac
8595 if test "$_lt_dar_can_shared" = "yes"; then
8596 output_verbose_link_cmd=func_echo_all
8597 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8598 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8599 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}"
8600 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}"
8601
8602 else
8603 ld_shlibs=no
8604 fi
8605
8606 ;;
8607
8608 dgux*)
8609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_shlibpath_var=no
8612 ;;
8613
8614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8615 # support. Future versions do this automatically, but an explicit c++rt0.o
8616 # does not break anything, and helps significantly (at the cost of a little
8617 # extra space).
8618 freebsd2.2*)
8619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8620 hardcode_libdir_flag_spec='-R$libdir'
8621 hardcode_direct=yes
8622 hardcode_shlibpath_var=no
8623 ;;
8624
8625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8626 freebsd2.*)
8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8628 hardcode_direct=yes
8629 hardcode_minus_L=yes
8630 hardcode_shlibpath_var=no
8631 ;;
8632
8633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8634 freebsd* | dragonfly*)
8635 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8636 hardcode_libdir_flag_spec='-R$libdir'
8637 hardcode_direct=yes
8638 hardcode_shlibpath_var=no
8639 ;;
8640
8641 hpux9*)
8642 if test "$GCC" = yes; then
8643 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'
8644 else
8645 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'
8646 fi
8647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8648 hardcode_libdir_separator=:
8649 hardcode_direct=yes
8650
8651 # hardcode_minus_L: Not really in the search PATH,
8652 # but as the default location of the library.
8653 hardcode_minus_L=yes
8654 export_dynamic_flag_spec='${wl}-E'
8655 ;;
8656
8657 hpux10*)
8658 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8660 else
8661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8662 fi
8663 if test "$with_gnu_ld" = no; then
8664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665 hardcode_libdir_flag_spec_ld='+b $libdir'
8666 hardcode_libdir_separator=:
8667 hardcode_direct=yes
8668 hardcode_direct_absolute=yes
8669 export_dynamic_flag_spec='${wl}-E'
8670 # hardcode_minus_L: Not really in the search PATH,
8671 # but as the default location of the library.
8672 hardcode_minus_L=yes
8673 fi
8674 ;;
8675
8676 hpux11*)
8677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8678 case $host_cpu in
8679 hppa*64*)
8680 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 ;;
8682 ia64*)
8683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8684 ;;
8685 *)
8686 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687 ;;
8688 esac
8689 else
8690 case $host_cpu in
8691 hppa*64*)
8692 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 ;;
8694 ia64*)
8695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8696 ;;
8697 *)
8698
8699 # Older versions of the 11.00 compiler do not understand -b yet
8700 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8702 $as_echo_n "checking if $CC understands -b... " >&6; }
8703 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 lt_cv_prog_compiler__b=no
8707 save_LDFLAGS="$LDFLAGS"
8708 LDFLAGS="$LDFLAGS -b"
8709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8711 # The linker can only warn and ignore the option if not recognized
8712 # So say no if there are warnings
8713 if test -s conftest.err; then
8714 # Append any errors to the config.log.
8715 cat conftest.err 1>&5
8716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718 if diff conftest.exp conftest.er2 >/dev/null; then
8719 lt_cv_prog_compiler__b=yes
8720 fi
8721 else
8722 lt_cv_prog_compiler__b=yes
8723 fi
8724 fi
8725 $RM -r conftest*
8726 LDFLAGS="$save_LDFLAGS"
8727
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8730 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8731
8732 if test x"$lt_cv_prog_compiler__b" = xyes; then
8733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 else
8735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736 fi
8737
8738 ;;
8739 esac
8740 fi
8741 if test "$with_gnu_ld" = no; then
8742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744
8745 case $host_cpu in
8746 hppa*64*|ia64*)
8747 hardcode_direct=no
8748 hardcode_shlibpath_var=no
8749 ;;
8750 *)
8751 hardcode_direct=yes
8752 hardcode_direct_absolute=yes
8753 export_dynamic_flag_spec='${wl}-E'
8754
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8758 ;;
8759 esac
8760 fi
8761 ;;
8762
8763 irix5* | irix6* | nonstopux*)
8764 if test "$GCC" = yes; then
8765 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'
8766 # Try to use the -exported_symbol ld option, if it does not
8767 # work, assume that -exports_file does not work either and
8768 # implicitly export all symbols.
8769 save_LDFLAGS="$LDFLAGS"
8770 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int foo(void) {}
8774 _ACEOF
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 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'
8777
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781 LDFLAGS="$save_LDFLAGS"
8782 else
8783 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'
8784 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'
8785 fi
8786 archive_cmds_need_lc='no'
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 hardcode_libdir_separator=:
8789 inherit_rpath=yes
8790 link_all_deplibs=yes
8791 ;;
8792
8793 netbsd*)
8794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8796 else
8797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8798 fi
8799 hardcode_libdir_flag_spec='-R$libdir'
8800 hardcode_direct=yes
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 newsos6)
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_direct=yes
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 hardcode_libdir_separator=:
8809 hardcode_shlibpath_var=no
8810 ;;
8811
8812 *nto* | *qnx*)
8813 ;;
8814
8815 openbsd*)
8816 if test -f /usr/libexec/ld.so; then
8817 hardcode_direct=yes
8818 hardcode_shlibpath_var=no
8819 hardcode_direct_absolute=yes
8820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824 export_dynamic_flag_spec='${wl}-E'
8825 else
8826 case $host_os in
8827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8829 hardcode_libdir_flag_spec='-R$libdir'
8830 ;;
8831 *)
8832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8834 ;;
8835 esac
8836 fi
8837 else
8838 ld_shlibs=no
8839 fi
8840 ;;
8841
8842 os2*)
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 allow_undefined_flag=unsupported
8846 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'
8847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8848 ;;
8849
8850 osf3*)
8851 if test "$GCC" = yes; then
8852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8853 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'
8854 else
8855 allow_undefined_flag=' -expect_unresolved \*'
8856 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'
8857 fi
8858 archive_cmds_need_lc='no'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 hardcode_libdir_separator=:
8861 ;;
8862
8863 osf4* | osf5*) # as osf3* with the addition of -msym flag
8864 if test "$GCC" = yes; then
8865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8866 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'
8867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868 else
8869 allow_undefined_flag=' -expect_unresolved \*'
8870 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'
8871 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~
8872 $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'
8873
8874 # Both c and cxx compiler support -rpath directly
8875 hardcode_libdir_flag_spec='-rpath $libdir'
8876 fi
8877 archive_cmds_need_lc='no'
8878 hardcode_libdir_separator=:
8879 ;;
8880
8881 solaris*)
8882 no_undefined_flag=' -z defs'
8883 if test "$GCC" = yes; then
8884 wlarc='${wl}'
8885 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8887 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8888 else
8889 case `$CC -V 2>&1` in
8890 *"Compilers 5.0"*)
8891 wlarc=''
8892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8895 ;;
8896 *)
8897 wlarc='${wl}'
8898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8901 ;;
8902 esac
8903 fi
8904 hardcode_libdir_flag_spec='-R$libdir'
8905 hardcode_shlibpath_var=no
8906 case $host_os in
8907 solaris2.[0-5] | solaris2.[0-5].*) ;;
8908 *)
8909 # The compiler driver will combine and reorder linker options,
8910 # but understands `-z linker_flag'. GCC discards it without `$wl',
8911 # but is careful enough not to reorder.
8912 # Supported since Solaris 2.6 (maybe 2.5.1?)
8913 if test "$GCC" = yes; then
8914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8915 else
8916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8917 fi
8918 ;;
8919 esac
8920 link_all_deplibs=yes
8921 ;;
8922
8923 sunos4*)
8924 if test "x$host_vendor" = xsequent; then
8925 # Use $CC to link under sequent, because it throws in some extra .o
8926 # files that make .init and .fini sections work.
8927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8928 else
8929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8930 fi
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_direct=yes
8933 hardcode_minus_L=yes
8934 hardcode_shlibpath_var=no
8935 ;;
8936
8937 sysv4)
8938 case $host_vendor in
8939 sni)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_direct=yes # is this really true???
8942 ;;
8943 siemens)
8944 ## LD is ld it makes a PLAMLIB
8945 ## CC just makes a GrossModule.
8946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8947 reload_cmds='$CC -r -o $output$reload_objs'
8948 hardcode_direct=no
8949 ;;
8950 motorola)
8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8953 ;;
8954 esac
8955 runpath_var='LD_RUN_PATH'
8956 hardcode_shlibpath_var=no
8957 ;;
8958
8959 sysv4.3*)
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_shlibpath_var=no
8962 export_dynamic_flag_spec='-Bexport'
8963 ;;
8964
8965 sysv4*MP*)
8966 if test -d /usr/nec; then
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_shlibpath_var=no
8969 runpath_var=LD_RUN_PATH
8970 hardcode_runpath_var=yes
8971 ld_shlibs=yes
8972 fi
8973 ;;
8974
8975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8976 no_undefined_flag='${wl}-z,text'
8977 archive_cmds_need_lc=no
8978 hardcode_shlibpath_var=no
8979 runpath_var='LD_RUN_PATH'
8980
8981 if test "$GCC" = yes; then
8982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 else
8985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 fi
8988 ;;
8989
8990 sysv5* | sco3.2v5* | sco5v6*)
8991 # Note: We can NOT use -z defs as we might desire, because we do not
8992 # link with -lc, and that would cause any symbols used from libc to
8993 # always be unresolved, which means just about no library would
8994 # ever link correctly. If we're not using GNU ld we use -z text
8995 # though, which does catch some bad symbols but isn't as heavy-handed
8996 # as -z defs.
8997 no_undefined_flag='${wl}-z,text'
8998 allow_undefined_flag='${wl}-z,nodefs'
8999 archive_cmds_need_lc=no
9000 hardcode_shlibpath_var=no
9001 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9002 hardcode_libdir_separator=':'
9003 link_all_deplibs=yes
9004 export_dynamic_flag_spec='${wl}-Bexport'
9005 runpath_var='LD_RUN_PATH'
9006
9007 if test "$GCC" = yes; then
9008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010 else
9011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 fi
9014 ;;
9015
9016 uts4*)
9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_libdir_flag_spec='-L$libdir'
9019 hardcode_shlibpath_var=no
9020 ;;
9021
9022 *)
9023 ld_shlibs=no
9024 ;;
9025 esac
9026
9027 if test x$host_vendor = xsni; then
9028 case $host in
9029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9030 export_dynamic_flag_spec='${wl}-Blargedynsym'
9031 ;;
9032 esac
9033 fi
9034 fi
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9037 $as_echo "$ld_shlibs" >&6; }
9038 test "$ld_shlibs" = no && can_build_shared=no
9039
9040 with_gnu_ld=$with_gnu_ld
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 #
9057 # Do we need to explicitly link libc?
9058 #
9059 case "x$archive_cmds_need_lc" in
9060 x|xyes)
9061 # Assume -lc should be added
9062 archive_cmds_need_lc=yes
9063
9064 if test "$enable_shared" = yes && test "$GCC" = yes; then
9065 case $archive_cmds in
9066 *'~'*)
9067 # FIXME: we may have to deal with multi-command sequences.
9068 ;;
9069 '$CC '*)
9070 # Test whether the compiler implicitly links with -lc since on some
9071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9072 # to ld, don't add -lc before -lgcc.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9075 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 $RM conftest*
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080
9081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9082 (eval $ac_compile) 2>&5
9083 ac_status=$?
9084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9085 test $ac_status = 0; } 2>conftest.err; then
9086 soname=conftest
9087 lib=conftest
9088 libobjs=conftest.$ac_objext
9089 deplibs=
9090 wl=$lt_prog_compiler_wl
9091 pic_flag=$lt_prog_compiler_pic
9092 compiler_flags=-v
9093 linker_flags=-v
9094 verstring=
9095 output_objdir=.
9096 libname=conftest
9097 lt_save_allow_undefined_flag=$allow_undefined_flag
9098 allow_undefined_flag=
9099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9101 ac_status=$?
9102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9103 test $ac_status = 0; }
9104 then
9105 lt_cv_archive_cmds_need_lc=no
9106 else
9107 lt_cv_archive_cmds_need_lc=yes
9108 fi
9109 allow_undefined_flag=$lt_save_allow_undefined_flag
9110 else
9111 cat conftest.err 1>&5
9112 fi
9113 $RM conftest*
9114
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9119 ;;
9120 esac
9121 fi
9122 ;;
9123 esac
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9282 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9283
9284 if test "$GCC" = yes; then
9285 case $host_os in
9286 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9287 *) lt_awk_arg="/^libraries:/" ;;
9288 esac
9289 case $host_os in
9290 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9291 *) lt_sed_strip_eq="s,=/,/,g" ;;
9292 esac
9293 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9294 case $lt_search_path_spec in
9295 *\;*)
9296 # if the path contains ";" then we assume it to be the separator
9297 # otherwise default to the standard path separator (i.e. ":") - it is
9298 # assumed that no part of a normal pathname contains ";" but that should
9299 # okay in the real world where ";" in dirpaths is itself problematic.
9300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9301 ;;
9302 *)
9303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9304 ;;
9305 esac
9306 # Ok, now we have the path, separated by spaces, we can step through it
9307 # and add multilib dir if necessary.
9308 lt_tmp_lt_search_path_spec=
9309 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9310 for lt_sys_path in $lt_search_path_spec; do
9311 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9313 else
9314 test -d "$lt_sys_path" && \
9315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9316 fi
9317 done
9318 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9319 BEGIN {RS=" "; FS="/|\n";} {
9320 lt_foo="";
9321 lt_count=0;
9322 for (lt_i = NF; lt_i > 0; lt_i--) {
9323 if ($lt_i != "" && $lt_i != ".") {
9324 if ($lt_i == "..") {
9325 lt_count++;
9326 } else {
9327 if (lt_count == 0) {
9328 lt_foo="/" $lt_i lt_foo;
9329 } else {
9330 lt_count--;
9331 }
9332 }
9333 }
9334 }
9335 if (lt_foo != "") { lt_freq[lt_foo]++; }
9336 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9337 }'`
9338 # AWK program above erroneously prepends '/' to C:/dos/paths
9339 # for these hosts.
9340 case $host_os in
9341 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9342 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9343 esac
9344 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9345 else
9346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9347 fi
9348 library_names_spec=
9349 libname_spec='lib$name'
9350 soname_spec=
9351 shrext_cmds=".so"
9352 postinstall_cmds=
9353 postuninstall_cmds=
9354 finish_cmds=
9355 finish_eval=
9356 shlibpath_var=
9357 shlibpath_overrides_runpath=unknown
9358 version_type=none
9359 dynamic_linker="$host_os ld.so"
9360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9361 need_lib_prefix=unknown
9362 hardcode_into_libs=no
9363
9364 # when you set need_version to no, make sure it does not cause -set_version
9365 # flags to be left without arguments
9366 need_version=unknown
9367
9368 case $host_os in
9369 aix3*)
9370 version_type=linux
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9372 shlibpath_var=LIBPATH
9373
9374 # AIX 3 has no versioning support, so we append a major version to the name.
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 ;;
9377
9378 aix[4-9]*)
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
9382 hardcode_into_libs=yes
9383 if test "$host_cpu" = ia64; then
9384 # AIX 5 supports IA64
9385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 else
9388 # With GCC up to 2.95.x, collect2 would create an import file
9389 # for dependence libraries. The import file would start with
9390 # the line `#! .'. This would cause the generated library to
9391 # depend on `.', always an invalid library. This was fixed in
9392 # development snapshots of GCC prior to 3.0.
9393 case $host_os in
9394 aix4 | aix4.[01] | aix4.[01].*)
9395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9396 echo ' yes '
9397 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9398 :
9399 else
9400 can_build_shared=no
9401 fi
9402 ;;
9403 esac
9404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9405 # soname into executable. Probably we can add versioning support to
9406 # collect2, so additional links can be useful in future.
9407 if test "$aix_use_runtimelinking" = yes; then
9408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9409 # instead of lib<name>.a to let people know that these are not
9410 # typical AIX shared libraries.
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 else
9413 # We preserve .a as extension for shared libraries through AIX4.2
9414 # and later when we are not doing run time linking.
9415 library_names_spec='${libname}${release}.a $libname.a'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 fi
9418 shlibpath_var=LIBPATH
9419 fi
9420 ;;
9421
9422 amigaos*)
9423 case $host_cpu in
9424 powerpc)
9425 # Since July 2007 AmigaOS4 officially supports .so libraries.
9426 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 ;;
9429 m68k)
9430 library_names_spec='$libname.ixlibrary $libname.a'
9431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9432 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'
9433 ;;
9434 esac
9435 ;;
9436
9437 beos*)
9438 library_names_spec='${libname}${shared_ext}'
9439 dynamic_linker="$host_os ld.so"
9440 shlibpath_var=LIBRARY_PATH
9441 ;;
9442
9443 bsdi[45]*)
9444 version_type=linux
9445 need_version=no
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9449 shlibpath_var=LD_LIBRARY_PATH
9450 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9451 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9452 # the default ld.so.conf also contains /usr/contrib/lib and
9453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9454 # libtool to hard-code these into programs
9455 ;;
9456
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 version_type=windows
9459 shrext_cmds=".dll"
9460 need_version=no
9461 need_lib_prefix=no
9462
9463 case $GCC,$host_os in
9464 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9465 library_names_spec='$libname.dll.a'
9466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9467 postinstall_cmds='base_file=`basename \${file}`~
9468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9469 dldir=$destdir/`dirname \$dlpath`~
9470 test -d \$dldir || mkdir -p \$dldir~
9471 $install_prog $dir/$dlname \$dldir/$dlname~
9472 chmod a+x \$dldir/$dlname~
9473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9475 fi'
9476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9477 dlpath=$dir/\$dldll~
9478 $RM \$dlpath'
9479 shlibpath_overrides_runpath=yes
9480
9481 case $host_os in
9482 cygwin*)
9483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485
9486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9487 ;;
9488 mingw* | cegcc*)
9489 # MinGW DLLs use traditional 'lib' prefix
9490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 ;;
9492 pw32*)
9493 # pw32 DLLs use 'pw' prefix rather than 'lib'
9494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9495 ;;
9496 esac
9497 ;;
9498
9499 *)
9500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9501 ;;
9502 esac
9503 dynamic_linker='Win32 ld.exe'
9504 # FIXME: first we should search . and the directory the executable is in
9505 shlibpath_var=PATH
9506 ;;
9507
9508 darwin* | rhapsody*)
9509 dynamic_linker="$host_os dyld"
9510 version_type=darwin
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9514 soname_spec='${libname}${release}${major}$shared_ext'
9515 shlibpath_overrides_runpath=yes
9516 shlibpath_var=DYLD_LIBRARY_PATH
9517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9518
9519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9521 ;;
9522
9523 dgux*)
9524 version_type=linux
9525 need_lib_prefix=no
9526 need_version=no
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 ;;
9531
9532 freebsd* | dragonfly*)
9533 # DragonFly does not have aout. When/if they implement a new
9534 # versioning mechanism, adjust this.
9535 if test -x /usr/bin/objformat; then
9536 objformat=`/usr/bin/objformat`
9537 else
9538 case $host_os in
9539 freebsd[23].*) objformat=aout ;;
9540 *) objformat=elf ;;
9541 esac
9542 fi
9543 version_type=freebsd-$objformat
9544 case $version_type in
9545 freebsd-elf*)
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9547 need_version=no
9548 need_lib_prefix=no
9549 ;;
9550 freebsd-*)
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9552 need_version=yes
9553 ;;
9554 esac
9555 shlibpath_var=LD_LIBRARY_PATH
9556 case $host_os in
9557 freebsd2.*)
9558 shlibpath_overrides_runpath=yes
9559 ;;
9560 freebsd3.[01]* | freebsdelf3.[01]*)
9561 shlibpath_overrides_runpath=yes
9562 hardcode_into_libs=yes
9563 ;;
9564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9568 ;;
9569 *) # from 4.6 on, and DragonFly
9570 shlibpath_overrides_runpath=yes
9571 hardcode_into_libs=yes
9572 ;;
9573 esac
9574 ;;
9575
9576 gnu*)
9577 version_type=linux
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 hardcode_into_libs=yes
9584 ;;
9585
9586 haiku*)
9587 version_type=linux
9588 need_lib_prefix=no
9589 need_version=no
9590 dynamic_linker="$host_os runtime_loader"
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9596 hardcode_into_libs=yes
9597 ;;
9598
9599 hpux9* | hpux10* | hpux11*)
9600 # Give a soname corresponding to the major version so that dld.sl refuses to
9601 # link against other versions.
9602 version_type=sunos
9603 need_lib_prefix=no
9604 need_version=no
9605 case $host_cpu in
9606 ia64*)
9607 shrext_cmds='.so'
9608 hardcode_into_libs=yes
9609 dynamic_linker="$host_os dld.so"
9610 shlibpath_var=LD_LIBRARY_PATH
9611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 if test "X$HPUX_IA64_MODE" = X32; then
9615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9616 else
9617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9618 fi
9619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9620 ;;
9621 hppa*64*)
9622 shrext_cmds='.sl'
9623 hardcode_into_libs=yes
9624 dynamic_linker="$host_os dld.sl"
9625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9631 ;;
9632 *)
9633 shrext_cmds='.sl'
9634 dynamic_linker="$host_os dld.sl"
9635 shlibpath_var=SHLIB_PATH
9636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 ;;
9640 esac
9641 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9642 postinstall_cmds='chmod 555 $lib'
9643 # or fails outright, so override atomically:
9644 install_override_mode=555
9645 ;;
9646
9647 interix[3-9]*)
9648 version_type=linux
9649 need_lib_prefix=no
9650 need_version=no
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=no
9656 hardcode_into_libs=yes
9657 ;;
9658
9659 irix5* | irix6* | nonstopux*)
9660 case $host_os in
9661 nonstopux*) version_type=nonstopux ;;
9662 *)
9663 if test "$lt_cv_prog_gnu_ld" = yes; then
9664 version_type=linux
9665 else
9666 version_type=irix
9667 fi ;;
9668 esac
9669 need_lib_prefix=no
9670 need_version=no
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9673 case $host_os in
9674 irix5* | nonstopux*)
9675 libsuff= shlibsuff=
9676 ;;
9677 *)
9678 case $LD in # libtool.m4 will add one of these switches to LD
9679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680 libsuff= shlibsuff= libmagic=32-bit;;
9681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682 libsuff=32 shlibsuff=N32 libmagic=N32;;
9683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685 *) libsuff= shlibsuff= libmagic=never-match;;
9686 esac
9687 ;;
9688 esac
9689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693 hardcode_into_libs=yes
9694 ;;
9695
9696 # No shared lib support for Linux oldld, aout, or coff.
9697 linux*oldld* | linux*aout* | linux*coff*)
9698 dynamic_linker=no
9699 ;;
9700
9701 # This must be Linux ELF.
9702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9711
9712 # Some binutils ld are patched to set DT_RUNPATH
9713 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 lt_cv_shlibpath_overrides_runpath=no
9717 save_LDFLAGS=$LDFLAGS
9718 save_libdir=$libdir
9719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723
9724 int
9725 main ()
9726 {
9727
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9734 lt_cv_shlibpath_overrides_runpath=yes
9735 fi
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LDFLAGS=$save_LDFLAGS
9740 libdir=$save_libdir
9741
9742 fi
9743
9744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9745
9746 # This implies no fast_install, which is unacceptable.
9747 # Some rework will be needed to allow for fast_install
9748 # before this can be enabled.
9749 hardcode_into_libs=yes
9750
9751 # Append ld.so.conf contents to the search path
9752 if test -f /etc/ld.so.conf; then
9753 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' ' '`
9754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9755 fi
9756
9757 # We used to test for /lib/ld.so.1 and disable shared libraries on
9758 # powerpc, because MkLinux only supported shared libraries with the
9759 # GNU dynamic linker. Since this was broken with cross compilers,
9760 # most powerpc-linux boxes support dynamic linking these days and
9761 # people can always --disable-shared, the test was removed, and we
9762 # assume the GNU/Linux dynamic linker is in use.
9763 dynamic_linker='GNU/Linux ld.so'
9764 ;;
9765
9766 netbsd*)
9767 version_type=sunos
9768 need_lib_prefix=no
9769 need_version=no
9770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9773 dynamic_linker='NetBSD (a.out) ld.so'
9774 else
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 dynamic_linker='NetBSD ld.elf_so'
9778 fi
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 hardcode_into_libs=yes
9782 ;;
9783
9784 newsos6)
9785 version_type=linux
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=yes
9789 ;;
9790
9791 *nto* | *qnx*)
9792 version_type=qnx
9793 need_lib_prefix=no
9794 need_version=no
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 hardcode_into_libs=yes
9800 dynamic_linker='ldqnx.so'
9801 ;;
9802
9803 openbsd*)
9804 version_type=sunos
9805 sys_lib_dlsearch_path_spec="/usr/lib"
9806 need_lib_prefix=no
9807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9808 case $host_os in
9809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9810 *) need_version=no ;;
9811 esac
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9816 case $host_os in
9817 openbsd2.[89] | openbsd2.[89].*)
9818 shlibpath_overrides_runpath=no
9819 ;;
9820 *)
9821 shlibpath_overrides_runpath=yes
9822 ;;
9823 esac
9824 else
9825 shlibpath_overrides_runpath=yes
9826 fi
9827 ;;
9828
9829 os2*)
9830 libname_spec='$name'
9831 shrext_cmds=".dll"
9832 need_lib_prefix=no
9833 library_names_spec='$libname${shared_ext} $libname.a'
9834 dynamic_linker='OS/2 ld.exe'
9835 shlibpath_var=LIBPATH
9836 ;;
9837
9838 osf3* | osf4* | osf5*)
9839 version_type=osf
9840 need_lib_prefix=no
9841 need_version=no
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9847 ;;
9848
9849 rdos*)
9850 dynamic_linker=no
9851 ;;
9852
9853 solaris*)
9854 version_type=linux
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 shlibpath_overrides_runpath=yes
9861 hardcode_into_libs=yes
9862 # ldd complains unless libraries are executable
9863 postinstall_cmds='chmod +x $lib'
9864 ;;
9865
9866 sunos4*)
9867 version_type=sunos
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes
9872 if test "$with_gnu_ld" = yes; then
9873 need_lib_prefix=no
9874 fi
9875 need_version=yes
9876 ;;
9877
9878 sysv4 | sysv4.3*)
9879 version_type=linux
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 case $host_vendor in
9884 sni)
9885 shlibpath_overrides_runpath=no
9886 need_lib_prefix=no
9887 runpath_var=LD_RUN_PATH
9888 ;;
9889 siemens)
9890 need_lib_prefix=no
9891 ;;
9892 motorola)
9893 need_lib_prefix=no
9894 need_version=no
9895 shlibpath_overrides_runpath=no
9896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9897 ;;
9898 esac
9899 ;;
9900
9901 sysv4*MP*)
9902 if test -d /usr/nec ;then
9903 version_type=linux
9904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9905 soname_spec='$libname${shared_ext}.$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 fi
9908 ;;
9909
9910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9911 version_type=freebsd-elf
9912 need_lib_prefix=no
9913 need_version=no
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 hardcode_into_libs=yes
9919 if test "$with_gnu_ld" = yes; then
9920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9921 else
9922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9923 case $host_os in
9924 sco3.2v5*)
9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9926 ;;
9927 esac
9928 fi
9929 sys_lib_dlsearch_path_spec='/usr/lib'
9930 ;;
9931
9932 tpf*)
9933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9934 version_type=linux
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9941 ;;
9942
9943 uts4*)
9944 version_type=linux
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 ;;
9949
9950 *)
9951 dynamic_linker=no
9952 ;;
9953 esac
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9955 $as_echo "$dynamic_linker" >&6; }
9956 test "$dynamic_linker" = no && can_build_shared=no
9957
9958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9959 if test "$GCC" = yes; then
9960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9961 fi
9962
9963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9965 fi
9966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9968 fi
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
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10063 hardcode_action=
10064 if test -n "$hardcode_libdir_flag_spec" ||
10065 test -n "$runpath_var" ||
10066 test "X$hardcode_automatic" = "Xyes" ; then
10067
10068 # We can hardcode non-existent directories.
10069 if test "$hardcode_direct" != no &&
10070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10071 # have to relink, otherwise we might link with an installed library
10072 # when we should be linking with a yet-to-be-installed one
10073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10074 test "$hardcode_minus_L" != no; then
10075 # Linking always hardcodes the temporary library directory.
10076 hardcode_action=relink
10077 else
10078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10079 hardcode_action=immediate
10080 fi
10081 else
10082 # We cannot hardcode anything, or else we can only hardcode existing
10083 # directories.
10084 hardcode_action=unsupported
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10087 $as_echo "$hardcode_action" >&6; }
10088
10089 if test "$hardcode_action" = relink ||
10090 test "$inherit_rpath" = yes; then
10091 # Fast installation is not supported
10092 enable_fast_install=no
10093 elif test "$shlibpath_overrides_runpath" = yes ||
10094 test "$enable_shared" = no; then
10095 # Fast installation is not necessary
10096 enable_fast_install=needless
10097 fi
10098
10099
10100
10101
10102
10103
10104 if test "x$enable_dlopen" != xyes; then
10105 enable_dlopen=unknown
10106 enable_dlopen_self=unknown
10107 enable_dlopen_self_static=unknown
10108 else
10109 lt_cv_dlopen=no
10110 lt_cv_dlopen_libs=
10111
10112 case $host_os in
10113 beos*)
10114 lt_cv_dlopen="load_add_on"
10115 lt_cv_dlopen_libs=
10116 lt_cv_dlopen_self=yes
10117 ;;
10118
10119 mingw* | pw32* | cegcc*)
10120 lt_cv_dlopen="LoadLibrary"
10121 lt_cv_dlopen_libs=
10122 ;;
10123
10124 cygwin*)
10125 lt_cv_dlopen="dlopen"
10126 lt_cv_dlopen_libs=
10127 ;;
10128
10129 darwin*)
10130 # if libdl is installed we need to link against it
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldl $LIBS"
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char dlopen ();
10148 int
10149 main ()
10150 {
10151 return dlopen ();
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10157 ac_cv_lib_dl_dlopen=yes
10158 else
10159 ac_cv_lib_dl_dlopen=no
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10166 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10167 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10169 else
10170
10171 lt_cv_dlopen="dyld"
10172 lt_cv_dlopen_libs=
10173 lt_cv_dlopen_self=yes
10174
10175 fi
10176
10177 ;;
10178
10179 *)
10180 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10181 if test "x$ac_cv_func_shl_load" = x""yes; then :
10182 lt_cv_dlopen="shl_load"
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10185 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10186 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-ldld $LIBS"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char shl_load ();
10201 int
10202 main ()
10203 {
10204 return shl_load ();
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 ac_cv_lib_dld_shl_load=yes
10211 else
10212 ac_cv_lib_dld_shl_load=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10219 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10220 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10221 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10222 else
10223 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10224 if test "x$ac_cv_func_dlopen" = x""yes; then :
10225 lt_cv_dlopen="dlopen"
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-ldl $LIBS"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char dlopen ();
10244 int
10245 main ()
10246 {
10247 return dlopen ();
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 ac_cv_lib_dl_dlopen=yes
10254 else
10255 ac_cv_lib_dl_dlopen=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10267 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-lsvld $LIBS"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char dlopen ();
10283 int
10284 main ()
10285 {
10286 return dlopen ();
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10292 ac_cv_lib_svld_dlopen=yes
10293 else
10294 ac_cv_lib_svld_dlopen=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext \
10297 conftest$ac_exeext conftest.$ac_ext
10298 LIBS=$ac_check_lib_save_LIBS
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10301 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10302 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10306 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10307 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 ac_check_lib_save_LIBS=$LIBS
10311 LIBS="-ldld $LIBS"
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char dld_link ();
10322 int
10323 main ()
10324 {
10325 return dld_link ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 ac_cv_lib_dld_dld_link=yes
10332 else
10333 ac_cv_lib_dld_dld_link=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10340 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10341 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10343 fi
10344
10345
10346 fi
10347
10348
10349 fi
10350
10351
10352 fi
10353
10354
10355 fi
10356
10357
10358 fi
10359
10360 ;;
10361 esac
10362
10363 if test "x$lt_cv_dlopen" != xno; then
10364 enable_dlopen=yes
10365 else
10366 enable_dlopen=no
10367 fi
10368
10369 case $lt_cv_dlopen in
10370 dlopen)
10371 save_CPPFLAGS="$CPPFLAGS"
10372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10373
10374 save_LDFLAGS="$LDFLAGS"
10375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10376
10377 save_LIBS="$LIBS"
10378 LIBS="$lt_cv_dlopen_libs $LIBS"
10379
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10381 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10382 if test "${lt_cv_dlopen_self+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test "$cross_compiling" = yes; then :
10386 lt_cv_dlopen_self=cross
10387 else
10388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389 lt_status=$lt_dlunknown
10390 cat > conftest.$ac_ext <<_LT_EOF
10391 #line 10391 "configure"
10392 #include "confdefs.h"
10393
10394 #if HAVE_DLFCN_H
10395 #include <dlfcn.h>
10396 #endif
10397
10398 #include <stdio.h>
10399
10400 #ifdef RTLD_GLOBAL
10401 # define LT_DLGLOBAL RTLD_GLOBAL
10402 #else
10403 # ifdef DL_GLOBAL
10404 # define LT_DLGLOBAL DL_GLOBAL
10405 # else
10406 # define LT_DLGLOBAL 0
10407 # endif
10408 #endif
10409
10410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411 find out it does not work in some platform. */
10412 #ifndef LT_DLLAZY_OR_NOW
10413 # ifdef RTLD_LAZY
10414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10415 # else
10416 # ifdef DL_LAZY
10417 # define LT_DLLAZY_OR_NOW DL_LAZY
10418 # else
10419 # ifdef RTLD_NOW
10420 # define LT_DLLAZY_OR_NOW RTLD_NOW
10421 # else
10422 # ifdef DL_NOW
10423 # define LT_DLLAZY_OR_NOW DL_NOW
10424 # else
10425 # define LT_DLLAZY_OR_NOW 0
10426 # endif
10427 # endif
10428 # endif
10429 # endif
10430 #endif
10431
10432 /* When -fvisbility=hidden is used, assume the code has been annotated
10433 correspondingly for the symbols needed. */
10434 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10435 void fnord () __attribute__((visibility("default")));
10436 #endif
10437
10438 void fnord () { int i=42; }
10439 int main ()
10440 {
10441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442 int status = $lt_dlunknown;
10443
10444 if (self)
10445 {
10446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10447 else
10448 {
10449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10450 else puts (dlerror ());
10451 }
10452 /* dlclose (self); */
10453 }
10454 else
10455 puts (dlerror ());
10456
10457 return status;
10458 }
10459 _LT_EOF
10460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10461 (eval $ac_link) 2>&5
10462 ac_status=$?
10463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10464 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10465 (./conftest; exit; ) >&5 2>/dev/null
10466 lt_status=$?
10467 case x$lt_status in
10468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10471 esac
10472 else :
10473 # compilation failed
10474 lt_cv_dlopen_self=no
10475 fi
10476 fi
10477 rm -fr conftest*
10478
10479
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10482 $as_echo "$lt_cv_dlopen_self" >&6; }
10483
10484 if test "x$lt_cv_dlopen_self" = xyes; then
10485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10487 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10488 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 if test "$cross_compiling" = yes; then :
10492 lt_cv_dlopen_self_static=cross
10493 else
10494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10495 lt_status=$lt_dlunknown
10496 cat > conftest.$ac_ext <<_LT_EOF
10497 #line 10497 "configure"
10498 #include "confdefs.h"
10499
10500 #if HAVE_DLFCN_H
10501 #include <dlfcn.h>
10502 #endif
10503
10504 #include <stdio.h>
10505
10506 #ifdef RTLD_GLOBAL
10507 # define LT_DLGLOBAL RTLD_GLOBAL
10508 #else
10509 # ifdef DL_GLOBAL
10510 # define LT_DLGLOBAL DL_GLOBAL
10511 # else
10512 # define LT_DLGLOBAL 0
10513 # endif
10514 #endif
10515
10516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10517 find out it does not work in some platform. */
10518 #ifndef LT_DLLAZY_OR_NOW
10519 # ifdef RTLD_LAZY
10520 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10521 # else
10522 # ifdef DL_LAZY
10523 # define LT_DLLAZY_OR_NOW DL_LAZY
10524 # else
10525 # ifdef RTLD_NOW
10526 # define LT_DLLAZY_OR_NOW RTLD_NOW
10527 # else
10528 # ifdef DL_NOW
10529 # define LT_DLLAZY_OR_NOW DL_NOW
10530 # else
10531 # define LT_DLLAZY_OR_NOW 0
10532 # endif
10533 # endif
10534 # endif
10535 # endif
10536 #endif
10537
10538 /* When -fvisbility=hidden is used, assume the code has been annotated
10539 correspondingly for the symbols needed. */
10540 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10541 void fnord () __attribute__((visibility("default")));
10542 #endif
10543
10544 void fnord () { int i=42; }
10545 int main ()
10546 {
10547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10548 int status = $lt_dlunknown;
10549
10550 if (self)
10551 {
10552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10553 else
10554 {
10555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556 else puts (dlerror ());
10557 }
10558 /* dlclose (self); */
10559 }
10560 else
10561 puts (dlerror ());
10562
10563 return status;
10564 }
10565 _LT_EOF
10566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10567 (eval $ac_link) 2>&5
10568 ac_status=$?
10569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10571 (./conftest; exit; ) >&5 2>/dev/null
10572 lt_status=$?
10573 case x$lt_status in
10574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10577 esac
10578 else :
10579 # compilation failed
10580 lt_cv_dlopen_self_static=no
10581 fi
10582 fi
10583 rm -fr conftest*
10584
10585
10586 fi
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10588 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10589 fi
10590
10591 CPPFLAGS="$save_CPPFLAGS"
10592 LDFLAGS="$save_LDFLAGS"
10593 LIBS="$save_LIBS"
10594 ;;
10595 esac
10596
10597 case $lt_cv_dlopen_self in
10598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10599 *) enable_dlopen_self=unknown ;;
10600 esac
10601
10602 case $lt_cv_dlopen_self_static in
10603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10604 *) enable_dlopen_self_static=unknown ;;
10605 esac
10606 fi
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624 striplib=
10625 old_striplib=
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10627 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10628 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; }
10633 else
10634 # FIXME - insert some real tests, host_os isn't really good enough
10635 case $host_os in
10636 darwin*)
10637 if test -n "$STRIP" ; then
10638 striplib="$STRIP -x"
10639 old_striplib="$STRIP -S"
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10645 fi
10646 ;;
10647 *)
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 ;;
10651 esac
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665 # Report which library types will actually be built
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10667 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10669 $as_echo "$can_build_shared" >&6; }
10670
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10672 $as_echo_n "checking whether to build shared libraries... " >&6; }
10673 test "$can_build_shared" = "no" && enable_shared=no
10674
10675 # On AIX, shared libraries and static libraries use the same namespace, and
10676 # are all built from PIC.
10677 case $host_os in
10678 aix3*)
10679 test "$enable_shared" = yes && enable_static=no
10680 if test -n "$RANLIB"; then
10681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10682 postinstall_cmds='$RANLIB $lib'
10683 fi
10684 ;;
10685
10686 aix[4-9]*)
10687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10688 test "$enable_shared" = yes && enable_static=no
10689 fi
10690 ;;
10691 esac
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10693 $as_echo "$enable_shared" >&6; }
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10696 $as_echo_n "checking whether to build static libraries... " >&6; }
10697 # Make sure either enable_shared or enable_static is yes.
10698 test "$enable_shared" = yes || enable_static=yes
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10700 $as_echo "$enable_static" >&6; }
10701
10702
10703
10704
10705 fi
10706 ac_ext=c
10707 ac_cpp='$CPP $CPPFLAGS'
10708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10711
10712 CC="$lt_save_CC"
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 ac_config_commands="$ac_config_commands libtool"
10727
10728
10729
10730
10731 # Only expand once:
10732
10733
10734
10735
10736 backtrace_supported=yes
10737
10738 if test -n "${with_target_subdir}"; then
10739 # We are compiling a GCC library. We can assume that the unwind
10740 # library exists.
10741 # Default to --enable-multilib
10742 # Check whether --enable-multilib was given.
10743 if test "${enable_multilib+set}" = set; then :
10744 enableval=$enable_multilib; case "$enableval" in
10745 yes) multilib=yes ;;
10746 no) multilib=no ;;
10747 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10748 esac
10749 else
10750 multilib=yes
10751 fi
10752
10753
10754 # We may get other options which we leave undocumented:
10755 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10756 # See config-ml.in if you want the gory details.
10757
10758 if test "$srcdir" = "."; then
10759 if test "$with_target_subdir" != "."; then
10760 multi_basedir="$srcdir/$with_multisrctop../.."
10761 else
10762 multi_basedir="$srcdir/$with_multisrctop.."
10763 fi
10764 else
10765 multi_basedir="$srcdir/.."
10766 fi
10767
10768
10769 # Even if the default multilib is not a cross compilation,
10770 # it may be that some of the other multilibs are.
10771 if test $cross_compiling = no && test $multilib = yes \
10772 && test "x${with_multisubdir}" != x ; then
10773 cross_compiling=maybe
10774 fi
10775
10776 ac_config_commands="$ac_config_commands default-1"
10777
10778 BACKTRACE_FILE="backtrace.lo simple.lo"
10779 else
10780 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_unwind_h" = x""yes; then :
10782 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
10783 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
10784 BACKTRACE_FILE="backtrace.lo simple.lo"
10785 else
10786 BACKTRACE_FILE="nounwind.lo"
10787 backtrace_supported=no
10788 fi
10789
10790 else
10791 BACKTRACE_FILE="nounwind.lo"
10792 backtrace_supported=no
10793 fi
10794
10795
10796 fi
10797
10798
10799 WARN_FLAGS=
10800 save_CFLAGS="$CFLAGS"
10801 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
10802 -Wmissing-prototypes -Wold-style-definition \
10803 -Wmissing-format-attribute -Wcast-qual; do
10804 # Do the check with the no- prefix removed since gcc silently
10805 # accepts any -Wno-* option on purpose
10806 case $real_option in
10807 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
10808 *) option=$real_option ;;
10809 esac
10810 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
10811
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
10813 $as_echo_n "checking whether $CC supports $option... " >&6; }
10814 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 CFLAGS="$option"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820
10821 int
10822 main ()
10823 {
10824
10825 ;
10826 return 0;
10827 }
10828 _ACEOF
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830 eval "$as_acx_Woption=yes"
10831 else
10832 eval "$as_acx_Woption=no"
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835
10836 fi
10837 eval ac_res=\$$as_acx_Woption
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10839 $as_echo "$ac_res" >&6; }
10840 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
10841 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
10842 fi
10843 done
10844 CFLAGS="$save_CFLAGS"
10845
10846
10847 if test "x$GCC" = "xyes"; then
10848 WARN_FLAGS="$WARN_FLAGS -Werror"
10849 fi
10850
10851
10852
10853
10854
10855 # Check whether --with-system-libunwind was given.
10856 if test "${with_system_libunwind+set}" = set; then :
10857 withval=$with_system_libunwind;
10858 fi
10859
10860 # If system-libunwind was not specifically set, pick a default setting.
10861 if test x$with_system_libunwind = x; then
10862 case ${target} in
10863 ia64-*-hpux*) with_system_libunwind=yes ;;
10864 *) with_system_libunwind=no ;;
10865 esac
10866 fi
10867 # Based on system-libunwind and target, do we have ipinfo?
10868 if test x$with_system_libunwind = xyes; then
10869 case ${target} in
10870 ia64-*-*) have_unwind_getipinfo=no ;;
10871 *) have_unwind_getipinfo=yes ;;
10872 esac
10873 else
10874 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10875
10876 case ${target} in
10877 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10878 *) have_unwind_getipinfo=yes ;;
10879 esac
10880
10881 fi
10882
10883 if test x$have_unwind_getipinfo = xyes; then
10884
10885 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10886
10887 fi
10888
10889
10890 # When building as a target library, shared libraries may want to link
10891 # this in. We don't want to provide another shared library to
10892 # complicate dependencies. Instead, we just compile with -fPIC.
10893 PIC_FLAG=
10894 if test -n "${with_target_subdir}"; then
10895 PIC_FLAG=-fPIC
10896 fi
10897
10898
10899 # Test for __sync support.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
10901 $as_echo_n "checking __sync extensions... " >&6; }
10902 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 if test -n "${with_target_subdir}"; then
10906 libbacktrace_cv_sys_sync=yes
10907 else
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910 int i;
10911 int
10912 main ()
10913 {
10914 __sync_bool_compare_and_swap (&i, i, i);
10915 __sync_lock_test_and_set (&i, 1);
10916 __sync_lock_release (&i);
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"; then :
10922 libbacktrace_cv_sys_sync=yes
10923 else
10924 libbacktrace_cv_sys_sync=no
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 fi
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
10931 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
10932 BACKTRACE_SUPPORTS_THREADS=0
10933 if test "$libbacktrace_cv_sys_sync" = "yes"; then
10934 BACKTRACE_SUPPORTS_THREADS=1
10935
10936 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
10937
10938 fi
10939
10940
10941 # The library needs to be able to read the executable itself. Compile
10942 # a file to determine the executable format. The awk script
10943 # filetype.awk prints out the file type.
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
10945 $as_echo_n "checking output filetype... " >&6; }
10946 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 filetype=
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 int i;
10953 int
10954 main ()
10955 {
10956 int j;
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 if ac_fn_c_try_compile "$LINENO"; then :
10962 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
10963 else
10964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10966 as_fn_error "compiler failed
10967 See \`config.log' for more details." "$LINENO" 5; }
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 libbacktrace_cv_sys_filetype=$filetype
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
10973 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
10974
10975 # Match the file type to decide what files to compile.
10976 FORMAT_FILE=
10977 case "$libbacktrace_cv_sys_filetype" in
10978 elf*) FORMAT_FILE="elf.lo" ;;
10979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
10980 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
10981 FORMAT_FILE="unknown.lo"
10982 backtrace_supported=no
10983 ;;
10984 esac
10985
10986
10987 # ELF defines.
10988 elfsize=
10989 case "$libbacktrace_cv_sys_filetype" in
10990 elf32) elfsize=32 ;;
10991 elf64) elfsize=64 ;;
10992 esac
10993
10994 cat >>confdefs.h <<_ACEOF
10995 #define BACKTRACE_ELF_SIZE $elfsize
10996 _ACEOF
10997
10998
10999 BACKTRACE_SUPPORTED=0
11000 if test "$backtrace_supported" = "yes"; then
11001 BACKTRACE_SUPPORTED=1
11002 fi
11003
11004
11005 for ac_header in sys/mman.h
11006 do :
11007 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11008 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_SYS_MMAN_H 1
11011 _ACEOF
11012
11013 fi
11014
11015 done
11016
11017 if test "$ac_cv_header_sys_mman_h" = "no"; then
11018 have_mmap=no
11019 else
11020 if test -n "${with_target_subdir}"; then
11021 # When built as a GCC target library, we can't do a link test. We
11022 # simply assume that if we have mman.h, we have mmap.
11023 have_mmap=yes
11024 else
11025 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11026 if test "x$ac_cv_func_mmap" = x""yes; then :
11027 have_mmap=yes
11028 else
11029 have_mmap=no
11030 fi
11031
11032 fi
11033 fi
11034 if test "$have_mmap" = "no"; then
11035 VIEW_FILE=read.lo
11036 ALLOC_FILE=alloc.lo
11037 else
11038 VIEW_FILE=mmapio.lo
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041
11042 #include <sys/mman.h>
11043 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
11044 #error no MAP_ANONYMOUS
11045 #endif
11046
11047 _ACEOF
11048 if ac_fn_c_try_cpp "$LINENO"; then :
11049 ALLOC_FILE=mmap.lo
11050 else
11051 ALLOC_FILE=alloc.lo
11052 fi
11053 rm -f conftest.err conftest.$ac_ext
11054 fi
11055
11056
11057
11058 BACKTRACE_USES_MALLOC=0
11059 if test "$ALLOC_FILE" = "alloc.lo"; then
11060 BACKTRACE_USES_MALLOC=1
11061 fi
11062
11063
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
11065 $as_echo_n "checking whether tests can run... " >&6; }
11066 if test "${libbacktrace_cv_sys_native+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test "$cross_compiling" = yes; then :
11070 libbacktrace_cv_sys_native=no
11071 else
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 int
11076 main ()
11077 {
11078 return 0;
11079 ;
11080 return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_c_try_run "$LINENO"; then :
11084 libbacktrace_cv_sys_native=yes
11085 else
11086 libbacktrace_cv_sys_native=no
11087 fi
11088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11089 conftest.$ac_objext conftest.beam conftest.$ac_ext
11090 fi
11091
11092 fi
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
11094 $as_echo "$libbacktrace_cv_sys_native" >&6; }
11095 if test "$libbacktrace_cv_sys_native" = "yes"; then
11096 NATIVE_TRUE=
11097 NATIVE_FALSE='#'
11098 else
11099 NATIVE_TRUE='#'
11100 NATIVE_FALSE=
11101 fi
11102
11103
11104 if test "${multilib}" = "yes"; then
11105 multilib_arg="--enable-multilib"
11106 else
11107 multilib_arg=
11108 fi
11109
11110 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
11111
11112
11113 # We need multilib support, but only if configuring for the target.
11114 ac_config_commands="$ac_config_commands default"
11115
11116
11117 cat >confcache <<\_ACEOF
11118 # This file is a shell script that caches the results of configure
11119 # tests run on this system so they can be shared between configure
11120 # scripts and configure runs, see configure's option --config-cache.
11121 # It is not useful on other systems. If it contains results you don't
11122 # want to keep, you may remove or edit it.
11123 #
11124 # config.status only pays attention to the cache file if you give it
11125 # the --recheck option to rerun configure.
11126 #
11127 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11128 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11129 # following values.
11130
11131 _ACEOF
11132
11133 # The following way of writing the cache mishandles newlines in values,
11134 # but we know of no workaround that is simple, portable, and efficient.
11135 # So, we kill variables containing newlines.
11136 # Ultrix sh set writes to stderr and can't be redirected directly,
11137 # and sets the high bit in the cache file unless we assign to the vars.
11138 (
11139 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11140 eval ac_val=\$$ac_var
11141 case $ac_val in #(
11142 *${as_nl}*)
11143 case $ac_var in #(
11144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11146 esac
11147 case $ac_var in #(
11148 _ | IFS | as_nl) ;; #(
11149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11150 *) { eval $ac_var=; unset $ac_var;} ;;
11151 esac ;;
11152 esac
11153 done
11154
11155 (set) 2>&1 |
11156 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11157 *${as_nl}ac_space=\ *)
11158 # `set' does not quote correctly, so add quotes: double-quote
11159 # substitution turns \\\\ into \\, and sed turns \\ into \.
11160 sed -n \
11161 "s/'/'\\\\''/g;
11162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11163 ;; #(
11164 *)
11165 # `set' quotes correctly as required by POSIX, so do not add quotes.
11166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11167 ;;
11168 esac |
11169 sort
11170 ) |
11171 sed '
11172 /^ac_cv_env_/b end
11173 t clear
11174 :clear
11175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11176 t end
11177 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11178 :end' >>confcache
11179 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11180 if test -w "$cache_file"; then
11181 test "x$cache_file" != "x/dev/null" &&
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11183 $as_echo "$as_me: updating cache $cache_file" >&6;}
11184 cat confcache >$cache_file
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11187 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11188 fi
11189 fi
11190 rm -f confcache
11191
11192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11193 # Let make expand exec_prefix.
11194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11195
11196 DEFS=-DHAVE_CONFIG_H
11197
11198 ac_libobjs=
11199 ac_ltlibobjs=
11200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11201 # 1. Remove the extension, and $U if already installed.
11202 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11203 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11204 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11205 # will be set to the directory where LIBOBJS objects are built.
11206 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11207 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11208 done
11209 LIBOBJS=$ac_libobjs
11210
11211 LTLIBOBJS=$ac_ltlibobjs
11212
11213
11214 if test -n "$EXEEXT"; then
11215 am__EXEEXT_TRUE=
11216 am__EXEEXT_FALSE='#'
11217 else
11218 am__EXEEXT_TRUE='#'
11219 am__EXEEXT_FALSE=
11220 fi
11221
11222 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11223 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11225 fi
11226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11227 as_fn_error "conditional \"AMDEP\" was never defined.
11228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11229 fi
11230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11231 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11233 fi
11234 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
11235 as_fn_error "conditional \"NATIVE\" was never defined.
11236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11237 fi
11238
11239 : ${CONFIG_STATUS=./config.status}
11240 ac_write_fail=0
11241 ac_clean_files_save=$ac_clean_files
11242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11244 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11245 as_write_fail=0
11246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11247 #! $SHELL
11248 # Generated by $as_me.
11249 # Run this file to recreate the current configuration.
11250 # Compiler output produced by configure, useful for debugging
11251 # configure, is in config.log if it exists.
11252
11253 debug=false
11254 ac_cs_recheck=false
11255 ac_cs_silent=false
11256
11257 SHELL=\${CONFIG_SHELL-$SHELL}
11258 export SHELL
11259 _ASEOF
11260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11261 ## -------------------- ##
11262 ## M4sh Initialization. ##
11263 ## -------------------- ##
11264
11265 # Be more Bourne compatible
11266 DUALCASE=1; export DUALCASE # for MKS sh
11267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11268 emulate sh
11269 NULLCMD=:
11270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11271 # is contrary to our usage. Disable this feature.
11272 alias -g '${1+"$@"}'='"$@"'
11273 setopt NO_GLOB_SUBST
11274 else
11275 case `(set -o) 2>/dev/null` in #(
11276 *posix*) :
11277 set -o posix ;; #(
11278 *) :
11279 ;;
11280 esac
11281 fi
11282
11283
11284 as_nl='
11285 '
11286 export as_nl
11287 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11288 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11291 # Prefer a ksh shell builtin over an external printf program on Solaris,
11292 # but without wasting forks for bash or zsh.
11293 if test -z "$BASH_VERSION$ZSH_VERSION" \
11294 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11295 as_echo='print -r --'
11296 as_echo_n='print -rn --'
11297 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11298 as_echo='printf %s\n'
11299 as_echo_n='printf %s'
11300 else
11301 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11302 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11303 as_echo_n='/usr/ucb/echo -n'
11304 else
11305 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11306 as_echo_n_body='eval
11307 arg=$1;
11308 case $arg in #(
11309 *"$as_nl"*)
11310 expr "X$arg" : "X\\(.*\\)$as_nl";
11311 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11312 esac;
11313 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11314 '
11315 export as_echo_n_body
11316 as_echo_n='sh -c $as_echo_n_body as_echo'
11317 fi
11318 export as_echo_body
11319 as_echo='sh -c $as_echo_body as_echo'
11320 fi
11321
11322 # The user is always right.
11323 if test "${PATH_SEPARATOR+set}" != set; then
11324 PATH_SEPARATOR=:
11325 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11326 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11327 PATH_SEPARATOR=';'
11328 }
11329 fi
11330
11331
11332 # IFS
11333 # We need space, tab and new line, in precisely that order. Quoting is
11334 # there to prevent editors from complaining about space-tab.
11335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11336 # splitting by setting IFS to empty value.)
11337 IFS=" "" $as_nl"
11338
11339 # Find who we are. Look in the path if we contain no directory separator.
11340 case $0 in #((
11341 *[\\/]* ) as_myself=$0 ;;
11342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11348 done
11349 IFS=$as_save_IFS
11350
11351 ;;
11352 esac
11353 # We did not find ourselves, most probably we were run as `sh COMMAND'
11354 # in which case we are not to be found in the path.
11355 if test "x$as_myself" = x; then
11356 as_myself=$0
11357 fi
11358 if test ! -f "$as_myself"; then
11359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11360 exit 1
11361 fi
11362
11363 # Unset variables that we do not need and which cause bugs (e.g. in
11364 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11365 # suppresses any "Segmentation fault" message there. '((' could
11366 # trigger a bug in pdksh 5.2.14.
11367 for as_var in BASH_ENV ENV MAIL MAILPATH
11368 do eval test x\${$as_var+set} = xset \
11369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11370 done
11371 PS1='$ '
11372 PS2='> '
11373 PS4='+ '
11374
11375 # NLS nuisances.
11376 LC_ALL=C
11377 export LC_ALL
11378 LANGUAGE=C
11379 export LANGUAGE
11380
11381 # CDPATH.
11382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11383
11384
11385 # as_fn_error ERROR [LINENO LOG_FD]
11386 # ---------------------------------
11387 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11388 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11389 # script with status $?, using 1 if that was 0.
11390 as_fn_error ()
11391 {
11392 as_status=$?; test $as_status -eq 0 && as_status=1
11393 if test "$3"; then
11394 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11396 fi
11397 $as_echo "$as_me: error: $1" >&2
11398 as_fn_exit $as_status
11399 } # as_fn_error
11400
11401
11402 # as_fn_set_status STATUS
11403 # -----------------------
11404 # Set $? to STATUS, without forking.
11405 as_fn_set_status ()
11406 {
11407 return $1
11408 } # as_fn_set_status
11409
11410 # as_fn_exit STATUS
11411 # -----------------
11412 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11413 as_fn_exit ()
11414 {
11415 set +e
11416 as_fn_set_status $1
11417 exit $1
11418 } # as_fn_exit
11419
11420 # as_fn_unset VAR
11421 # ---------------
11422 # Portably unset VAR.
11423 as_fn_unset ()
11424 {
11425 { eval $1=; unset $1;}
11426 }
11427 as_unset=as_fn_unset
11428 # as_fn_append VAR VALUE
11429 # ----------------------
11430 # Append the text in VALUE to the end of the definition contained in VAR. Take
11431 # advantage of any shell optimizations that allow amortized linear growth over
11432 # repeated appends, instead of the typical quadratic growth present in naive
11433 # implementations.
11434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11435 eval 'as_fn_append ()
11436 {
11437 eval $1+=\$2
11438 }'
11439 else
11440 as_fn_append ()
11441 {
11442 eval $1=\$$1\$2
11443 }
11444 fi # as_fn_append
11445
11446 # as_fn_arith ARG...
11447 # ------------------
11448 # Perform arithmetic evaluation on the ARGs, and store the result in the
11449 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11450 # must be portable across $(()) and expr.
11451 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11452 eval 'as_fn_arith ()
11453 {
11454 as_val=$(( $* ))
11455 }'
11456 else
11457 as_fn_arith ()
11458 {
11459 as_val=`expr "$@" || test $? -eq 1`
11460 }
11461 fi # as_fn_arith
11462
11463
11464 if expr a : '\(a\)' >/dev/null 2>&1 &&
11465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11466 as_expr=expr
11467 else
11468 as_expr=false
11469 fi
11470
11471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11472 as_basename=basename
11473 else
11474 as_basename=false
11475 fi
11476
11477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11478 as_dirname=dirname
11479 else
11480 as_dirname=false
11481 fi
11482
11483 as_me=`$as_basename -- "$0" ||
11484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11485 X"$0" : 'X\(//\)$' \| \
11486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11487 $as_echo X/"$0" |
11488 sed '/^.*\/\([^/][^/]*\)\/*$/{
11489 s//\1/
11490 q
11491 }
11492 /^X\/\(\/\/\)$/{
11493 s//\1/
11494 q
11495 }
11496 /^X\/\(\/\).*/{
11497 s//\1/
11498 q
11499 }
11500 s/.*/./; q'`
11501
11502 # Avoid depending upon Character Ranges.
11503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11506 as_cr_digits='0123456789'
11507 as_cr_alnum=$as_cr_Letters$as_cr_digits
11508
11509 ECHO_C= ECHO_N= ECHO_T=
11510 case `echo -n x` in #(((((
11511 -n*)
11512 case `echo 'xy\c'` in
11513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11514 xy) ECHO_C='\c';;
11515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11516 ECHO_T=' ';;
11517 esac;;
11518 *)
11519 ECHO_N='-n';;
11520 esac
11521
11522 rm -f conf$$ conf$$.exe conf$$.file
11523 if test -d conf$$.dir; then
11524 rm -f conf$$.dir/conf$$.file
11525 else
11526 rm -f conf$$.dir
11527 mkdir conf$$.dir 2>/dev/null
11528 fi
11529 if (echo >conf$$.file) 2>/dev/null; then
11530 if ln -s conf$$.file conf$$ 2>/dev/null; then
11531 as_ln_s='ln -s'
11532 # ... but there are two gotchas:
11533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11535 # In both cases, we have to default to `cp -p'.
11536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11537 as_ln_s='cp -p'
11538 elif ln conf$$.file conf$$ 2>/dev/null; then
11539 as_ln_s=ln
11540 else
11541 as_ln_s='cp -p'
11542 fi
11543 else
11544 as_ln_s='cp -p'
11545 fi
11546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11547 rmdir conf$$.dir 2>/dev/null
11548
11549
11550 # as_fn_mkdir_p
11551 # -------------
11552 # Create "$as_dir" as a directory, including parents if necessary.
11553 as_fn_mkdir_p ()
11554 {
11555
11556 case $as_dir in #(
11557 -*) as_dir=./$as_dir;;
11558 esac
11559 test -d "$as_dir" || eval $as_mkdir_p || {
11560 as_dirs=
11561 while :; do
11562 case $as_dir in #(
11563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11564 *) as_qdir=$as_dir;;
11565 esac
11566 as_dirs="'$as_qdir' $as_dirs"
11567 as_dir=`$as_dirname -- "$as_dir" ||
11568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11569 X"$as_dir" : 'X\(//\)[^/]' \| \
11570 X"$as_dir" : 'X\(//\)$' \| \
11571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11572 $as_echo X"$as_dir" |
11573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11574 s//\1/
11575 q
11576 }
11577 /^X\(\/\/\)[^/].*/{
11578 s//\1/
11579 q
11580 }
11581 /^X\(\/\/\)$/{
11582 s//\1/
11583 q
11584 }
11585 /^X\(\/\).*/{
11586 s//\1/
11587 q
11588 }
11589 s/.*/./; q'`
11590 test -d "$as_dir" && break
11591 done
11592 test -z "$as_dirs" || eval "mkdir $as_dirs"
11593 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11594
11595
11596 } # as_fn_mkdir_p
11597 if mkdir -p . 2>/dev/null; then
11598 as_mkdir_p='mkdir -p "$as_dir"'
11599 else
11600 test -d ./-p && rmdir ./-p
11601 as_mkdir_p=false
11602 fi
11603
11604 if test -x / >/dev/null 2>&1; then
11605 as_test_x='test -x'
11606 else
11607 if ls -dL / >/dev/null 2>&1; then
11608 as_ls_L_option=L
11609 else
11610 as_ls_L_option=
11611 fi
11612 as_test_x='
11613 eval sh -c '\''
11614 if test -d "$1"; then
11615 test -d "$1/.";
11616 else
11617 case $1 in #(
11618 -*)set "./$1";;
11619 esac;
11620 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11621 ???[sx]*):;;*)false;;esac;fi
11622 '\'' sh
11623 '
11624 fi
11625 as_executable_p=$as_test_x
11626
11627 # Sed expression to map a string onto a valid CPP name.
11628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11629
11630 # Sed expression to map a string onto a valid variable name.
11631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11632
11633
11634 exec 6>&1
11635 ## ----------------------------------- ##
11636 ## Main body of $CONFIG_STATUS script. ##
11637 ## ----------------------------------- ##
11638 _ASEOF
11639 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11640
11641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11642 # Save the log message, to keep $0 and so on meaningful, and to
11643 # report actual input values of CONFIG_FILES etc. instead of their
11644 # values after options handling.
11645 ac_log="
11646 This file was extended by package-unused $as_me version-unused, which was
11647 generated by GNU Autoconf 2.64. Invocation command line was
11648
11649 CONFIG_FILES = $CONFIG_FILES
11650 CONFIG_HEADERS = $CONFIG_HEADERS
11651 CONFIG_LINKS = $CONFIG_LINKS
11652 CONFIG_COMMANDS = $CONFIG_COMMANDS
11653 $ $0 $@
11654
11655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11656 "
11657
11658 _ACEOF
11659
11660 case $ac_config_files in *"
11661 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11662 esac
11663
11664 case $ac_config_headers in *"
11665 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11666 esac
11667
11668
11669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11670 # Files that config.status was made for.
11671 config_files="$ac_config_files"
11672 config_headers="$ac_config_headers"
11673 config_commands="$ac_config_commands"
11674
11675 _ACEOF
11676
11677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11678 ac_cs_usage="\
11679 \`$as_me' instantiates files and other configuration actions
11680 from templates according to the current configuration. Unless the files
11681 and actions are specified as TAGs, all are instantiated by default.
11682
11683 Usage: $0 [OPTION]... [TAG]...
11684
11685 -h, --help print this help, then exit
11686 -V, --version print version number and configuration settings, then exit
11687 -q, --quiet, --silent
11688 do not print progress messages
11689 -d, --debug don't remove temporary files
11690 --recheck update $as_me by reconfiguring in the same conditions
11691 --file=FILE[:TEMPLATE]
11692 instantiate the configuration file FILE
11693 --header=FILE[:TEMPLATE]
11694 instantiate the configuration header FILE
11695
11696 Configuration files:
11697 $config_files
11698
11699 Configuration headers:
11700 $config_headers
11701
11702 Configuration commands:
11703 $config_commands
11704
11705 Report bugs to the package provider."
11706
11707 _ACEOF
11708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11709 ac_cs_version="\\
11710 package-unused config.status version-unused
11711 configured by $0, generated by GNU Autoconf 2.64,
11712 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11713
11714 Copyright (C) 2009 Free Software Foundation, Inc.
11715 This config.status script is free software; the Free Software Foundation
11716 gives unlimited permission to copy, distribute and modify it."
11717
11718 ac_pwd='$ac_pwd'
11719 srcdir='$srcdir'
11720 INSTALL='$INSTALL'
11721 MKDIR_P='$MKDIR_P'
11722 AWK='$AWK'
11723 test -n "\$AWK" || AWK=awk
11724 _ACEOF
11725
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 # The default lists apply if the user does not specify any file.
11728 ac_need_defaults=:
11729 while test $# != 0
11730 do
11731 case $1 in
11732 --*=*)
11733 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11734 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11735 ac_shift=:
11736 ;;
11737 *)
11738 ac_option=$1
11739 ac_optarg=$2
11740 ac_shift=shift
11741 ;;
11742 esac
11743
11744 case $ac_option in
11745 # Handling of the options.
11746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11747 ac_cs_recheck=: ;;
11748 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11749 $as_echo "$ac_cs_version"; exit ;;
11750 --debug | --debu | --deb | --de | --d | -d )
11751 debug=: ;;
11752 --file | --fil | --fi | --f )
11753 $ac_shift
11754 case $ac_optarg in
11755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11756 esac
11757 as_fn_append CONFIG_FILES " '$ac_optarg'"
11758 ac_need_defaults=false;;
11759 --header | --heade | --head | --hea )
11760 $ac_shift
11761 case $ac_optarg in
11762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11763 esac
11764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11765 ac_need_defaults=false;;
11766 --he | --h)
11767 # Conflict between --help and --header
11768 as_fn_error "ambiguous option: \`$1'
11769 Try \`$0 --help' for more information.";;
11770 --help | --hel | -h )
11771 $as_echo "$ac_cs_usage"; exit ;;
11772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11774 ac_cs_silent=: ;;
11775
11776 # This is an error.
11777 -*) as_fn_error "unrecognized option: \`$1'
11778 Try \`$0 --help' for more information." ;;
11779
11780 *) as_fn_append ac_config_targets " $1"
11781 ac_need_defaults=false ;;
11782
11783 esac
11784 shift
11785 done
11786
11787 ac_configure_extra_args=
11788
11789 if $ac_cs_silent; then
11790 exec 6>/dev/null
11791 ac_configure_extra_args="$ac_configure_extra_args --silent"
11792 fi
11793
11794 _ACEOF
11795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11796 if \$ac_cs_recheck; then
11797 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11798 shift
11799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11800 CONFIG_SHELL='$SHELL'
11801 export CONFIG_SHELL
11802 exec "\$@"
11803 fi
11804
11805 _ACEOF
11806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807 exec 5>>config.log
11808 {
11809 echo
11810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11811 ## Running $as_me. ##
11812 _ASBOX
11813 $as_echo "$ac_log"
11814 } >&5
11815
11816 _ACEOF
11817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11818 #
11819 # INIT-COMMANDS
11820 #
11821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11822
11823
11824 # The HP-UX ksh and POSIX shell print the target directory to stdout
11825 # if CDPATH is set.
11826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11827
11828 sed_quote_subst='$sed_quote_subst'
11829 double_quote_subst='$double_quote_subst'
11830 delay_variable_subst='$delay_variable_subst'
11831 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11832 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11833 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11834 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11835 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11836 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11839 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11840 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11841 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11842 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11843 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11844 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11845 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11846 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11847 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11848 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11849 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11850 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11851 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11852 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11853 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11854 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11855 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11856 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11857 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11858 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11859 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11860 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11861 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11862 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11863 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11864 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11865 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11866 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11867 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11868 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11869 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11870 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11871 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11872 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11873 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11874 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11875 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11876 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11877 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11878 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11879 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"`'
11880 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11881 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11882 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11883 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11884 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11885 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11886 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11887 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11888 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11889 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11890 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11891 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11892 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11893 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11894 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11895 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11896 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11897 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11898 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11899 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11900 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11901 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11902 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11903 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11904 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11905 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11906 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11907 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11908 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11909 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11910 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11911 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11912 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11913 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11914 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11915 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11916 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11917 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11918 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11919 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11920 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11921 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11922 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11923 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11924 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11925 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11926 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11927 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11928 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11929 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11930 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11931 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11932 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11933 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11934 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11935 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11936 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11937 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11938 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11939 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11940 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11941 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11942 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11943 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11944 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11945 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11946 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11947 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11948 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11949 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11950 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11951
11952 LTCC='$LTCC'
11953 LTCFLAGS='$LTCFLAGS'
11954 compiler='$compiler_DEFAULT'
11955
11956 # A function that is used when there is no print builtin or printf.
11957 func_fallback_echo ()
11958 {
11959 eval 'cat <<_LTECHO_EOF
11960 \$1
11961 _LTECHO_EOF'
11962 }
11963
11964 # Quote evaled strings.
11965 for var in SHELL \
11966 ECHO \
11967 SED \
11968 GREP \
11969 EGREP \
11970 FGREP \
11971 LD \
11972 NM \
11973 LN_S \
11974 lt_SP2NL \
11975 lt_NL2SP \
11976 reload_flag \
11977 OBJDUMP \
11978 deplibs_check_method \
11979 file_magic_cmd \
11980 AR \
11981 AR_FLAGS \
11982 STRIP \
11983 RANLIB \
11984 CC \
11985 CFLAGS \
11986 compiler \
11987 lt_cv_sys_global_symbol_pipe \
11988 lt_cv_sys_global_symbol_to_cdecl \
11989 lt_cv_sys_global_symbol_to_c_name_address \
11990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11991 lt_prog_compiler_no_builtin_flag \
11992 lt_prog_compiler_wl \
11993 lt_prog_compiler_pic \
11994 lt_prog_compiler_static \
11995 lt_cv_prog_compiler_c_o \
11996 need_locks \
11997 DSYMUTIL \
11998 NMEDIT \
11999 LIPO \
12000 OTOOL \
12001 OTOOL64 \
12002 shrext_cmds \
12003 export_dynamic_flag_spec \
12004 whole_archive_flag_spec \
12005 compiler_needs_object \
12006 with_gnu_ld \
12007 allow_undefined_flag \
12008 no_undefined_flag \
12009 hardcode_libdir_flag_spec \
12010 hardcode_libdir_flag_spec_ld \
12011 hardcode_libdir_separator \
12012 fix_srcfile_path \
12013 exclude_expsyms \
12014 include_expsyms \
12015 file_list_spec \
12016 variables_saved_for_relink \
12017 libname_spec \
12018 library_names_spec \
12019 soname_spec \
12020 install_override_mode \
12021 finish_eval \
12022 old_striplib \
12023 striplib; do
12024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12025 *[\\\\\\\`\\"\\\$]*)
12026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12027 ;;
12028 *)
12029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12030 ;;
12031 esac
12032 done
12033
12034 # Double-quote double-evaled strings.
12035 for var in reload_cmds \
12036 old_postinstall_cmds \
12037 old_postuninstall_cmds \
12038 old_archive_cmds \
12039 extract_expsyms_cmds \
12040 old_archive_from_new_cmds \
12041 old_archive_from_expsyms_cmds \
12042 archive_cmds \
12043 archive_expsym_cmds \
12044 module_cmds \
12045 module_expsym_cmds \
12046 export_symbols_cmds \
12047 prelink_cmds \
12048 postinstall_cmds \
12049 postuninstall_cmds \
12050 finish_cmds \
12051 sys_lib_search_path_spec \
12052 sys_lib_dlsearch_path_spec; do
12053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12054 *[\\\\\\\`\\"\\\$]*)
12055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12056 ;;
12057 *)
12058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12059 ;;
12060 esac
12061 done
12062
12063 ac_aux_dir='$ac_aux_dir'
12064 xsi_shell='$xsi_shell'
12065 lt_shell_append='$lt_shell_append'
12066
12067 # See if we are running on zsh, and set the options which allow our
12068 # commands through without removal of \ escapes INIT.
12069 if test -n "\${ZSH_VERSION+set}" ; then
12070 setopt NO_GLOB_SUBST
12071 fi
12072
12073
12074 PACKAGE='$PACKAGE'
12075 VERSION='$VERSION'
12076 TIMESTAMP='$TIMESTAMP'
12077 RM='$RM'
12078 ofile='$ofile'
12079
12080
12081
12082
12083 srcdir="$srcdir"
12084 host="$host"
12085 target="$target"
12086 with_multisubdir="$with_multisubdir"
12087 with_multisrctop="$with_multisrctop"
12088 with_target_subdir="$with_target_subdir"
12089 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12090 multi_basedir="$multi_basedir"
12091 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12092 CC="$CC"
12093 CXX="$CXX"
12094 GFORTRAN="$GFORTRAN"
12095 GCJ="$GCJ"
12096
12097 # Variables needed in config.status (file generation) which aren't already
12098 # passed by autoconf.
12099 SUBDIRS="$SUBDIRS"
12100
12101
12102 _ACEOF
12103
12104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12105
12106 # Handling of arguments.
12107 for ac_config_target in $ac_config_targets
12108 do
12109 case $ac_config_target in
12110 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12111 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12112 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12113 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12115 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
12116 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12117
12118 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12119 esac
12120 done
12121
12122
12123 # If the user did not use the arguments to specify the items to instantiate,
12124 # then the envvar interface is used. Set only those that are not.
12125 # We use the long form for the default assignment because of an extremely
12126 # bizarre bug on SunOS 4.1.3.
12127 if $ac_need_defaults; then
12128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12131 fi
12132
12133 # Have a temporary directory for convenience. Make it in the build tree
12134 # simply because there is no reason against having it here, and in addition,
12135 # creating and moving files from /tmp can sometimes cause problems.
12136 # Hook for its removal unless debugging.
12137 # Note that there is a small window in which the directory will not be cleaned:
12138 # after its creation but before its name has been assigned to `$tmp'.
12139 $debug ||
12140 {
12141 tmp=
12142 trap 'exit_status=$?
12143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12144 ' 0
12145 trap 'as_fn_exit 1' 1 2 13 15
12146 }
12147 # Create a (secure) tmp directory for tmp files.
12148
12149 {
12150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12151 test -n "$tmp" && test -d "$tmp"
12152 } ||
12153 {
12154 tmp=./conf$$-$RANDOM
12155 (umask 077 && mkdir "$tmp")
12156 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12157
12158 # Set up the scripts for CONFIG_FILES section.
12159 # No need to generate them if there are no CONFIG_FILES.
12160 # This happens for instance with `./config.status config.h'.
12161 if test -n "$CONFIG_FILES"; then
12162
12163
12164 ac_cr=`echo X | tr X '\015'`
12165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12166 # But we know of no other shell where ac_cr would be empty at this
12167 # point, so we can use a bashism as a fallback.
12168 if test "x$ac_cr" = x; then
12169 eval ac_cr=\$\'\\r\'
12170 fi
12171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12173 ac_cs_awk_cr='\r'
12174 else
12175 ac_cs_awk_cr=$ac_cr
12176 fi
12177
12178 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12179 _ACEOF
12180
12181
12182 {
12183 echo "cat >conf$$subs.awk <<_ACEOF" &&
12184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12185 echo "_ACEOF"
12186 } >conf$$subs.sh ||
12187 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12189 ac_delim='%!_!# '
12190 for ac_last_try in false false false false false :; do
12191 . ./conf$$subs.sh ||
12192 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12193
12194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12195 if test $ac_delim_n = $ac_delim_num; then
12196 break
12197 elif $ac_last_try; then
12198 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12199 else
12200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12201 fi
12202 done
12203 rm -f conf$$subs.sh
12204
12205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12206 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12207 _ACEOF
12208 sed -n '
12209 h
12210 s/^/S["/; s/!.*/"]=/
12211 p
12212 g
12213 s/^[^!]*!//
12214 :repl
12215 t repl
12216 s/'"$ac_delim"'$//
12217 t delim
12218 :nl
12219 h
12220 s/\(.\{148\}\).*/\1/
12221 t more1
12222 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12223 p
12224 n
12225 b repl
12226 :more1
12227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12228 p
12229 g
12230 s/.\{148\}//
12231 t nl
12232 :delim
12233 h
12234 s/\(.\{148\}\).*/\1/
12235 t more2
12236 s/["\\]/\\&/g; s/^/"/; s/$/"/
12237 p
12238 b
12239 :more2
12240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12241 p
12242 g
12243 s/.\{148\}//
12244 t delim
12245 ' <conf$$subs.awk | sed '
12246 /^[^""]/{
12247 N
12248 s/\n//
12249 }
12250 ' >>$CONFIG_STATUS || ac_write_fail=1
12251 rm -f conf$$subs.awk
12252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12253 _ACAWK
12254 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12255 for (key in S) S_is_set[key] = 1
12256 FS = "\a"
12257
12258 }
12259 {
12260 line = $ 0
12261 nfields = split(line, field, "@")
12262 substed = 0
12263 len = length(field[1])
12264 for (i = 2; i < nfields; i++) {
12265 key = field[i]
12266 keylen = length(key)
12267 if (S_is_set[key]) {
12268 value = S[key]
12269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12270 len += length(value) + length(field[++i])
12271 substed = 1
12272 } else
12273 len += 1 + keylen
12274 }
12275
12276 print line
12277 }
12278
12279 _ACAWK
12280 _ACEOF
12281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12284 else
12285 cat
12286 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12287 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12288 _ACEOF
12289
12290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12292 # trailing colons and then remove the whole line if VPATH becomes empty
12293 # (actually we leave an empty line to preserve line numbers).
12294 if test "x$srcdir" = x.; then
12295 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12296 s/:*\$(srcdir):*/:/
12297 s/:*\${srcdir}:*/:/
12298 s/:*@srcdir@:*/:/
12299 s/^\([^=]*=[ ]*\):*/\1/
12300 s/:*$//
12301 s/^[^=]*=[ ]*$//
12302 }'
12303 fi
12304
12305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12306 fi # test -n "$CONFIG_FILES"
12307
12308 # Set up the scripts for CONFIG_HEADERS section.
12309 # No need to generate them if there are no CONFIG_HEADERS.
12310 # This happens for instance with `./config.status Makefile'.
12311 if test -n "$CONFIG_HEADERS"; then
12312 cat >"$tmp/defines.awk" <<\_ACAWK ||
12313 BEGIN {
12314 _ACEOF
12315
12316 # Transform confdefs.h into an awk script `defines.awk', embedded as
12317 # here-document in config.status, that substitutes the proper values into
12318 # config.h.in to produce config.h.
12319
12320 # Create a delimiter string that does not exist in confdefs.h, to ease
12321 # handling of long lines.
12322 ac_delim='%!_!# '
12323 for ac_last_try in false false :; do
12324 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12325 if test -z "$ac_t"; then
12326 break
12327 elif $ac_last_try; then
12328 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12329 else
12330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12331 fi
12332 done
12333
12334 # For the awk script, D is an array of macro values keyed by name,
12335 # likewise P contains macro parameters if any. Preserve backslash
12336 # newline sequences.
12337
12338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12339 sed -n '
12340 s/.\{148\}/&'"$ac_delim"'/g
12341 t rset
12342 :rset
12343 s/^[ ]*#[ ]*define[ ][ ]*/ /
12344 t def
12345 d
12346 :def
12347 s/\\$//
12348 t bsnl
12349 s/["\\]/\\&/g
12350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12351 D["\1"]=" \3"/p
12352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12353 d
12354 :bsnl
12355 s/["\\]/\\&/g
12356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12357 D["\1"]=" \3\\\\\\n"\\/p
12358 t cont
12359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12360 t cont
12361 d
12362 :cont
12363 n
12364 s/.\{148\}/&'"$ac_delim"'/g
12365 t clear
12366 :clear
12367 s/\\$//
12368 t bsnlc
12369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12370 d
12371 :bsnlc
12372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12373 b cont
12374 ' <confdefs.h | sed '
12375 s/'"$ac_delim"'/"\\\
12376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12377
12378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12379 for (key in D) D_is_set[key] = 1
12380 FS = "\a"
12381 }
12382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12383 line = \$ 0
12384 split(line, arg, " ")
12385 if (arg[1] == "#") {
12386 defundef = arg[2]
12387 mac1 = arg[3]
12388 } else {
12389 defundef = substr(arg[1], 2)
12390 mac1 = arg[2]
12391 }
12392 split(mac1, mac2, "(") #)
12393 macro = mac2[1]
12394 prefix = substr(line, 1, index(line, defundef) - 1)
12395 if (D_is_set[macro]) {
12396 # Preserve the white space surrounding the "#".
12397 print prefix "define", macro P[macro] D[macro]
12398 next
12399 } else {
12400 # Replace #undef with comments. This is necessary, for example,
12401 # in the case of _POSIX_SOURCE, which is predefined and required
12402 # on some systems where configure will not decide to define it.
12403 if (defundef == "undef") {
12404 print "/*", prefix defundef, macro, "*/"
12405 next
12406 }
12407 }
12408 }
12409 { print }
12410 _ACAWK
12411 _ACEOF
12412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12413 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12414 fi # test -n "$CONFIG_HEADERS"
12415
12416
12417 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12418 shift
12419 for ac_tag
12420 do
12421 case $ac_tag in
12422 :[FHLC]) ac_mode=$ac_tag; continue;;
12423 esac
12424 case $ac_mode$ac_tag in
12425 :[FHL]*:*);;
12426 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12427 :[FH]-) ac_tag=-:-;;
12428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12429 esac
12430 ac_save_IFS=$IFS
12431 IFS=:
12432 set x $ac_tag
12433 IFS=$ac_save_IFS
12434 shift
12435 ac_file=$1
12436 shift
12437
12438 case $ac_mode in
12439 :L) ac_source=$1;;
12440 :[FH])
12441 ac_file_inputs=
12442 for ac_f
12443 do
12444 case $ac_f in
12445 -) ac_f="$tmp/stdin";;
12446 *) # Look for the file first in the build tree, then in the source tree
12447 # (if the path is not absolute). The absolute path cannot be DOS-style,
12448 # because $ac_f cannot contain `:'.
12449 test -f "$ac_f" ||
12450 case $ac_f in
12451 [\\/$]*) false;;
12452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12453 esac ||
12454 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12455 esac
12456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12457 as_fn_append ac_file_inputs " '$ac_f'"
12458 done
12459
12460 # Let's still pretend it is `configure' which instantiates (i.e., don't
12461 # use $as_me), people would be surprised to read:
12462 # /* config.h. Generated by config.status. */
12463 configure_input='Generated from '`
12464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12465 `' by configure.'
12466 if test x"$ac_file" != x-; then
12467 configure_input="$ac_file. $configure_input"
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12469 $as_echo "$as_me: creating $ac_file" >&6;}
12470 fi
12471 # Neutralize special characters interpreted by sed in replacement strings.
12472 case $configure_input in #(
12473 *\&* | *\|* | *\\* )
12474 ac_sed_conf_input=`$as_echo "$configure_input" |
12475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12476 *) ac_sed_conf_input=$configure_input;;
12477 esac
12478
12479 case $ac_tag in
12480 *:-:* | *:-) cat >"$tmp/stdin" \
12481 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12482 esac
12483 ;;
12484 esac
12485
12486 ac_dir=`$as_dirname -- "$ac_file" ||
12487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$ac_file" : 'X\(//\)[^/]' \| \
12489 X"$ac_file" : 'X\(//\)$' \| \
12490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12491 $as_echo X"$ac_file" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`
12509 as_dir="$ac_dir"; as_fn_mkdir_p
12510 ac_builddir=.
12511
12512 case "$ac_dir" in
12513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12514 *)
12515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12516 # A ".." for each directory in $ac_dir_suffix.
12517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12518 case $ac_top_builddir_sub in
12519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12521 esac ;;
12522 esac
12523 ac_abs_top_builddir=$ac_pwd
12524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12525 # for backward compatibility:
12526 ac_top_builddir=$ac_top_build_prefix
12527
12528 case $srcdir in
12529 .) # We are building in place.
12530 ac_srcdir=.
12531 ac_top_srcdir=$ac_top_builddir_sub
12532 ac_abs_top_srcdir=$ac_pwd ;;
12533 [\\/]* | ?:[\\/]* ) # Absolute name.
12534 ac_srcdir=$srcdir$ac_dir_suffix;
12535 ac_top_srcdir=$srcdir
12536 ac_abs_top_srcdir=$srcdir ;;
12537 *) # Relative name.
12538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12539 ac_top_srcdir=$ac_top_build_prefix$srcdir
12540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12541 esac
12542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12543
12544
12545 case $ac_mode in
12546 :F)
12547 #
12548 # CONFIG_FILE
12549 #
12550
12551 case $INSTALL in
12552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12554 esac
12555 ac_MKDIR_P=$MKDIR_P
12556 case $MKDIR_P in
12557 [\\/$]* | ?:[\\/]* ) ;;
12558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12559 esac
12560 _ACEOF
12561
12562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12563 # If the template does not know about datarootdir, expand it.
12564 # FIXME: This hack should be removed a few years after 2.60.
12565 ac_datarootdir_hack=; ac_datarootdir_seen=
12566 ac_sed_dataroot='
12567 /datarootdir/ {
12568 p
12569 q
12570 }
12571 /@datadir@/p
12572 /@docdir@/p
12573 /@infodir@/p
12574 /@localedir@/p
12575 /@mandir@/p'
12576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12577 *datarootdir*) ac_datarootdir_seen=yes;;
12578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12581 _ACEOF
12582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12583 ac_datarootdir_hack='
12584 s&@datadir@&$datadir&g
12585 s&@docdir@&$docdir&g
12586 s&@infodir@&$infodir&g
12587 s&@localedir@&$localedir&g
12588 s&@mandir@&$mandir&g
12589 s&\\\${datarootdir}&$datarootdir&g' ;;
12590 esac
12591 _ACEOF
12592
12593 # Neutralize VPATH when `$srcdir' = `.'.
12594 # Shell code in configure.ac might set extrasub.
12595 # FIXME: do we really want to maintain this feature?
12596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12597 ac_sed_extra="$ac_vpsub
12598 $extrasub
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12601 :t
12602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12603 s|@configure_input@|$ac_sed_conf_input|;t t
12604 s&@top_builddir@&$ac_top_builddir_sub&;t t
12605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12606 s&@srcdir@&$ac_srcdir&;t t
12607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12608 s&@top_srcdir@&$ac_top_srcdir&;t t
12609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12610 s&@builddir@&$ac_builddir&;t t
12611 s&@abs_builddir@&$ac_abs_builddir&;t t
12612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12613 s&@INSTALL@&$ac_INSTALL&;t t
12614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12615 $ac_datarootdir_hack
12616 "
12617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12618 || as_fn_error "could not create $ac_file" "$LINENO" 5
12619
12620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12624 which seems to be undefined. Please make sure it is defined." >&5
12625 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12626 which seems to be undefined. Please make sure it is defined." >&2;}
12627
12628 rm -f "$tmp/stdin"
12629 case $ac_file in
12630 -) cat "$tmp/out" && rm -f "$tmp/out";;
12631 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12632 esac \
12633 || as_fn_error "could not create $ac_file" "$LINENO" 5
12634 ;;
12635 :H)
12636 #
12637 # CONFIG_HEADER
12638 #
12639 if test x"$ac_file" != x-; then
12640 {
12641 $as_echo "/* $configure_input */" \
12642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12643 } >"$tmp/config.h" \
12644 || as_fn_error "could not create $ac_file" "$LINENO" 5
12645 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12647 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12648 else
12649 rm -f "$ac_file"
12650 mv "$tmp/config.h" "$ac_file" \
12651 || as_fn_error "could not create $ac_file" "$LINENO" 5
12652 fi
12653 else
12654 $as_echo "/* $configure_input */" \
12655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12656 || as_fn_error "could not create -" "$LINENO" 5
12657 fi
12658 # Compute "$ac_file"'s index in $config_headers.
12659 _am_arg="$ac_file"
12660 _am_stamp_count=1
12661 for _am_header in $config_headers :; do
12662 case $_am_header in
12663 $_am_arg | $_am_arg:* )
12664 break ;;
12665 * )
12666 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12667 esac
12668 done
12669 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12670 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12671 X"$_am_arg" : 'X\(//\)[^/]' \| \
12672 X"$_am_arg" : 'X\(//\)$' \| \
12673 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12674 $as_echo X"$_am_arg" |
12675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12676 s//\1/
12677 q
12678 }
12679 /^X\(\/\/\)[^/].*/{
12680 s//\1/
12681 q
12682 }
12683 /^X\(\/\/\)$/{
12684 s//\1/
12685 q
12686 }
12687 /^X\(\/\).*/{
12688 s//\1/
12689 q
12690 }
12691 s/.*/./; q'`/stamp-h$_am_stamp_count
12692 ;;
12693
12694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12695 $as_echo "$as_me: executing $ac_file commands" >&6;}
12696 ;;
12697 esac
12698
12699
12700 case $ac_file$ac_mode in
12701 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12702 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12703 # are listed without --file. Let's play safe and only enable the eval
12704 # if we detect the quoting.
12705 case $CONFIG_FILES in
12706 *\'*) eval set x "$CONFIG_FILES" ;;
12707 *) set x $CONFIG_FILES ;;
12708 esac
12709 shift
12710 for mf
12711 do
12712 # Strip MF so we end up with the name of the file.
12713 mf=`echo "$mf" | sed -e 's/:.*$//'`
12714 # Check whether this is an Automake generated Makefile or not.
12715 # We used to match only the files named `Makefile.in', but
12716 # some people rename them; so instead we look at the file content.
12717 # Grep'ing the first line is not enough: some people post-process
12718 # each Makefile.in and add a new line on top of each file to say so.
12719 # Grep'ing the whole file is not good either: AIX grep has a line
12720 # limit of 2048, but all sed's we know have understand at least 4000.
12721 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12722 dirpart=`$as_dirname -- "$mf" ||
12723 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12724 X"$mf" : 'X\(//\)[^/]' \| \
12725 X"$mf" : 'X\(//\)$' \| \
12726 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12727 $as_echo X"$mf" |
12728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12729 s//\1/
12730 q
12731 }
12732 /^X\(\/\/\)[^/].*/{
12733 s//\1/
12734 q
12735 }
12736 /^X\(\/\/\)$/{
12737 s//\1/
12738 q
12739 }
12740 /^X\(\/\).*/{
12741 s//\1/
12742 q
12743 }
12744 s/.*/./; q'`
12745 else
12746 continue
12747 fi
12748 # Extract the definition of DEPDIR, am__include, and am__quote
12749 # from the Makefile without running `make'.
12750 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12751 test -z "$DEPDIR" && continue
12752 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12753 test -z "am__include" && continue
12754 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12755 # When using ansi2knr, U may be empty or an underscore; expand it
12756 U=`sed -n 's/^U = //p' < "$mf"`
12757 # Find all dependency output files, they are included files with
12758 # $(DEPDIR) in their names. We invoke sed twice because it is the
12759 # simplest approach to changing $(DEPDIR) to its actual value in the
12760 # expansion.
12761 for file in `sed -n "
12762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12764 # Make sure the directory exists.
12765 test -f "$dirpart/$file" && continue
12766 fdir=`$as_dirname -- "$file" ||
12767 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12768 X"$file" : 'X\(//\)[^/]' \| \
12769 X"$file" : 'X\(//\)$' \| \
12770 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12771 $as_echo X"$file" |
12772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12773 s//\1/
12774 q
12775 }
12776 /^X\(\/\/\)[^/].*/{
12777 s//\1/
12778 q
12779 }
12780 /^X\(\/\/\)$/{
12781 s//\1/
12782 q
12783 }
12784 /^X\(\/\).*/{
12785 s//\1/
12786 q
12787 }
12788 s/.*/./; q'`
12789 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12790 # echo "creating $dirpart/$file"
12791 echo '# dummy' > "$dirpart/$file"
12792 done
12793 done
12794 }
12795 ;;
12796 "libtool":C)
12797
12798 # See if we are running on zsh, and set the options which allow our
12799 # commands through without removal of \ escapes.
12800 if test -n "${ZSH_VERSION+set}" ; then
12801 setopt NO_GLOB_SUBST
12802 fi
12803
12804 cfgfile="${ofile}T"
12805 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12806 $RM "$cfgfile"
12807
12808 cat <<_LT_EOF >> "$cfgfile"
12809 #! $SHELL
12810
12811 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12812 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12815 #
12816 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12817 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12818 # Written by Gordon Matzigkeit, 1996
12819 #
12820 # This file is part of GNU Libtool.
12821 #
12822 # GNU Libtool is free software; you can redistribute it and/or
12823 # modify it under the terms of the GNU General Public License as
12824 # published by the Free Software Foundation; either version 2 of
12825 # the License, or (at your option) any later version.
12826 #
12827 # As a special exception to the GNU General Public License,
12828 # if you distribute this file as part of a program or library that
12829 # is built using GNU Libtool, you may include this file under the
12830 # same distribution terms that you use for the rest of that program.
12831 #
12832 # GNU Libtool is distributed in the hope that it will be useful,
12833 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12834 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12835 # GNU General Public License for more details.
12836 #
12837 # You should have received a copy of the GNU General Public License
12838 # along with GNU Libtool; see the file COPYING. If not, a copy
12839 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12840 # obtained by writing to the Free Software Foundation, Inc.,
12841 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12842
12843
12844 # The names of the tagged configurations supported by this script.
12845 available_tags=""
12846
12847 # ### BEGIN LIBTOOL CONFIG
12848
12849 # Which release of libtool.m4 was used?
12850 macro_version=$macro_version
12851 macro_revision=$macro_revision
12852
12853 # Whether or not to build shared libraries.
12854 build_libtool_libs=$enable_shared
12855
12856 # Whether or not to build static libraries.
12857 build_old_libs=$enable_static
12858
12859 # What type of objects to build.
12860 pic_mode=$pic_mode
12861
12862 # Whether or not to optimize for fast installation.
12863 fast_install=$enable_fast_install
12864
12865 # Shell to use when invoking shell scripts.
12866 SHELL=$lt_SHELL
12867
12868 # An echo program that protects backslashes.
12869 ECHO=$lt_ECHO
12870
12871 # The host system.
12872 host_alias=$host_alias
12873 host=$host
12874 host_os=$host_os
12875
12876 # The build system.
12877 build_alias=$build_alias
12878 build=$build
12879 build_os=$build_os
12880
12881 # A sed program that does not truncate output.
12882 SED=$lt_SED
12883
12884 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12885 Xsed="\$SED -e 1s/^X//"
12886
12887 # A grep program that handles long lines.
12888 GREP=$lt_GREP
12889
12890 # An ERE matcher.
12891 EGREP=$lt_EGREP
12892
12893 # A literal string matcher.
12894 FGREP=$lt_FGREP
12895
12896 # A BSD- or MS-compatible name lister.
12897 NM=$lt_NM
12898
12899 # Whether we need soft or hard links.
12900 LN_S=$lt_LN_S
12901
12902 # What is the maximum length of a command?
12903 max_cmd_len=$max_cmd_len
12904
12905 # Object file suffix (normally "o").
12906 objext=$ac_objext
12907
12908 # Executable file suffix (normally "").
12909 exeext=$exeext
12910
12911 # whether the shell understands "unset".
12912 lt_unset=$lt_unset
12913
12914 # turn spaces into newlines.
12915 SP2NL=$lt_lt_SP2NL
12916
12917 # turn newlines into spaces.
12918 NL2SP=$lt_lt_NL2SP
12919
12920 # An object symbol dumper.
12921 OBJDUMP=$lt_OBJDUMP
12922
12923 # Method to check whether dependent libraries are shared objects.
12924 deplibs_check_method=$lt_deplibs_check_method
12925
12926 # Command to use when deplibs_check_method == "file_magic".
12927 file_magic_cmd=$lt_file_magic_cmd
12928
12929 # The archiver.
12930 AR=$lt_AR
12931 AR_FLAGS=$lt_AR_FLAGS
12932
12933 # A symbol stripping program.
12934 STRIP=$lt_STRIP
12935
12936 # Commands used to install an old-style archive.
12937 RANLIB=$lt_RANLIB
12938 old_postinstall_cmds=$lt_old_postinstall_cmds
12939 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12940
12941 # Whether to use a lock for old archive extraction.
12942 lock_old_archive_extraction=$lock_old_archive_extraction
12943
12944 # A C compiler.
12945 LTCC=$lt_CC
12946
12947 # LTCC compiler flags.
12948 LTCFLAGS=$lt_CFLAGS
12949
12950 # Take the output of nm and produce a listing of raw symbols and C names.
12951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12952
12953 # Transform the output of nm in a proper C declaration.
12954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12955
12956 # Transform the output of nm in a C name address pair.
12957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12958
12959 # Transform the output of nm in a C name address pair when lib prefix is needed.
12960 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12961
12962 # The name of the directory that contains temporary libtool files.
12963 objdir=$objdir
12964
12965 # Used to examine libraries when file_magic_cmd begins with "file".
12966 MAGIC_CMD=$MAGIC_CMD
12967
12968 # Must we lock files when doing compilation?
12969 need_locks=$lt_need_locks
12970
12971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12972 DSYMUTIL=$lt_DSYMUTIL
12973
12974 # Tool to change global to local symbols on Mac OS X.
12975 NMEDIT=$lt_NMEDIT
12976
12977 # Tool to manipulate fat objects and archives on Mac OS X.
12978 LIPO=$lt_LIPO
12979
12980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12981 OTOOL=$lt_OTOOL
12982
12983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12984 OTOOL64=$lt_OTOOL64
12985
12986 # Old archive suffix (normally "a").
12987 libext=$libext
12988
12989 # Shared library suffix (normally ".so").
12990 shrext_cmds=$lt_shrext_cmds
12991
12992 # The commands to extract the exported symbol list from a shared archive.
12993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12994
12995 # Variables whose values should be saved in libtool wrapper scripts and
12996 # restored at link time.
12997 variables_saved_for_relink=$lt_variables_saved_for_relink
12998
12999 # Do we need the "lib" prefix for modules?
13000 need_lib_prefix=$need_lib_prefix
13001
13002 # Do we need a version for libraries?
13003 need_version=$need_version
13004
13005 # Library versioning type.
13006 version_type=$version_type
13007
13008 # Shared library runtime path variable.
13009 runpath_var=$runpath_var
13010
13011 # Shared library path variable.
13012 shlibpath_var=$shlibpath_var
13013
13014 # Is shlibpath searched before the hard-coded library search path?
13015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13016
13017 # Format of library name prefix.
13018 libname_spec=$lt_libname_spec
13019
13020 # List of archive names. First name is the real one, the rest are links.
13021 # The last name is the one that the linker finds with -lNAME
13022 library_names_spec=$lt_library_names_spec
13023
13024 # The coded name of the library, if different from the real name.
13025 soname_spec=$lt_soname_spec
13026
13027 # Permission mode override for installation of shared libraries.
13028 install_override_mode=$lt_install_override_mode
13029
13030 # Command to use after installation of a shared archive.
13031 postinstall_cmds=$lt_postinstall_cmds
13032
13033 # Command to use after uninstallation of a shared archive.
13034 postuninstall_cmds=$lt_postuninstall_cmds
13035
13036 # Commands used to finish a libtool library installation in a directory.
13037 finish_cmds=$lt_finish_cmds
13038
13039 # As "finish_cmds", except a single script fragment to be evaled but
13040 # not shown.
13041 finish_eval=$lt_finish_eval
13042
13043 # Whether we should hardcode library paths into libraries.
13044 hardcode_into_libs=$hardcode_into_libs
13045
13046 # Compile-time system search path for libraries.
13047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13048
13049 # Run-time system search path for libraries.
13050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13051
13052 # Whether dlopen is supported.
13053 dlopen_support=$enable_dlopen
13054
13055 # Whether dlopen of programs is supported.
13056 dlopen_self=$enable_dlopen_self
13057
13058 # Whether dlopen of statically linked programs is supported.
13059 dlopen_self_static=$enable_dlopen_self_static
13060
13061 # Commands to strip libraries.
13062 old_striplib=$lt_old_striplib
13063 striplib=$lt_striplib
13064
13065
13066 # The linker used to build libraries.
13067 LD=$lt_LD
13068
13069 # How to create reloadable object files.
13070 reload_flag=$lt_reload_flag
13071 reload_cmds=$lt_reload_cmds
13072
13073 # Commands used to build an old-style archive.
13074 old_archive_cmds=$lt_old_archive_cmds
13075
13076 # A language specific compiler.
13077 CC=$lt_compiler
13078
13079 # Is the compiler the GNU compiler?
13080 with_gcc=$GCC
13081
13082 # Compiler flag to turn off builtin functions.
13083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13084
13085 # How to pass a linker flag through the compiler.
13086 wl=$lt_lt_prog_compiler_wl
13087
13088 # Additional compiler flags for building library objects.
13089 pic_flag=$lt_lt_prog_compiler_pic
13090
13091 # Compiler flag to prevent dynamic linking.
13092 link_static_flag=$lt_lt_prog_compiler_static
13093
13094 # Does compiler simultaneously support -c and -o options?
13095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13096
13097 # Whether or not to add -lc for building shared libraries.
13098 build_libtool_need_lc=$archive_cmds_need_lc
13099
13100 # Whether or not to disallow shared libs when runtime libs are static.
13101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13102
13103 # Compiler flag to allow reflexive dlopens.
13104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13105
13106 # Compiler flag to generate shared objects directly from archives.
13107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13108
13109 # Whether the compiler copes with passing no objects directly.
13110 compiler_needs_object=$lt_compiler_needs_object
13111
13112 # Create an old-style archive from a shared archive.
13113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13114
13115 # Create a temporary old-style archive to link instead of a shared archive.
13116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13117
13118 # Commands used to build a shared archive.
13119 archive_cmds=$lt_archive_cmds
13120 archive_expsym_cmds=$lt_archive_expsym_cmds
13121
13122 # Commands used to build a loadable module if different from building
13123 # a shared archive.
13124 module_cmds=$lt_module_cmds
13125 module_expsym_cmds=$lt_module_expsym_cmds
13126
13127 # Whether we are building with GNU ld or not.
13128 with_gnu_ld=$lt_with_gnu_ld
13129
13130 # Flag that allows shared libraries with undefined symbols to be built.
13131 allow_undefined_flag=$lt_allow_undefined_flag
13132
13133 # Flag that enforces no undefined symbols.
13134 no_undefined_flag=$lt_no_undefined_flag
13135
13136 # Flag to hardcode \$libdir into a binary during linking.
13137 # This must work even if \$libdir does not exist
13138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13139
13140 # If ld is used when linking, flag to hardcode \$libdir into a binary
13141 # during linking. This must work even if \$libdir does not exist.
13142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13143
13144 # Whether we need a single "-rpath" flag with a separated argument.
13145 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13146
13147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13148 # DIR into the resulting binary.
13149 hardcode_direct=$hardcode_direct
13150
13151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13152 # DIR into the resulting binary and the resulting library dependency is
13153 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13154 # library is relocated.
13155 hardcode_direct_absolute=$hardcode_direct_absolute
13156
13157 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13158 # into the resulting binary.
13159 hardcode_minus_L=$hardcode_minus_L
13160
13161 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13162 # into the resulting binary.
13163 hardcode_shlibpath_var=$hardcode_shlibpath_var
13164
13165 # Set to "yes" if building a shared library automatically hardcodes DIR
13166 # into the library and all subsequent libraries and executables linked
13167 # against it.
13168 hardcode_automatic=$hardcode_automatic
13169
13170 # Set to yes if linker adds runtime paths of dependent libraries
13171 # to runtime path list.
13172 inherit_rpath=$inherit_rpath
13173
13174 # Whether libtool must link a program against all its dependency libraries.
13175 link_all_deplibs=$link_all_deplibs
13176
13177 # Fix the shell variable \$srcfile for the compiler.
13178 fix_srcfile_path=$lt_fix_srcfile_path
13179
13180 # Set to "yes" if exported symbols are required.
13181 always_export_symbols=$always_export_symbols
13182
13183 # The commands to list exported symbols.
13184 export_symbols_cmds=$lt_export_symbols_cmds
13185
13186 # Symbols that should not be listed in the preloaded symbols.
13187 exclude_expsyms=$lt_exclude_expsyms
13188
13189 # Symbols that must always be exported.
13190 include_expsyms=$lt_include_expsyms
13191
13192 # Commands necessary for linking programs (against libraries) with templates.
13193 prelink_cmds=$lt_prelink_cmds
13194
13195 # Specify filename containing input files.
13196 file_list_spec=$lt_file_list_spec
13197
13198 # How to hardcode a shared library path into an executable.
13199 hardcode_action=$hardcode_action
13200
13201 # ### END LIBTOOL CONFIG
13202
13203 _LT_EOF
13204
13205 case $host_os in
13206 aix3*)
13207 cat <<\_LT_EOF >> "$cfgfile"
13208 # AIX sometimes has problems with the GCC collect2 program. For some
13209 # reason, if we set the COLLECT_NAMES environment variable, the problems
13210 # vanish in a puff of smoke.
13211 if test "X${COLLECT_NAMES+set}" != Xset; then
13212 COLLECT_NAMES=
13213 export COLLECT_NAMES
13214 fi
13215 _LT_EOF
13216 ;;
13217 esac
13218
13219
13220 ltmain="$ac_aux_dir/ltmain.sh"
13221
13222
13223 # We use sed instead of cat because bash on DJGPP gets confused if
13224 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13225 # text mode, it properly converts lines to CR/LF. This bash problem
13226 # is reportedly fixed, but why not run on old versions too?
13227 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13228 || (rm -f "$cfgfile"; exit 1)
13229
13230 case $xsi_shell in
13231 yes)
13232 cat << \_LT_EOF >> "$cfgfile"
13233
13234 # func_dirname file append nondir_replacement
13235 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13236 # otherwise set result to NONDIR_REPLACEMENT.
13237 func_dirname ()
13238 {
13239 case ${1} in
13240 */*) func_dirname_result="${1%/*}${2}" ;;
13241 * ) func_dirname_result="${3}" ;;
13242 esac
13243 }
13244
13245 # func_basename file
13246 func_basename ()
13247 {
13248 func_basename_result="${1##*/}"
13249 }
13250
13251 # func_dirname_and_basename file append nondir_replacement
13252 # perform func_basename and func_dirname in a single function
13253 # call:
13254 # dirname: Compute the dirname of FILE. If nonempty,
13255 # add APPEND to the result, otherwise set result
13256 # to NONDIR_REPLACEMENT.
13257 # value returned in "$func_dirname_result"
13258 # basename: Compute filename of FILE.
13259 # value retuned in "$func_basename_result"
13260 # Implementation must be kept synchronized with func_dirname
13261 # and func_basename. For efficiency, we do not delegate to
13262 # those functions but instead duplicate the functionality here.
13263 func_dirname_and_basename ()
13264 {
13265 case ${1} in
13266 */*) func_dirname_result="${1%/*}${2}" ;;
13267 * ) func_dirname_result="${3}" ;;
13268 esac
13269 func_basename_result="${1##*/}"
13270 }
13271
13272 # func_stripname prefix suffix name
13273 # strip PREFIX and SUFFIX off of NAME.
13274 # PREFIX and SUFFIX must not contain globbing or regex special
13275 # characters, hashes, percent signs, but SUFFIX may contain a leading
13276 # dot (in which case that matches only a dot).
13277 func_stripname ()
13278 {
13279 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13280 # positional parameters, so assign one to ordinary parameter first.
13281 func_stripname_result=${3}
13282 func_stripname_result=${func_stripname_result#"${1}"}
13283 func_stripname_result=${func_stripname_result%"${2}"}
13284 }
13285
13286 # func_opt_split
13287 func_opt_split ()
13288 {
13289 func_opt_split_opt=${1%%=*}
13290 func_opt_split_arg=${1#*=}
13291 }
13292
13293 # func_lo2o object
13294 func_lo2o ()
13295 {
13296 case ${1} in
13297 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13298 *) func_lo2o_result=${1} ;;
13299 esac
13300 }
13301
13302 # func_xform libobj-or-source
13303 func_xform ()
13304 {
13305 func_xform_result=${1%.*}.lo
13306 }
13307
13308 # func_arith arithmetic-term...
13309 func_arith ()
13310 {
13311 func_arith_result=$(( $* ))
13312 }
13313
13314 # func_len string
13315 # STRING may not start with a hyphen.
13316 func_len ()
13317 {
13318 func_len_result=${#1}
13319 }
13320
13321 _LT_EOF
13322 ;;
13323 *) # Bourne compatible functions.
13324 cat << \_LT_EOF >> "$cfgfile"
13325
13326 # func_dirname file append nondir_replacement
13327 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13328 # otherwise set result to NONDIR_REPLACEMENT.
13329 func_dirname ()
13330 {
13331 # Extract subdirectory from the argument.
13332 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13333 if test "X$func_dirname_result" = "X${1}"; then
13334 func_dirname_result="${3}"
13335 else
13336 func_dirname_result="$func_dirname_result${2}"
13337 fi
13338 }
13339
13340 # func_basename file
13341 func_basename ()
13342 {
13343 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13344 }
13345
13346
13347 # func_stripname prefix suffix name
13348 # strip PREFIX and SUFFIX off of NAME.
13349 # PREFIX and SUFFIX must not contain globbing or regex special
13350 # characters, hashes, percent signs, but SUFFIX may contain a leading
13351 # dot (in which case that matches only a dot).
13352 # func_strip_suffix prefix name
13353 func_stripname ()
13354 {
13355 case ${2} in
13356 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13357 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13358 esac
13359 }
13360
13361 # sed scripts:
13362 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13363 my_sed_long_arg='1s/^-[^=]*=//'
13364
13365 # func_opt_split
13366 func_opt_split ()
13367 {
13368 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13369 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13370 }
13371
13372 # func_lo2o object
13373 func_lo2o ()
13374 {
13375 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13376 }
13377
13378 # func_xform libobj-or-source
13379 func_xform ()
13380 {
13381 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13382 }
13383
13384 # func_arith arithmetic-term...
13385 func_arith ()
13386 {
13387 func_arith_result=`expr "$@"`
13388 }
13389
13390 # func_len string
13391 # STRING may not start with a hyphen.
13392 func_len ()
13393 {
13394 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13395 }
13396
13397 _LT_EOF
13398 esac
13399
13400 case $lt_shell_append in
13401 yes)
13402 cat << \_LT_EOF >> "$cfgfile"
13403
13404 # func_append var value
13405 # Append VALUE to the end of shell variable VAR.
13406 func_append ()
13407 {
13408 eval "$1+=\$2"
13409 }
13410 _LT_EOF
13411 ;;
13412 *)
13413 cat << \_LT_EOF >> "$cfgfile"
13414
13415 # func_append var value
13416 # Append VALUE to the end of shell variable VAR.
13417 func_append ()
13418 {
13419 eval "$1=\$$1\$2"
13420 }
13421
13422 _LT_EOF
13423 ;;
13424 esac
13425
13426
13427 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13428 || (rm -f "$cfgfile"; exit 1)
13429
13430 mv -f "$cfgfile" "$ofile" ||
13431 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13432 chmod +x "$ofile"
13433
13434 ;;
13435 "default-1":C)
13436 # Only add multilib support code if we just rebuilt the top-level
13437 # Makefile.
13438 case " $CONFIG_FILES " in
13439 *" Makefile "*)
13440 ac_file=Makefile . ${multi_basedir}/config-ml.in
13441 ;;
13442 esac ;;
13443 "default":C) if test -n "$CONFIG_FILES"; then
13444 if test -n "${with_target_subdir}"; then
13445 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
13446 # that multilib installs will end up installed in the correct place.
13447 # The testsuite needs it for multilib-aware ABI baseline files.
13448 # To work around this not being passed down from config-ml.in ->
13449 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
13450 # append it here. Only modify Makefiles that have just been created.
13451 #
13452 # Also, get rid of this simulated-VPATH thing that automake does.
13453 cat > vpsed << \_EOF
13454 s!`test -f '$<' || echo '$(srcdir)/'`!!
13455 _EOF
13456 for i in $SUBDIRS; do
13457 case $CONFIG_FILES in
13458 *${i}/Makefile*)
13459 #echo "Adding MULTISUBDIR to $i/Makefile"
13460 sed -f vpsed $i/Makefile > tmp
13461 grep '^MULTISUBDIR =' Makefile >> tmp
13462 mv tmp $i/Makefile
13463 ;;
13464 esac
13465 done
13466 rm vpsed
13467 fi
13468 fi
13469 ;;
13470
13471 esac
13472 done # for ac_tag
13473
13474
13475 as_fn_exit 0
13476 _ACEOF
13477 ac_clean_files=$ac_clean_files_save
13478
13479 test $ac_write_fail = 0 ||
13480 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13481
13482
13483 # configure is writing to config.log, and then calls config.status.
13484 # config.status does its own redirection, appending to config.log.
13485 # Unfortunately, on DOS this fails, as config.log is still kept open
13486 # by configure, so config.status won't be able to write to it; its
13487 # output is simply discarded. So we exec the FD to /dev/null,
13488 # effectively closing config.log, so it can be properly (re)opened and
13489 # appended to by config.status. When coming back to configure, we
13490 # need to make the FD available again.
13491 if test "$no_create" != yes; then
13492 ac_cs_success=:
13493 ac_config_status_args=
13494 test "$silent" = yes &&
13495 ac_config_status_args="$ac_config_status_args --quiet"
13496 exec 5>/dev/null
13497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13498 exec 5>>config.log
13499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13500 # would make configure fail if this is the last instruction.
13501 $ac_cs_success || as_fn_exit $?
13502 fi
13503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13506 fi
13507