Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libbdplus 0.2.0.
4 #
5 # Report bugs to <http://www.videolan.org/developers/libbdplus.html>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: http://www.videolan.org/developers/libbdplus.html about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libbdplus'
592 PACKAGE_TARNAME='libbdplus'
593 PACKAGE_VERSION='0.2.0'
594 PACKAGE_STRING='libbdplus 0.2.0'
595 PACKAGE_BUGREPORT='http://www.videolan.org/developers/libbdplus.html'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 SET_FEATURES
639 LT_VERSION_INFO
640 BDPLUS_VERSION_MICRO
641 BDPLUS_VERSION_MINOR
642 BDPLUS_VERSION_MAJOR
643 LIBAACS_LIBS
644 LIBAACS_CFLAGS
645 PKG_CONFIG_LIBDIR
646 PKG_CONFIG_PATH
647 PKG_CONFIG
648 GPG_ERROR_LIBS
649 GPG_ERROR_CFLAGS
650 GPG_ERROR_CONFIG
651 LIBGCRYPT_LIBS
652 LIBGCRYPT_CFLAGS
653 LIBGCRYPT_CONFIG
654 AS
655 CPP
656 LT_SYS_LIBRARY_PATH
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 EGREP
675 GREP
676 SED
677 LIBTOOL
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 HAVE_DARWIN_FALSE
695 HAVE_DARWIN_TRUE
696 HAVE_WIN32_FALSE
697 HAVE_WIN32_TRUE
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 CSCOPE
703 ETAGS
704 CTAGS
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_werror
785 enable_extra_warnings
786 enable_optimizations
787 enable_dependency_tracking
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_largefile
797 with_libgcrypt_prefix
798 with_gpg_error_prefix
799 with_libaacs
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 LT_SYS_LIBRARY_PATH
810 CPP
811 PKG_CONFIG
812 PKG_CONFIG_PATH
813 PKG_CONFIG_LIBDIR
814 LIBAACS_CFLAGS
815 LIBAACS_LIBS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 runstatedir='${localstatedir}/run'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -runstatedir | --runstatedir | --runstatedi | --runstated \
1108 | --runstate | --runstat | --runsta | --runst | --runs \
1109 | --run | --ru | --r)
1110 ac_prev=runstatedir ;;
1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113 | --run=* | --ru=* | --r=*)
1114 runstatedir=$ac_optarg ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1160
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1176
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1210
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1224
1225 *)
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 ;;
1232
1233 esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir runstatedir
1254 do
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures libbdplus 0.2.0 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libbdplus]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1421
1422 cat <<\_ACEOF
1423
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of libbdplus 0.2.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-werror set warnings as errors via -Werror
1449 [default=disabled]
1450 --disable-extra-warnings
1451 set extra warnings [default=enabled]
1452 --disable-optimizations disable optimizations [default=enabled]
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --disable-largefile omit support for large files
1463
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-aix-soname=aix|svr4|both
1470 shared library versioning (aka "SONAME") variant to
1471 provide on AIX, [default=aix].
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1474 compiler's sysroot if not specified).
1475 --with-libgcrypt-prefix=PFX
1476 prefix where libgcrypt is installed (optional)
1477 --with-gpg-error-prefix=PFX
1478 prefix where gpg-error is installed (optional)
1479 --without-libaacs build bdplus_test without libaacs support
1480 [default=with]
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 LT_SYS_LIBRARY_PATH
1491 User-defined run-time library search path.
1492 CPP C preprocessor
1493 PKG_CONFIG path to pkg-config utility
1494 PKG_CONFIG_PATH
1495 directories to add to pkg-config's search path
1496 PKG_CONFIG_LIBDIR
1497 path overriding pkg-config's built-in search path
1498 LIBAACS_CFLAGS
1499 C compiler flags for LIBAACS, overriding pkg-config
1500 LIBAACS_LIBS
1501 linker flags for LIBAACS, overriding pkg-config
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <http://www.videolan.org/developers/libbdplus.html>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 libbdplus configure 0.2.0
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 eval "$3=yes"
1686 else
1687 eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_header_mongrel ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 else
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1872 else
1873 ac_header_compiler=no
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1878
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1888 else
1889 ac_header_preproc=no
1890 fi
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1894
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 yes:no: )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ;;
1903 no:yes:* )
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ( $as_echo "## ---------------------------------------------------------------- ##
1915 ## Report this to http://www.videolan.org/developers/libbdplus.html ##
1916 ## ---------------------------------------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1918 ;;
1919 esac
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 else
1925 eval "$3=\$ac_header_compiler"
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 fi
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_header_mongrel
1934
1935 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1936 # ----------------------------------------------------
1937 # Tries to find if the field MEMBER exists in type AGGR, after including
1938 # INCLUDES, setting cache variable VAR accordingly.
1939 ac_fn_c_check_member ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1943 $as_echo_n "checking for $2.$3... " >&6; }
1944 if eval \${$4+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $5
1950 int
1951 main ()
1952 {
1953 static $2 ac_aggr;
1954 if (ac_aggr.$3)
1955 return 0;
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$4=yes"
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $5
1966 int
1967 main ()
1968 {
1969 static $2 ac_aggr;
1970 if (sizeof ac_aggr.$3)
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$4=yes"
1978 else
1979 eval "$4=no"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$4
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_member
1991
1992 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1993 # ---------------------------------------------
1994 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_decl ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 as_decl_name=`echo $2|sed 's/ *(.*//'`
2000 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 #ifndef $as_decl_name
2013 #ifdef __cplusplus
2014 (void) $as_decl_use;
2015 #else
2016 (void) $as_decl_name;
2017 #endif
2018 #endif
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026 else
2027 eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_decl
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by libbdplus $as_me 0.2.0, which was
2042 generated by GNU Autoconf 2.69. Invocation command line was
2043
2044 $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 $as_echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 esac
2115 case $ac_pass in
2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 2)
2118 as_fn_append ac_configure_args1 " '$ac_arg'"
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
2134 as_fn_append ac_configure_args " '$ac_arg'"
2135 ;;
2136 esac
2137 done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log. We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
2157 (
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
2173 (set) 2>&1 |
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
2176 sed -n \
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 ;; #(
2180 *)
2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ;;
2183 esac |
2184 sort
2185 )
2186 echo
2187
2188 $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222 echo
2223 cat confdefs.h
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
2282 elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285 else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291 test "x$ac_site_file" = xNONE && continue
2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310 case $cache_file in
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
2313 esac
2314 fi
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 >$cache_file
2319 fi
2320
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2330 set,)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,set)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 esac
2369 fi
2370 done
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389 ac_aux_dir=
2390 for ac_dir in build-aux "$srcdir"/build-aux; do
2391 if test -f "$ac_dir/install-sh"; then
2392 ac_aux_dir=$ac_dir
2393 ac_install_sh="$ac_aux_dir/install-sh -c"
2394 break
2395 elif test -f "$ac_dir/install.sh"; then
2396 ac_aux_dir=$ac_dir
2397 ac_install_sh="$ac_aux_dir/install.sh -c"
2398 break
2399 elif test -f "$ac_dir/shtool"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 break
2403 fi
2404 done
2405 if test -z "$ac_aux_dir"; then
2406 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2407 fi
2408
2409 # These three variables are undocumented and unsupported,
2410 # and are intended to be withdrawn in a future Autoconf release.
2411 # They can cause serious problems if a builder's source tree is in a directory
2412 # whose full name contains unusual characters.
2413 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2414 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2415 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416
2417
2418
2419 # Make sure we can run config.sub.
2420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2422
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2424 $as_echo_n "checking build system type... " >&6; }
2425 if ${ac_cv_build+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 ac_build_alias=$build_alias
2429 test "x$ac_build_alias" = x &&
2430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2431 test "x$ac_build_alias" = x &&
2432 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2438 $as_echo "$ac_cv_build" >&6; }
2439 case $ac_cv_build in
2440 *-*-*) ;;
2441 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2442 esac
2443 build=$ac_cv_build
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_build
2446 shift
2447 build_cpu=$1
2448 build_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 build_os=$*
2453 IFS=$ac_save_IFS
2454 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2458 $as_echo_n "checking host system type... " >&6; }
2459 if ${ac_cv_host+:} false; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 if test "x$host_alias" = x; then
2463 ac_cv_host=$ac_cv_build
2464 else
2465 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2467 fi
2468
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2471 $as_echo "$ac_cv_host" >&6; }
2472 case $ac_cv_host in
2473 *-*-*) ;;
2474 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2475 esac
2476 host=$ac_cv_host
2477 ac_save_IFS=$IFS; IFS='-'
2478 set x $ac_cv_host
2479 shift
2480 host_cpu=$1
2481 host_vendor=$2
2482 shift; shift
2483 # Remember, the first character of IFS is used to create $*,
2484 # except with old shells:
2485 host_os=$*
2486 IFS=$ac_save_IFS
2487 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2488
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2491 $as_echo_n "checking target system type... " >&6; }
2492 if ${ac_cv_target+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test "x$target_alias" = x; then
2496 ac_cv_target=$ac_cv_host
2497 else
2498 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2500 fi
2501
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2504 $as_echo "$ac_cv_target" >&6; }
2505 case $ac_cv_target in
2506 *-*-*) ;;
2507 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2508 esac
2509 target=$ac_cv_target
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_target
2512 shift
2513 target_cpu=$1
2514 target_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 target_os=$*
2519 IFS=$ac_save_IFS
2520 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2521
2522
2523 # The aliases save the names the user supplied, while $host etc.
2524 # will get canonicalized.
2525 test -n "$target_alias" &&
2526 test "$program_prefix$program_suffix$program_transform_name" = \
2527 NONENONEs,x,x, &&
2528 program_prefix=${target_alias}-
2529
2530 am__api_version='1.16'
2531
2532 # Find a good install program. We prefer a C program (faster),
2533 # so one script is as good as another. But avoid the broken or
2534 # incompatible versions:
2535 # SysV /etc/install, /usr/sbin/install
2536 # SunOS /usr/etc/install
2537 # IRIX /sbin/install
2538 # AIX /bin/install
2539 # AmigaOS /C/install, which installs bootblocks on floppy discs
2540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2543 # OS/2's system install, which has a completely different semantic
2544 # ./install, which can be erroneously created by make from ./install.sh.
2545 # Reject install programs that cannot install multiple files.
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2548 if test -z "$INSTALL"; then
2549 if ${ac_cv_path_install+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 # Account for people who put trailing slashes in PATH elements.
2558 case $as_dir/ in #((
2559 ./ | .// | /[cC]/* | \
2560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2562 /usr/ucb/* ) ;;
2563 *)
2564 # OSF1 and SCO ODT 3.0 have their own names for install.
2565 # Don't use installbsd from OSF since it installs stuff as root
2566 # by default.
2567 for ac_prog in ginstall scoinst install; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2570 if test $ac_prog = install &&
2571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # AIX install. It has an incompatible calling convention.
2573 :
2574 elif test $ac_prog = install &&
2575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576 # program-specific install script used by HP pwplus--don't use.
2577 :
2578 else
2579 rm -rf conftest.one conftest.two conftest.dir
2580 echo one > conftest.one
2581 echo two > conftest.two
2582 mkdir conftest.dir
2583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2584 test -s conftest.one && test -s conftest.two &&
2585 test -s conftest.dir/conftest.one &&
2586 test -s conftest.dir/conftest.two
2587 then
2588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2589 break 3
2590 fi
2591 fi
2592 fi
2593 done
2594 done
2595 ;;
2596 esac
2597
2598 done
2599 IFS=$as_save_IFS
2600
2601 rm -rf conftest.one conftest.two conftest.dir
2602
2603 fi
2604 if test "${ac_cv_path_install+set}" = set; then
2605 INSTALL=$ac_cv_path_install
2606 else
2607 # As a last resort, use the slow shell script. Don't cache a
2608 # value for INSTALL within a source directory, because that will
2609 # break other packages using the cache if that directory is
2610 # removed, or if the value is a relative name.
2611 INSTALL=$ac_install_sh
2612 fi
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2615 $as_echo "$INSTALL" >&6; }
2616
2617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2618 # It thinks the first close brace ends the variable substitution.
2619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2620
2621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2622
2623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2626 $as_echo_n "checking whether build environment is sane... " >&6; }
2627 # Reject unsafe characters in $srcdir or the absolute working directory
2628 # name. Accept space and tab only in the latter.
2629 am_lf='
2630 '
2631 case `pwd` in
2632 *[\\\"\#\$\&\'\`$am_lf]*)
2633 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2634 esac
2635 case $srcdir in
2636 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2637 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2638 esac
2639
2640 # Do 'set' in a subshell so we don't clobber the current shell's
2641 # arguments. Must try -L first in case configure is actually a
2642 # symlink; some systems play weird games with the mod time of symlinks
2643 # (eg FreeBSD returns the mod time of the symlink's containing
2644 # directory).
2645 if (
2646 am_has_slept=no
2647 for am_try in 1 2; do
2648 echo "timestamp, slept: $am_has_slept" > conftest.file
2649 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2650 if test "$*" = "X"; then
2651 # -L didn't work.
2652 set X `ls -t "$srcdir/configure" conftest.file`
2653 fi
2654 if test "$*" != "X $srcdir/configure conftest.file" \
2655 && test "$*" != "X conftest.file $srcdir/configure"; then
2656
2657 # If neither matched, then we have a broken ls. This can happen
2658 # if, for instance, CONFIG_SHELL is bash and it inherits a
2659 # broken ls alias from the environment. This has actually
2660 # happened. Such a system could not be considered "sane".
2661 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2662 alias in your environment" "$LINENO" 5
2663 fi
2664 if test "$2" = conftest.file || test $am_try -eq 2; then
2665 break
2666 fi
2667 # Just in case.
2668 sleep 1
2669 am_has_slept=yes
2670 done
2671 test "$2" = conftest.file
2672 )
2673 then
2674 # Ok.
2675 :
2676 else
2677 as_fn_error $? "newly created file is older than distributed files!
2678 Check your system clock" "$LINENO" 5
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2681 $as_echo "yes" >&6; }
2682 # If we didn't sleep, we still need to ensure time stamps of config.status and
2683 # generated files are strictly newer.
2684 am_sleep_pid=
2685 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2686 ( sleep 1 ) &
2687 am_sleep_pid=$!
2688 fi
2689
2690 rm -f conftest.file
2691
2692 test "$program_prefix" != NONE &&
2693 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2694 # Use a double $ so make ignores it.
2695 test "$program_suffix" != NONE &&
2696 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2697 # Double any \ or $.
2698 # By default was `s,x,x', remove it if useless.
2699 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2700 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2701
2702 # Expand $ac_aux_dir to an absolute path.
2703 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2704
2705 if test x"${MISSING+set}" != xset; then
2706 MISSING="\${SHELL} '$am_aux_dir/missing'"
2707 fi
2708 # Use eval to expand $SHELL
2709 if eval "$MISSING --is-lightweight"; then
2710 am_missing_run="$MISSING "
2711 else
2712 am_missing_run=
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2714 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2715 fi
2716
2717 if test x"${install_sh+set}" != xset; then
2718 case $am_aux_dir in
2719 *\ * | *\ *)
2720 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2721 *)
2722 install_sh="\${SHELL} $am_aux_dir/install-sh"
2723 esac
2724 fi
2725
2726 # Installed binaries are usually stripped using 'strip' when the user
2727 # run "make install-strip". However 'strip' might not be the right
2728 # tool to use in cross-compilation environments, therefore Automake
2729 # will honor the 'STRIP' environment variable to overrule this program.
2730 if test "$cross_compiling" != no; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}strip; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_STRIP+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$STRIP"; then
2740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 STRIP=$ac_cv_prog_STRIP
2760 if test -n "$STRIP"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2762 $as_echo "$STRIP" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_STRIP"; then
2771 ac_ct_STRIP=$STRIP
2772 # Extract the first word of "strip", so it can be a program name with args.
2773 set dummy strip; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$ac_ct_STRIP"; then
2780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_STRIP="strip"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2800 if test -n "$ac_ct_STRIP"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2802 $as_echo "$ac_ct_STRIP" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808 if test "x$ac_ct_STRIP" = x; then
2809 STRIP=":"
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 STRIP=$ac_ct_STRIP
2818 fi
2819 else
2820 STRIP="$ac_cv_prog_STRIP"
2821 fi
2822
2823 fi
2824 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2827 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2828 if test -z "$MKDIR_P"; then
2829 if ${ac_cv_path_mkdir+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_prog in mkdir gmkdir; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2840 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2841 'mkdir (GNU coreutils) '* | \
2842 'mkdir (coreutils) '* | \
2843 'mkdir (fileutils) '4.1*)
2844 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2845 break 3;;
2846 esac
2847 done
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853
2854 test -d ./--version && rmdir ./--version
2855 if test "${ac_cv_path_mkdir+set}" = set; then
2856 MKDIR_P="$ac_cv_path_mkdir -p"
2857 else
2858 # As a last resort, use the slow shell script. Don't cache a
2859 # value for MKDIR_P within a source directory, because that will
2860 # break other packages using the cache if that directory is
2861 # removed, or if the value is a relative name.
2862 MKDIR_P="$ac_install_sh -d"
2863 fi
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2866 $as_echo "$MKDIR_P" >&6; }
2867
2868 for ac_prog in gawk mawk nawk awk
2869 do
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_AWK+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$AWK"; then
2878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_AWK="$ac_prog"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 AWK=$ac_cv_prog_AWK
2898 if test -n "$AWK"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2900 $as_echo "$AWK" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 test -n "$AWK" && break
2908 done
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2911 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2912 set x ${MAKE-make}
2913 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2914 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 cat >conftest.make <<\_ACEOF
2918 SHELL = /bin/sh
2919 all:
2920 @echo '@@@%%%=$(MAKE)=@@@%%%'
2921 _ACEOF
2922 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2923 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2924 *@@@%%%=?*=@@@%%%*)
2925 eval ac_cv_prog_make_${ac_make}_set=yes;;
2926 *)
2927 eval ac_cv_prog_make_${ac_make}_set=no;;
2928 esac
2929 rm -f conftest.make
2930 fi
2931 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933 $as_echo "yes" >&6; }
2934 SET_MAKE=
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 SET_MAKE="MAKE=${MAKE-make}"
2939 fi
2940
2941 rm -rf .tst 2>/dev/null
2942 mkdir .tst 2>/dev/null
2943 if test -d .tst; then
2944 am__leading_dot=.
2945 else
2946 am__leading_dot=_
2947 fi
2948 rmdir .tst 2>/dev/null
2949
2950 # Check whether --enable-silent-rules was given.
2951 if test "${enable_silent_rules+set}" = set; then :
2952 enableval=$enable_silent_rules;
2953 fi
2954
2955 case $enable_silent_rules in # (((
2956 yes) AM_DEFAULT_VERBOSITY=0;;
2957 no) AM_DEFAULT_VERBOSITY=1;;
2958 *) AM_DEFAULT_VERBOSITY=1;;
2959 esac
2960 am_make=${MAKE-make}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2962 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2963 if ${am_cv_make_support_nested_variables+:} false; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if $as_echo 'TRUE=$(BAR$(V))
2967 BAR0=false
2968 BAR1=true
2969 V=1
2970 am__doit:
2971 @$(TRUE)
2972 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2973 am_cv_make_support_nested_variables=yes
2974 else
2975 am_cv_make_support_nested_variables=no
2976 fi
2977 fi
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2979 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2980 if test $am_cv_make_support_nested_variables = yes; then
2981 AM_V='$(V)'
2982 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2983 else
2984 AM_V=$AM_DEFAULT_VERBOSITY
2985 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2986 fi
2987 AM_BACKSLASH='\'
2988
2989 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2990 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2991 # is not polluted with repeated "-I."
2992 am__isrc=' -I$(srcdir)'
2993 # test to see if srcdir already configured
2994 if test -f $srcdir/config.status; then
2995 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2996 fi
2997 fi
2998
2999 # test whether we have cygpath
3000 if test -z "$CYGPATH_W"; then
3001 if (cygpath --version) >/dev/null 2>/dev/null; then
3002 CYGPATH_W='cygpath -w'
3003 else
3004 CYGPATH_W=echo
3005 fi
3006 fi
3007
3008
3009 # Define the identity of the package.
3010 PACKAGE='libbdplus'
3011 VERSION='0.2.0'
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE "$PACKAGE"
3016 _ACEOF
3017
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define VERSION "$VERSION"
3021 _ACEOF
3022
3023 # Some tools Automake needs.
3024
3025 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039 # For better backward compatibility. To be removed once Automake 1.9.x
3040 # dies out for good. For more background, see:
3041 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3042 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3043 mkdir_p='$(MKDIR_P)'
3044
3045 # We need awk for the "check" target (and possibly the TAP driver). The
3046 # system "awk" is bad on some platforms.
3047 # Always define AMTAR for backward compatibility. Yes, it's still used
3048 # in the wild :-( We should find a proper way to deprecate it ...
3049 AMTAR='$${TAR-tar}'
3050
3051
3052 # We'll loop over all known methods to create a tar archive until one works.
3053 _am_tools='gnutar plaintar pax cpio none'
3054
3055 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3056 # There is notably a 21 bits limit for the UID and the GID. In fact,
3057 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3058 # and bug#13588).
3059 am_max_uid=2097151 # 2^21 - 1
3060 am_max_gid=$am_max_uid
3061 # The $UID and $GID variables are not portable, so we need to resort
3062 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3063 # below are definitely unexpected, so allow the users to see them
3064 # (that is, avoid stderr redirection).
3065 am_uid=`id -u || echo unknown`
3066 am_gid=`id -g || echo unknown`
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3068 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3069 if test $am_uid -le $am_max_uid; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 $as_echo "yes" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 _am_tools=none
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3078 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3079 if test $am_gid -le $am_max_gid; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 _am_tools=none
3086 fi
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3089 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3090
3091 # Go ahead even if we have the value already cached. We do so because we
3092 # need to set the values for the 'am__tar' and 'am__untar' variables.
3093 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3094
3095 for _am_tool in $_am_tools; do
3096 case $_am_tool in
3097 gnutar)
3098 for _am_tar in tar gnutar gtar; do
3099 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3100 ($_am_tar --version) >&5 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && break
3104 done
3105 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3106 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3107 am__untar="$_am_tar -xf -"
3108 ;;
3109 plaintar)
3110 # Must skip GNU tar: if it does not support --format= it doesn't create
3111 # ustar tarball either.
3112 (tar --version) >/dev/null 2>&1 && continue
3113 am__tar='tar chf - "$$tardir"'
3114 am__tar_='tar chf - "$tardir"'
3115 am__untar='tar xf -'
3116 ;;
3117 pax)
3118 am__tar='pax -L -x ustar -w "$$tardir"'
3119 am__tar_='pax -L -x ustar -w "$tardir"'
3120 am__untar='pax -r'
3121 ;;
3122 cpio)
3123 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3124 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3125 am__untar='cpio -i -H ustar -d'
3126 ;;
3127 none)
3128 am__tar=false
3129 am__tar_=false
3130 am__untar=false
3131 ;;
3132 esac
3133
3134 # If the value was cached, stop now. We just wanted to have am__tar
3135 # and am__untar set.
3136 test -n "${am_cv_prog_tar_ustar}" && break
3137
3138 # tar/untar a dummy directory, and stop if the command works.
3139 rm -rf conftest.dir
3140 mkdir conftest.dir
3141 echo GrepMe > conftest.dir/file
3142 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3143 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }
3147 rm -rf conftest.dir
3148 if test -s conftest.tar; then
3149 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3150 ($am__untar <conftest.tar) >&5 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
3154 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3155 (cat conftest.dir/file) >&5 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3159 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3160 fi
3161 done
3162 rm -rf conftest.dir
3163
3164 if ${am_cv_prog_tar_ustar+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 am_cv_prog_tar_ustar=$_am_tool
3168 fi
3169
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3171 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3172
3173
3174
3175
3176
3177 # Variables for tags utilities; see am/tags.am
3178 if test -z "$CTAGS"; then
3179 CTAGS=ctags
3180 fi
3181
3182 if test -z "$ETAGS"; then
3183 ETAGS=etags
3184 fi
3185
3186 if test -z "$CSCOPE"; then
3187 CSCOPE=cscope
3188 fi
3189
3190
3191
3192 # POSIX will say in a future version that running "rm -f" with no argument
3193 # is OK; and we want to be able to make that assumption in our Makefile
3194 # recipes. So use an aggressive probe to check that the usage we want is
3195 # actually supported "in the wild" to an acceptable degree.
3196 # See automake bug#10828.
3197 # To make any issue more visible, cause the running configure to be aborted
3198 # by default if the 'rm' program in use doesn't match our expectations; the
3199 # user can still override this though.
3200 if rm -f && rm -fr && rm -rf; then : OK; else
3201 cat >&2 <<'END'
3202 Oops!
3203
3204 Your 'rm' program seems unable to run without file operands specified
3205 on the command line, even when the '-f' option is present. This is contrary
3206 to the behaviour of most rm programs out there, and not conforming with
3207 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3208
3209 Please tell [email protected] about your system, including the value
3210 of your $PATH and any error possibly output before this message. This
3211 can help us improve future automake versions.
3212
3213 END
3214 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3215 echo 'Configuration will proceed anyway, since you have set the' >&2
3216 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3217 echo >&2
3218 else
3219 cat >&2 <<'END'
3220 Aborting the configuration process, to ensure you take notice of the issue.
3221
3222 You can download and install GNU coreutils to get an 'rm' implementation
3223 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3224
3225 If you want to complete the configuration process using your problematic
3226 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3227 to "yes", and re-run configure.
3228
3229 END
3230 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3231 fi
3232 fi
3233
3234 ac_config_headers="$ac_config_headers config.h"
3235
3236
3237 # Check whether --enable-silent-rules was given.
3238 if test "${enable_silent_rules+set}" = set; then :
3239 enableval=$enable_silent_rules;
3240 fi
3241
3242 case $enable_silent_rules in # (((
3243 yes) AM_DEFAULT_VERBOSITY=0;;
3244 no) AM_DEFAULT_VERBOSITY=1;;
3245 *) AM_DEFAULT_VERBOSITY=0;;
3246 esac
3247 am_make=${MAKE-make}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3250 if ${am_cv_make_support_nested_variables+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if $as_echo 'TRUE=$(BAR$(V))
3254 BAR0=false
3255 BAR1=true
3256 V=1
3257 am__doit:
3258 @$(TRUE)
3259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3260 am_cv_make_support_nested_variables=yes
3261 else
3262 am_cv_make_support_nested_variables=no
3263 fi
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3267 if test $am_cv_make_support_nested_variables = yes; then
3268 AM_V='$(V)'
3269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3270 else
3271 AM_V=$AM_DEFAULT_VERBOSITY
3272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3273 fi
3274 AM_BACKSLASH='\'
3275
3276
3277 SET_FEATURES="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L"
3278
3279 case "${host_os}" in
3280 "")
3281 SYS=unknown
3282 ;;
3283 *mingw* | *cygwin* | *wince* | *mingwce*)
3284 case "${host_os}" in
3285 *wince* | *mingwce* | *mingw32ce*)
3286 SYS=mingwce
3287 ;;
3288 *mingw*)
3289 SYS=mingw32
3290
3291 $as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h
3292
3293
3294 $as_echo "#define _WIN32_IE 0x0501" >>confdefs.h
3295
3296 ;;
3297 esac
3298 ;;
3299 *darwin*)
3300 SYS=darwin
3301 ;;
3302 *)
3303 SYS="${host_os}"
3304 ;;
3305 esac
3306
3307 if test "${SYS}" = "mingw32"; then
3308 HAVE_WIN32_TRUE=
3309 HAVE_WIN32_FALSE='#'
3310 else
3311 HAVE_WIN32_TRUE='#'
3312 HAVE_WIN32_FALSE=
3313 fi
3314
3315 if test "${SYS}" = "darwin"; then
3316 HAVE_DARWIN_TRUE=
3317 HAVE_DARWIN_FALSE='#'
3318 else
3319 HAVE_DARWIN_TRUE='#'
3320 HAVE_DARWIN_FALSE=
3321 fi
3322
3323
3324 library_not_found="Could not find required library!"
3325 function_not_found="Could not find required function!"
3326
3327 # Check whether --enable-werror was given.
3328 if test "${enable_werror+set}" = set; then :
3329 enableval=$enable_werror;
3330 fi
3331
3332
3333 # Check whether --enable-extra-warnings was given.
3334 if test "${enable_extra_warnings+set}" = set; then :
3335 enableval=$enable_extra_warnings;
3336 fi
3337
3338
3339 # Check whether --enable-optimizations was given.
3340 if test "${enable_optimizations+set}" = set; then :
3341 enableval=$enable_optimizations;
3342 fi
3343
3344
3345 if ${lt_cv_deplibs_check_method+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 lt_cv_deplibs_check_method=pass_all
3349 fi
3350
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_CC+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395 fi
3396 if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3444 fi
3445 else
3446 CC="$ac_cv_prog_CC"
3447 fi
3448
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488 fi
3489 fi
3490 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 ac_prog_rejected=no
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes
3511 continue
3512 fi
3513 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC
3524 shift
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3529 shift
3530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531 fi
3532 fi
3533 fi
3534 fi
3535 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545 fi
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe
3549 do
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 test -n "$CC" && break
3588 done
3589 fi
3590 if test -z "$CC"; then
3591 ac_ct_CC=$CC
3592 for ac_prog in cl.exe
3593 do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630
3631 test -n "$ac_ct_CC" && break
3632 done
3633
3634 if test "x$ac_ct_CC" = x; then
3635 CC=""
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CC=$ac_ct_CC
3644 fi
3645 fi
3646
3647 fi
3648
3649
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error $? "no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details" "$LINENO" 5; }
3654
3655 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3657 set X $ac_compile
3658 ac_compiler=$2
3659 for ac_option in --version -v -V -qversion; do
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3668 ac_status=$?
3669 if test -s conftest.err; then
3670 sed '10a\
3671 ... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 fi
3675 rm -f conftest.er1 conftest.err
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 done
3679
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files_save=$ac_clean_files
3692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693 # Try to create an executable without -o first, disregard a.out.
3694 # It will help us diagnose broken compilers, and finding out an intuition
3695 # of exeext.
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3697 $as_echo_n "checking whether the C compiler works... " >&6; }
3698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700 # The possible output files:
3701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703 ac_rmfiles=
3704 for ac_file in $ac_files
3705 do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710 done
3711 rm -f $ac_rmfiles
3712
3713 if { { ac_try="$ac_link_default"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3728 # Autoconf.
3729 for ac_file in $ac_files ''
3730 do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753 done
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756 else
3757 ac_file=''
3758 fi
3759 if test -z "$ac_file"; then :
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3762 $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error 77 "C compiler cannot create executables
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771 $as_echo "yes" >&6; }
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3774 $as_echo_n "checking for C compiler default output file name... " >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776 $as_echo "$ac_file" >&6; }
3777 ac_exeext=$ac_cv_exeext
3778
3779 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3780 ac_clean_files=$ac_clean_files_save
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3782 $as_echo_n "checking for suffix of executables... " >&6; }
3783 if { { ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3796 # work properly (i.e., refer to `conftest.exe'), while it won't with
3797 # `rm'.
3798 for ac_file in conftest.exe conftest conftest.*; do
3799 test -f "$ac_file" || continue
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803 break;;
3804 * ) break;;
3805 esac
3806 done
3807 else
3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3811 See \`config.log' for more details" "$LINENO" 5; }
3812 fi
3813 rm -f conftest conftest$ac_cv_exeext
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3815 $as_echo "$ac_cv_exeext" >&6; }
3816
3817 rm -f conftest.$ac_ext
3818 EXEEXT=$ac_cv_exeext
3819 ac_exeext=$EXEEXT
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <stdio.h>
3823 int
3824 main ()
3825 {
3826 FILE *f = fopen ("conftest.out", "w");
3827 return ferror (f) || fclose (f) != 0;
3828
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 ac_clean_files="$ac_clean_files conftest.out"
3834 # Check that the compiler produces executables we can run. If not, either
3835 # the compiler is broken, or we cross compile.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3837 $as_echo_n "checking whether we are cross compiling... " >&6; }
3838 if test "$cross_compiling" != yes; then
3839 { { ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }
3850 if { ac_try='./conftest$ac_cv_exeext'
3851 { { case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; }; then
3861 cross_compiling=no
3862 else
3863 if test "$cross_compiling" = maybe; then
3864 cross_compiling=yes
3865 else
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "cannot run C compiled programs.
3869 If you meant to cross compile, use \`--host'.
3870 See \`config.log' for more details" "$LINENO" 5; }
3871 fi
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3875 $as_echo "$cross_compiling" >&6; }
3876
3877 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3878 ac_clean_files=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3880 $as_echo_n "checking for suffix of object files... " >&6; }
3881 if ${ac_cv_objext+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.o conftest.obj
3896 if { { ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_compile") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 for ac_file in conftest.o conftest.obj conftest.*; do
3908 test -f "$ac_file" || continue;
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3912 break;;
3913 esac
3914 done
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "cannot compute suffix of object files: cannot compile
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 fi
3924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3927 $as_echo "$ac_cv_objext" >&6; }
3928 OBJEXT=$ac_cv_objext
3929 ac_objext=$OBJEXT
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3932 if ${ac_cv_c_compiler_gnu+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941 #ifndef __GNUC__
3942 choke me
3943 #endif
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_compiler_gnu=yes
3951 else
3952 ac_compiler_gnu=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3960 if test $ac_compiler_gnu = yes; then
3961 GCC=yes
3962 else
3963 GCC=
3964 fi
3965 ac_test_CFLAGS=${CFLAGS+set}
3966 ac_save_CFLAGS=$CFLAGS
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3969 if ${ac_cv_prog_cc_g+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 ac_save_c_werror_flag=$ac_c_werror_flag
3973 ac_c_werror_flag=yes
3974 ac_cv_prog_cc_g=no
3975 CFLAGS="-g"
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main ()
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_g=yes
3989 else
3990 CFLAGS=""
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993
3994 int
3995 main ()
3996 {
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003
4004 else
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main ()
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4029 $as_echo "$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4034 CFLAGS="-g -O2"
4035 else
4036 CFLAGS="-g"
4037 fi
4038 else
4039 if test "$GCC" = yes; then
4040 CFLAGS="-O2"
4041 else
4042 CFLAGS=
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047 if ${ac_cv_prog_cc_c89+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 struct stat;
4057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4058 struct buf { int x; };
4059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4060 static char *e (p, i)
4061 char **p;
4062 int i;
4063 {
4064 return p[i];
4065 }
4066 static char *f (char * (*g) (char **, int), char **p, ...)
4067 {
4068 char *s;
4069 va_list v;
4070 va_start (v,p);
4071 s = g (p, va_arg (v,int));
4072 va_end (v);
4073 return s;
4074 }
4075
4076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4077 function prototypes and stuff, but not '\xHH' hex character constants.
4078 These don't provoke an error unfortunately, instead are silently treated
4079 as 'x'. The following induces an error, until -std is added to get
4080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4081 array size at least. It's necessary to write '\x00'==0 to get something
4082 that's true only with -std. */
4083 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4084
4085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4086 inside strings and character constants. */
4087 #define FOO(x) 'x'
4088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4089
4090 int test (int i, double x);
4091 struct s1 {int (*f) (int a);};
4092 struct s2 {int (*f) (double a);};
4093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 int argc;
4095 char **argv;
4096 int
4097 main ()
4098 {
4099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4106 do
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109 ac_cv_prog_cc_c89=$ac_arg
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext
4112 test "x$ac_cv_prog_cc_c89" != "xno" && break
4113 done
4114 rm -f conftest.$ac_ext
4115 CC=$ac_save_CC
4116
4117 fi
4118 # AC_CACHE_VAL
4119 case "x$ac_cv_prog_cc_c89" in
4120 x)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4122 $as_echo "none needed" >&6; } ;;
4123 xno)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4125 $as_echo "unsupported" >&6; } ;;
4126 *)
4127 CC="$CC $ac_cv_prog_cc_c89"
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4130 esac
4131 if test "x$ac_cv_prog_cc_c89" != xno; then :
4132
4133 fi
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4147 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4148 if ${am_cv_prog_cc_c_o+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main ()
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 # Make sure it works both with $CC and with simple cc.
4163 # Following AC_PROG_CC_C_O, we do the test twice because some
4164 # compilers refuse to overwrite an existing .o file with -o,
4165 # though they will create one.
4166 am_cv_prog_cc_c_o=yes
4167 for am_i in 1 2; do
4168 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4169 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } \
4173 && test -f conftest2.$ac_objext; then
4174 : OK
4175 else
4176 am_cv_prog_cc_c_o=no
4177 break
4178 fi
4179 done
4180 rm -f core conftest*
4181 unset am_i
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4184 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4185 if test "$am_cv_prog_cc_c_o" != yes; then
4186 # Losing compiler, so override with the script.
4187 # FIXME: It is wrong to rewrite CC.
4188 # But if we don't then we get into trouble of one sort or another.
4189 # A longer-term fix would be to have automake use am__CC in this case,
4190 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4191 CC="$am_aux_dir/compile $CC"
4192 fi
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199 DEPDIR="${am__leading_dot}deps"
4200
4201 ac_config_commands="$ac_config_commands depfiles"
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4204 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4205 cat > confinc.mk << 'END'
4206 am__doit:
4207 @echo this is the am__doit target >confinc.out
4208 .PHONY: am__doit
4209 END
4210 am__include="#"
4211 am__quote=
4212 # BSD make does it like this.
4213 echo '.include "confinc.mk" # ignored' > confmf.BSD
4214 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4215 echo 'include confinc.mk # ignored' > confmf.GNU
4216 _am_result=no
4217 for s in GNU BSD; do
4218 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4219 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223 case $?:`cat confinc.out 2>/dev/null` in #(
4224 '0:this is the am__doit target') :
4225 case $s in #(
4226 BSD) :
4227 am__include='.include' am__quote='"' ;; #(
4228 *) :
4229 am__include='include' am__quote='' ;;
4230 esac ;; #(
4231 *) :
4232 ;;
4233 esac
4234 if test "$am__include" != "#"; then
4235 _am_result="yes ($s style)"
4236 break
4237 fi
4238 done
4239 rm -f confinc.* confmf.*
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4241 $as_echo "${_am_result}" >&6; }
4242
4243 # Check whether --enable-dependency-tracking was given.
4244 if test "${enable_dependency_tracking+set}" = set; then :
4245 enableval=$enable_dependency_tracking;
4246 fi
4247
4248 if test "x$enable_dependency_tracking" != xno; then
4249 am_depcomp="$ac_aux_dir/depcomp"
4250 AMDEPBACKSLASH='\'
4251 am__nodep='_no'
4252 fi
4253 if test "x$enable_dependency_tracking" != xno; then
4254 AMDEP_TRUE=
4255 AMDEP_FALSE='#'
4256 else
4257 AMDEP_TRUE='#'
4258 AMDEP_FALSE=
4259 fi
4260
4261
4262
4263 depcc="$CC" am_compiler_list=
4264
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266 $as_echo_n "checking dependency style of $depcc... " >&6; }
4267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4271 # We make a subdir and do the tests there. Otherwise we can end up
4272 # making bogus files that we don't know about and never remove. For
4273 # instance it was reported that on HP-UX the gcc test will end up
4274 # making a dummy file named 'D' -- because '-MD' means "put the output
4275 # in D".
4276 rm -rf conftest.dir
4277 mkdir conftest.dir
4278 # Copy depcomp to subdir because otherwise we won't find it if we're
4279 # using a relative directory.
4280 cp "$am_depcomp" conftest.dir
4281 cd conftest.dir
4282 # We will build objects and dependencies in a subdirectory because
4283 # it helps to detect inapplicable dependency modes. For instance
4284 # both Tru64's cc and ICC support -MD to output dependencies as a
4285 # side effect of compilation, but ICC will put the dependencies in
4286 # the current directory while Tru64 will put them in the object
4287 # directory.
4288 mkdir sub
4289
4290 am_cv_CC_dependencies_compiler_type=none
4291 if test "$am_compiler_list" = ""; then
4292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4293 fi
4294 am__universal=false
4295 case " $depcc " in #(
4296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4297 esac
4298
4299 for depmode in $am_compiler_list; do
4300 # Setup a source with many dependencies, because some compilers
4301 # like to wrap large dependency lists on column 80 (with \), and
4302 # we should not choose a depcomp mode which is confused by this.
4303 #
4304 # We need to recreate these files for each test, as the compiler may
4305 # overwrite some of them when testing with obscure command lines.
4306 # This happens at least with the AIX C compiler.
4307 : > sub/conftest.c
4308 for i in 1 2 3 4 5 6; do
4309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4311 # Solaris 10 /bin/sh.
4312 echo '/* dummy */' > sub/conftst$i.h
4313 done
4314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4315
4316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4317 # mode. It turns out that the SunPro C++ compiler does not properly
4318 # handle '-M -o', and we need to detect this. Also, some Intel
4319 # versions had trouble with output in subdirs.
4320 am__obj=sub/conftest.${OBJEXT-o}
4321 am__minus_obj="-o $am__obj"
4322 case $depmode in
4323 gcc)
4324 # This depmode causes a compiler race in universal mode.
4325 test "$am__universal" = false || continue
4326 ;;
4327 nosideeffect)
4328 # After this tag, mechanisms are not by side-effect, so they'll
4329 # only be used when explicitly requested.
4330 if test "x$enable_dependency_tracking" = xyes; then
4331 continue
4332 else
4333 break
4334 fi
4335 ;;
4336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4337 # This compiler won't grok '-c -o', but also, the minuso test has
4338 # not run yet. These depmodes are late enough in the game, and
4339 # so weak that their functioning should not be impacted.
4340 am__obj=conftest.${OBJEXT-o}
4341 am__minus_obj=
4342 ;;
4343 none) break ;;
4344 esac
4345 if depmode=$depmode \
4346 source=sub/conftest.c object=$am__obj \
4347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4349 >/dev/null 2>conftest.err &&
4350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4354 # icc doesn't choke on unknown options, it will just issue warnings
4355 # or remarks (even with -Werror). So we grep stderr for any message
4356 # that says an option was ignored or not supported.
4357 # When given -MP, icc 7.0 and 7.1 complain thusly:
4358 # icc: Command line warning: ignoring option '-M'; no argument required
4359 # The diagnosis changed in icc 8.0:
4360 # icc: Command line remark: option '-MP' not supported
4361 if (grep 'ignoring option' conftest.err ||
4362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4363 am_cv_CC_dependencies_compiler_type=$depmode
4364 break
4365 fi
4366 fi
4367 done
4368
4369 cd ..
4370 rm -rf conftest.dir
4371 else
4372 am_cv_CC_dependencies_compiler_type=none
4373 fi
4374
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4379
4380 if
4381 test "x$enable_dependency_tracking" != xno \
4382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4383 am__fastdepCC_TRUE=
4384 am__fastdepCC_FALSE='#'
4385 else
4386 am__fastdepCC_TRUE='#'
4387 am__fastdepCC_FALSE=
4388 fi
4389
4390
4391 case `pwd` in
4392 *\ * | *\ *)
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4395 esac
4396
4397
4398
4399 macro_version='2.4.6'
4400 macro_revision='2.4.6'
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 ltmain=$ac_aux_dir/ltmain.sh
4415
4416 # Backslashify metacharacters that are still active within
4417 # double-quoted strings.
4418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4419
4420 # Same as above, but do not quote variable references.
4421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4422
4423 # Sed substitution to delay expansion of an escaped shell variable in a
4424 # double_quote_subst'ed string.
4425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4426
4427 # Sed substitution to delay expansion of an escaped single quote.
4428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4429
4430 # Sed substitution to avoid accidental globbing in evaled expressions
4431 no_glob_subst='s/\*/\\\*/g'
4432
4433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4438 $as_echo_n "checking how to print strings... " >&6; }
4439 # Test print first, because it will be a builtin if present.
4440 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4442 ECHO='print -r --'
4443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4444 ECHO='printf %s\n'
4445 else
4446 # Use this function as a fallback that always works.
4447 func_fallback_echo ()
4448 {
4449 eval 'cat <<_LTECHO_EOF
4450 $1
4451 _LTECHO_EOF'
4452 }
4453 ECHO='func_fallback_echo'
4454 fi
4455
4456 # func_echo_all arg...
4457 # Invoke $ECHO with all args, space-separated.
4458 func_echo_all ()
4459 {
4460 $ECHO ""
4461 }
4462
4463 case $ECHO in
4464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4465 $as_echo "printf" >&6; } ;;
4466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4467 $as_echo "print -r" >&6; } ;;
4468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4469 $as_echo "cat" >&6; } ;;
4470 esac
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4487 if ${ac_cv_path_SED+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4491 for ac_i in 1 2 3 4 5 6 7; do
4492 ac_script="$ac_script$as_nl$ac_script"
4493 done
4494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4495 { ac_script=; unset ac_script;}
4496 if test -z "$SED"; then
4497 ac_path_SED_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in sed gsed; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4507 as_fn_executable_p "$ac_path_SED" || continue
4508 # Check for GNU ac_path_SED and select it if it is found.
4509 # Check for GNU $ac_path_SED
4510 case `"$ac_path_SED" --version 2>&1` in
4511 *GNU*)
4512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4513 *)
4514 ac_count=0
4515 $as_echo_n 0123456789 >"conftest.in"
4516 while :
4517 do
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 $as_echo '' >> "conftest.nl"
4522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val
4525 if test $ac_count -gt ${ac_path_SED_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_SED="$ac_path_SED"
4528 ac_path_SED_max=$ac_count
4529 fi
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4532 done
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 esac
4535
4536 $ac_path_SED_found && break 3
4537 done
4538 done
4539 done
4540 IFS=$as_save_IFS
4541 if test -z "$ac_cv_path_SED"; then
4542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4543 fi
4544 else
4545 ac_cv_path_SED=$SED
4546 fi
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4550 $as_echo "$ac_cv_path_SED" >&6; }
4551 SED="$ac_cv_path_SED"
4552 rm -f conftest.sed
4553
4554 test -z "$SED" && SED=sed
4555 Xsed="$SED -e 1s/^X//"
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4569 if ${ac_cv_path_GREP+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -z "$GREP"; then
4573 ac_path_GREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in grep ggrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4583 as_fn_executable_p "$ac_path_GREP" || continue
4584 # Check for GNU ac_path_GREP and select it if it is found.
4585 # Check for GNU $ac_path_GREP
4586 case `"$ac_path_GREP" --version 2>&1` in
4587 *GNU*)
4588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4589 *)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'GREP' >> "conftest.nl"
4598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_GREP="$ac_path_GREP"
4604 ac_path_GREP_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612 $ac_path_GREP_found && break 3
4613 done
4614 done
4615 done
4616 IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_GREP"; then
4618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 fi
4620 else
4621 ac_cv_path_GREP=$GREP
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4626 $as_echo "$ac_cv_path_GREP" >&6; }
4627 GREP="$ac_cv_path_GREP"
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4631 $as_echo_n "checking for egrep... " >&6; }
4632 if ${ac_cv_path_EGREP+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636 then ac_cv_path_EGREP="$GREP -E"
4637 else
4638 if test -z "$EGREP"; then
4639 ac_path_EGREP_found=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_prog in egrep; do
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649 as_fn_executable_p "$ac_path_EGREP" || continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651 # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4653 *GNU*)
4654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4655 *)
4656 ac_count=0
4657 $as_echo_n 0123456789 >"conftest.in"
4658 while :
4659 do
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 $as_echo 'EGREP' >> "conftest.nl"
4664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666 as_fn_arith $ac_count + 1 && ac_count=$as_val
4667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_EGREP="$ac_path_EGREP"
4670 ac_path_EGREP_max=$ac_count
4671 fi
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4674 done
4675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4677
4678 $ac_path_EGREP_found && break 3
4679 done
4680 done
4681 done
4682 IFS=$as_save_IFS
4683 if test -z "$ac_cv_path_EGREP"; then
4684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685 fi
4686 else
4687 ac_cv_path_EGREP=$EGREP
4688 fi
4689
4690 fi
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4693 $as_echo "$ac_cv_path_EGREP" >&6; }
4694 EGREP="$ac_cv_path_EGREP"
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4698 $as_echo_n "checking for fgrep... " >&6; }
4699 if ${ac_cv_path_FGREP+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4703 then ac_cv_path_FGREP="$GREP -F"
4704 else
4705 if test -z "$FGREP"; then
4706 ac_path_FGREP_found=false
4707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_prog in fgrep; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4716 as_fn_executable_p "$ac_path_FGREP" || continue
4717 # Check for GNU ac_path_FGREP and select it if it is found.
4718 # Check for GNU $ac_path_FGREP
4719 case `"$ac_path_FGREP" --version 2>&1` in
4720 *GNU*)
4721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4722 *)
4723 ac_count=0
4724 $as_echo_n 0123456789 >"conftest.in"
4725 while :
4726 do
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 $as_echo 'FGREP' >> "conftest.nl"
4731 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_FGREP="$ac_path_FGREP"
4737 ac_path_FGREP_max=$ac_count
4738 fi
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4741 done
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745 $ac_path_FGREP_found && break 3
4746 done
4747 done
4748 done
4749 IFS=$as_save_IFS
4750 if test -z "$ac_cv_path_FGREP"; then
4751 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752 fi
4753 else
4754 ac_cv_path_FGREP=$FGREP
4755 fi
4756
4757 fi
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4760 $as_echo "$ac_cv_path_FGREP" >&6; }
4761 FGREP="$ac_cv_path_FGREP"
4762
4763
4764 test -z "$GREP" && GREP=grep
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 # Check whether --with-gnu-ld was given.
4785 if test "${with_gnu_ld+set}" = set; then :
4786 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4787 else
4788 with_gnu_ld=no
4789 fi
4790
4791 ac_prog=ld
4792 if test yes = "$GCC"; then
4793 # Check if gcc -print-prog-name=ld gives a path.
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4795 $as_echo_n "checking for ld used by $CC... " >&6; }
4796 case $host in
4797 *-*-mingw*)
4798 # gcc leaves a trailing carriage return, which upsets mingw
4799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4800 *)
4801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4802 esac
4803 case $ac_prog in
4804 # Accept absolute paths.
4805 [\\/]* | ?:[\\/]*)
4806 re_direlt='/[^/][^/]*/\.\./'
4807 # Canonicalize the pathname of ld
4808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4811 done
4812 test -z "$LD" && LD=$ac_prog
4813 ;;
4814 "")
4815 # If it fails, then pretend we aren't using GCC.
4816 ac_prog=ld
4817 ;;
4818 *)
4819 # If it is relative, then search for the first ld in PATH.
4820 with_gnu_ld=unknown
4821 ;;
4822 esac
4823 elif test yes = "$with_gnu_ld"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4825 $as_echo_n "checking for GNU ld... " >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4828 $as_echo_n "checking for non-GNU ld... " >&6; }
4829 fi
4830 if ${lt_cv_path_LD+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -z "$LD"; then
4834 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4835 for ac_dir in $PATH; do
4836 IFS=$lt_save_ifs
4837 test -z "$ac_dir" && ac_dir=.
4838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4839 lt_cv_path_LD=$ac_dir/$ac_prog
4840 # Check to see if the program is GNU ld. I'd rather use --version,
4841 # but apparently some variants of GNU ld only accept -v.
4842 # Break only if it was the GNU/non-GNU ld that we prefer.
4843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845 test no != "$with_gnu_ld" && break
4846 ;;
4847 *)
4848 test yes != "$with_gnu_ld" && break
4849 ;;
4850 esac
4851 fi
4852 done
4853 IFS=$lt_save_ifs
4854 else
4855 lt_cv_path_LD=$LD # Let the user override the test with a path.
4856 fi
4857 fi
4858
4859 LD=$lt_cv_path_LD
4860 if test -n "$LD"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4862 $as_echo "$LD" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4870 if ${lt_cv_prog_gnu_ld+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4874 case `$LD -v 2>&1 </dev/null` in
4875 *GNU* | *'with BFD'*)
4876 lt_cv_prog_gnu_ld=yes
4877 ;;
4878 *)
4879 lt_cv_prog_gnu_ld=no
4880 ;;
4881 esac
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4885 with_gnu_ld=$lt_cv_prog_gnu_ld
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4897 if ${lt_cv_path_NM+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$NM"; then
4901 # Let the user override the test.
4902 lt_cv_path_NM=$NM
4903 else
4904 lt_nm_to_check=${ac_tool_prefix}nm
4905 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4906 lt_nm_to_check="$lt_nm_to_check nm"
4907 fi
4908 for lt_tmp_nm in $lt_nm_to_check; do
4909 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4911 IFS=$lt_save_ifs
4912 test -z "$ac_dir" && ac_dir=.
4913 tmp_nm=$ac_dir/$lt_tmp_nm
4914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4915 # Check to see if the nm accepts a BSD-compat flag.
4916 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4917 # nm: unknown option "B" ignored
4918 # Tru64's nm complains that /dev/null is an invalid object file
4919 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4920 case $build_os in
4921 mingw*) lt_bad_file=conftest.nm/nofile ;;
4922 *) lt_bad_file=/dev/null ;;
4923 esac
4924 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4925 *$lt_bad_file* | *'Invalid file or object type'*)
4926 lt_cv_path_NM="$tmp_nm -B"
4927 break 2
4928 ;;
4929 *)
4930 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4931 */dev/null*)
4932 lt_cv_path_NM="$tmp_nm -p"
4933 break 2
4934 ;;
4935 *)
4936 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4937 continue # so that we can try to find one that supports BSD flags
4938 ;;
4939 esac
4940 ;;
4941 esac
4942 fi
4943 done
4944 IFS=$lt_save_ifs
4945 done
4946 : ${lt_cv_path_NM=no}
4947 fi
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4950 $as_echo "$lt_cv_path_NM" >&6; }
4951 if test no != "$lt_cv_path_NM"; then
4952 NM=$lt_cv_path_NM
4953 else
4954 # Didn't find any BSD compatible name lister, look for dumpbin.
4955 if test -n "$DUMPBIN"; then :
4956 # Let the user override the test.
4957 else
4958 if test -n "$ac_tool_prefix"; then
4959 for ac_prog in dumpbin "link -dump"
4960 do
4961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_DUMPBIN+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$DUMPBIN"; then
4969 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4981 fi
4982 done
4983 done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 DUMPBIN=$ac_cv_prog_DUMPBIN
4989 if test -n "$DUMPBIN"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4991 $as_echo "$DUMPBIN" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 fi
4996
4997
4998 test -n "$DUMPBIN" && break
4999 done
5000 fi
5001 if test -z "$DUMPBIN"; then
5002 ac_ct_DUMPBIN=$DUMPBIN
5003 for ac_prog in dumpbin "link -dump"
5004 do
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy $ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$ac_ct_DUMPBIN"; then
5013 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5033 if test -n "$ac_ct_DUMPBIN"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5035 $as_echo "$ac_ct_DUMPBIN" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042 test -n "$ac_ct_DUMPBIN" && break
5043 done
5044
5045 if test "x$ac_ct_DUMPBIN" = x; then
5046 DUMPBIN=":"
5047 else
5048 case $cross_compiling:$ac_tool_warned in
5049 yes:)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052 ac_tool_warned=yes ;;
5053 esac
5054 DUMPBIN=$ac_ct_DUMPBIN
5055 fi
5056 fi
5057
5058 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5059 *COFF*)
5060 DUMPBIN="$DUMPBIN -symbols -headers"
5061 ;;
5062 *)
5063 DUMPBIN=:
5064 ;;
5065 esac
5066 fi
5067
5068 if test : != "$DUMPBIN"; then
5069 NM=$DUMPBIN
5070 fi
5071 fi
5072 test -z "$NM" && NM=nm
5073
5074
5075
5076
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5080 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5081 if ${lt_cv_nm_interface+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 lt_cv_nm_interface="BSD nm"
5085 echo "int some_variable = 0;" > conftest.$ac_ext
5086 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5087 (eval "$ac_compile" 2>conftest.err)
5088 cat conftest.err >&5
5089 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5090 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5091 cat conftest.err >&5
5092 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5093 cat conftest.out >&5
5094 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5095 lt_cv_nm_interface="MS dumpbin"
5096 fi
5097 rm -f conftest*
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5100 $as_echo "$lt_cv_nm_interface" >&6; }
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5103 $as_echo_n "checking whether ln -s works... " >&6; }
5104 LN_S=$as_ln_s
5105 if test "$LN_S" = "ln -s"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5107 $as_echo "yes" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5110 $as_echo "no, using $LN_S" >&6; }
5111 fi
5112
5113 # find the maximum length of command line arguments
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5115 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5116 if ${lt_cv_sys_max_cmd_len+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 i=0
5120 teststring=ABCD
5121
5122 case $build_os in
5123 msdosdjgpp*)
5124 # On DJGPP, this test can blow up pretty badly due to problems in libc
5125 # (any single argument exceeding 2000 bytes causes a buffer overrun
5126 # during glob expansion). Even if it were fixed, the result of this
5127 # check would be larger than it should be.
5128 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5129 ;;
5130
5131 gnu*)
5132 # Under GNU Hurd, this test is not required because there is
5133 # no limit to the length of command line arguments.
5134 # Libtool will interpret -1 as no limit whatsoever
5135 lt_cv_sys_max_cmd_len=-1;
5136 ;;
5137
5138 cygwin* | mingw* | cegcc*)
5139 # On Win9x/ME, this test blows up -- it succeeds, but takes
5140 # about 5 minutes as the teststring grows exponentially.
5141 # Worse, since 9x/ME are not pre-emptively multitasking,
5142 # you end up with a "frozen" computer, even though with patience
5143 # the test eventually succeeds (with a max line length of 256k).
5144 # Instead, let's just punt: use the minimum linelength reported by
5145 # all of the supported platforms: 8192 (on NT/2K/XP).
5146 lt_cv_sys_max_cmd_len=8192;
5147 ;;
5148
5149 mint*)
5150 # On MiNT this can take a long time and run out of memory.
5151 lt_cv_sys_max_cmd_len=8192;
5152 ;;
5153
5154 amigaos*)
5155 # On AmigaOS with pdksh, this test takes hours, literally.
5156 # So we just punt and use a minimum line length of 8192.
5157 lt_cv_sys_max_cmd_len=8192;
5158 ;;
5159
5160 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5161 # This has been around since 386BSD, at least. Likely further.
5162 if test -x /sbin/sysctl; then
5163 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5164 elif test -x /usr/sbin/sysctl; then
5165 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5166 else
5167 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5168 fi
5169 # And add a safety zone
5170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5172 ;;
5173
5174 interix*)
5175 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5176 lt_cv_sys_max_cmd_len=196608
5177 ;;
5178
5179 os2*)
5180 # The test takes a long time on OS/2.
5181 lt_cv_sys_max_cmd_len=8192
5182 ;;
5183
5184 osf*)
5185 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5186 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5187 # nice to cause kernel panics so lets avoid the loop below.
5188 # First set a reasonable default.
5189 lt_cv_sys_max_cmd_len=16384
5190 #
5191 if test -x /sbin/sysconfig; then
5192 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5193 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5194 esac
5195 fi
5196 ;;
5197 sco3.2v5*)
5198 lt_cv_sys_max_cmd_len=102400
5199 ;;
5200 sysv5* | sco5v6* | sysv4.2uw2*)
5201 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5202 if test -n "$kargmax"; then
5203 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5204 else
5205 lt_cv_sys_max_cmd_len=32768
5206 fi
5207 ;;
5208 *)
5209 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5210 if test -n "$lt_cv_sys_max_cmd_len" && \
5211 test undefined != "$lt_cv_sys_max_cmd_len"; then
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5214 else
5215 # Make teststring a little bigger before we do anything with it.
5216 # a 1K string should be a reasonable start.
5217 for i in 1 2 3 4 5 6 7 8; do
5218 teststring=$teststring$teststring
5219 done
5220 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5221 # If test is not a shell built-in, we'll probably end up computing a
5222 # maximum length that is only half of the actual maximum length, but
5223 # we can't tell.
5224 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5225 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5226 test 17 != "$i" # 1/2 MB should be enough
5227 do
5228 i=`expr $i + 1`
5229 teststring=$teststring$teststring
5230 done
5231 # Only check the string length outside the loop.
5232 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5233 teststring=
5234 # Add a significant safety factor because C++ compilers can tack on
5235 # massive amounts of additional arguments before passing them to the
5236 # linker. It appears as though 1/2 is a usable value.
5237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5238 fi
5239 ;;
5240 esac
5241
5242 fi
5243
5244 if test -n "$lt_cv_sys_max_cmd_len"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5246 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5249 $as_echo "none" >&6; }
5250 fi
5251 max_cmd_len=$lt_cv_sys_max_cmd_len
5252
5253
5254
5255
5256
5257
5258 : ${CP="cp -f"}
5259 : ${MV="mv -f"}
5260 : ${RM="rm -f"}
5261
5262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5263 lt_unset=unset
5264 else
5265 lt_unset=false
5266 fi
5267
5268
5269
5270
5271
5272 # test EBCDIC or ASCII
5273 case `echo X|tr X '\101'` in
5274 A) # ASCII based system
5275 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5276 lt_SP2NL='tr \040 \012'
5277 lt_NL2SP='tr \015\012 \040\040'
5278 ;;
5279 *) # EBCDIC based system
5280 lt_SP2NL='tr \100 \n'
5281 lt_NL2SP='tr \r\n \100\100'
5282 ;;
5283 esac
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5294 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5295 if ${lt_cv_to_host_file_cmd+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 case $host in
5299 *-*-mingw* )
5300 case $build in
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5303 ;;
5304 *-*-cygwin* )
5305 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5306 ;;
5307 * ) # otherwise, assume *nix
5308 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5309 ;;
5310 esac
5311 ;;
5312 *-*-cygwin* )
5313 case $build in
5314 *-*-mingw* ) # actually msys
5315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5316 ;;
5317 *-*-cygwin* )
5318 lt_cv_to_host_file_cmd=func_convert_file_noop
5319 ;;
5320 * ) # otherwise, assume *nix
5321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5322 ;;
5323 esac
5324 ;;
5325 * ) # unhandled hosts (and "normal" native builds)
5326 lt_cv_to_host_file_cmd=func_convert_file_noop
5327 ;;
5328 esac
5329
5330 fi
5331
5332 to_host_file_cmd=$lt_cv_to_host_file_cmd
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5334 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5335
5336
5337
5338
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5341 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5342 if ${lt_cv_to_tool_file_cmd+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 #assume ordinary cross tools, or native build.
5346 lt_cv_to_tool_file_cmd=func_convert_file_noop
5347 case $host in
5348 *-*-mingw* )
5349 case $build in
5350 *-*-mingw* ) # actually msys
5351 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5352 ;;
5353 esac
5354 ;;
5355 esac
5356
5357 fi
5358
5359 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5361 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5362
5363
5364
5365
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5369 if ${lt_cv_ld_reload_flag+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 lt_cv_ld_reload_flag='-r'
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5378 "" | " "*) ;;
5379 *) reload_flag=" $reload_flag" ;;
5380 esac
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 case $host_os in
5383 cygwin* | mingw* | pw32* | cegcc*)
5384 if test yes != "$GCC"; then
5385 reload_cmds=false
5386 fi
5387 ;;
5388 darwin*)
5389 if test yes = "$GCC"; then
5390 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5391 else
5392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5393 fi
5394 ;;
5395 esac
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 if test -n "$ac_tool_prefix"; then
5406 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5407 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_OBJDUMP+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$OBJDUMP"; then
5414 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 OBJDUMP=$ac_cv_prog_OBJDUMP
5434 if test -n "$OBJDUMP"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5436 $as_echo "$OBJDUMP" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 fi
5444 if test -z "$ac_cv_prog_OBJDUMP"; then
5445 ac_ct_OBJDUMP=$OBJDUMP
5446 # Extract the first word of "objdump", so it can be a program name with args.
5447 set dummy objdump; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$ac_ct_OBJDUMP"; then
5454 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5474 if test -n "$ac_ct_OBJDUMP"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5476 $as_echo "$ac_ct_OBJDUMP" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482 if test "x$ac_ct_OBJDUMP" = x; then
5483 OBJDUMP="false"
5484 else
5485 case $cross_compiling:$ac_tool_warned in
5486 yes:)
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489 ac_tool_warned=yes ;;
5490 esac
5491 OBJDUMP=$ac_ct_OBJDUMP
5492 fi
5493 else
5494 OBJDUMP="$ac_cv_prog_OBJDUMP"
5495 fi
5496
5497 test -z "$OBJDUMP" && OBJDUMP=objdump
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5508 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5509 if ${lt_cv_deplibs_check_method+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 lt_cv_file_magic_cmd='$MAGIC_CMD'
5513 lt_cv_file_magic_test_file=
5514 lt_cv_deplibs_check_method='unknown'
5515 # Need to set the preceding variable on all platforms that support
5516 # interlibrary dependencies.
5517 # 'none' -- dependencies not supported.
5518 # 'unknown' -- same as none, but documents that we really don't know.
5519 # 'pass_all' -- all dependencies passed with no checks.
5520 # 'test_compile' -- check by making test program.
5521 # 'file_magic [[regex]]' -- check by looking for files in library path
5522 # that responds to the $file_magic_cmd with a given extended regex.
5523 # If you have 'file' or equivalent on your system and you're not sure
5524 # whether 'pass_all' will *always* work, you probably want this one.
5525
5526 case $host_os in
5527 aix[4-9]*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531 beos*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535 bsdi[45]*)
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537 lt_cv_file_magic_cmd='/usr/bin/file -L'
5538 lt_cv_file_magic_test_file=/shlib/libc.so
5539 ;;
5540
5541 cygwin*)
5542 # func_win32_libid is a shell function defined in ltmain.sh
5543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544 lt_cv_file_magic_cmd='func_win32_libid'
5545 ;;
5546
5547 mingw* | pw32*)
5548 # Base MSYS/MinGW do not provide the 'file' command needed by
5549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550 # unless we find 'file', for example because we are cross-compiling.
5551 if ( file / ) >/dev/null 2>&1; then
5552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553 lt_cv_file_magic_cmd='func_win32_libid'
5554 else
5555 # Keep this pattern in sync with the one in func_win32_libid.
5556 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 fi
5559 ;;
5560
5561 cegcc*)
5562 # use the weaker test based on 'objdump'. See mingw*.
5563 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5564 lt_cv_file_magic_cmd='$OBJDUMP -f'
5565 ;;
5566
5567 darwin* | rhapsody*)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570
5571 freebsd* | dragonfly*)
5572 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5573 case $host_cpu in
5574 i*86 )
5575 # Not sure whether the presence of OpenBSD here was a mistake.
5576 # Let's accept both of them until this is cleared up.
5577 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5578 lt_cv_file_magic_cmd=/usr/bin/file
5579 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5580 ;;
5581 esac
5582 else
5583 lt_cv_deplibs_check_method=pass_all
5584 fi
5585 ;;
5586
5587 haiku*)
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590
5591 hpux10.20* | hpux11*)
5592 lt_cv_file_magic_cmd=/usr/bin/file
5593 case $host_cpu in
5594 ia64*)
5595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5597 ;;
5598 hppa*64*)
5599 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]'
5600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5601 ;;
5602 *)
5603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5605 ;;
5606 esac
5607 ;;
5608
5609 interix[3-9]*)
5610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5612 ;;
5613
5614 irix5* | irix6* | nonstopux*)
5615 case $LD in
5616 *-32|*"-32 ") libmagic=32-bit;;
5617 *-n32|*"-n32 ") libmagic=N32;;
5618 *-64|*"-64 ") libmagic=64-bit;;
5619 *) libmagic=never-match;;
5620 esac
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624 # This must be glibc/ELF.
5625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629 netbsd* | netbsdelf*-gnu)
5630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632 else
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5634 fi
5635 ;;
5636
5637 newos6*)
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5639 lt_cv_file_magic_cmd=/usr/bin/file
5640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5641 ;;
5642
5643 *nto* | *qnx*)
5644 lt_cv_deplibs_check_method=pass_all
5645 ;;
5646
5647 openbsd* | bitrig*)
5648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5650 else
5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5652 fi
5653 ;;
5654
5655 osf3* | osf4* | osf5*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 rdos*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663 solaris*)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666
5667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 sysv4 | sysv4.3*)
5672 case $host_vendor in
5673 motorola)
5674 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]'
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5676 ;;
5677 ncr)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680 sequent)
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5683 ;;
5684 sni)
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687 lt_cv_file_magic_test_file=/lib/libc.so
5688 ;;
5689 siemens)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692 pc)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695 esac
5696 ;;
5697
5698 tpf*)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 os2*)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704 esac
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5708 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5709
5710 file_magic_glob=
5711 want_nocaseglob=no
5712 if test "$build" = "$host"; then
5713 case $host_os in
5714 mingw* | pw32*)
5715 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5716 want_nocaseglob=yes
5717 else
5718 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5719 fi
5720 ;;
5721 esac
5722 fi
5723
5724 file_magic_cmd=$lt_cv_file_magic_cmd
5725 deplibs_check_method=$lt_cv_deplibs_check_method
5726 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 if test -n "$ac_tool_prefix"; then
5750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5751 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_DLLTOOL+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$DLLTOOL"; then
5758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 DLLTOOL=$ac_cv_prog_DLLTOOL
5778 if test -n "$DLLTOOL"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5780 $as_echo "$DLLTOOL" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786
5787 fi
5788 if test -z "$ac_cv_prog_DLLTOOL"; then
5789 ac_ct_DLLTOOL=$DLLTOOL
5790 # Extract the first word of "dlltool", so it can be a program name with args.
5791 set dummy dlltool; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$ac_ct_DLLTOOL"; then
5798 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5818 if test -n "$ac_ct_DLLTOOL"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5820 $as_echo "$ac_ct_DLLTOOL" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826 if test "x$ac_ct_DLLTOOL" = x; then
5827 DLLTOOL="false"
5828 else
5829 case $cross_compiling:$ac_tool_warned in
5830 yes:)
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833 ac_tool_warned=yes ;;
5834 esac
5835 DLLTOOL=$ac_ct_DLLTOOL
5836 fi
5837 else
5838 DLLTOOL="$ac_cv_prog_DLLTOOL"
5839 fi
5840
5841 test -z "$DLLTOOL" && DLLTOOL=dlltool
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5853 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5854 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 lt_cv_sharedlib_from_linklib_cmd='unknown'
5858
5859 case $host_os in
5860 cygwin* | mingw* | pw32* | cegcc*)
5861 # two different shell functions defined in ltmain.sh;
5862 # decide which one to use based on capabilities of $DLLTOOL
5863 case `$DLLTOOL --help 2>&1` in
5864 *--identify-strict*)
5865 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5866 ;;
5867 *)
5868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5869 ;;
5870 esac
5871 ;;
5872 *)
5873 # fallback: assume linklib IS sharedlib
5874 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5875 ;;
5876 esac
5877
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5880 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5881 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5882 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5883
5884
5885
5886
5887
5888
5889
5890
5891 if test -n "$ac_tool_prefix"; then
5892 for ac_prog in ar
5893 do
5894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_AR+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 test -n "$AR" && break
5932 done
5933 fi
5934 if test -z "$AR"; then
5935 ac_ct_AR=$AR
5936 for ac_prog in ar
5937 do
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_AR"; then
5946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_AR="$ac_prog"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5966 if test -n "$ac_ct_AR"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5968 $as_echo "$ac_ct_AR" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974
5975 test -n "$ac_ct_AR" && break
5976 done
5977
5978 if test "x$ac_ct_AR" = x; then
5979 AR="false"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 AR=$ac_ct_AR
5988 fi
5989 fi
5990
5991 : ${AR=ar}
5992 : ${AR_FLAGS=cr}
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6005 $as_echo_n "checking for archiver @FILE support... " >&6; }
6006 if ${lt_cv_ar_at_file+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 lt_cv_ar_at_file=no
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012
6013 int
6014 main ()
6015 {
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 echo conftest.$ac_objext > conftest.lst
6023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6025 (eval $lt_ar_try) 2>&5
6026 ac_status=$?
6027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6028 test $ac_status = 0; }
6029 if test 0 -eq "$ac_status"; then
6030 # Ensure the archiver fails upon bogus file names.
6031 rm -f conftest.$ac_objext libconftest.a
6032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6033 (eval $lt_ar_try) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }
6037 if test 0 -ne "$ac_status"; then
6038 lt_cv_ar_at_file=@
6039 fi
6040 fi
6041 rm -f conftest.* libconftest.a
6042
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6048 $as_echo "$lt_cv_ar_at_file" >&6; }
6049
6050 if test no = "$lt_cv_ar_at_file"; then
6051 archiver_list_spec=
6052 else
6053 archiver_list_spec=$lt_cv_ar_at_file
6054 fi
6055
6056
6057
6058
6059
6060
6061
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$STRIP"; then
6071 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
6091 if test -n "$STRIP"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6093 $as_echo "$STRIP" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 fi
6101 if test -z "$ac_cv_prog_STRIP"; then
6102 ac_ct_STRIP=$STRIP
6103 # Extract the first word of "strip", so it can be a program name with args.
6104 set dummy strip; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_STRIP"; then
6111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_STRIP="strip"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6131 if test -n "$ac_ct_STRIP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6133 $as_echo "$ac_ct_STRIP" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139 if test "x$ac_ct_STRIP" = x; then
6140 STRIP=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 STRIP=$ac_ct_STRIP
6149 fi
6150 else
6151 STRIP="$ac_cv_prog_STRIP"
6152 fi
6153
6154 test -z "$STRIP" && STRIP=:
6155
6156
6157
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_RANLIB+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$RANLIB"; then
6170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 RANLIB=$ac_cv_prog_RANLIB
6190 if test -n "$RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6192 $as_echo "$RANLIB" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_RANLIB"; then
6201 ac_ct_RANLIB=$RANLIB
6202 # Extract the first word of "ranlib", so it can be a program name with args.
6203 set dummy ranlib; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_RANLIB"; then
6210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_RANLIB="ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6230 if test -n "$ac_ct_RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6232 $as_echo "$ac_ct_RANLIB" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238 if test "x$ac_ct_RANLIB" = x; then
6239 RANLIB=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 RANLIB=$ac_ct_RANLIB
6248 fi
6249 else
6250 RANLIB="$ac_cv_prog_RANLIB"
6251 fi
6252
6253 test -z "$RANLIB" && RANLIB=:
6254
6255
6256
6257
6258
6259
6260 # Determine commands to create old-style static archives.
6261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6262 old_postinstall_cmds='chmod 644 $oldlib'
6263 old_postuninstall_cmds=
6264
6265 if test -n "$RANLIB"; then
6266 case $host_os in
6267 bitrig* | openbsd*)
6268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6269 ;;
6270 *)
6271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6272 ;;
6273 esac
6274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6275 fi
6276
6277 case $host_os in
6278 darwin*)
6279 lock_old_archive_extraction=yes ;;
6280 *)
6281 lock_old_archive_extraction=no ;;
6282 esac
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 # If no C compiler was specified, use CC.
6323 LTCC=${LTCC-"$CC"}
6324
6325 # If no C compiler flags were specified, use CFLAGS.
6326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6327
6328 # Allow CC to be a program name with arguments.
6329 compiler=$CC
6330
6331
6332 # Check for command to grab the raw symbol name followed by C symbol from nm.
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338
6339 # These are sane defaults that work on at least a few old systems.
6340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6341
6342 # Character class describing NM global symbol codes.
6343 symcode='[BCDEGRST]'
6344
6345 # Regexp to match symbols that can be accessed directly from C.
6346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6347
6348 # Define system-specific variables.
6349 case $host_os in
6350 aix*)
6351 symcode='[BCDT]'
6352 ;;
6353 cygwin* | mingw* | pw32* | cegcc*)
6354 symcode='[ABCDGISTW]'
6355 ;;
6356 hpux*)
6357 if test ia64 = "$host_cpu"; then
6358 symcode='[ABCDEGRST]'
6359 fi
6360 ;;
6361 irix* | nonstopux*)
6362 symcode='[BCDEGRST]'
6363 ;;
6364 osf*)
6365 symcode='[BCDEGQRST]'
6366 ;;
6367 solaris*)
6368 symcode='[BDRT]'
6369 ;;
6370 sco3.2v5*)
6371 symcode='[DT]'
6372 ;;
6373 sysv4.2uw2*)
6374 symcode='[DT]'
6375 ;;
6376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377 symcode='[ABDT]'
6378 ;;
6379 sysv4)
6380 symcode='[DFNSTU]'
6381 ;;
6382 esac
6383
6384 # If we're using GNU nm, then use its standard symbol codes.
6385 case `$NM -V 2>&1` in
6386 *GNU* | *'with BFD'*)
6387 symcode='[ABCDGIRSTW]' ;;
6388 esac
6389
6390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6391 # Gets list of data symbols to import.
6392 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6393 # Adjust the below global symbol transforms to fixup imported variables.
6394 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6395 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6396 lt_c_name_lib_hook="\
6397 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6398 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6399 else
6400 # Disable hooks by default.
6401 lt_cv_sys_global_symbol_to_import=
6402 lt_cdecl_hook=
6403 lt_c_name_hook=
6404 lt_c_name_lib_hook=
6405 fi
6406
6407 # Transform an extracted symbol line into a proper C declaration.
6408 # Some systems (esp. on ia64) link data and code symbols differently,
6409 # so use this general approach.
6410 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6411 $lt_cdecl_hook\
6412 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6413 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6414
6415 # Transform an extracted symbol line into symbol name and symbol address
6416 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6417 $lt_c_name_hook\
6418 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6419 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6420
6421 # Transform an extracted symbol line into symbol name with lib prefix and
6422 # symbol address.
6423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6424 $lt_c_name_lib_hook\
6425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6426 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6427 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6428
6429 # Handle CRLF in mingw tool chain
6430 opt_cr=
6431 case $build_os in
6432 mingw*)
6433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6434 ;;
6435 esac
6436
6437 # Try without a prefix underscore, then with it.
6438 for ac_symprfx in "" "_"; do
6439
6440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6441 symxfrm="\\1 $ac_symprfx\\2 \\2"
6442
6443 # Write the raw and C identifiers.
6444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6445 # Fake it for dumpbin and say T for any non-static function,
6446 # D for any global variable and I for any imported variable.
6447 # Also find C++ and __fastcall symbols from MSVC++,
6448 # which start with @ or ?.
6449 lt_cv_sys_global_symbol_pipe="$AWK '"\
6450 " {last_section=section; section=\$ 3};"\
6451 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6452 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6453 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6454 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6455 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6456 " \$ 0!~/External *\|/{next};"\
6457 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6458 " {if(hide[section]) next};"\
6459 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6460 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6461 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6462 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6463 " ' prfx=^$ac_symprfx"
6464 else
6465 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6466 fi
6467 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6468
6469 # Check to see that the pipe works correctly.
6470 pipe_works=no
6471
6472 rm -f conftest*
6473 cat > conftest.$ac_ext <<_LT_EOF
6474 #ifdef __cplusplus
6475 extern "C" {
6476 #endif
6477 char nm_test_var;
6478 void nm_test_func(void);
6479 void nm_test_func(void){}
6480 #ifdef __cplusplus
6481 }
6482 #endif
6483 int main(){nm_test_var='a';nm_test_func();return(0);}
6484 _LT_EOF
6485
6486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6487 (eval $ac_compile) 2>&5
6488 ac_status=$?
6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490 test $ac_status = 0; }; then
6491 # Now try to grab the symbols.
6492 nlist=conftest.nm
6493 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6494 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6495 # Try sorting and uniquifying the output.
6496 if sort "$nlist" | uniq > "$nlist"T; then
6497 mv -f "$nlist"T "$nlist"
6498 else
6499 rm -f "$nlist"T
6500 fi
6501
6502 # Make sure that we snagged all the symbols we need.
6503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6505 cat <<_LT_EOF > conftest.$ac_ext
6506 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6507 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6508 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6509 relocations are performed -- see ld's documentation on pseudo-relocs. */
6510 # define LT_DLSYM_CONST
6511 #elif defined __osf__
6512 /* This system does not cope well with relocations in const data. */
6513 # define LT_DLSYM_CONST
6514 #else
6515 # define LT_DLSYM_CONST const
6516 #endif
6517
6518 #ifdef __cplusplus
6519 extern "C" {
6520 #endif
6521
6522 _LT_EOF
6523 # Now generate the symbol file.
6524 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6525
6526 cat <<_LT_EOF >> conftest.$ac_ext
6527
6528 /* The mapping between symbol names and symbols. */
6529 LT_DLSYM_CONST struct {
6530 const char *name;
6531 void *address;
6532 }
6533 lt__PROGRAM__LTX_preloaded_symbols[] =
6534 {
6535 { "@PROGRAM@", (void *) 0 },
6536 _LT_EOF
6537 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6538 cat <<\_LT_EOF >> conftest.$ac_ext
6539 {0, (void *) 0}
6540 };
6541
6542 /* This works around a problem in FreeBSD linker */
6543 #ifdef FREEBSD_WORKAROUND
6544 static const void *lt_preloaded_setup() {
6545 return lt__PROGRAM__LTX_preloaded_symbols;
6546 }
6547 #endif
6548
6549 #ifdef __cplusplus
6550 }
6551 #endif
6552 _LT_EOF
6553 # Now try linking the two files.
6554 mv conftest.$ac_objext conftstm.$ac_objext
6555 lt_globsym_save_LIBS=$LIBS
6556 lt_globsym_save_CFLAGS=$CFLAGS
6557 LIBS=conftstm.$ac_objext
6558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6560 (eval $ac_link) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6564 pipe_works=yes
6565 fi
6566 LIBS=$lt_globsym_save_LIBS
6567 CFLAGS=$lt_globsym_save_CFLAGS
6568 else
6569 echo "cannot find nm_test_func in $nlist" >&5
6570 fi
6571 else
6572 echo "cannot find nm_test_var in $nlist" >&5
6573 fi
6574 else
6575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6576 fi
6577 else
6578 echo "$progname: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 fi
6581 rm -rf conftest* conftst*
6582
6583 # Do not use the global_symbol_pipe unless it works.
6584 if test yes = "$pipe_works"; then
6585 break
6586 else
6587 lt_cv_sys_global_symbol_pipe=
6588 fi
6589 done
6590
6591 fi
6592
6593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6594 lt_cv_sys_global_symbol_to_cdecl=
6595 fi
6596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6598 $as_echo "failed" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6601 $as_echo "ok" >&6; }
6602 fi
6603
6604 # Response file support.
6605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6606 nm_file_list_spec='@'
6607 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6608 nm_file_list_spec='@'
6609 fi
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6648 $as_echo_n "checking for sysroot... " >&6; }
6649
6650 # Check whether --with-sysroot was given.
6651 if test "${with_sysroot+set}" = set; then :
6652 withval=$with_sysroot;
6653 else
6654 with_sysroot=no
6655 fi
6656
6657
6658 lt_sysroot=
6659 case $with_sysroot in #(
6660 yes)
6661 if test yes = "$GCC"; then
6662 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6663 fi
6664 ;; #(
6665 /*)
6666 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6667 ;; #(
6668 no|'')
6669 ;; #(
6670 *)
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6672 $as_echo "$with_sysroot" >&6; }
6673 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6674 ;;
6675 esac
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6678 $as_echo "${lt_sysroot:-no}" >&6; }
6679
6680
6681
6682
6683
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6685 $as_echo_n "checking for a working dd... " >&6; }
6686 if ${ac_cv_path_lt_DD+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 printf 0123456789abcdef0123456789abcdef >conftest.i
6690 cat conftest.i conftest.i >conftest2.i
6691 : ${lt_DD:=$DD}
6692 if test -z "$lt_DD"; then
6693 ac_path_lt_DD_found=false
6694 # Loop through the user's path and test for each of PROGNAME-LIST
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_prog in dd; do
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6703 as_fn_executable_p "$ac_path_lt_DD" || continue
6704 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6705 cmp -s conftest.i conftest.out \
6706 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6707 fi
6708 $ac_path_lt_DD_found && break 3
6709 done
6710 done
6711 done
6712 IFS=$as_save_IFS
6713 if test -z "$ac_cv_path_lt_DD"; then
6714 :
6715 fi
6716 else
6717 ac_cv_path_lt_DD=$lt_DD
6718 fi
6719
6720 rm -f conftest.i conftest2.i conftest.out
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6723 $as_echo "$ac_cv_path_lt_DD" >&6; }
6724
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6727 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6728 if ${lt_cv_truncate_bin+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 printf 0123456789abcdef0123456789abcdef >conftest.i
6732 cat conftest.i conftest.i >conftest2.i
6733 lt_cv_truncate_bin=
6734 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6735 cmp -s conftest.i conftest.out \
6736 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6737 fi
6738 rm -f conftest.i conftest2.i conftest.out
6739 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6742 $as_echo "$lt_cv_truncate_bin" >&6; }
6743
6744
6745
6746
6747
6748
6749
6750 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6751 func_cc_basename ()
6752 {
6753 for cc_temp in $*""; do
6754 case $cc_temp in
6755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6757 \-*) ;;
6758 *) break;;
6759 esac
6760 done
6761 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6762 }
6763
6764 # Check whether --enable-libtool-lock was given.
6765 if test "${enable_libtool_lock+set}" = set; then :
6766 enableval=$enable_libtool_lock;
6767 fi
6768
6769 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6770
6771 # Some flags need to be propagated to the compiler or linker for good
6772 # libtool support.
6773 case $host in
6774 ia64-*-hpux*)
6775 # Find out what ABI is being produced by ac_compile, and set mode
6776 # options accordingly.
6777 echo 'int i;' > conftest.$ac_ext
6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }; then
6783 case `/usr/bin/file conftest.$ac_objext` in
6784 *ELF-32*)
6785 HPUX_IA64_MODE=32
6786 ;;
6787 *ELF-64*)
6788 HPUX_IA64_MODE=64
6789 ;;
6790 esac
6791 fi
6792 rm -rf conftest*
6793 ;;
6794 *-*-irix6*)
6795 # Find out what ABI is being produced by ac_compile, and set linker
6796 # options accordingly.
6797 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799 (eval $ac_compile) 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; }; then
6803 if test yes = "$lt_cv_prog_gnu_ld"; then
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *32-bit*)
6806 LD="${LD-ld} -melf32bsmip"
6807 ;;
6808 *N32*)
6809 LD="${LD-ld} -melf32bmipn32"
6810 ;;
6811 *64-bit*)
6812 LD="${LD-ld} -melf64bmip"
6813 ;;
6814 esac
6815 else
6816 case `/usr/bin/file conftest.$ac_objext` in
6817 *32-bit*)
6818 LD="${LD-ld} -32"
6819 ;;
6820 *N32*)
6821 LD="${LD-ld} -n32"
6822 ;;
6823 *64-bit*)
6824 LD="${LD-ld} -64"
6825 ;;
6826 esac
6827 fi
6828 fi
6829 rm -rf conftest*
6830 ;;
6831
6832 mips64*-*linux*)
6833 # Find out what ABI is being produced by ac_compile, and set linker
6834 # options accordingly.
6835 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
6841 emul=elf
6842 case `/usr/bin/file conftest.$ac_objext` in
6843 *32-bit*)
6844 emul="${emul}32"
6845 ;;
6846 *64-bit*)
6847 emul="${emul}64"
6848 ;;
6849 esac
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *MSB*)
6852 emul="${emul}btsmip"
6853 ;;
6854 *LSB*)
6855 emul="${emul}ltsmip"
6856 ;;
6857 esac
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *N32*)
6860 emul="${emul}n32"
6861 ;;
6862 esac
6863 LD="${LD-ld} -m $emul"
6864 fi
6865 rm -rf conftest*
6866 ;;
6867
6868 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6869 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6870 # Find out what ABI is being produced by ac_compile, and set linker
6871 # options accordingly. Note that the listed cases only cover the
6872 # situations where additional linker options are needed (such as when
6873 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6874 # vice versa); the common cases where no linker options are needed do
6875 # not appear in the list.
6876 echo 'int i;' > conftest.$ac_ext
6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6878 (eval $ac_compile) 2>&5
6879 ac_status=$?
6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881 test $ac_status = 0; }; then
6882 case `/usr/bin/file conftest.o` in
6883 *32-bit*)
6884 case $host in
6885 x86_64-*kfreebsd*-gnu)
6886 LD="${LD-ld} -m elf_i386_fbsd"
6887 ;;
6888 x86_64-*linux*)
6889 case `/usr/bin/file conftest.o` in
6890 *x86-64*)
6891 LD="${LD-ld} -m elf32_x86_64"
6892 ;;
6893 *)
6894 LD="${LD-ld} -m elf_i386"
6895 ;;
6896 esac
6897 ;;
6898 powerpc64le-*linux*)
6899 LD="${LD-ld} -m elf32lppclinux"
6900 ;;
6901 powerpc64-*linux*)
6902 LD="${LD-ld} -m elf32ppclinux"
6903 ;;
6904 s390x-*linux*)
6905 LD="${LD-ld} -m elf_s390"
6906 ;;
6907 sparc64-*linux*)
6908 LD="${LD-ld} -m elf32_sparc"
6909 ;;
6910 esac
6911 ;;
6912 *64-bit*)
6913 case $host in
6914 x86_64-*kfreebsd*-gnu)
6915 LD="${LD-ld} -m elf_x86_64_fbsd"
6916 ;;
6917 x86_64-*linux*)
6918 LD="${LD-ld} -m elf_x86_64"
6919 ;;
6920 powerpcle-*linux*)
6921 LD="${LD-ld} -m elf64lppc"
6922 ;;
6923 powerpc-*linux*)
6924 LD="${LD-ld} -m elf64ppc"
6925 ;;
6926 s390*-*linux*|s390*-*tpf*)
6927 LD="${LD-ld} -m elf64_s390"
6928 ;;
6929 sparc*-*linux*)
6930 LD="${LD-ld} -m elf64_sparc"
6931 ;;
6932 esac
6933 ;;
6934 esac
6935 fi
6936 rm -rf conftest*
6937 ;;
6938
6939 *-*-sco3.2v5*)
6940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941 SAVE_CFLAGS=$CFLAGS
6942 CFLAGS="$CFLAGS -belf"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6944 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6945 if ${lt_cv_cc_needs_belf+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 ac_ext=c
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956
6957 int
6958 main ()
6959 {
6960
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_link "$LINENO"; then :
6966 lt_cv_cc_needs_belf=yes
6967 else
6968 lt_cv_cc_needs_belf=no
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 ac_ext=c
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6980 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6981 if test yes != "$lt_cv_cc_needs_belf"; then
6982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6983 CFLAGS=$SAVE_CFLAGS
6984 fi
6985 ;;
6986 *-*solaris*)
6987 # Find out what ABI is being produced by ac_compile, and set linker
6988 # options accordingly.
6989 echo 'int i;' > conftest.$ac_ext
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 case `/usr/bin/file conftest.o` in
6996 *64-bit*)
6997 case $lt_cv_prog_gnu_ld in
6998 yes*)
6999 case $host in
7000 i?86-*-solaris*|x86_64-*-solaris*)
7001 LD="${LD-ld} -m elf_x86_64"
7002 ;;
7003 sparc*-*-solaris*)
7004 LD="${LD-ld} -m elf64_sparc"
7005 ;;
7006 esac
7007 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7008 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7009 LD=${LD-ld}_sol2
7010 fi
7011 ;;
7012 *)
7013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7014 LD="${LD-ld} -64"
7015 fi
7016 ;;
7017 esac
7018 ;;
7019 esac
7020 fi
7021 rm -rf conftest*
7022 ;;
7023 esac
7024
7025 need_locks=$enable_libtool_lock
7026
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}mt; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$MANIFEST_TOOL"; then
7036 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7056 if test -n "$MANIFEST_TOOL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7058 $as_echo "$MANIFEST_TOOL" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7067 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7068 # Extract the first word of "mt", so it can be a program name with args.
7069 set dummy mt; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_MANIFEST_TOOL"; then
7076 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7096 if test -n "$ac_ct_MANIFEST_TOOL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7098 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7105 MANIFEST_TOOL=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7114 fi
7115 else
7116 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7117 fi
7118
7119 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7121 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7122 if ${lt_cv_path_mainfest_tool+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 lt_cv_path_mainfest_tool=no
7126 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7127 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7128 cat conftest.err >&5
7129 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7130 lt_cv_path_mainfest_tool=yes
7131 fi
7132 rm -f conftest*
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7135 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7136 if test yes != "$lt_cv_path_mainfest_tool"; then
7137 MANIFEST_TOOL=:
7138 fi
7139
7140
7141
7142
7143
7144
7145 case $host_os in
7146 rhapsody* | darwin*)
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$DSYMUTIL"; then
7156 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7176 if test -n "$DSYMUTIL"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7178 $as_echo "$DSYMUTIL" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_DSYMUTIL"; then
7187 ac_ct_DSYMUTIL=$DSYMUTIL
7188 # Extract the first word of "dsymutil", so it can be a program name with args.
7189 set dummy dsymutil; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$ac_ct_DSYMUTIL"; then
7196 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7216 if test -n "$ac_ct_DSYMUTIL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7218 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224 if test "x$ac_ct_DSYMUTIL" = x; then
7225 DSYMUTIL=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233 DSYMUTIL=$ac_ct_DSYMUTIL
7234 fi
7235 else
7236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7237 fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_NMEDIT+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$NMEDIT"; then
7248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 NMEDIT=$ac_cv_prog_NMEDIT
7268 if test -n "$NMEDIT"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7270 $as_echo "$NMEDIT" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_NMEDIT"; then
7279 ac_ct_NMEDIT=$NMEDIT
7280 # Extract the first word of "nmedit", so it can be a program name with args.
7281 set dummy nmedit; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_NMEDIT"; then
7288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7308 if test -n "$ac_ct_NMEDIT"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7310 $as_echo "$ac_ct_NMEDIT" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316 if test "x$ac_ct_NMEDIT" = x; then
7317 NMEDIT=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 NMEDIT=$ac_ct_NMEDIT
7326 fi
7327 else
7328 NMEDIT="$ac_cv_prog_NMEDIT"
7329 fi
7330
7331 if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_LIPO+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$LIPO"; then
7340 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 LIPO=$ac_cv_prog_LIPO
7360 if test -n "$LIPO"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7362 $as_echo "$LIPO" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_LIPO"; then
7371 ac_ct_LIPO=$LIPO
7372 # Extract the first word of "lipo", so it can be a program name with args.
7373 set dummy lipo; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$ac_ct_LIPO"; then
7380 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_ac_ct_LIPO="lipo"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7400 if test -n "$ac_ct_LIPO"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7402 $as_echo "$ac_ct_LIPO" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408 if test "x$ac_ct_LIPO" = x; then
7409 LIPO=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417 LIPO=$ac_ct_LIPO
7418 fi
7419 else
7420 LIPO="$ac_cv_prog_LIPO"
7421 fi
7422
7423 if test -n "$ac_tool_prefix"; then
7424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7425 set dummy ${ac_tool_prefix}otool; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_OTOOL+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$OTOOL"; then
7432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 OTOOL=$ac_cv_prog_OTOOL
7452 if test -n "$OTOOL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7454 $as_echo "$OTOOL" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460
7461 fi
7462 if test -z "$ac_cv_prog_OTOOL"; then
7463 ac_ct_OTOOL=$OTOOL
7464 # Extract the first word of "otool", so it can be a program name with args.
7465 set dummy otool; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$ac_ct_OTOOL"; then
7472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_OTOOL="otool"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7492 if test -n "$ac_ct_OTOOL"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7494 $as_echo "$ac_ct_OTOOL" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500 if test "x$ac_ct_OTOOL" = x; then
7501 OTOOL=":"
7502 else
7503 case $cross_compiling:$ac_tool_warned in
7504 yes:)
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned=yes ;;
7508 esac
7509 OTOOL=$ac_ct_OTOOL
7510 fi
7511 else
7512 OTOOL="$ac_cv_prog_OTOOL"
7513 fi
7514
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_OTOOL64+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$OTOOL64"; then
7524 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 OTOOL64=$ac_cv_prog_OTOOL64
7544 if test -n "$OTOOL64"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7546 $as_echo "$OTOOL64" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 fi
7554 if test -z "$ac_cv_prog_OTOOL64"; then
7555 ac_ct_OTOOL64=$OTOOL64
7556 # Extract the first word of "otool64", so it can be a program name with args.
7557 set dummy otool64; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$ac_ct_OTOOL64"; then
7564 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_OTOOL64="otool64"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7584 if test -n "$ac_ct_OTOOL64"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7586 $as_echo "$ac_ct_OTOOL64" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592 if test "x$ac_ct_OTOOL64" = x; then
7593 OTOOL64=":"
7594 else
7595 case $cross_compiling:$ac_tool_warned in
7596 yes:)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601 OTOOL64=$ac_ct_OTOOL64
7602 fi
7603 else
7604 OTOOL64="$ac_cv_prog_OTOOL64"
7605 fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7634 $as_echo_n "checking for -single_module linker flag... " >&6; }
7635 if ${lt_cv_apple_cc_single_mod+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 lt_cv_apple_cc_single_mod=no
7639 if test -z "$LT_MULTI_MODULE"; then
7640 # By default we will add the -single_module flag. You can override
7641 # by either setting the environment variable LT_MULTI_MODULE
7642 # non-empty at configure time, or by adding -multi_module to the
7643 # link flags.
7644 rm -rf libconftest.dylib*
7645 echo "int foo(void){return 1;}" > conftest.c
7646 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647 -dynamiclib -Wl,-single_module conftest.c" >&5
7648 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7649 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7650 _lt_result=$?
7651 # If there is a non-empty error log, and "single_module"
7652 # appears in it, assume the flag caused a linker warning
7653 if test -s conftest.err && $GREP single_module conftest.err; then
7654 cat conftest.err >&5
7655 # Otherwise, if the output was created with a 0 exit code from
7656 # the compiler, it worked.
7657 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7658 lt_cv_apple_cc_single_mod=yes
7659 else
7660 cat conftest.err >&5
7661 fi
7662 rm -rf libconftest.dylib*
7663 rm -f conftest.*
7664 fi
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7667 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7670 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7671 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 lt_cv_ld_exported_symbols_list=no
7675 save_LDFLAGS=$LDFLAGS
7676 echo "_main" > conftest.sym
7677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680
7681 int
7682 main ()
7683 {
7684
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"; then :
7690 lt_cv_ld_exported_symbols_list=yes
7691 else
7692 lt_cv_ld_exported_symbols_list=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 LDFLAGS=$save_LDFLAGS
7697
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7700 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7703 $as_echo_n "checking for -force_load linker flag... " >&6; }
7704 if ${lt_cv_ld_force_load+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 lt_cv_ld_force_load=no
7708 cat > conftest.c << _LT_EOF
7709 int forced_loaded() { return 2;}
7710 _LT_EOF
7711 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7712 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7713 echo "$AR cr libconftest.a conftest.o" >&5
7714 $AR cr libconftest.a conftest.o 2>&5
7715 echo "$RANLIB libconftest.a" >&5
7716 $RANLIB libconftest.a 2>&5
7717 cat > conftest.c << _LT_EOF
7718 int main() { return 0;}
7719 _LT_EOF
7720 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7721 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7722 _lt_result=$?
7723 if test -s conftest.err && $GREP force_load conftest.err; then
7724 cat conftest.err >&5
7725 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7726 lt_cv_ld_force_load=yes
7727 else
7728 cat conftest.err >&5
7729 fi
7730 rm -f conftest.err libconftest.a conftest conftest.c
7731 rm -rf conftest.dSYM
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7735 $as_echo "$lt_cv_ld_force_load" >&6; }
7736 case $host_os in
7737 rhapsody* | darwin1.[012])
7738 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7739 darwin1.*)
7740 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7741 darwin*) # darwin 5.x on
7742 # if running on 10.5 or later, the deployment target defaults
7743 # to the OS version, if on x86, and 10.4, the deployment
7744 # target defaults to 10.4. Don't you love it?
7745 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7746 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7747 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7748 10.[012][,.]*)
7749 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7750 10.*|11.*)
7751 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7752 esac
7753 ;;
7754 esac
7755 if test yes = "$lt_cv_apple_cc_single_mod"; then
7756 _lt_dar_single_mod='$single_module'
7757 fi
7758 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7759 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7760 else
7761 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7762 fi
7763 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7764 _lt_dsymutil='~$DSYMUTIL $lib || :'
7765 else
7766 _lt_dsymutil=
7767 fi
7768 ;;
7769 esac
7770
7771 # func_munge_path_list VARIABLE PATH
7772 # -----------------------------------
7773 # VARIABLE is name of variable containing _space_ separated list of
7774 # directories to be munged by the contents of PATH, which is string
7775 # having a format:
7776 # "DIR[:DIR]:"
7777 # string "DIR[ DIR]" will be prepended to VARIABLE
7778 # ":DIR[:DIR]"
7779 # string "DIR[ DIR]" will be appended to VARIABLE
7780 # "DIRP[:DIRP]::[DIRA:]DIRA"
7781 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7782 # "DIRA[ DIRA]" will be appended to VARIABLE
7783 # "DIR[:DIR]"
7784 # VARIABLE will be replaced by "DIR[ DIR]"
7785 func_munge_path_list ()
7786 {
7787 case x$2 in
7788 x)
7789 ;;
7790 *:)
7791 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7792 ;;
7793 x:*)
7794 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7795 ;;
7796 *::*)
7797 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7798 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7799 ;;
7800 *)
7801 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7802 ;;
7803 esac
7804 }
7805
7806 ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7813 # On Suns, sometimes $CPP names a directory.
7814 if test -n "$CPP" && test -d "$CPP"; then
7815 CPP=
7816 fi
7817 if test -z "$CPP"; then
7818 if ${ac_cv_prog_CPP+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 # Double quotes because CPP needs to be expanded
7822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7823 do
7824 ac_preproc_ok=false
7825 for ac_c_preproc_warn_flag in '' yes
7826 do
7827 # Use a header file that comes with gcc, so configuring glibc
7828 # with a fresh cross-compiler works.
7829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7830 # <limits.h> exists even on freestanding compilers.
7831 # On the NeXT, cc -E runs the code through the compiler's parser,
7832 # not just through cpp. "Syntax error" is here to catch this case.
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #ifdef __STDC__
7836 # include <limits.h>
7837 #else
7838 # include <assert.h>
7839 #endif
7840 Syntax error
7841 _ACEOF
7842 if ac_fn_c_try_cpp "$LINENO"; then :
7843
7844 else
7845 # Broken: fails on valid input.
7846 continue
7847 fi
7848 rm -f conftest.err conftest.i conftest.$ac_ext
7849
7850 # OK, works on sane cases. Now check whether nonexistent headers
7851 # can be detected and how.
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 #include <ac_nonexistent.h>
7855 _ACEOF
7856 if ac_fn_c_try_cpp "$LINENO"; then :
7857 # Broken: success on invalid input.
7858 continue
7859 else
7860 # Passes both tests.
7861 ac_preproc_ok=:
7862 break
7863 fi
7864 rm -f conftest.err conftest.i conftest.$ac_ext
7865
7866 done
7867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7868 rm -f conftest.i conftest.err conftest.$ac_ext
7869 if $ac_preproc_ok; then :
7870 break
7871 fi
7872
7873 done
7874 ac_cv_prog_CPP=$CPP
7875
7876 fi
7877 CPP=$ac_cv_prog_CPP
7878 else
7879 ac_cv_prog_CPP=$CPP
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7882 $as_echo "$CPP" >&6; }
7883 ac_preproc_ok=false
7884 for ac_c_preproc_warn_flag in '' yes
7885 do
7886 # Use a header file that comes with gcc, so configuring glibc
7887 # with a fresh cross-compiler works.
7888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889 # <limits.h> exists even on freestanding compilers.
7890 # On the NeXT, cc -E runs the code through the compiler's parser,
7891 # not just through cpp. "Syntax error" is here to catch this case.
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 #ifdef __STDC__
7895 # include <limits.h>
7896 #else
7897 # include <assert.h>
7898 #endif
7899 Syntax error
7900 _ACEOF
7901 if ac_fn_c_try_cpp "$LINENO"; then :
7902
7903 else
7904 # Broken: fails on valid input.
7905 continue
7906 fi
7907 rm -f conftest.err conftest.i conftest.$ac_ext
7908
7909 # OK, works on sane cases. Now check whether nonexistent headers
7910 # can be detected and how.
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 #include <ac_nonexistent.h>
7914 _ACEOF
7915 if ac_fn_c_try_cpp "$LINENO"; then :
7916 # Broken: success on invalid input.
7917 continue
7918 else
7919 # Passes both tests.
7920 ac_preproc_ok=:
7921 break
7922 fi
7923 rm -f conftest.err conftest.i conftest.$ac_ext
7924
7925 done
7926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7927 rm -f conftest.i conftest.err conftest.$ac_ext
7928 if $ac_preproc_ok; then :
7929
7930 else
7931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7933 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7934 See \`config.log' for more details" "$LINENO" 5; }
7935 fi
7936
7937 ac_ext=c
7938 ac_cpp='$CPP $CPPFLAGS'
7939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7945 $as_echo_n "checking for ANSI C header files... " >&6; }
7946 if ${ac_cv_header_stdc+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951 #include <stdlib.h>
7952 #include <stdarg.h>
7953 #include <string.h>
7954 #include <float.h>
7955
7956 int
7957 main ()
7958 {
7959
7960 ;
7961 return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 ac_cv_header_stdc=yes
7966 else
7967 ac_cv_header_stdc=no
7968 fi
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970
7971 if test $ac_cv_header_stdc = yes; then
7972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 #include <string.h>
7976
7977 _ACEOF
7978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7979 $EGREP "memchr" >/dev/null 2>&1; then :
7980
7981 else
7982 ac_cv_header_stdc=no
7983 fi
7984 rm -f conftest*
7985
7986 fi
7987
7988 if test $ac_cv_header_stdc = yes; then
7989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 #include <stdlib.h>
7993
7994 _ACEOF
7995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7996 $EGREP "free" >/dev/null 2>&1; then :
7997
7998 else
7999 ac_cv_header_stdc=no
8000 fi
8001 rm -f conftest*
8002
8003 fi
8004
8005 if test $ac_cv_header_stdc = yes; then
8006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8007 if test "$cross_compiling" = yes; then :
8008 :
8009 else
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <ctype.h>
8013 #include <stdlib.h>
8014 #if ((' ' & 0x0FF) == 0x020)
8015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8017 #else
8018 # define ISLOWER(c) \
8019 (('a' <= (c) && (c) <= 'i') \
8020 || ('j' <= (c) && (c) <= 'r') \
8021 || ('s' <= (c) && (c) <= 'z'))
8022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8023 #endif
8024
8025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8026 int
8027 main ()
8028 {
8029 int i;
8030 for (i = 0; i < 256; i++)
8031 if (XOR (islower (i), ISLOWER (i))
8032 || toupper (i) != TOUPPER (i))
8033 return 2;
8034 return 0;
8035 }
8036 _ACEOF
8037 if ac_fn_c_try_run "$LINENO"; then :
8038
8039 else
8040 ac_cv_header_stdc=no
8041 fi
8042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8043 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 fi
8045
8046 fi
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8049 $as_echo "$ac_cv_header_stdc" >&6; }
8050 if test $ac_cv_header_stdc = yes; then
8051
8052 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8053
8054 fi
8055
8056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8058 inttypes.h stdint.h unistd.h
8059 do :
8060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8062 "
8063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8064 cat >>confdefs.h <<_ACEOF
8065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 _ACEOF
8067
8068 fi
8069
8070 done
8071
8072
8073 for ac_header in dlfcn.h
8074 do :
8075 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8076 "
8077 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE_DLFCN_H 1
8080 _ACEOF
8081
8082 fi
8083
8084 done
8085
8086
8087
8088
8089
8090 # Set options
8091
8092
8093
8094 enable_dlopen=no
8095
8096
8097 enable_win32_dll=no
8098
8099
8100 # Check whether --enable-shared was given.
8101 if test "${enable_shared+set}" = set; then :
8102 enableval=$enable_shared; p=${PACKAGE-default}
8103 case $enableval in
8104 yes) enable_shared=yes ;;
8105 no) enable_shared=no ;;
8106 *)
8107 enable_shared=no
8108 # Look at the argument we got. We use all the common list separators.
8109 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8110 for pkg in $enableval; do
8111 IFS=$lt_save_ifs
8112 if test "X$pkg" = "X$p"; then
8113 enable_shared=yes
8114 fi
8115 done
8116 IFS=$lt_save_ifs
8117 ;;
8118 esac
8119 else
8120 enable_shared=yes
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131 # Check whether --enable-static was given.
8132 if test "${enable_static+set}" = set; then :
8133 enableval=$enable_static; p=${PACKAGE-default}
8134 case $enableval in
8135 yes) enable_static=yes ;;
8136 no) enable_static=no ;;
8137 *)
8138 enable_static=no
8139 # Look at the argument we got. We use all the common list separators.
8140 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8141 for pkg in $enableval; do
8142 IFS=$lt_save_ifs
8143 if test "X$pkg" = "X$p"; then
8144 enable_static=yes
8145 fi
8146 done
8147 IFS=$lt_save_ifs
8148 ;;
8149 esac
8150 else
8151 enable_static=yes
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 # Check whether --with-pic was given.
8164 if test "${with_pic+set}" = set; then :
8165 withval=$with_pic; lt_p=${PACKAGE-default}
8166 case $withval in
8167 yes|no) pic_mode=$withval ;;
8168 *)
8169 pic_mode=default
8170 # Look at the argument we got. We use all the common list separators.
8171 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8172 for lt_pkg in $withval; do
8173 IFS=$lt_save_ifs
8174 if test "X$lt_pkg" = "X$lt_p"; then
8175 pic_mode=yes
8176 fi
8177 done
8178 IFS=$lt_save_ifs
8179 ;;
8180 esac
8181 else
8182 pic_mode=default
8183 fi
8184
8185
8186
8187
8188
8189
8190
8191
8192 # Check whether --enable-fast-install was given.
8193 if test "${enable_fast_install+set}" = set; then :
8194 enableval=$enable_fast_install; p=${PACKAGE-default}
8195 case $enableval in
8196 yes) enable_fast_install=yes ;;
8197 no) enable_fast_install=no ;;
8198 *)
8199 enable_fast_install=no
8200 # Look at the argument we got. We use all the common list separators.
8201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8202 for pkg in $enableval; do
8203 IFS=$lt_save_ifs
8204 if test "X$pkg" = "X$p"; then
8205 enable_fast_install=yes
8206 fi
8207 done
8208 IFS=$lt_save_ifs
8209 ;;
8210 esac
8211 else
8212 enable_fast_install=yes
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221
8222 shared_archive_member_spec=
8223 case $host,$enable_shared in
8224 power*-*-aix[5-9]*,yes)
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8226 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8227
8228 # Check whether --with-aix-soname was given.
8229 if test "${with_aix_soname+set}" = set; then :
8230 withval=$with_aix_soname; case $withval in
8231 aix|svr4|both)
8232 ;;
8233 *)
8234 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8235 ;;
8236 esac
8237 lt_cv_with_aix_soname=$with_aix_soname
8238 else
8239 if ${lt_cv_with_aix_soname+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_with_aix_soname=aix
8243 fi
8244
8245 with_aix_soname=$lt_cv_with_aix_soname
8246 fi
8247
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8249 $as_echo "$with_aix_soname" >&6; }
8250 if test aix != "$with_aix_soname"; then
8251 # For the AIX way of multilib, we name the shared archive member
8252 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8253 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8254 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8255 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8256 if test 64 = "${OBJECT_MODE-32}"; then
8257 shared_archive_member_spec=shr_64
8258 else
8259 shared_archive_member_spec=shr
8260 fi
8261 fi
8262 ;;
8263 *)
8264 with_aix_soname=aix
8265 ;;
8266 esac
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 # This can be used to rebuild libtool when needed
8278 LIBTOOL_DEPS=$ltmain
8279
8280 # Always use our own libtool.
8281 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312 test -z "$LN_S" && LN_S="ln -s"
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 if test -n "${ZSH_VERSION+set}"; then
8328 setopt NO_GLOB_SUBST
8329 fi
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8332 $as_echo_n "checking for objdir... " >&6; }
8333 if ${lt_cv_objdir+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 rm -f .libs 2>/dev/null
8337 mkdir .libs 2>/dev/null
8338 if test -d .libs; then
8339 lt_cv_objdir=.libs
8340 else
8341 # MS-DOS does not allow filenames that begin with a dot.
8342 lt_cv_objdir=_libs
8343 fi
8344 rmdir .libs 2>/dev/null
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8347 $as_echo "$lt_cv_objdir" >&6; }
8348 objdir=$lt_cv_objdir
8349
8350
8351
8352
8353
8354 cat >>confdefs.h <<_ACEOF
8355 #define LT_OBJDIR "$lt_cv_objdir/"
8356 _ACEOF
8357
8358
8359
8360
8361 case $host_os in
8362 aix3*)
8363 # AIX sometimes has problems with the GCC collect2 program. For some
8364 # reason, if we set the COLLECT_NAMES environment variable, the problems
8365 # vanish in a puff of smoke.
8366 if test set != "${COLLECT_NAMES+set}"; then
8367 COLLECT_NAMES=
8368 export COLLECT_NAMES
8369 fi
8370 ;;
8371 esac
8372
8373 # Global variables:
8374 ofile=libtool
8375 can_build_shared=yes
8376
8377 # All known linkers require a '.a' archive for static linking (except MSVC,
8378 # which needs '.lib').
8379 libext=a
8380
8381 with_gnu_ld=$lt_cv_prog_gnu_ld
8382
8383 old_CC=$CC
8384 old_CFLAGS=$CFLAGS
8385
8386 # Set sane defaults for various variables
8387 test -z "$CC" && CC=cc
8388 test -z "$LTCC" && LTCC=$CC
8389 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8390 test -z "$LD" && LD=ld
8391 test -z "$ac_objext" && ac_objext=o
8392
8393 func_cc_basename $compiler
8394 cc_basename=$func_cc_basename_result
8395
8396
8397 # Only perform the check for file, if the check method requires it
8398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399 case $deplibs_check_method in
8400 file_magic*)
8401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 case $MAGIC_CMD in
8408 [\\/*] | ?:[\\/]*)
8409 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8410 ;;
8411 *)
8412 lt_save_MAGIC_CMD=$MAGIC_CMD
8413 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir in $ac_dummy; do
8416 IFS=$lt_save_ifs
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8419 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8422 "file_magic "*)
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426 $EGREP "$file_magic_regex" > /dev/null; then
8427 :
8428 else
8429 cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such. This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem. Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** [email protected]
8439
8440 _LT_EOF
8441 fi ;;
8442 esac
8443 fi
8444 break
8445 fi
8446 done
8447 IFS=$lt_save_ifs
8448 MAGIC_CMD=$lt_save_MAGIC_CMD
8449 ;;
8450 esac
8451 fi
8452
8453 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8454 if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462
8463
8464
8465
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467 if test -n "$ac_tool_prefix"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469 $as_echo_n "checking for file... " >&6; }
8470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 case $MAGIC_CMD in
8474 [\\/*] | ?:[\\/]*)
8475 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8476 ;;
8477 *)
8478 lt_save_MAGIC_CMD=$MAGIC_CMD
8479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481 for ac_dir in $ac_dummy; do
8482 IFS=$lt_save_ifs
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f "$ac_dir/file"; then
8485 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8486 if test -n "$file_magic_test_file"; then
8487 case $deplibs_check_method in
8488 "file_magic "*)
8489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492 $EGREP "$file_magic_regex" > /dev/null; then
8493 :
8494 else
8495 cat <<_LT_EOF 1>&2
8496
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such. This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem. Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** [email protected]
8505
8506 _LT_EOF
8507 fi ;;
8508 esac
8509 fi
8510 break
8511 fi
8512 done
8513 IFS=$lt_save_ifs
8514 MAGIC_CMD=$lt_save_MAGIC_CMD
8515 ;;
8516 esac
8517 fi
8518
8519 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8520 if test -n "$MAGIC_CMD"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522 $as_echo "$MAGIC_CMD" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529 else
8530 MAGIC_CMD=:
8531 fi
8532 fi
8533
8534 fi
8535 ;;
8536 esac
8537
8538 # Use C for the default configuration in the libtool script
8539
8540 lt_save_CC=$CC
8541 ac_ext=c
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547
8548 # Source file extension for C test sources.
8549 ac_ext=c
8550
8551 # Object file extension for compiled C test sources.
8552 objext=o
8553 objext=$objext
8554
8555 # Code to be used in simple compile tests
8556 lt_simple_compile_test_code="int some_variable = 0;"
8557
8558 # Code to be used in simple link tests
8559 lt_simple_link_test_code='int main(){return(0);}'
8560
8561
8562
8563
8564
8565
8566
8567 # If no C compiler was specified, use CC.
8568 LTCC=${LTCC-"$CC"}
8569
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8572
8573 # Allow CC to be a program name with arguments.
8574 compiler=$CC
8575
8576 # Save the default compiler, since it gets overwritten when the other
8577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578 compiler_DEFAULT=$CC
8579
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8585 $RM conftest*
8586
8587 ac_outfile=conftest.$ac_objext
8588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8591 $RM -r conftest*
8592
8593
8594 ## CAVEAT EMPTOR:
8595 ## There is no encapsulation within the following macros, do not change
8596 ## the running order or otherwise move them around unless you know exactly
8597 ## what you are doing...
8598 if test -n "$compiler"; then
8599
8600 lt_prog_compiler_no_builtin_flag=
8601
8602 if test yes = "$GCC"; then
8603 case $cc_basename in
8604 nvcc*)
8605 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8606 *)
8607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8608 esac
8609
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 lt_cv_prog_compiler_rtti_exceptions=no
8616 ac_outfile=conftest.$ac_objext
8617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 # The option is referenced via a variable to avoid confusing sed.
8624 lt_compile=`echo "$ac_compile" | $SED \
8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627 -e 's:$: $lt_compiler_flag:'`
8628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629 (eval "$lt_compile" 2>conftest.err)
8630 ac_status=$?
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 if (exit $ac_status) && test -s "$ac_outfile"; then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings other than the usual output.
8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_rtti_exceptions=yes
8640 fi
8641 fi
8642 $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8647
8648 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8650 else
8651 :
8652 fi
8653
8654 fi
8655
8656
8657
8658
8659
8660
8661 lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8664
8665
8666 if test yes = "$GCC"; then
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_static='-static'
8669
8670 case $host_os in
8671 aix*)
8672 # All AIX code is PIC.
8673 if test ia64 = "$host_cpu"; then
8674 # AIX 5 now supports IA64 processor
8675 lt_prog_compiler_static='-Bstatic'
8676 fi
8677 lt_prog_compiler_pic='-fPIC'
8678 ;;
8679
8680 amigaos*)
8681 case $host_cpu in
8682 powerpc)
8683 # see comment about AmigaOS4 .so support
8684 lt_prog_compiler_pic='-fPIC'
8685 ;;
8686 m68k)
8687 # FIXME: we need at least 68020 code to build shared libraries, but
8688 # adding the '-m68020' flag to GCC prevents building anything better,
8689 # like '-m68040'.
8690 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8691 ;;
8692 esac
8693 ;;
8694
8695 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8696 # PIC is the default for these OSes.
8697 ;;
8698
8699 mingw* | cygwin* | pw32* | os2* | cegcc*)
8700 # This hack is so that the source file can tell whether it is being
8701 # built for inclusion in a dll (and should export symbols for example).
8702 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8703 # (--disable-auto-import) libraries
8704 lt_prog_compiler_pic='-DDLL_EXPORT'
8705 case $host_os in
8706 os2*)
8707 lt_prog_compiler_static='$wl-static'
8708 ;;
8709 esac
8710 ;;
8711
8712 darwin* | rhapsody*)
8713 # PIC is the default on this platform
8714 # Common symbols not allowed in MH_DYLIB files
8715 lt_prog_compiler_pic='-fno-common'
8716 ;;
8717
8718 haiku*)
8719 # PIC is the default for Haiku.
8720 # The "-static" flag exists, but is broken.
8721 lt_prog_compiler_static=
8722 ;;
8723
8724 hpux*)
8725 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8726 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8727 # sets the default TLS model and affects inlining.
8728 case $host_cpu in
8729 hppa*64*)
8730 # +Z the default
8731 ;;
8732 *)
8733 lt_prog_compiler_pic='-fPIC'
8734 ;;
8735 esac
8736 ;;
8737
8738 interix[3-9]*)
8739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8740 # Instead, we relocate shared libraries at runtime.
8741 ;;
8742
8743 msdosdjgpp*)
8744 # Just because we use GCC doesn't mean we suddenly get shared libraries
8745 # on systems that don't support them.
8746 lt_prog_compiler_can_build_shared=no
8747 enable_shared=no
8748 ;;
8749
8750 *nto* | *qnx*)
8751 # QNX uses GNU C++, but need to define -shared option too, otherwise
8752 # it will coredump.
8753 lt_prog_compiler_pic='-fPIC -shared'
8754 ;;
8755
8756 sysv4*MP*)
8757 if test -d /usr/nec; then
8758 lt_prog_compiler_pic=-Kconform_pic
8759 fi
8760 ;;
8761
8762 *)
8763 lt_prog_compiler_pic='-fPIC'
8764 ;;
8765 esac
8766
8767 case $cc_basename in
8768 nvcc*) # Cuda Compiler Driver 2.2
8769 lt_prog_compiler_wl='-Xlinker '
8770 if test -n "$lt_prog_compiler_pic"; then
8771 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8772 fi
8773 ;;
8774 esac
8775 else
8776 # PORTME Check for flag to pass linker flags through the system compiler.
8777 case $host_os in
8778 aix*)
8779 lt_prog_compiler_wl='-Wl,'
8780 if test ia64 = "$host_cpu"; then
8781 # AIX 5 now supports IA64 processor
8782 lt_prog_compiler_static='-Bstatic'
8783 else
8784 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8785 fi
8786 ;;
8787
8788 darwin* | rhapsody*)
8789 # PIC is the default on this platform
8790 # Common symbols not allowed in MH_DYLIB files
8791 lt_prog_compiler_pic='-fno-common'
8792 case $cc_basename in
8793 nagfor*)
8794 # NAG Fortran compiler
8795 lt_prog_compiler_wl='-Wl,-Wl,,'
8796 lt_prog_compiler_pic='-PIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799 esac
8800 ;;
8801
8802 mingw* | cygwin* | pw32* | os2* | cegcc*)
8803 # This hack is so that the source file can tell whether it is being
8804 # built for inclusion in a dll (and should export symbols for example).
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 case $host_os in
8807 os2*)
8808 lt_prog_compiler_static='$wl-static'
8809 ;;
8810 esac
8811 ;;
8812
8813 hpux9* | hpux10* | hpux11*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8816 # not for PA HP-UX.
8817 case $host_cpu in
8818 hppa*64*|ia64*)
8819 # +Z the default
8820 ;;
8821 *)
8822 lt_prog_compiler_pic='+Z'
8823 ;;
8824 esac
8825 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8826 lt_prog_compiler_static='$wl-a ${wl}archive'
8827 ;;
8828
8829 irix5* | irix6* | nonstopux*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # PIC (with -KPIC) is the default.
8832 lt_prog_compiler_static='-non_shared'
8833 ;;
8834
8835 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8836 case $cc_basename in
8837 # old Intel for x86_64, which still supported -KPIC.
8838 ecc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-static'
8842 ;;
8843 # flang / f18. f95 an alias for gfortran or flang on Debian
8844 flang* | f18* | f95*)
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-fPIC'
8847 lt_prog_compiler_static='-static'
8848 ;;
8849 # icc used to be incompatible with GCC.
8850 # ICC 10 doesn't accept -KPIC any more.
8851 icc* | ifort*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-fPIC'
8854 lt_prog_compiler_static='-static'
8855 ;;
8856 # Lahey Fortran 8.1.
8857 lf95*)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='--shared'
8860 lt_prog_compiler_static='--static'
8861 ;;
8862 nagfor*)
8863 # NAG Fortran compiler
8864 lt_prog_compiler_wl='-Wl,-Wl,,'
8865 lt_prog_compiler_pic='-PIC'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
8868 tcc*)
8869 # Fabrice Bellard et al's Tiny C Compiler
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='-fPIC'
8872 lt_prog_compiler_static='-static'
8873 ;;
8874 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8875 # Portland Group compilers (*not* the Pentium gcc compiler,
8876 # which looks to be a dead project)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-fpic'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881 ccc*)
8882 lt_prog_compiler_wl='-Wl,'
8883 # All Alpha code is PIC.
8884 lt_prog_compiler_static='-non_shared'
8885 ;;
8886 xl* | bgxl* | bgf* | mpixl*)
8887 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-qpic'
8890 lt_prog_compiler_static='-qstaticlink'
8891 ;;
8892 *)
8893 case `$CC -V 2>&1 | sed 5q` in
8894 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 lt_prog_compiler_wl=''
8899 ;;
8900 *Sun\ F* | *Sun*Fortran*)
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8903 lt_prog_compiler_wl='-Qoption ld '
8904 ;;
8905 *Sun\ C*)
8906 # Sun C 5.9
8907 lt_prog_compiler_pic='-KPIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 lt_prog_compiler_wl='-Wl,'
8910 ;;
8911 *Intel*\ [CF]*Compiler*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-fPIC'
8914 lt_prog_compiler_static='-static'
8915 ;;
8916 *Portland\ Group*)
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_pic='-fpic'
8919 lt_prog_compiler_static='-Bstatic'
8920 ;;
8921 esac
8922 ;;
8923 esac
8924 ;;
8925
8926 newsos6)
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930
8931 *nto* | *qnx*)
8932 # QNX uses GNU C++, but need to define -shared option too, otherwise
8933 # it will coredump.
8934 lt_prog_compiler_pic='-fPIC -shared'
8935 ;;
8936
8937 osf3* | osf4* | osf5*)
8938 lt_prog_compiler_wl='-Wl,'
8939 # All OSF/1 code is PIC.
8940 lt_prog_compiler_static='-non_shared'
8941 ;;
8942
8943 rdos*)
8944 lt_prog_compiler_static='-non_shared'
8945 ;;
8946
8947 solaris*)
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 case $cc_basename in
8951 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8952 lt_prog_compiler_wl='-Qoption ld ';;
8953 *)
8954 lt_prog_compiler_wl='-Wl,';;
8955 esac
8956 ;;
8957
8958 sunos4*)
8959 lt_prog_compiler_wl='-Qoption ld '
8960 lt_prog_compiler_pic='-PIC'
8961 lt_prog_compiler_static='-Bstatic'
8962 ;;
8963
8964 sysv4 | sysv4.2uw2* | sysv4.3*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 ;;
8969
8970 sysv4*MP*)
8971 if test -d /usr/nec; then
8972 lt_prog_compiler_pic='-Kconform_pic'
8973 lt_prog_compiler_static='-Bstatic'
8974 fi
8975 ;;
8976
8977 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-KPIC'
8980 lt_prog_compiler_static='-Bstatic'
8981 ;;
8982
8983 unicos*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_can_build_shared=no
8986 ;;
8987
8988 uts4*)
8989 lt_prog_compiler_pic='-pic'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 *)
8994 lt_prog_compiler_can_build_shared=no
8995 ;;
8996 esac
8997 fi
8998
8999 case $host_os in
9000 # For platforms that do not support PIC, -DPIC is meaningless:
9001 *djgpp*)
9002 lt_prog_compiler_pic=
9003 ;;
9004 *)
9005 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9006 ;;
9007 esac
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9011 if ${lt_cv_prog_compiler_pic+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9017 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9018 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9019
9020 #
9021 # Check to make sure the PIC flag actually works.
9022 #
9023 if test -n "$lt_prog_compiler_pic"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9026 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 lt_cv_prog_compiler_pic_works=no
9030 ac_outfile=conftest.$ac_objext
9031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9033 # Insert the option either (1) after the last *FLAGS variable, or
9034 # (2) before a word containing "conftest.", or (3) at the end.
9035 # Note that $ac_compile itself does not contain backslashes and begins
9036 # with a dollar sign (not a hyphen), so the echo should work correctly.
9037 # The option is referenced via a variable to avoid confusing sed.
9038 lt_compile=`echo "$ac_compile" | $SED \
9039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9041 -e 's:$: $lt_compiler_flag:'`
9042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9043 (eval "$lt_compile" 2>conftest.err)
9044 ac_status=$?
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 if (exit $ac_status) && test -s "$ac_outfile"; then
9048 # The compiler can only warn and ignore the option if not recognized
9049 # So say no if there are warnings other than the usual output.
9050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9053 lt_cv_prog_compiler_pic_works=yes
9054 fi
9055 fi
9056 $RM conftest*
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9060 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9061
9062 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9063 case $lt_prog_compiler_pic in
9064 "" | " "*) ;;
9065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9066 esac
9067 else
9068 lt_prog_compiler_pic=
9069 lt_prog_compiler_can_build_shared=no
9070 fi
9071
9072 fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084 #
9085 # Check to make sure the static flag actually works.
9086 #
9087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9089 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9090 if ${lt_cv_prog_compiler_static_works+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 lt_cv_prog_compiler_static_works=no
9094 save_LDFLAGS=$LDFLAGS
9095 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9098 # The linker can only warn and ignore the option if not recognized
9099 # So say no if there are warnings
9100 if test -s conftest.err; then
9101 # Append any errors to the config.log.
9102 cat conftest.err 1>&5
9103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105 if diff conftest.exp conftest.er2 >/dev/null; then
9106 lt_cv_prog_compiler_static_works=yes
9107 fi
9108 else
9109 lt_cv_prog_compiler_static_works=yes
9110 fi
9111 fi
9112 $RM -r conftest*
9113 LDFLAGS=$save_LDFLAGS
9114
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9117 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9118
9119 if test yes = "$lt_cv_prog_compiler_static_works"; then
9120 :
9121 else
9122 lt_prog_compiler_static=
9123 fi
9124
9125
9126
9127
9128
9129
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133 if ${lt_cv_prog_compiler_c_o+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler_c_o=no
9137 $RM -r conftest 2>/dev/null
9138 mkdir conftest
9139 cd conftest
9140 mkdir out
9141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9142
9143 lt_compiler_flag="-o out/conftest2.$ac_objext"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 lt_compile=`echo "$ac_compile" | $SED \
9149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151 -e 's:$: $lt_compiler_flag:'`
9152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9153 (eval "$lt_compile" 2>out/conftest.err)
9154 ac_status=$?
9155 cat out/conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9158 then
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings
9161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9164 lt_cv_prog_compiler_c_o=yes
9165 fi
9166 fi
9167 chmod u+w . 2>&5
9168 $RM conftest*
9169 # SGI C++ compiler will create directory out/ii_files/ for
9170 # template instantiation
9171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9172 $RM out/* && rmdir out
9173 cd ..
9174 $RM -r conftest
9175 $RM conftest*
9176
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9180
9181
9182
9183
9184
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9188 if ${lt_cv_prog_compiler_c_o+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 lt_cv_prog_compiler_c_o=no
9192 $RM -r conftest 2>/dev/null
9193 mkdir conftest
9194 cd conftest
9195 mkdir out
9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
9198 lt_compiler_flag="-o out/conftest2.$ac_objext"
9199 # Insert the option either (1) after the last *FLAGS variable, or
9200 # (2) before a word containing "conftest.", or (3) at the end.
9201 # Note that $ac_compile itself does not contain backslashes and begins
9202 # with a dollar sign (not a hyphen), so the echo should work correctly.
9203 lt_compile=`echo "$ac_compile" | $SED \
9204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9206 -e 's:$: $lt_compiler_flag:'`
9207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9208 (eval "$lt_compile" 2>out/conftest.err)
9209 ac_status=$?
9210 cat out/conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9213 then
9214 # The compiler can only warn and ignore the option if not recognized
9215 # So say no if there are warnings
9216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9219 lt_cv_prog_compiler_c_o=yes
9220 fi
9221 fi
9222 chmod u+w . 2>&5
9223 $RM conftest*
9224 # SGI C++ compiler will create directory out/ii_files/ for
9225 # template instantiation
9226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9227 $RM out/* && rmdir out
9228 cd ..
9229 $RM -r conftest
9230 $RM conftest*
9231
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9234 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9235
9236
9237
9238
9239 hard_links=nottested
9240 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9241 # do not overwrite the value of need_locks provided by the user
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9243 $as_echo_n "checking if we can lock with hard links... " >&6; }
9244 hard_links=yes
9245 $RM conftest*
9246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9247 touch conftest.a
9248 ln conftest.a conftest.b 2>&5 || hard_links=no
9249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9251 $as_echo "$hard_links" >&6; }
9252 if test no = "$hard_links"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9254 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9255 need_locks=warn
9256 fi
9257 else
9258 need_locks=no
9259 fi
9260
9261
9262
9263
9264
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9268
9269 runpath_var=
9270 allow_undefined_flag=
9271 always_export_symbols=no
9272 archive_cmds=
9273 archive_expsym_cmds=
9274 compiler_needs_object=no
9275 enable_shared_with_static_runtimes=no
9276 export_dynamic_flag_spec=
9277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9278 hardcode_automatic=no
9279 hardcode_direct=no
9280 hardcode_direct_absolute=no
9281 hardcode_libdir_flag_spec=
9282 hardcode_libdir_separator=
9283 hardcode_minus_L=no
9284 hardcode_shlibpath_var=unsupported
9285 inherit_rpath=no
9286 link_all_deplibs=unknown
9287 module_cmds=
9288 module_expsym_cmds=
9289 old_archive_from_new_cmds=
9290 old_archive_from_expsyms_cmds=
9291 thread_safe_flag_spec=
9292 whole_archive_flag_spec=
9293 # include_expsyms should be a list of space-separated symbols to be *always*
9294 # included in the symbol list
9295 include_expsyms=
9296 # exclude_expsyms can be an extended regexp of symbols to exclude
9297 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9298 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9299 # as well as any symbol that contains 'd'.
9300 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9302 # platforms (ab)use it in PIC code, but their linkers get confused if
9303 # the symbol is explicitly referenced. Since portable code cannot
9304 # rely on this symbol name, it's probably fine to never include it in
9305 # preloaded symbol tables.
9306 # Exclude shared library initialization/finalization symbols.
9307 extract_expsyms_cmds=
9308
9309 case $host_os in
9310 cygwin* | mingw* | pw32* | cegcc*)
9311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9312 # When not using gcc, we currently assume that we are using
9313 # Microsoft Visual C++.
9314 if test yes != "$GCC"; then
9315 with_gnu_ld=no
9316 fi
9317 ;;
9318 interix*)
9319 # we just hope/assume this is gcc and not c89 (= MSVC++)
9320 with_gnu_ld=yes
9321 ;;
9322 openbsd* | bitrig*)
9323 with_gnu_ld=no
9324 ;;
9325 linux* | k*bsd*-gnu | gnu*)
9326 link_all_deplibs=no
9327 ;;
9328 esac
9329
9330 ld_shlibs=yes
9331
9332 # On some targets, GNU ld is compatible enough with the native linker
9333 # that we're better off using the native interface for both.
9334 lt_use_gnu_ld_interface=no
9335 if test yes = "$with_gnu_ld"; then
9336 case $host_os in
9337 aix*)
9338 # The AIX port of GNU ld has always aspired to compatibility
9339 # with the native linker. However, as the warning in the GNU ld
9340 # block says, versions before 2.19.5* couldn't really create working
9341 # shared libraries, regardless of the interface used.
9342 case `$LD -v 2>&1` in
9343 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9344 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9345 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9346 *)
9347 lt_use_gnu_ld_interface=yes
9348 ;;
9349 esac
9350 ;;
9351 *)
9352 lt_use_gnu_ld_interface=yes
9353 ;;
9354 esac
9355 fi
9356
9357 if test yes = "$lt_use_gnu_ld_interface"; then
9358 # If archive_cmds runs LD, not CC, wlarc should be empty
9359 wlarc='$wl'
9360
9361 # Set some defaults for GNU ld with shared library support. These
9362 # are reset later if shared libraries are not supported. Putting them
9363 # here allows them to be overridden if necessary.
9364 runpath_var=LD_RUN_PATH
9365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9366 export_dynamic_flag_spec='$wl--export-dynamic'
9367 # ancient GNU ld didn't support --whole-archive et. al.
9368 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9369 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9370 else
9371 whole_archive_flag_spec=
9372 fi
9373 supports_anon_versioning=no
9374 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9375 *GNU\ gold*) supports_anon_versioning=yes ;;
9376 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9377 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9378 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9379 *\ 2.11.*) ;; # other 2.11 versions
9380 *) supports_anon_versioning=yes ;;
9381 esac
9382
9383 # See if GNU ld supports shared libraries.
9384 case $host_os in
9385 aix[3-9]*)
9386 # On AIX/PPC, the GNU linker is very broken
9387 if test ia64 != "$host_cpu"; then
9388 ld_shlibs=no
9389 cat <<_LT_EOF 1>&2
9390
9391 *** Warning: the GNU linker, at least up to release 2.19, is reported
9392 *** to be unable to reliably create shared libraries on AIX.
9393 *** Therefore, libtool is disabling shared libraries support. If you
9394 *** really care for shared libraries, you may want to install binutils
9395 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9396 *** You will then need to restart the configuration process.
9397
9398 _LT_EOF
9399 fi
9400 ;;
9401
9402 amigaos*)
9403 case $host_cpu in
9404 powerpc)
9405 # see comment about AmigaOS4 .so support
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9407 archive_expsym_cmds=''
9408 ;;
9409 m68k)
9410 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)'
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_minus_L=yes
9413 ;;
9414 esac
9415 ;;
9416
9417 beos*)
9418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9419 allow_undefined_flag=unsupported
9420 # Joseph Beckenbach <[email protected]> says some releases of gcc
9421 # support --undefined. This deserves some investigation. FIXME
9422 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9423 else
9424 ld_shlibs=no
9425 fi
9426 ;;
9427
9428 cygwin* | mingw* | pw32* | cegcc*)
9429 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9430 # as there is no search path for DLLs.
9431 hardcode_libdir_flag_spec='-L$libdir'
9432 export_dynamic_flag_spec='$wl--export-all-symbols'
9433 allow_undefined_flag=unsupported
9434 always_export_symbols=no
9435 enable_shared_with_static_runtimes=yes
9436 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9437 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9438
9439 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9441 # If the export-symbols file already is a .def file, use it as
9442 # is; otherwise, prepend EXPORTS...
9443 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9444 cp $export_symbols $output_objdir/$soname.def;
9445 else
9446 echo EXPORTS > $output_objdir/$soname.def;
9447 cat $export_symbols >> $output_objdir/$soname.def;
9448 fi~
9449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;;
9454
9455 haiku*)
9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9457 link_all_deplibs=yes
9458 ;;
9459
9460 os2*)
9461 hardcode_libdir_flag_spec='-L$libdir'
9462 hardcode_minus_L=yes
9463 allow_undefined_flag=unsupported
9464 shrext_cmds=.dll
9465 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9468 $ECHO EXPORTS >> $output_objdir/$libname.def~
9469 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9470 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9471 emximp -o $lib $output_objdir/$libname.def'
9472 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9475 $ECHO EXPORTS >> $output_objdir/$libname.def~
9476 prefix_cmds="$SED"~
9477 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9478 prefix_cmds="$prefix_cmds -e 1d";
9479 fi~
9480 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9481 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9482 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9483 emximp -o $lib $output_objdir/$libname.def'
9484 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9485 enable_shared_with_static_runtimes=yes
9486 ;;
9487
9488 interix[3-9]*)
9489 hardcode_direct=no
9490 hardcode_shlibpath_var=no
9491 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9492 export_dynamic_flag_spec='$wl-E'
9493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9494 # Instead, shared libraries are loaded at an image base (0x10000000 by
9495 # default) and relocated if they conflict, which is a slow very memory
9496 # consuming and fragmenting process. To avoid this, we pick a random,
9497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9500 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'
9501 ;;
9502
9503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9504 tmp_diet=no
9505 if test linux-dietlibc = "$host_os"; then
9506 case $cc_basename in
9507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9508 esac
9509 fi
9510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9511 && test no = "$tmp_diet"
9512 then
9513 tmp_addflag=' $pic_flag'
9514 tmp_sharedflag='-shared'
9515 case $cc_basename,$host_cpu in
9516 pgcc*) # Portland Group C compiler
9517 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'
9518 tmp_addflag=' $pic_flag'
9519 ;;
9520 pgf77* | pgf90* | pgf95* | pgfortran*)
9521 # Portland Group f77 and f90 compilers
9522 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'
9523 tmp_addflag=' $pic_flag -Mnomain' ;;
9524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9525 tmp_addflag=' -i_dynamic' ;;
9526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9527 tmp_addflag=' -i_dynamic -nofor_main' ;;
9528 ifc* | ifort*) # Intel Fortran compiler
9529 tmp_addflag=' -nofor_main' ;;
9530 lf95*) # Lahey Fortran 8.1
9531 whole_archive_flag_spec=
9532 tmp_sharedflag='--shared' ;;
9533 nagfor*) # NAGFOR 5.3
9534 tmp_sharedflag='-Wl,-shared' ;;
9535 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9536 tmp_sharedflag='-qmkshrobj'
9537 tmp_addflag= ;;
9538 nvcc*) # Cuda Compiler Driver 2.2
9539 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'
9540 compiler_needs_object=yes
9541 ;;
9542 esac
9543 case `$CC -V 2>&1 | sed 5q` in
9544 *Sun\ C*) # Sun C 5.9
9545 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'
9546 compiler_needs_object=yes
9547 tmp_sharedflag='-G' ;;
9548 *Sun\ F*) # Sun Fortran 8.3
9549 tmp_sharedflag='-G' ;;
9550 esac
9551 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552
9553 if test yes = "$supports_anon_versioning"; then
9554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9556 echo "local: *; };" >> $output_objdir/$libname.ver~
9557 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9558 fi
9559
9560 case $cc_basename in
9561 tcc*)
9562 export_dynamic_flag_spec='-rdynamic'
9563 ;;
9564 xlf* | bgf* | bgxlf* | mpixlf*)
9565 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9566 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9568 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9569 if test yes = "$supports_anon_versioning"; then
9570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9572 echo "local: *; };" >> $output_objdir/$libname.ver~
9573 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9574 fi
9575 ;;
9576 esac
9577 else
9578 ld_shlibs=no
9579 fi
9580 ;;
9581
9582 netbsd* | netbsdelf*-gnu)
9583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9585 wlarc=
9586 else
9587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9589 fi
9590 ;;
9591
9592 solaris*)
9593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9594 ld_shlibs=no
9595 cat <<_LT_EOF 1>&2
9596
9597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9598 *** create shared libraries on Solaris systems. Therefore, libtool
9599 *** is disabling shared libraries support. We urge you to upgrade GNU
9600 *** binutils to release 2.9.1 or newer. Another option is to modify
9601 *** your PATH or compiler configuration so that the native linker is
9602 *** used, and then restart.
9603
9604 _LT_EOF
9605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9608 else
9609 ld_shlibs=no
9610 fi
9611 ;;
9612
9613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9614 case `$LD -v 2>&1` in
9615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9616 ld_shlibs=no
9617 cat <<_LT_EOF 1>&2
9618
9619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9620 *** reliably create shared libraries on SCO systems. Therefore, libtool
9621 *** is disabling shared libraries support. We urge you to upgrade GNU
9622 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9623 *** your PATH or compiler configuration so that the native linker is
9624 *** used, and then restart.
9625
9626 _LT_EOF
9627 ;;
9628 *)
9629 # For security reasons, it is highly recommended that you always
9630 # use absolute paths for naming shared libraries, and exclude the
9631 # DT_RUNPATH tag from executables and libraries. But doing so
9632 # requires that you compile everything twice, which is a pain.
9633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9637 else
9638 ld_shlibs=no
9639 fi
9640 ;;
9641 esac
9642 ;;
9643
9644 sunos4*)
9645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9646 wlarc=
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 *)
9652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9654 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9655 else
9656 ld_shlibs=no
9657 fi
9658 ;;
9659 esac
9660
9661 if test no = "$ld_shlibs"; then
9662 runpath_var=
9663 hardcode_libdir_flag_spec=
9664 export_dynamic_flag_spec=
9665 whole_archive_flag_spec=
9666 fi
9667 else
9668 # PORTME fill in a description of your system's linker (not GNU ld)
9669 case $host_os in
9670 aix3*)
9671 allow_undefined_flag=unsupported
9672 always_export_symbols=yes
9673 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'
9674 # Note: this linker hardcodes the directories in LIBPATH if there
9675 # are no directories specified by -L.
9676 hardcode_minus_L=yes
9677 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9678 # Neither direct hardcoding nor static linking is supported with a
9679 # broken collect2.
9680 hardcode_direct=unsupported
9681 fi
9682 ;;
9683
9684 aix[4-9]*)
9685 if test ia64 = "$host_cpu"; then
9686 # On IA64, the linker does run time linking by default, so we don't
9687 # have to do anything special.
9688 aix_use_runtimelinking=no
9689 exp_sym_flag='-Bexport'
9690 no_entry_flag=
9691 else
9692 # If we're using GNU nm, then we don't want the "-C" option.
9693 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9694 # Without the "-l" option, or with the "-B" option, AIX nm treats
9695 # weak defined symbols like other global defined symbols, whereas
9696 # GNU nm marks them as "W".
9697 # While the 'weak' keyword is ignored in the Export File, we need
9698 # it in the Import File for the 'aix-soname' feature, so we have
9699 # to replace the "-B" option with "-P" for AIX nm.
9700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9701 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9702 else
9703 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9704 fi
9705 aix_use_runtimelinking=no
9706
9707 # Test if we are trying to use run time linking or normal
9708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9709 # have runtime linking enabled, and use it for executables.
9710 # For shared libraries, we enable/disable runtime linking
9711 # depending on the kind of the shared library created -
9712 # when "with_aix_soname,aix_use_runtimelinking" is:
9713 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9714 # "aix,yes" lib.so shared, rtl:yes, for executables
9715 # lib.a static archive
9716 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9717 # lib.a(lib.so.V) shared, rtl:no, for executables
9718 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9719 # lib.a(lib.so.V) shared, rtl:no
9720 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9721 # lib.a static archive
9722 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9723 for ld_flag in $LDFLAGS; do
9724 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9725 aix_use_runtimelinking=yes
9726 break
9727 fi
9728 done
9729 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9730 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9731 # so we don't have lib.a shared libs to link our executables.
9732 # We have to force runtime linking in this case.
9733 aix_use_runtimelinking=yes
9734 LDFLAGS="$LDFLAGS -Wl,-brtl"
9735 fi
9736 ;;
9737 esac
9738
9739 exp_sym_flag='-bexport'
9740 no_entry_flag='-bnoentry'
9741 fi
9742
9743 # When large executables or shared objects are built, AIX ld can
9744 # have problems creating the table of contents. If linking a library
9745 # or program results in "error TOC overflow" add -mminimal-toc to
9746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9748
9749 archive_cmds=''
9750 hardcode_direct=yes
9751 hardcode_direct_absolute=yes
9752 hardcode_libdir_separator=':'
9753 link_all_deplibs=yes
9754 file_list_spec='$wl-f,'
9755 case $with_aix_soname,$aix_use_runtimelinking in
9756 aix,*) ;; # traditional, no import file
9757 svr4,* | *,yes) # use import file
9758 # The Import File defines what to hardcode.
9759 hardcode_direct=no
9760 hardcode_direct_absolute=no
9761 ;;
9762 esac
9763
9764 if test yes = "$GCC"; then
9765 case $host_os in aix4.[012]|aix4.[012].*)
9766 # We only want to do this on AIX 4.2 and lower, the check
9767 # below for broken collect2 doesn't work under 4.3+
9768 collect2name=`$CC -print-prog-name=collect2`
9769 if test -f "$collect2name" &&
9770 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9771 then
9772 # We have reworked collect2
9773 :
9774 else
9775 # We have old collect2
9776 hardcode_direct=unsupported
9777 # It fails to find uninstalled libraries when the uninstalled
9778 # path is not listed in the libpath. Setting hardcode_minus_L
9779 # to unsupported forces relinking
9780 hardcode_minus_L=yes
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_libdir_separator=
9783 fi
9784 ;;
9785 esac
9786 shared_flag='-shared'
9787 if test yes = "$aix_use_runtimelinking"; then
9788 shared_flag="$shared_flag "'$wl-G'
9789 fi
9790 # Need to ensure runtime linking is disabled for the traditional
9791 # shared library, or the linker may eventually find shared libraries
9792 # /with/ Import File - we do not want to mix them.
9793 shared_flag_aix='-shared'
9794 shared_flag_svr4='-shared $wl-G'
9795 else
9796 # not using gcc
9797 if test ia64 = "$host_cpu"; then
9798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9799 # chokes on -Wl,-G. The following line is correct:
9800 shared_flag='-G'
9801 else
9802 if test yes = "$aix_use_runtimelinking"; then
9803 shared_flag='$wl-G'
9804 else
9805 shared_flag='$wl-bM:SRE'
9806 fi
9807 shared_flag_aix='$wl-bM:SRE'
9808 shared_flag_svr4='$wl-G'
9809 fi
9810 fi
9811
9812 export_dynamic_flag_spec='$wl-bexpall'
9813 # It seems that -bexpall does not export symbols beginning with
9814 # underscore (_), so it is better to generate a list of symbols to export.
9815 always_export_symbols=yes
9816 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9817 # Warning - without using the other runtime loading flags (-brtl),
9818 # -berok will link without error, but may produce a broken library.
9819 allow_undefined_flag='-berok'
9820 # Determine the default libpath from the value encoded in an
9821 # empty executable.
9822 if test set = "${lt_cv_aix_libpath+set}"; then
9823 aix_libpath=$lt_cv_aix_libpath
9824 else
9825 if ${lt_cv_aix_libpath_+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830
9831 int
9832 main ()
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840
9841 lt_aix_libpath_sed='
9842 /Import File Strings/,/^$/ {
9843 /^0/ {
9844 s/^0 *\([^ ]*\) *$/\1/
9845 p
9846 }
9847 }'
9848 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849 # Check for a 64-bit object if we didn't find anything.
9850 if test -z "$lt_cv_aix_libpath_"; then
9851 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 fi
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=/usr/lib:/lib
9858 fi
9859
9860 fi
9861
9862 aix_libpath=$lt_cv_aix_libpath_
9863 fi
9864
9865 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9866 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9867 else
9868 if test ia64 = "$host_cpu"; then
9869 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9870 allow_undefined_flag="-z nodefs"
9871 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"
9872 else
9873 # Determine the default libpath from the value encoded in an
9874 # empty executable.
9875 if test set = "${lt_cv_aix_libpath+set}"; then
9876 aix_libpath=$lt_cv_aix_libpath
9877 else
9878 if ${lt_cv_aix_libpath_+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883
9884 int
9885 main ()
9886 {
9887
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893
9894 lt_aix_libpath_sed='
9895 /Import File Strings/,/^$/ {
9896 /^0/ {
9897 s/^0 *\([^ ]*\) *$/\1/
9898 p
9899 }
9900 }'
9901 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9902 # Check for a 64-bit object if we didn't find anything.
9903 if test -z "$lt_cv_aix_libpath_"; then
9904 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905 fi
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 if test -z "$lt_cv_aix_libpath_"; then
9910 lt_cv_aix_libpath_=/usr/lib:/lib
9911 fi
9912
9913 fi
9914
9915 aix_libpath=$lt_cv_aix_libpath_
9916 fi
9917
9918 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9919 # Warning - without using the other run time loading flags,
9920 # -berok will link without error, but may produce a broken library.
9921 no_undefined_flag=' $wl-bernotok'
9922 allow_undefined_flag=' $wl-berok'
9923 if test yes = "$with_gnu_ld"; then
9924 # We only use this code for GNU lds that support --whole-archive.
9925 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9926 else
9927 # Exported symbols can be pulled into shared objects from archives
9928 whole_archive_flag_spec='$convenience'
9929 fi
9930 archive_cmds_need_lc=yes
9931 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9932 # -brtl affects multiple linker settings, -berok does not and is overridden later
9933 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9934 if test svr4 != "$with_aix_soname"; then
9935 # This is similar to how AIX traditionally builds its shared libraries.
9936 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9937 fi
9938 if test aix != "$with_aix_soname"; then
9939 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9940 else
9941 # used by -dlpreopen to get the symbols
9942 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9943 fi
9944 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9945 fi
9946 fi
9947 ;;
9948
9949 amigaos*)
9950 case $host_cpu in
9951 powerpc)
9952 # see comment about AmigaOS4 .so support
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9954 archive_expsym_cmds=''
9955 ;;
9956 m68k)
9957 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)'
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_minus_L=yes
9960 ;;
9961 esac
9962 ;;
9963
9964 bsdi[45]*)
9965 export_dynamic_flag_spec=-rdynamic
9966 ;;
9967
9968 cygwin* | mingw* | pw32* | cegcc*)
9969 # When not using gcc, we currently assume that we are using
9970 # Microsoft Visual C++.
9971 # hardcode_libdir_flag_spec is actually meaningless, as there is
9972 # no search path for DLLs.
9973 case $cc_basename in
9974 cl*)
9975 # Native MSVC
9976 hardcode_libdir_flag_spec=' '
9977 allow_undefined_flag=unsupported
9978 always_export_symbols=yes
9979 file_list_spec='@'
9980 # Tell ltmain to make .lib files, not .a files.
9981 libext=lib
9982 # Tell ltmain to make .dll files, not .so files.
9983 shrext_cmds=.dll
9984 # FIXME: Setting linknames here is a bad hack.
9985 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9986 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9987 cp "$export_symbols" "$output_objdir/$soname.def";
9988 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9989 else
9990 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9991 fi~
9992 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9993 linknames='
9994 # The linker will not automatically build a static lib if we build a DLL.
9995 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9996 enable_shared_with_static_runtimes=yes
9997 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9999 # Don't use ranlib
10000 old_postinstall_cmds='chmod 644 $oldlib'
10001 postlink_cmds='lt_outputfile="@OUTPUT@"~
10002 lt_tool_outputfile="@TOOL_OUTPUT@"~
10003 case $lt_outputfile in
10004 *.exe|*.EXE) ;;
10005 *)
10006 lt_outputfile=$lt_outputfile.exe
10007 lt_tool_outputfile=$lt_tool_outputfile.exe
10008 ;;
10009 esac~
10010 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10011 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10012 $RM "$lt_outputfile.manifest";
10013 fi'
10014 ;;
10015 *)
10016 # Assume MSVC wrapper
10017 hardcode_libdir_flag_spec=' '
10018 allow_undefined_flag=unsupported
10019 # Tell ltmain to make .lib files, not .a files.
10020 libext=lib
10021 # Tell ltmain to make .dll files, not .so files.
10022 shrext_cmds=.dll
10023 # FIXME: Setting linknames here is a bad hack.
10024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10025 # The linker will automatically build a .lib file if we build a DLL.
10026 old_archive_from_new_cmds='true'
10027 # FIXME: Should let the user specify the lib program.
10028 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10029 enable_shared_with_static_runtimes=yes
10030 ;;
10031 esac
10032 ;;
10033
10034 darwin* | rhapsody*)
10035
10036
10037 archive_cmds_need_lc=no
10038 hardcode_direct=no
10039 hardcode_automatic=yes
10040 hardcode_shlibpath_var=unsupported
10041 if test yes = "$lt_cv_ld_force_load"; then
10042 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\"`'
10043
10044 else
10045 whole_archive_flag_spec=''
10046 fi
10047 link_all_deplibs=yes
10048 allow_undefined_flag=$_lt_dar_allow_undefined
10049 case $cc_basename in
10050 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10051 *) _lt_dar_can_shared=$GCC ;;
10052 esac
10053 if test yes = "$_lt_dar_can_shared"; then
10054 output_verbose_link_cmd=func_echo_all
10055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10057 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"
10058 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"
10059
10060 else
10061 ld_shlibs=no
10062 fi
10063
10064 ;;
10065
10066 dgux*)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10073 # support. Future versions do this automatically, but an explicit c++rt0.o
10074 # does not break anything, and helps significantly (at the cost of a little
10075 # extra space).
10076 freebsd2.2*)
10077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10078 hardcode_libdir_flag_spec='-R$libdir'
10079 hardcode_direct=yes
10080 hardcode_shlibpath_var=no
10081 ;;
10082
10083 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10084 freebsd2.*)
10085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_direct=yes
10087 hardcode_minus_L=yes
10088 hardcode_shlibpath_var=no
10089 ;;
10090
10091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10092 freebsd* | dragonfly*)
10093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10094 hardcode_libdir_flag_spec='-R$libdir'
10095 hardcode_direct=yes
10096 hardcode_shlibpath_var=no
10097 ;;
10098
10099 hpux9*)
10100 if test yes = "$GCC"; then
10101 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10102 else
10103 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10104 fi
10105 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10106 hardcode_libdir_separator=:
10107 hardcode_direct=yes
10108
10109 # hardcode_minus_L: Not really in the search PATH,
10110 # but as the default location of the library.
10111 hardcode_minus_L=yes
10112 export_dynamic_flag_spec='$wl-E'
10113 ;;
10114
10115 hpux10*)
10116 if test yes,no = "$GCC,$with_gnu_ld"; then
10117 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10118 else
10119 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10120 fi
10121 if test no = "$with_gnu_ld"; then
10122 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10123 hardcode_libdir_separator=:
10124 hardcode_direct=yes
10125 hardcode_direct_absolute=yes
10126 export_dynamic_flag_spec='$wl-E'
10127 # hardcode_minus_L: Not really in the search PATH,
10128 # but as the default location of the library.
10129 hardcode_minus_L=yes
10130 fi
10131 ;;
10132
10133 hpux11*)
10134 if test yes,no = "$GCC,$with_gnu_ld"; then
10135 case $host_cpu in
10136 hppa*64*)
10137 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 ;;
10139 ia64*)
10140 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10141 ;;
10142 *)
10143 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10144 ;;
10145 esac
10146 else
10147 case $host_cpu in
10148 hppa*64*)
10149 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 ;;
10151 ia64*)
10152 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10153 ;;
10154 *)
10155
10156 # Older versions of the 11.00 compiler do not understand -b yet
10157 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10159 $as_echo_n "checking if $CC understands -b... " >&6; }
10160 if ${lt_cv_prog_compiler__b+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 lt_cv_prog_compiler__b=no
10164 save_LDFLAGS=$LDFLAGS
10165 LDFLAGS="$LDFLAGS -b"
10166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10168 # The linker can only warn and ignore the option if not recognized
10169 # So say no if there are warnings
10170 if test -s conftest.err; then
10171 # Append any errors to the config.log.
10172 cat conftest.err 1>&5
10173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10175 if diff conftest.exp conftest.er2 >/dev/null; then
10176 lt_cv_prog_compiler__b=yes
10177 fi
10178 else
10179 lt_cv_prog_compiler__b=yes
10180 fi
10181 fi
10182 $RM -r conftest*
10183 LDFLAGS=$save_LDFLAGS
10184
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10187 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10188
10189 if test yes = "$lt_cv_prog_compiler__b"; then
10190 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10191 else
10192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10193 fi
10194
10195 ;;
10196 esac
10197 fi
10198 if test no = "$with_gnu_ld"; then
10199 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10200 hardcode_libdir_separator=:
10201
10202 case $host_cpu in
10203 hppa*64*|ia64*)
10204 hardcode_direct=no
10205 hardcode_shlibpath_var=no
10206 ;;
10207 *)
10208 hardcode_direct=yes
10209 hardcode_direct_absolute=yes
10210 export_dynamic_flag_spec='$wl-E'
10211
10212 # hardcode_minus_L: Not really in the search PATH,
10213 # but as the default location of the library.
10214 hardcode_minus_L=yes
10215 ;;
10216 esac
10217 fi
10218 ;;
10219
10220 irix5* | irix6* | nonstopux*)
10221 if test yes = "$GCC"; then
10222 archive_cmds='$CC -shared $pic_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'
10223 # Try to use the -exported_symbol ld option, if it does not
10224 # work, assume that -exports_file does not work either and
10225 # implicitly export all symbols.
10226 # This should be the same for all languages, so no per-tag cache variable.
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10228 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10229 if ${lt_cv_irix_exported_symbol+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 save_LDFLAGS=$LDFLAGS
10233 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int foo (void) { return 0; }
10237 _ACEOF
10238 if ac_fn_c_try_link "$LINENO"; then :
10239 lt_cv_irix_exported_symbol=yes
10240 else
10241 lt_cv_irix_exported_symbol=no
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LDFLAGS=$save_LDFLAGS
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10248 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10249 if test yes = "$lt_cv_irix_exported_symbol"; then
10250 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
10251 fi
10252 link_all_deplibs=no
10253 else
10254 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'
10255 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'
10256 fi
10257 archive_cmds_need_lc='no'
10258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10259 hardcode_libdir_separator=:
10260 inherit_rpath=yes
10261 link_all_deplibs=yes
10262 ;;
10263
10264 linux*)
10265 case $cc_basename in
10266 tcc*)
10267 # Fabrice Bellard et al's Tiny C Compiler
10268 ld_shlibs=yes
10269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10270 ;;
10271 esac
10272 ;;
10273
10274 netbsd* | netbsdelf*-gnu)
10275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10277 else
10278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10279 fi
10280 hardcode_libdir_flag_spec='-R$libdir'
10281 hardcode_direct=yes
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 newsos6)
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=yes
10288 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10289 hardcode_libdir_separator=:
10290 hardcode_shlibpath_var=no
10291 ;;
10292
10293 *nto* | *qnx*)
10294 ;;
10295
10296 openbsd* | bitrig*)
10297 if test -f /usr/libexec/ld.so; then
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10300 hardcode_direct_absolute=yes
10301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10304 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10305 export_dynamic_flag_spec='$wl-E'
10306 else
10307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10308 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10309 fi
10310 else
10311 ld_shlibs=no
10312 fi
10313 ;;
10314
10315 os2*)
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_minus_L=yes
10318 allow_undefined_flag=unsupported
10319 shrext_cmds=.dll
10320 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10321 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10322 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10323 $ECHO EXPORTS >> $output_objdir/$libname.def~
10324 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10325 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10326 emximp -o $lib $output_objdir/$libname.def'
10327 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10328 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10329 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10330 $ECHO EXPORTS >> $output_objdir/$libname.def~
10331 prefix_cmds="$SED"~
10332 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10333 prefix_cmds="$prefix_cmds -e 1d";
10334 fi~
10335 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10336 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10337 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10338 emximp -o $lib $output_objdir/$libname.def'
10339 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10340 enable_shared_with_static_runtimes=yes
10341 ;;
10342
10343 osf3*)
10344 if test yes = "$GCC"; then
10345 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10346 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'
10347 else
10348 allow_undefined_flag=' -expect_unresolved \*'
10349 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'
10350 fi
10351 archive_cmds_need_lc='no'
10352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10353 hardcode_libdir_separator=:
10354 ;;
10355
10356 osf4* | osf5*) # as osf3* with the addition of -msym flag
10357 if test yes = "$GCC"; then
10358 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10359 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10361 else
10362 allow_undefined_flag=' -expect_unresolved \*'
10363 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'
10364 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~
10365 $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'
10366
10367 # Both c and cxx compiler support -rpath directly
10368 hardcode_libdir_flag_spec='-rpath $libdir'
10369 fi
10370 archive_cmds_need_lc='no'
10371 hardcode_libdir_separator=:
10372 ;;
10373
10374 solaris*)
10375 no_undefined_flag=' -z defs'
10376 if test yes = "$GCC"; then
10377 wlarc='$wl'
10378 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10380 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10381 else
10382 case `$CC -V 2>&1` in
10383 *"Compilers 5.0"*)
10384 wlarc=''
10385 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10387 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10388 ;;
10389 *)
10390 wlarc='$wl'
10391 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10393 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10394 ;;
10395 esac
10396 fi
10397 hardcode_libdir_flag_spec='-R$libdir'
10398 hardcode_shlibpath_var=no
10399 case $host_os in
10400 solaris2.[0-5] | solaris2.[0-5].*) ;;
10401 *)
10402 # The compiler driver will combine and reorder linker options,
10403 # but understands '-z linker_flag'. GCC discards it without '$wl',
10404 # but is careful enough not to reorder.
10405 # Supported since Solaris 2.6 (maybe 2.5.1?)
10406 if test yes = "$GCC"; then
10407 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10408 else
10409 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10410 fi
10411 ;;
10412 esac
10413 link_all_deplibs=yes
10414 ;;
10415
10416 sunos4*)
10417 if test sequent = "$host_vendor"; then
10418 # Use $CC to link under sequent, because it throws in some extra .o
10419 # files that make .init and .fini sections work.
10420 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10421 else
10422 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10423 fi
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_direct=yes
10426 hardcode_minus_L=yes
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 sysv4)
10431 case $host_vendor in
10432 sni)
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_direct=yes # is this really true???
10435 ;;
10436 siemens)
10437 ## LD is ld it makes a PLAMLIB
10438 ## CC just makes a GrossModule.
10439 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10440 reload_cmds='$CC -r -o $output$reload_objs'
10441 hardcode_direct=no
10442 ;;
10443 motorola)
10444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10445 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10446 ;;
10447 esac
10448 runpath_var='LD_RUN_PATH'
10449 hardcode_shlibpath_var=no
10450 ;;
10451
10452 sysv4.3*)
10453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454 hardcode_shlibpath_var=no
10455 export_dynamic_flag_spec='-Bexport'
10456 ;;
10457
10458 sysv4*MP*)
10459 if test -d /usr/nec; then
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_shlibpath_var=no
10462 runpath_var=LD_RUN_PATH
10463 hardcode_runpath_var=yes
10464 ld_shlibs=yes
10465 fi
10466 ;;
10467
10468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10469 no_undefined_flag='$wl-z,text'
10470 archive_cmds_need_lc=no
10471 hardcode_shlibpath_var=no
10472 runpath_var='LD_RUN_PATH'
10473
10474 if test yes = "$GCC"; then
10475 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477 else
10478 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 fi
10481 ;;
10482
10483 sysv5* | sco3.2v5* | sco5v6*)
10484 # Note: We CANNOT use -z defs as we might desire, because we do not
10485 # link with -lc, and that would cause any symbols used from libc to
10486 # always be unresolved, which means just about no library would
10487 # ever link correctly. If we're not using GNU ld we use -z text
10488 # though, which does catch some bad symbols but isn't as heavy-handed
10489 # as -z defs.
10490 no_undefined_flag='$wl-z,text'
10491 allow_undefined_flag='$wl-z,nodefs'
10492 archive_cmds_need_lc=no
10493 hardcode_shlibpath_var=no
10494 hardcode_libdir_flag_spec='$wl-R,$libdir'
10495 hardcode_libdir_separator=':'
10496 link_all_deplibs=yes
10497 export_dynamic_flag_spec='$wl-Bexport'
10498 runpath_var='LD_RUN_PATH'
10499
10500 if test yes = "$GCC"; then
10501 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 else
10504 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10505 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 fi
10507 ;;
10508
10509 uts4*)
10510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10511 hardcode_libdir_flag_spec='-L$libdir'
10512 hardcode_shlibpath_var=no
10513 ;;
10514
10515 *)
10516 ld_shlibs=no
10517 ;;
10518 esac
10519
10520 if test sni = "$host_vendor"; then
10521 case $host in
10522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10523 export_dynamic_flag_spec='$wl-Blargedynsym'
10524 ;;
10525 esac
10526 fi
10527 fi
10528
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10530 $as_echo "$ld_shlibs" >&6; }
10531 test no = "$ld_shlibs" && can_build_shared=no
10532
10533 with_gnu_ld=$with_gnu_ld
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549 #
10550 # Do we need to explicitly link libc?
10551 #
10552 case "x$archive_cmds_need_lc" in
10553 x|xyes)
10554 # Assume -lc should be added
10555 archive_cmds_need_lc=yes
10556
10557 if test yes,yes = "$GCC,$enable_shared"; then
10558 case $archive_cmds in
10559 *'~'*)
10560 # FIXME: we may have to deal with multi-command sequences.
10561 ;;
10562 '$CC '*)
10563 # Test whether the compiler implicitly links with -lc since on some
10564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10565 # to ld, don't add -lc before -lgcc.
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10568 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 $RM conftest*
10572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10573
10574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10575 (eval $ac_compile) 2>&5
10576 ac_status=$?
10577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578 test $ac_status = 0; } 2>conftest.err; then
10579 soname=conftest
10580 lib=conftest
10581 libobjs=conftest.$ac_objext
10582 deplibs=
10583 wl=$lt_prog_compiler_wl
10584 pic_flag=$lt_prog_compiler_pic
10585 compiler_flags=-v
10586 linker_flags=-v
10587 verstring=
10588 output_objdir=.
10589 libname=conftest
10590 lt_save_allow_undefined_flag=$allow_undefined_flag
10591 allow_undefined_flag=
10592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10593 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10594 ac_status=$?
10595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10596 test $ac_status = 0; }
10597 then
10598 lt_cv_archive_cmds_need_lc=no
10599 else
10600 lt_cv_archive_cmds_need_lc=yes
10601 fi
10602 allow_undefined_flag=$lt_save_allow_undefined_flag
10603 else
10604 cat conftest.err 1>&5
10605 fi
10606 $RM conftest*
10607
10608 fi
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10610 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10611 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10612 ;;
10613 esac
10614 fi
10615 ;;
10616 esac
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10770 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10771
10772 if test yes = "$GCC"; then
10773 case $host_os in
10774 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10775 *) lt_awk_arg='/^libraries:/' ;;
10776 esac
10777 case $host_os in
10778 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10779 *) lt_sed_strip_eq='s|=/|/|g' ;;
10780 esac
10781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10782 case $lt_search_path_spec in
10783 *\;*)
10784 # if the path contains ";" then we assume it to be the separator
10785 # otherwise default to the standard path separator (i.e. ":") - it is
10786 # assumed that no part of a normal pathname contains ";" but that should
10787 # okay in the real world where ";" in dirpaths is itself problematic.
10788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10789 ;;
10790 *)
10791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10792 ;;
10793 esac
10794 # Ok, now we have the path, separated by spaces, we can step through it
10795 # and add multilib dir if necessary...
10796 lt_tmp_lt_search_path_spec=
10797 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10798 # ...but if some path component already ends with the multilib dir we assume
10799 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10800 case "$lt_multi_os_dir; $lt_search_path_spec " in
10801 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10802 lt_multi_os_dir=
10803 ;;
10804 esac
10805 for lt_sys_path in $lt_search_path_spec; do
10806 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10808 elif test -n "$lt_multi_os_dir"; then
10809 test -d "$lt_sys_path" && \
10810 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10811 fi
10812 done
10813 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10814 BEGIN {RS = " "; FS = "/|\n";} {
10815 lt_foo = "";
10816 lt_count = 0;
10817 for (lt_i = NF; lt_i > 0; lt_i--) {
10818 if ($lt_i != "" && $lt_i != ".") {
10819 if ($lt_i == "..") {
10820 lt_count++;
10821 } else {
10822 if (lt_count == 0) {
10823 lt_foo = "/" $lt_i lt_foo;
10824 } else {
10825 lt_count--;
10826 }
10827 }
10828 }
10829 }
10830 if (lt_foo != "") { lt_freq[lt_foo]++; }
10831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10832 }'`
10833 # AWK program above erroneously prepends '/' to C:/dos/paths
10834 # for these hosts.
10835 case $host_os in
10836 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10837 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10838 esac
10839 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10840 else
10841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10842 fi
10843 library_names_spec=
10844 libname_spec='lib$name'
10845 soname_spec=
10846 shrext_cmds=.so
10847 postinstall_cmds=
10848 postuninstall_cmds=
10849 finish_cmds=
10850 finish_eval=
10851 shlibpath_var=
10852 shlibpath_overrides_runpath=unknown
10853 version_type=none
10854 dynamic_linker="$host_os ld.so"
10855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10856 need_lib_prefix=unknown
10857 hardcode_into_libs=no
10858
10859 # when you set need_version to no, make sure it does not cause -set_version
10860 # flags to be left without arguments
10861 need_version=unknown
10862
10863
10864
10865 case $host_os in
10866 aix3*)
10867 version_type=linux # correct to gnu/linux during the next big refactor
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10869 shlibpath_var=LIBPATH
10870
10871 # AIX 3 has no versioning support, so we append a major version to the name.
10872 soname_spec='$libname$release$shared_ext$major'
10873 ;;
10874
10875 aix[4-9]*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 hardcode_into_libs=yes
10880 if test ia64 = "$host_cpu"; then
10881 # AIX 5 supports IA64
10882 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 else
10885 # With GCC up to 2.95.x, collect2 would create an import file
10886 # for dependence libraries. The import file would start with
10887 # the line '#! .'. This would cause the generated library to
10888 # depend on '.', always an invalid library. This was fixed in
10889 # development snapshots of GCC prior to 3.0.
10890 case $host_os in
10891 aix4 | aix4.[01] | aix4.[01].*)
10892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10893 echo ' yes '
10894 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10895 :
10896 else
10897 can_build_shared=no
10898 fi
10899 ;;
10900 esac
10901 # Using Import Files as archive members, it is possible to support
10902 # filename-based versioning of shared library archives on AIX. While
10903 # this would work for both with and without runtime linking, it will
10904 # prevent static linking of such archives. So we do filename-based
10905 # shared library versioning with .so extension only, which is used
10906 # when both runtime linking and shared linking is enabled.
10907 # Unfortunately, runtime linking may impact performance, so we do
10908 # not want this to be the default eventually. Also, we use the
10909 # versioned .so libs for executables only if there is the -brtl
10910 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10911 # To allow for filename-based versioning support, we need to create
10912 # libNAME.so.V as an archive file, containing:
10913 # *) an Import File, referring to the versioned filename of the
10914 # archive as well as the shared archive member, telling the
10915 # bitwidth (32 or 64) of that shared object, and providing the
10916 # list of exported symbols of that shared object, eventually
10917 # decorated with the 'weak' keyword
10918 # *) the shared object with the F_LOADONLY flag set, to really avoid
10919 # it being seen by the linker.
10920 # At run time we better use the real file rather than another symlink,
10921 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10922
10923 case $with_aix_soname,$aix_use_runtimelinking in
10924 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10925 # soname into executable. Probably we can add versioning support to
10926 # collect2, so additional links can be useful in future.
10927 aix,yes) # traditional libtool
10928 dynamic_linker='AIX unversionable lib.so'
10929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10930 # instead of lib<name>.a to let people know that these are not
10931 # typical AIX shared libraries.
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 ;;
10934 aix,no) # traditional AIX only
10935 dynamic_linker='AIX lib.a(lib.so.V)'
10936 # We preserve .a as extension for shared libraries through AIX4.2
10937 # and later when we are not doing run time linking.
10938 library_names_spec='$libname$release.a $libname.a'
10939 soname_spec='$libname$release$shared_ext$major'
10940 ;;
10941 svr4,*) # full svr4 only
10942 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10943 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10944 # We do not specify a path in Import Files, so LIBPATH fires.
10945 shlibpath_overrides_runpath=yes
10946 ;;
10947 *,yes) # both, prefer svr4
10948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10950 # unpreferred sharedlib libNAME.a needs extra handling
10951 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10952 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10953 # We do not specify a path in Import Files, so LIBPATH fires.
10954 shlibpath_overrides_runpath=yes
10955 ;;
10956 *,no) # both, prefer aix
10957 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10958 library_names_spec='$libname$release.a $libname.a'
10959 soname_spec='$libname$release$shared_ext$major'
10960 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10961 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10962 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10963 ;;
10964 esac
10965 shlibpath_var=LIBPATH
10966 fi
10967 ;;
10968
10969 amigaos*)
10970 case $host_cpu in
10971 powerpc)
10972 # Since July 2007 AmigaOS4 officially supports .so libraries.
10973 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10975 ;;
10976 m68k)
10977 library_names_spec='$libname.ixlibrary $libname.a'
10978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10979 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10980 ;;
10981 esac
10982 ;;
10983
10984 beos*)
10985 library_names_spec='$libname$shared_ext'
10986 dynamic_linker="$host_os ld.so"
10987 shlibpath_var=LIBRARY_PATH
10988 ;;
10989
10990 bsdi[45]*)
10991 version_type=linux # correct to gnu/linux during the next big refactor
10992 need_version=no
10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10994 soname_spec='$libname$release$shared_ext$major'
10995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999 # the default ld.so.conf also contains /usr/contrib/lib and
11000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001 # libtool to hard-code these into programs
11002 ;;
11003
11004 cygwin* | mingw* | pw32* | cegcc*)
11005 version_type=windows
11006 shrext_cmds=.dll
11007 need_version=no
11008 need_lib_prefix=no
11009
11010 case $GCC,$cc_basename in
11011 yes,*)
11012 # gcc
11013 library_names_spec='$libname.dll.a'
11014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11015 postinstall_cmds='base_file=`basename \$file`~
11016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11017 dldir=$destdir/`dirname \$dlpath`~
11018 test -d \$dldir || mkdir -p \$dldir~
11019 $install_prog $dir/$dlname \$dldir/$dlname~
11020 chmod a+x \$dldir/$dlname~
11021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11022 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11023 fi'
11024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11025 dlpath=$dir/\$dldll~
11026 $RM \$dlpath'
11027 shlibpath_overrides_runpath=yes
11028
11029 case $host_os in
11030 cygwin*)
11031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11032 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11033
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11035 ;;
11036 mingw* | cegcc*)
11037 # MinGW DLLs use traditional 'lib' prefix
11038 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11039 ;;
11040 pw32*)
11041 # pw32 DLLs use 'pw' prefix rather than 'lib'
11042 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11043 ;;
11044 esac
11045 dynamic_linker='Win32 ld.exe'
11046 ;;
11047
11048 *,cl*)
11049 # Native MSVC
11050 libname_spec='$name'
11051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11052 library_names_spec='$libname.dll.lib'
11053
11054 case $build_os in
11055 mingw*)
11056 sys_lib_search_path_spec=
11057 lt_save_ifs=$IFS
11058 IFS=';'
11059 for lt_path in $LIB
11060 do
11061 IFS=$lt_save_ifs
11062 # Let DOS variable expansion print the short 8.3 style file name.
11063 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11064 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11065 done
11066 IFS=$lt_save_ifs
11067 # Convert to MSYS style.
11068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11069 ;;
11070 cygwin*)
11071 # Convert to unix form, then to dos form, then back to unix form
11072 # but this time dos style (no spaces!) so that the unix form looks
11073 # like /cygdrive/c/PROGRA~1:/cygdr...
11074 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11075 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11076 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11077 ;;
11078 *)
11079 sys_lib_search_path_spec=$LIB
11080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11081 # It is most probably a Windows format PATH.
11082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11083 else
11084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11085 fi
11086 # FIXME: find the short name or the path components, as spaces are
11087 # common. (e.g. "Program Files" -> "PROGRA~1")
11088 ;;
11089 esac
11090
11091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11092 postinstall_cmds='base_file=`basename \$file`~
11093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11094 dldir=$destdir/`dirname \$dlpath`~
11095 test -d \$dldir || mkdir -p \$dldir~
11096 $install_prog $dir/$dlname \$dldir/$dlname'
11097 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11098 dlpath=$dir/\$dldll~
11099 $RM \$dlpath'
11100 shlibpath_overrides_runpath=yes
11101 dynamic_linker='Win32 link.exe'
11102 ;;
11103
11104 *)
11105 # Assume MSVC wrapper
11106 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11107 dynamic_linker='Win32 ld.exe'
11108 ;;
11109 esac
11110 # FIXME: first we should search . and the directory the executable is in
11111 shlibpath_var=PATH
11112 ;;
11113
11114 darwin* | rhapsody*)
11115 dynamic_linker="$host_os dyld"
11116 version_type=darwin
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11120 soname_spec='$libname$release$major$shared_ext'
11121 shlibpath_overrides_runpath=yes
11122 shlibpath_var=DYLD_LIBRARY_PATH
11123 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11124
11125 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11127 ;;
11128
11129 dgux*)
11130 version_type=linux # correct to gnu/linux during the next big refactor
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec='$libname$release$shared_ext$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 ;;
11137
11138 freebsd* | dragonfly*)
11139 # DragonFly does not have aout. When/if they implement a new
11140 # versioning mechanism, adjust this.
11141 if test -x /usr/bin/objformat; then
11142 objformat=`/usr/bin/objformat`
11143 else
11144 case $host_os in
11145 freebsd[23].*) objformat=aout ;;
11146 *) objformat=elf ;;
11147 esac
11148 fi
11149 version_type=freebsd-$objformat
11150 case $version_type in
11151 freebsd-elf*)
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
11154 need_version=no
11155 need_lib_prefix=no
11156 ;;
11157 freebsd-*)
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11159 need_version=yes
11160 ;;
11161 esac
11162 shlibpath_var=LD_LIBRARY_PATH
11163 case $host_os in
11164 freebsd2.*)
11165 shlibpath_overrides_runpath=yes
11166 ;;
11167 freebsd3.[01]* | freebsdelf3.[01]*)
11168 shlibpath_overrides_runpath=yes
11169 hardcode_into_libs=yes
11170 ;;
11171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11173 shlibpath_overrides_runpath=no
11174 hardcode_into_libs=yes
11175 ;;
11176 *) # from 4.6 on, and DragonFly
11177 shlibpath_overrides_runpath=yes
11178 hardcode_into_libs=yes
11179 ;;
11180 esac
11181 ;;
11182
11183 haiku*)
11184 version_type=linux # correct to gnu/linux during the next big refactor
11185 need_lib_prefix=no
11186 need_version=no
11187 dynamic_linker="$host_os runtime_loader"
11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189 soname_spec='$libname$release$shared_ext$major'
11190 shlibpath_var=LIBRARY_PATH
11191 shlibpath_overrides_runpath=no
11192 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11193 hardcode_into_libs=yes
11194 ;;
11195
11196 hpux9* | hpux10* | hpux11*)
11197 # Give a soname corresponding to the major version so that dld.sl refuses to
11198 # link against other versions.
11199 version_type=sunos
11200 need_lib_prefix=no
11201 need_version=no
11202 case $host_cpu in
11203 ia64*)
11204 shrext_cmds='.so'
11205 hardcode_into_libs=yes
11206 dynamic_linker="$host_os dld.so"
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11210 soname_spec='$libname$release$shared_ext$major'
11211 if test 32 = "$HPUX_IA64_MODE"; then
11212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11213 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11214 else
11215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11216 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11217 fi
11218 ;;
11219 hppa*64*)
11220 shrext_cmds='.sl'
11221 hardcode_into_libs=yes
11222 dynamic_linker="$host_os dld.sl"
11223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226 soname_spec='$libname$release$shared_ext$major'
11227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11229 ;;
11230 *)
11231 shrext_cmds='.sl'
11232 dynamic_linker="$host_os dld.sl"
11233 shlibpath_var=SHLIB_PATH
11234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11236 soname_spec='$libname$release$shared_ext$major'
11237 ;;
11238 esac
11239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11240 postinstall_cmds='chmod 555 $lib'
11241 # or fails outright, so override atomically:
11242 install_override_mode=555
11243 ;;
11244
11245 interix[3-9]*)
11246 version_type=linux # correct to gnu/linux during the next big refactor
11247 need_lib_prefix=no
11248 need_version=no
11249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250 soname_spec='$libname$release$shared_ext$major'
11251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=no
11254 hardcode_into_libs=yes
11255 ;;
11256
11257 irix5* | irix6* | nonstopux*)
11258 case $host_os in
11259 nonstopux*) version_type=nonstopux ;;
11260 *)
11261 if test yes = "$lt_cv_prog_gnu_ld"; then
11262 version_type=linux # correct to gnu/linux during the next big refactor
11263 else
11264 version_type=irix
11265 fi ;;
11266 esac
11267 need_lib_prefix=no
11268 need_version=no
11269 soname_spec='$libname$release$shared_ext$major'
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11271 case $host_os in
11272 irix5* | nonstopux*)
11273 libsuff= shlibsuff=
11274 ;;
11275 *)
11276 case $LD in # libtool.m4 will add one of these switches to LD
11277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11278 libsuff= shlibsuff= libmagic=32-bit;;
11279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11280 libsuff=32 shlibsuff=N32 libmagic=N32;;
11281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11283 *) libsuff= shlibsuff= libmagic=never-match;;
11284 esac
11285 ;;
11286 esac
11287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11288 shlibpath_overrides_runpath=no
11289 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11290 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11291 hardcode_into_libs=yes
11292 ;;
11293
11294 # No shared lib support for Linux oldld, aout, or coff.
11295 linux*oldld* | linux*aout* | linux*coff*)
11296 dynamic_linker=no
11297 ;;
11298
11299 linux*android*)
11300 version_type=none # Android doesn't support versioned libraries.
11301 need_lib_prefix=no
11302 need_version=no
11303 library_names_spec='$libname$release$shared_ext'
11304 soname_spec='$libname$release$shared_ext'
11305 finish_cmds=
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes
11308
11309 # This implies no fast_install, which is unacceptable.
11310 # Some rework will be needed to allow for fast_install
11311 # before this can be enabled.
11312 hardcode_into_libs=yes
11313
11314 dynamic_linker='Android linker'
11315 # Don't embed -rpath directories since the linker doesn't support them.
11316 hardcode_libdir_flag_spec='-L$libdir'
11317 ;;
11318
11319 # This must be glibc/ELF.
11320 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11321 version_type=linux # correct to gnu/linux during the next big refactor
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 soname_spec='$libname$release$shared_ext$major'
11326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=no
11329
11330 # Some binutils ld are patched to set DT_RUNPATH
11331 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 lt_cv_shlibpath_overrides_runpath=no
11335 save_LDFLAGS=$LDFLAGS
11336 save_libdir=$libdir
11337 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11338 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341
11342 int
11343 main ()
11344 {
11345
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11352 lt_cv_shlibpath_overrides_runpath=yes
11353 fi
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LDFLAGS=$save_LDFLAGS
11358 libdir=$save_libdir
11359
11360 fi
11361
11362 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11363
11364 # This implies no fast_install, which is unacceptable.
11365 # Some rework will be needed to allow for fast_install
11366 # before this can be enabled.
11367 hardcode_into_libs=yes
11368
11369 # Ideally, we could use ldconfig to report *all* directores which are
11370 # searched for libraries, however this is still not possible. Aside from not
11371 # being certain /sbin/ldconfig is available, command
11372 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11373 # even though it is searched at run-time. Try to do the best guess by
11374 # appending ld.so.conf contents (and includes) to the search path.
11375 if test -f /etc/ld.so.conf; then
11376 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' ' '`
11377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11378 fi
11379
11380 # We used to test for /lib/ld.so.1 and disable shared libraries on
11381 # powerpc, because MkLinux only supported shared libraries with the
11382 # GNU dynamic linker. Since this was broken with cross compilers,
11383 # most powerpc-linux boxes support dynamic linking these days and
11384 # people can always --disable-shared, the test was removed, and we
11385 # assume the GNU/Linux dynamic linker is in use.
11386 dynamic_linker='GNU/Linux ld.so'
11387 ;;
11388
11389 netbsdelf*-gnu)
11390 version_type=linux
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=no
11397 hardcode_into_libs=yes
11398 dynamic_linker='NetBSD ld.elf_so'
11399 ;;
11400
11401 netbsd*)
11402 version_type=sunos
11403 need_lib_prefix=no
11404 need_version=no
11405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408 dynamic_linker='NetBSD (a.out) ld.so'
11409 else
11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 soname_spec='$libname$release$shared_ext$major'
11412 dynamic_linker='NetBSD ld.elf_so'
11413 fi
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11417 ;;
11418
11419 newsos6)
11420 version_type=linux # correct to gnu/linux during the next big refactor
11421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 shlibpath_overrides_runpath=yes
11424 ;;
11425
11426 *nto* | *qnx*)
11427 version_type=qnx
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11431 soname_spec='$libname$release$shared_ext$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=no
11434 hardcode_into_libs=yes
11435 dynamic_linker='ldqnx.so'
11436 ;;
11437
11438 openbsd* | bitrig*)
11439 version_type=sunos
11440 sys_lib_dlsearch_path_spec=/usr/lib
11441 need_lib_prefix=no
11442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11443 need_version=no
11444 else
11445 need_version=yes
11446 fi
11447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 ;;
11452
11453 os2*)
11454 libname_spec='$name'
11455 version_type=windows
11456 shrext_cmds=.dll
11457 need_version=no
11458 need_lib_prefix=no
11459 # OS/2 can only load a DLL with a base name of 8 characters or less.
11460 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11461 v=$($ECHO $release$versuffix | tr -d .-);
11462 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11463 $ECHO $n$v`$shared_ext'
11464 library_names_spec='${libname}_dll.$libext'
11465 dynamic_linker='OS/2 ld.exe'
11466 shlibpath_var=BEGINLIBPATH
11467 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11469 postinstall_cmds='base_file=`basename \$file`~
11470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11471 dldir=$destdir/`dirname \$dlpath`~
11472 test -d \$dldir || mkdir -p \$dldir~
11473 $install_prog $dir/$dlname \$dldir/$dlname~
11474 chmod a+x \$dldir/$dlname~
11475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477 fi'
11478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11479 dlpath=$dir/\$dldll~
11480 $RM \$dlpath'
11481 ;;
11482
11483 osf3* | osf4* | osf5*)
11484 version_type=osf
11485 need_lib_prefix=no
11486 need_version=no
11487 soname_spec='$libname$release$shared_ext$major'
11488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11492 ;;
11493
11494 rdos*)
11495 dynamic_linker=no
11496 ;;
11497
11498 solaris*)
11499 version_type=linux # correct to gnu/linux during the next big refactor
11500 need_lib_prefix=no
11501 need_version=no
11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11503 soname_spec='$libname$release$shared_ext$major'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11506 hardcode_into_libs=yes
11507 # ldd complains unless libraries are executable
11508 postinstall_cmds='chmod +x $lib'
11509 ;;
11510
11511 sunos4*)
11512 version_type=sunos
11513 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 if test yes = "$with_gnu_ld"; then
11518 need_lib_prefix=no
11519 fi
11520 need_version=yes
11521 ;;
11522
11523 sysv4 | sysv4.3*)
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 case $host_vendor in
11529 sni)
11530 shlibpath_overrides_runpath=no
11531 need_lib_prefix=no
11532 runpath_var=LD_RUN_PATH
11533 ;;
11534 siemens)
11535 need_lib_prefix=no
11536 ;;
11537 motorola)
11538 need_lib_prefix=no
11539 need_version=no
11540 shlibpath_overrides_runpath=no
11541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11542 ;;
11543 esac
11544 ;;
11545
11546 sysv4*MP*)
11547 if test -d /usr/nec; then
11548 version_type=linux # correct to gnu/linux during the next big refactor
11549 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11550 soname_spec='$libname$shared_ext.$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 fi
11553 ;;
11554
11555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11556 version_type=sco
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11560 soname_spec='$libname$release$shared_ext$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=yes
11563 hardcode_into_libs=yes
11564 if test yes = "$with_gnu_ld"; then
11565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11566 else
11567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11568 case $host_os in
11569 sco3.2v5*)
11570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11571 ;;
11572 esac
11573 fi
11574 sys_lib_dlsearch_path_spec='/usr/lib'
11575 ;;
11576
11577 tpf*)
11578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=no
11585 hardcode_into_libs=yes
11586 ;;
11587
11588 uts4*)
11589 version_type=linux # correct to gnu/linux during the next big refactor
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 soname_spec='$libname$release$shared_ext$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 ;;
11594
11595 *)
11596 dynamic_linker=no
11597 ;;
11598 esac
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11600 $as_echo "$dynamic_linker" >&6; }
11601 test no = "$dynamic_linker" && can_build_shared=no
11602
11603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11604 if test yes = "$GCC"; then
11605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11606 fi
11607
11608 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11609 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11610 fi
11611
11612 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11613 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11614 fi
11615
11616 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11617 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11618
11619 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11620 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11621
11622 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11623 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11723 hardcode_action=
11724 if test -n "$hardcode_libdir_flag_spec" ||
11725 test -n "$runpath_var" ||
11726 test yes = "$hardcode_automatic"; then
11727
11728 # We can hardcode non-existent directories.
11729 if test no != "$hardcode_direct" &&
11730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11731 # have to relink, otherwise we might link with an installed library
11732 # when we should be linking with a yet-to-be-installed one
11733 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11734 test no != "$hardcode_minus_L"; then
11735 # Linking always hardcodes the temporary library directory.
11736 hardcode_action=relink
11737 else
11738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11739 hardcode_action=immediate
11740 fi
11741 else
11742 # We cannot hardcode anything, or else we can only hardcode existing
11743 # directories.
11744 hardcode_action=unsupported
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11747 $as_echo "$hardcode_action" >&6; }
11748
11749 if test relink = "$hardcode_action" ||
11750 test yes = "$inherit_rpath"; then
11751 # Fast installation is not supported
11752 enable_fast_install=no
11753 elif test yes = "$shlibpath_overrides_runpath" ||
11754 test no = "$enable_shared"; then
11755 # Fast installation is not necessary
11756 enable_fast_install=needless
11757 fi
11758
11759
11760
11761
11762
11763
11764 if test yes != "$enable_dlopen"; then
11765 enable_dlopen=unknown
11766 enable_dlopen_self=unknown
11767 enable_dlopen_self_static=unknown
11768 else
11769 lt_cv_dlopen=no
11770 lt_cv_dlopen_libs=
11771
11772 case $host_os in
11773 beos*)
11774 lt_cv_dlopen=load_add_on
11775 lt_cv_dlopen_libs=
11776 lt_cv_dlopen_self=yes
11777 ;;
11778
11779 mingw* | pw32* | cegcc*)
11780 lt_cv_dlopen=LoadLibrary
11781 lt_cv_dlopen_libs=
11782 ;;
11783
11784 cygwin*)
11785 lt_cv_dlopen=dlopen
11786 lt_cv_dlopen_libs=
11787 ;;
11788
11789 darwin*)
11790 # if libdl is installed we need to link against it
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11793 if ${ac_cv_lib_dl_dlopen+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-ldl $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char dlopen ();
11808 int
11809 main ()
11810 {
11811 return dlopen ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_dl_dlopen=yes
11818 else
11819 ac_cv_lib_dl_dlopen=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11828 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11829 else
11830
11831 lt_cv_dlopen=dyld
11832 lt_cv_dlopen_libs=
11833 lt_cv_dlopen_self=yes
11834
11835 fi
11836
11837 ;;
11838
11839 tpf*)
11840 # Don't try to run any link tests for TPF. We know it's impossible
11841 # because TPF is a cross-compiler, and we know how we open DSOs.
11842 lt_cv_dlopen=dlopen
11843 lt_cv_dlopen_libs=
11844 lt_cv_dlopen_self=no
11845 ;;
11846
11847 *)
11848 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11849 if test "x$ac_cv_func_shl_load" = xyes; then :
11850 lt_cv_dlopen=shl_load
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11854 if ${ac_cv_lib_dld_shl_load+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldld $LIBS"
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861
11862 /* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 char shl_load ();
11869 int
11870 main ()
11871 {
11872 return shl_load ();
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_lib_dld_shl_load=yes
11879 else
11880 ac_cv_lib_dld_shl_load=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11889 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11890 else
11891 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11892 if test "x$ac_cv_func_dlopen" = xyes; then :
11893 lt_cv_dlopen=dlopen
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11897 if ${ac_cv_lib_dl_dlopen+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-ldl $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 return dlopen ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_dl_dlopen=yes
11922 else
11923 ac_cv_lib_dl_dlopen=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11932 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11935 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11936 if ${ac_cv_lib_svld_dlopen+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lsvld $LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11943
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char dlopen ();
11951 int
11952 main ()
11953 {
11954 return dlopen ();
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_svld_dlopen=yes
11961 else
11962 ac_cv_lib_svld_dlopen=no
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11969 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11970 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11971 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11974 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11975 if ${ac_cv_lib_dld_dld_link+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldld $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dld_link ();
11990 int
11991 main ()
11992 {
11993 return dld_link ();
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dld_dld_link=yes
12000 else
12001 ac_cv_lib_dld_dld_link=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12008 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12009 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12010 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12011 fi
12012
12013
12014 fi
12015
12016
12017 fi
12018
12019
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028 ;;
12029 esac
12030
12031 if test no = "$lt_cv_dlopen"; then
12032 enable_dlopen=no
12033 else
12034 enable_dlopen=yes
12035 fi
12036
12037 case $lt_cv_dlopen in
12038 dlopen)
12039 save_CPPFLAGS=$CPPFLAGS
12040 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12041
12042 save_LDFLAGS=$LDFLAGS
12043 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12044
12045 save_LIBS=$LIBS
12046 LIBS="$lt_cv_dlopen_libs $LIBS"
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12049 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12050 if ${lt_cv_dlopen_self+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test yes = "$cross_compiling"; then :
12054 lt_cv_dlopen_self=cross
12055 else
12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057 lt_status=$lt_dlunknown
12058 cat > conftest.$ac_ext <<_LT_EOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061
12062 #if HAVE_DLFCN_H
12063 #include <dlfcn.h>
12064 #endif
12065
12066 #include <stdio.h>
12067
12068 #ifdef RTLD_GLOBAL
12069 # define LT_DLGLOBAL RTLD_GLOBAL
12070 #else
12071 # ifdef DL_GLOBAL
12072 # define LT_DLGLOBAL DL_GLOBAL
12073 # else
12074 # define LT_DLGLOBAL 0
12075 # endif
12076 #endif
12077
12078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079 find out it does not work in some platform. */
12080 #ifndef LT_DLLAZY_OR_NOW
12081 # ifdef RTLD_LAZY
12082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # else
12084 # ifdef DL_LAZY
12085 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # else
12087 # ifdef RTLD_NOW
12088 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # else
12090 # ifdef DL_NOW
12091 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # else
12093 # define LT_DLLAZY_OR_NOW 0
12094 # endif
12095 # endif
12096 # endif
12097 # endif
12098 #endif
12099
12100 /* When -fvisibility=hidden is used, assume the code has been annotated
12101 correspondingly for the symbols needed. */
12102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12103 int fnord () __attribute__((visibility("default")));
12104 #endif
12105
12106 int fnord () { return 42; }
12107 int main ()
12108 {
12109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12110 int status = $lt_dlunknown;
12111
12112 if (self)
12113 {
12114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 else
12116 {
12117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12118 else puts (dlerror ());
12119 }
12120 /* dlclose (self); */
12121 }
12122 else
12123 puts (dlerror ());
12124
12125 return status;
12126 }
12127 _LT_EOF
12128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12133 (./conftest; exit; ) >&5 2>/dev/null
12134 lt_status=$?
12135 case x$lt_status in
12136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12139 esac
12140 else :
12141 # compilation failed
12142 lt_cv_dlopen_self=no
12143 fi
12144 fi
12145 rm -fr conftest*
12146
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12150 $as_echo "$lt_cv_dlopen_self" >&6; }
12151
12152 if test yes = "$lt_cv_dlopen_self"; then
12153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12155 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12156 if ${lt_cv_dlopen_self_static+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test yes = "$cross_compiling"; then :
12160 lt_cv_dlopen_self_static=cross
12161 else
12162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12163 lt_status=$lt_dlunknown
12164 cat > conftest.$ac_ext <<_LT_EOF
12165 #line $LINENO "configure"
12166 #include "confdefs.h"
12167
12168 #if HAVE_DLFCN_H
12169 #include <dlfcn.h>
12170 #endif
12171
12172 #include <stdio.h>
12173
12174 #ifdef RTLD_GLOBAL
12175 # define LT_DLGLOBAL RTLD_GLOBAL
12176 #else
12177 # ifdef DL_GLOBAL
12178 # define LT_DLGLOBAL DL_GLOBAL
12179 # else
12180 # define LT_DLGLOBAL 0
12181 # endif
12182 #endif
12183
12184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12185 find out it does not work in some platform. */
12186 #ifndef LT_DLLAZY_OR_NOW
12187 # ifdef RTLD_LAZY
12188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12189 # else
12190 # ifdef DL_LAZY
12191 # define LT_DLLAZY_OR_NOW DL_LAZY
12192 # else
12193 # ifdef RTLD_NOW
12194 # define LT_DLLAZY_OR_NOW RTLD_NOW
12195 # else
12196 # ifdef DL_NOW
12197 # define LT_DLLAZY_OR_NOW DL_NOW
12198 # else
12199 # define LT_DLLAZY_OR_NOW 0
12200 # endif
12201 # endif
12202 # endif
12203 # endif
12204 #endif
12205
12206 /* When -fvisibility=hidden is used, assume the code has been annotated
12207 correspondingly for the symbols needed. */
12208 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12209 int fnord () __attribute__((visibility("default")));
12210 #endif
12211
12212 int fnord () { return 42; }
12213 int main ()
12214 {
12215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12216 int status = $lt_dlunknown;
12217
12218 if (self)
12219 {
12220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12221 else
12222 {
12223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12224 else puts (dlerror ());
12225 }
12226 /* dlclose (self); */
12227 }
12228 else
12229 puts (dlerror ());
12230
12231 return status;
12232 }
12233 _LT_EOF
12234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12235 (eval $ac_link) 2>&5
12236 ac_status=$?
12237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12239 (./conftest; exit; ) >&5 2>/dev/null
12240 lt_status=$?
12241 case x$lt_status in
12242 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12243 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12244 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12245 esac
12246 else :
12247 # compilation failed
12248 lt_cv_dlopen_self_static=no
12249 fi
12250 fi
12251 rm -fr conftest*
12252
12253
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12256 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12257 fi
12258
12259 CPPFLAGS=$save_CPPFLAGS
12260 LDFLAGS=$save_LDFLAGS
12261 LIBS=$save_LIBS
12262 ;;
12263 esac
12264
12265 case $lt_cv_dlopen_self in
12266 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12267 *) enable_dlopen_self=unknown ;;
12268 esac
12269
12270 case $lt_cv_dlopen_self_static in
12271 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12272 *) enable_dlopen_self_static=unknown ;;
12273 esac
12274 fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292 striplib=
12293 old_striplib=
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12295 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12296 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12297 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12298 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12301 else
12302 # FIXME - insert some real tests, host_os isn't really good enough
12303 case $host_os in
12304 darwin*)
12305 if test -n "$STRIP"; then
12306 striplib="$STRIP -x"
12307 old_striplib="$STRIP -S"
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309 $as_echo "yes" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313 fi
12314 ;;
12315 *)
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 ;;
12319 esac
12320 fi
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 # Report what library types will actually be built
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12335 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12337 $as_echo "$can_build_shared" >&6; }
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12340 $as_echo_n "checking whether to build shared libraries... " >&6; }
12341 test no = "$can_build_shared" && enable_shared=no
12342
12343 # On AIX, shared libraries and static libraries use the same namespace, and
12344 # are all built from PIC.
12345 case $host_os in
12346 aix3*)
12347 test yes = "$enable_shared" && enable_static=no
12348 if test -n "$RANLIB"; then
12349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12350 postinstall_cmds='$RANLIB $lib'
12351 fi
12352 ;;
12353
12354 aix[4-9]*)
12355 if test ia64 != "$host_cpu"; then
12356 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12357 yes,aix,yes) ;; # shared object as lib.so file only
12358 yes,svr4,*) ;; # shared object as lib.so archive member only
12359 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12360 esac
12361 fi
12362 ;;
12363 esac
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12365 $as_echo "$enable_shared" >&6; }
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12368 $as_echo_n "checking whether to build static libraries... " >&6; }
12369 # Make sure either enable_shared or enable_static is yes.
12370 test yes = "$enable_shared" || enable_static=yes
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12372 $as_echo "$enable_static" >&6; }
12373
12374
12375
12376
12377 fi
12378 ac_ext=c
12379 ac_cpp='$CPP $CPPFLAGS'
12380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383
12384 CC=$lt_save_CC
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400 ac_config_commands="$ac_config_commands libtool"
12401
12402
12403
12404
12405 # Only expand once:
12406
12407
12408 enable_win32_dll=yes
12409
12410 case $host in
12411 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12412 if test -n "$ac_tool_prefix"; then
12413 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12414 set dummy ${ac_tool_prefix}as; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_prog_AS+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$AS"; then
12421 ac_cv_prog_AS="$AS" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430 ac_cv_prog_AS="${ac_tool_prefix}as"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 AS=$ac_cv_prog_AS
12441 if test -n "$AS"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12443 $as_echo "$AS" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 fi
12451 if test -z "$ac_cv_prog_AS"; then
12452 ac_ct_AS=$AS
12453 # Extract the first word of "as", so it can be a program name with args.
12454 set dummy as; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$ac_ct_AS"; then
12461 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470 ac_cv_prog_ac_ct_AS="as"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474 done
12475 done
12476 IFS=$as_save_IFS
12477
12478 fi
12479 fi
12480 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12481 if test -n "$ac_ct_AS"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12483 $as_echo "$ac_ct_AS" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488
12489 if test "x$ac_ct_AS" = x; then
12490 AS="false"
12491 else
12492 case $cross_compiling:$ac_tool_warned in
12493 yes:)
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12496 ac_tool_warned=yes ;;
12497 esac
12498 AS=$ac_ct_AS
12499 fi
12500 else
12501 AS="$ac_cv_prog_AS"
12502 fi
12503
12504 if test -n "$ac_tool_prefix"; then
12505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12506 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if ${ac_cv_prog_DLLTOOL+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 if test -n "$DLLTOOL"; then
12513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12525 fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 DLLTOOL=$ac_cv_prog_DLLTOOL
12533 if test -n "$DLLTOOL"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12535 $as_echo "$DLLTOOL" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540
12541
12542 fi
12543 if test -z "$ac_cv_prog_DLLTOOL"; then
12544 ac_ct_DLLTOOL=$DLLTOOL
12545 # Extract the first word of "dlltool", so it can be a program name with args.
12546 set dummy dlltool; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if test -n "$ac_ct_DLLTOOL"; then
12553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 fi
12571 fi
12572 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12573 if test -n "$ac_ct_DLLTOOL"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12575 $as_echo "$ac_ct_DLLTOOL" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581 if test "x$ac_ct_DLLTOOL" = x; then
12582 DLLTOOL="false"
12583 else
12584 case $cross_compiling:$ac_tool_warned in
12585 yes:)
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12588 ac_tool_warned=yes ;;
12589 esac
12590 DLLTOOL=$ac_ct_DLLTOOL
12591 fi
12592 else
12593 DLLTOOL="$ac_cv_prog_DLLTOOL"
12594 fi
12595
12596 if test -n "$ac_tool_prefix"; then
12597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_prog_OBJDUMP+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618 done
12619 done
12620 IFS=$as_save_IFS
12621
12622 fi
12623 fi
12624 OBJDUMP=$ac_cv_prog_OBJDUMP
12625 if test -n "$OBJDUMP"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12627 $as_echo "$OBJDUMP" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 fi
12632
12633
12634 fi
12635 if test -z "$ac_cv_prog_OBJDUMP"; then
12636 ac_ct_OBJDUMP=$OBJDUMP
12637 # Extract the first word of "objdump", so it can be a program name with args.
12638 set dummy objdump; ac_word=$2
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640 $as_echo_n "checking for $ac_word... " >&6; }
12641 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 if test -n "$ac_ct_OBJDUMP"; then
12645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12646 else
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650 IFS=$as_save_IFS
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 break 2
12657 fi
12658 done
12659 done
12660 IFS=$as_save_IFS
12661
12662 fi
12663 fi
12664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12665 if test -n "$ac_ct_OBJDUMP"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12667 $as_echo "$ac_ct_OBJDUMP" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12671 fi
12672
12673 if test "x$ac_ct_OBJDUMP" = x; then
12674 OBJDUMP="false"
12675 else
12676 case $cross_compiling:$ac_tool_warned in
12677 yes:)
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12680 ac_tool_warned=yes ;;
12681 esac
12682 OBJDUMP=$ac_ct_OBJDUMP
12683 fi
12684 else
12685 OBJDUMP="$ac_cv_prog_OBJDUMP"
12686 fi
12687
12688 ;;
12689 esac
12690
12691 test -z "$AS" && AS=as
12692
12693
12694
12695
12696
12697 test -z "$DLLTOOL" && DLLTOOL=dlltool
12698
12699
12700 test -z "$OBJDUMP" && OBJDUMP=objdump
12701
12702
12703
12704
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12707 $as_echo_n "checking return type of signal handlers... " >&6; }
12708 if ${ac_cv_type_signal+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <sys/types.h>
12714 #include <signal.h>
12715
12716 int
12717 main ()
12718 {
12719 return *(signal (0, 0)) (0) == 1;
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725 ac_cv_type_signal=int
12726 else
12727 ac_cv_type_signal=void
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12732 $as_echo "$ac_cv_type_signal" >&6; }
12733
12734 cat >>confdefs.h <<_ACEOF
12735 #define RETSIGTYPE $ac_cv_type_signal
12736 _ACEOF
12737
12738
12739
12740 for ac_header in stdarg.h sys/types.h dirent.h errno.h libgen.h malloc.h
12741 do :
12742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12743 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12745 cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12747 _ACEOF
12748
12749 fi
12750
12751 done
12752
12753 for ac_header in stdlib.h mntent.h linux/cdrom.h inttypes.h
12754 do :
12755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12758 cat >>confdefs.h <<_ACEOF
12759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12760 _ACEOF
12761
12762 fi
12763
12764 done
12765
12766 for ac_header in sys/time.h time.h
12767 do :
12768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12770 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12771 cat >>confdefs.h <<_ACEOF
12772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12773 _ACEOF
12774
12775 fi
12776
12777 done
12778
12779
12780 ac_header_dirent=no
12781 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12782 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12784 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12785 if eval \${$as_ac_Header+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790 #include <sys/types.h>
12791 #include <$ac_hdr>
12792
12793 int
12794 main ()
12795 {
12796 if ((DIR *) 0)
12797 return 0;
12798 ;
12799 return 0;
12800 }
12801 _ACEOF
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803 eval "$as_ac_Header=yes"
12804 else
12805 eval "$as_ac_Header=no"
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 fi
12809 eval ac_res=\$$as_ac_Header
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12811 $as_echo "$ac_res" >&6; }
12812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12813 cat >>confdefs.h <<_ACEOF
12814 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12815 _ACEOF
12816
12817 ac_header_dirent=$ac_hdr; break
12818 fi
12819
12820 done
12821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12822 if test $ac_header_dirent = dirent.h; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12824 $as_echo_n "checking for library containing opendir... " >&6; }
12825 if ${ac_cv_search_opendir+:} false; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 ac_func_search_save_LIBS=$LIBS
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 char opendir ();
12839 int
12840 main ()
12841 {
12842 return opendir ();
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 for ac_lib in '' dir; do
12848 if test -z "$ac_lib"; then
12849 ac_res="none required"
12850 else
12851 ac_res=-l$ac_lib
12852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12853 fi
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 ac_cv_search_opendir=$ac_res
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext
12859 if ${ac_cv_search_opendir+:} false; then :
12860 break
12861 fi
12862 done
12863 if ${ac_cv_search_opendir+:} false; then :
12864
12865 else
12866 ac_cv_search_opendir=no
12867 fi
12868 rm conftest.$ac_ext
12869 LIBS=$ac_func_search_save_LIBS
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12872 $as_echo "$ac_cv_search_opendir" >&6; }
12873 ac_res=$ac_cv_search_opendir
12874 if test "$ac_res" != no; then :
12875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12876
12877 fi
12878
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12881 $as_echo_n "checking for library containing opendir... " >&6; }
12882 if ${ac_cv_search_opendir+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 ac_func_search_save_LIBS=$LIBS
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888
12889 /* Override any GCC internal prototype to avoid an error.
12890 Use char because int might match the return type of a GCC
12891 builtin and then its argument prototype would still apply. */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 char opendir ();
12896 int
12897 main ()
12898 {
12899 return opendir ();
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 for ac_lib in '' x; do
12905 if test -z "$ac_lib"; then
12906 ac_res="none required"
12907 else
12908 ac_res=-l$ac_lib
12909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12910 fi
12911 if ac_fn_c_try_link "$LINENO"; then :
12912 ac_cv_search_opendir=$ac_res
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext
12916 if ${ac_cv_search_opendir+:} false; then :
12917 break
12918 fi
12919 done
12920 if ${ac_cv_search_opendir+:} false; then :
12921
12922 else
12923 ac_cv_search_opendir=no
12924 fi
12925 rm conftest.$ac_ext
12926 LIBS=$ac_func_search_save_LIBS
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12929 $as_echo "$ac_cv_search_opendir" >&6; }
12930 ac_res=$ac_cv_search_opendir
12931 if test "$ac_res" != no; then :
12932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12933
12934 fi
12935
12936 fi
12937
12938
12939
12940 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
12941 #include <sys/types.h>
12942 #ifdef HAVE_DIRENT_H
12943 # include <dirent.h>
12944 #else
12945 # define dirent direct
12946 # ifdef HAVE_SYS_NDIR_H
12947 # include <sys/ndir.h>
12948 # endif
12949 # ifdef HAVE_SYS_DIR_H
12950 # include <sys/dir.h>
12951 # endif
12952 # ifdef HAVE_NDIR_H
12953 # include <ndir.h>
12954 # endif
12955 #endif
12956
12957 "
12958 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_STRUCT_DIRENT_D_TYPE 1
12962 _ACEOF
12963
12964
12965 fi
12966
12967
12968
12969 # Check whether --enable-largefile was given.
12970 if test "${enable_largefile+set}" = set; then :
12971 enableval=$enable_largefile;
12972 fi
12973
12974 if test "$enable_largefile" != no; then
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12977 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12978 if ${ac_cv_sys_largefile_CC+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 ac_cv_sys_largefile_CC=no
12982 if test "$GCC" != yes; then
12983 ac_save_CC=$CC
12984 while :; do
12985 # IRIX 6.2 and later do not support large files by default,
12986 # so use the C compiler's -n32 option if that helps.
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 #include <sys/types.h>
12990 /* Check that off_t can represent 2**63 - 1 correctly.
12991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12992 since some C++ compilers masquerading as C compilers
12993 incorrectly reject 9223372036854775807. */
12994 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12996 && LARGE_OFF_T % 2147483647 == 1)
12997 ? 1 : -1];
12998 int
12999 main ()
13000 {
13001
13002 ;
13003 return 0;
13004 }
13005 _ACEOF
13006 if ac_fn_c_try_compile "$LINENO"; then :
13007 break
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext
13010 CC="$CC -n32"
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012 ac_cv_sys_largefile_CC=' -n32'; break
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext
13015 break
13016 done
13017 CC=$ac_save_CC
13018 rm -f conftest.$ac_ext
13019 fi
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13022 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13023 if test "$ac_cv_sys_largefile_CC" != no; then
13024 CC=$CC$ac_cv_sys_largefile_CC
13025 fi
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13028 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13029 if ${ac_cv_sys_file_offset_bits+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 while :; do
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035 #include <sys/types.h>
13036 /* Check that off_t can represent 2**63 - 1 correctly.
13037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13038 since some C++ compilers masquerading as C compilers
13039 incorrectly reject 9223372036854775807. */
13040 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13042 && LARGE_OFF_T % 2147483647 == 1)
13043 ? 1 : -1];
13044 int
13045 main ()
13046 {
13047
13048 ;
13049 return 0;
13050 }
13051 _ACEOF
13052 if ac_fn_c_try_compile "$LINENO"; then :
13053 ac_cv_sys_file_offset_bits=no; break
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058 #define _FILE_OFFSET_BITS 64
13059 #include <sys/types.h>
13060 /* Check that off_t can represent 2**63 - 1 correctly.
13061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13062 since some C++ compilers masquerading as C compilers
13063 incorrectly reject 9223372036854775807. */
13064 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13066 && LARGE_OFF_T % 2147483647 == 1)
13067 ? 1 : -1];
13068 int
13069 main ()
13070 {
13071
13072 ;
13073 return 0;
13074 }
13075 _ACEOF
13076 if ac_fn_c_try_compile "$LINENO"; then :
13077 ac_cv_sys_file_offset_bits=64; break
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 ac_cv_sys_file_offset_bits=unknown
13081 break
13082 done
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13085 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13086 case $ac_cv_sys_file_offset_bits in #(
13087 no | unknown) ;;
13088 *)
13089 cat >>confdefs.h <<_ACEOF
13090 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13091 _ACEOF
13092 ;;
13093 esac
13094 rm -rf conftest*
13095 if test $ac_cv_sys_file_offset_bits = unknown; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13097 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13098 if ${ac_cv_sys_large_files+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 while :; do
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <sys/types.h>
13105 /* Check that off_t can represent 2**63 - 1 correctly.
13106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13107 since some C++ compilers masquerading as C compilers
13108 incorrectly reject 9223372036854775807. */
13109 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13111 && LARGE_OFF_T % 2147483647 == 1)
13112 ? 1 : -1];
13113 int
13114 main ()
13115 {
13116
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_c_try_compile "$LINENO"; then :
13122 ac_cv_sys_large_files=no; break
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #define _LARGE_FILES 1
13128 #include <sys/types.h>
13129 /* Check that off_t can represent 2**63 - 1 correctly.
13130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13131 since some C++ compilers masquerading as C compilers
13132 incorrectly reject 9223372036854775807. */
13133 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13135 && LARGE_OFF_T % 2147483647 == 1)
13136 ? 1 : -1];
13137 int
13138 main ()
13139 {
13140
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146 ac_cv_sys_large_files=1; break
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149 ac_cv_sys_large_files=unknown
13150 break
13151 done
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13154 $as_echo "$ac_cv_sys_large_files" >&6; }
13155 case $ac_cv_sys_large_files in #(
13156 no | unknown) ;;
13157 *)
13158 cat >>confdefs.h <<_ACEOF
13159 #define _LARGE_FILES $ac_cv_sys_large_files
13160 _ACEOF
13161 ;;
13162 esac
13163 rm -rf conftest*
13164 fi
13165
13166
13167 fi
13168
13169
13170 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13171 if test "x$ac_cv_func_snprintf" = xyes; then :
13172
13173 else
13174 as_fn_error $? "$function_not_found" "$LINENO" 5
13175 fi
13176
13177
13178 if test "${SYS}" != "mingw32"; then :
13179
13180 for ac_header in pthread.h
13181 do :
13182 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_pthread_h" = xyes; then :
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_PTHREAD_H 1
13186 _ACEOF
13187
13188 else
13189 as_fn_error $? "pthread required" "$LINENO" 5
13190 fi
13191
13192 done
13193
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13195 $as_echo_n "checking for library containing pthread_create... " >&6; }
13196 if ${ac_cv_search_pthread_create+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 ac_func_search_save_LIBS=$LIBS
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char pthread_create ();
13210 int
13211 main ()
13212 {
13213 return pthread_create ();
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 for ac_lib in '' pthread; do
13219 if test -z "$ac_lib"; then
13220 ac_res="none required"
13221 else
13222 ac_res=-l$ac_lib
13223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13224 fi
13225 if ac_fn_c_try_link "$LINENO"; then :
13226 ac_cv_search_pthread_create=$ac_res
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext
13230 if ${ac_cv_search_pthread_create+:} false; then :
13231 break
13232 fi
13233 done
13234 if ${ac_cv_search_pthread_create+:} false; then :
13235
13236 else
13237 ac_cv_search_pthread_create=no
13238 fi
13239 rm conftest.$ac_ext
13240 LIBS=$ac_func_search_save_LIBS
13241 fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13243 $as_echo "$ac_cv_search_pthread_create" >&6; }
13244 ac_res=$ac_cv_search_pthread_create
13245 if test "$ac_res" != no; then :
13246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13247
13248 else
13249 as_fn_error $? "pthread required" "$LINENO" 5
13250 fi
13251
13252
13253 fi
13254
13255
13256
13257 # Check whether --with-libgcrypt-prefix was given.
13258 if test "${with_libgcrypt_prefix+set}" = set; then :
13259 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
13260 else
13261 libgcrypt_config_prefix=""
13262 fi
13263
13264 if test x$libgcrypt_config_prefix != x ; then
13265 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
13266 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
13267 fi
13268 fi
13269
13270 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
13271 set dummy libgcrypt-config; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 case $LIBGCRYPT_CONFIG in
13278 [\\/]* | ?:[\\/]*)
13279 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
13280 ;;
13281 *)
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13284 do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13289 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293 done
13294 done
13295 IFS=$as_save_IFS
13296
13297 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
13298 ;;
13299 esac
13300 fi
13301 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
13302 if test -n "$LIBGCRYPT_CONFIG"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
13304 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309
13310
13311 if test x"$LIBGCRYPT_CONFIG" = xno; then
13312 as_fn_error $? "libgcrypt not found on system" "$LINENO" 5
13313 else
13314 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
13315 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
13316
13317
13318 fi
13319 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13320 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
13321 ac_have_decl=1
13322 else
13323 ac_have_decl=0
13324 fi
13325
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_STRERROR_R $ac_have_decl
13328 _ACEOF
13329
13330 for ac_func in strerror_r
13331 do :
13332 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13333 if test "x$ac_cv_func_strerror_r" = xyes; then :
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_STRERROR_R 1
13336 _ACEOF
13337
13338 fi
13339 done
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13342 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13343 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346
13347 ac_cv_func_strerror_r_char_p=no
13348 if test $ac_cv_have_decl_strerror_r = yes; then
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351 $ac_includes_default
13352 int
13353 main ()
13354 {
13355
13356 char buf[100];
13357 char x = *strerror_r (0, buf, sizeof buf);
13358 char *p = strerror_r (0, buf, sizeof buf);
13359 return !p || x;
13360
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 ac_cv_func_strerror_r_char_p=yes
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 else
13370 # strerror_r is not declared. Choose between
13371 # systems that have relatively inaccessible declarations for the
13372 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13373 # former has a strerror_r that returns char*, while the latter
13374 # has a strerror_r that returns `int'.
13375 # This test should segfault on the DEC system.
13376 if test "$cross_compiling" = yes; then :
13377 :
13378 else
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 extern char *strerror_r ();
13383 int
13384 main ()
13385 {
13386 char buf[100];
13387 char x = *strerror_r (0, buf, sizeof buf);
13388 return ! isalpha (x);
13389 ;
13390 return 0;
13391 }
13392 _ACEOF
13393 if ac_fn_c_try_run "$LINENO"; then :
13394 ac_cv_func_strerror_r_char_p=yes
13395 fi
13396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13397 conftest.$ac_objext conftest.beam conftest.$ac_ext
13398 fi
13399
13400 fi
13401
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13404 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13405 if test $ac_cv_func_strerror_r_char_p = yes; then
13406
13407 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13408
13409 fi
13410
13411
13412
13413
13414 # Check whether --with-gpg-error-prefix was given.
13415 if test "${with_gpg_error_prefix+set}" = set; then :
13416 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
13417 else
13418 gpg_error_config_prefix=""
13419 fi
13420
13421 if test x$gpg_error_config_prefix != x ; then
13422 if test x${GPG_ERROR_CONFIG+set} != xset ; then
13423 GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
13424 fi
13425 fi
13426
13427 # Extract the first word of "gpg-error-config", so it can be a program name with args.
13428 set dummy gpg-error-config; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 case $GPG_ERROR_CONFIG in
13435 [\\/]* | ?:[\\/]*)
13436 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
13437 ;;
13438 *)
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13441 do
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
13444 for ac_exec_ext in '' $ac_executable_extensions; do
13445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 break 2
13449 fi
13450 done
13451 done
13452 IFS=$as_save_IFS
13453
13454 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
13455 ;;
13456 esac
13457 fi
13458 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
13459 if test -n "$GPG_ERROR_CONFIG"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
13461 $as_echo "$GPG_ERROR_CONFIG" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466
13467
13468 if test x"$GPG_ERROR_CONFIG" = xno; then
13469 as_fn_error $? "gpg-error not found on system" "$LINENO" 5
13470 else
13471 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
13472 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
13473
13474
13475
13476 $as_echo "#define HAVE_LIBGPG_ERROR 1" >>confdefs.h
13477
13478 fi
13479
13480
13481 # Check whether --with-libaacs was given.
13482 if test "${with_libaacs+set}" = set; then :
13483 withval=$with_libaacs;
13484 fi
13485
13486
13487
13488
13489
13490
13491
13492
13493 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13494 if test -n "$ac_tool_prefix"; then
13495 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13496 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498 $as_echo_n "checking for $ac_word... " >&6; }
13499 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 case $PKG_CONFIG in
13503 [\\/]* | ?:[\\/]*)
13504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13505 ;;
13506 *)
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518 done
13519 done
13520 IFS=$as_save_IFS
13521
13522 ;;
13523 esac
13524 fi
13525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13526 if test -n "$PKG_CONFIG"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13528 $as_echo "$PKG_CONFIG" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533
13534
13535 fi
13536 if test -z "$ac_cv_path_PKG_CONFIG"; then
13537 ac_pt_PKG_CONFIG=$PKG_CONFIG
13538 # Extract the first word of "pkg-config", so it can be a program name with args.
13539 set dummy pkg-config; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 case $ac_pt_PKG_CONFIG in
13546 [\\/]* | ?:[\\/]*)
13547 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13548 ;;
13549 *)
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13552 do
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13560 fi
13561 done
13562 done
13563 IFS=$as_save_IFS
13564
13565 ;;
13566 esac
13567 fi
13568 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13569 if test -n "$ac_pt_PKG_CONFIG"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13571 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13572 else
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576
13577 if test "x$ac_pt_PKG_CONFIG" = x; then
13578 PKG_CONFIG=""
13579 else
13580 case $cross_compiling:$ac_tool_warned in
13581 yes:)
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13584 ac_tool_warned=yes ;;
13585 esac
13586 PKG_CONFIG=$ac_pt_PKG_CONFIG
13587 fi
13588 else
13589 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13590 fi
13591
13592 fi
13593 if test -n "$PKG_CONFIG"; then
13594 _pkg_min_version=0.9.0
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13596 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13597 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13599 $as_echo "yes" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 PKG_CONFIG=""
13604 fi
13605 fi
13606 if test "x$with_libaacs" != "xno"; then :
13607
13608
13609 pkg_failed=no
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libaacs >= 0.7.0" >&5
13611 $as_echo_n "checking for libaacs >= 0.7.0... " >&6; }
13612
13613 if test -n "$LIBAACS_CFLAGS"; then
13614 pkg_cv_LIBAACS_CFLAGS="$LIBAACS_CFLAGS"
13615 elif test -n "$PKG_CONFIG"; then
13616 if test -n "$PKG_CONFIG" && \
13617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libaacs >= 0.7.0\""; } >&5
13618 ($PKG_CONFIG --exists --print-errors "libaacs >= 0.7.0") 2>&5
13619 ac_status=$?
13620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621 test $ac_status = 0; }; then
13622 pkg_cv_LIBAACS_CFLAGS=`$PKG_CONFIG --cflags "libaacs >= 0.7.0" 2>/dev/null`
13623 test "x$?" != "x0" && pkg_failed=yes
13624 else
13625 pkg_failed=yes
13626 fi
13627 else
13628 pkg_failed=untried
13629 fi
13630 if test -n "$LIBAACS_LIBS"; then
13631 pkg_cv_LIBAACS_LIBS="$LIBAACS_LIBS"
13632 elif test -n "$PKG_CONFIG"; then
13633 if test -n "$PKG_CONFIG" && \
13634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libaacs >= 0.7.0\""; } >&5
13635 ($PKG_CONFIG --exists --print-errors "libaacs >= 0.7.0") 2>&5
13636 ac_status=$?
13637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13638 test $ac_status = 0; }; then
13639 pkg_cv_LIBAACS_LIBS=`$PKG_CONFIG --libs "libaacs >= 0.7.0" 2>/dev/null`
13640 test "x$?" != "x0" && pkg_failed=yes
13641 else
13642 pkg_failed=yes
13643 fi
13644 else
13645 pkg_failed=untried
13646 fi
13647
13648
13649
13650 if test $pkg_failed = yes; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653
13654 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13655 _pkg_short_errors_supported=yes
13656 else
13657 _pkg_short_errors_supported=no
13658 fi
13659 if test $_pkg_short_errors_supported = yes; then
13660 LIBAACS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libaacs >= 0.7.0" 2>&1`
13661 else
13662 LIBAACS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libaacs >= 0.7.0" 2>&1`
13663 fi
13664 # Put the nasty error message in config.log where it belongs
13665 echo "$LIBAACS_PKG_ERRORS" >&5
13666
13667 with_libaacs=no
13668 elif test $pkg_failed = untried; then
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13671 with_libaacs=no
13672 else
13673 LIBAACS_CFLAGS=$pkg_cv_LIBAACS_CFLAGS
13674 LIBAACS_LIBS=$pkg_cv_LIBAACS_LIBS
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13676 $as_echo "yes" >&6; }
13677 with_libaacs=yes;
13678 $as_echo "#define HAVE_LIBAACS 1" >>confdefs.h
13679
13680 fi
13681
13682 fi
13683
13684
13685 for flag in -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wshadow; do
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
13688 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
13689 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692
13693 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 ac_save_CFLAGS="$CFLAGS"
13697 CFLAGS="$CFLAGS $flag"
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 int main() { return 0; }
13701 _ACEOF
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
13704 else
13705 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 CFLAGS="$ac_save_CFLAGS"
13710
13711 fi
13712
13713
13714 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13715
13716 fi
13717
13718 fi
13719 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13721 $as_echo "$ac_res" >&6; }
13722
13723 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13724 CFLAGS="$CFLAGS $flag";
13725 fi
13726
13727 done
13728
13729
13730
13731 for flag in -Werror=implicit-function-declaration -Werror-implicit-function-declaration; do
13732
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
13734 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
13735 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738
13739 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 ac_save_CFLAGS="$CFLAGS"
13743 CFLAGS="$CFLAGS $flag"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 int main() { return 0; }
13747 _ACEOF
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
13750 else
13751 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 CFLAGS="$ac_save_CFLAGS"
13756
13757 fi
13758
13759
13760 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13761
13762 fi
13763
13764 fi
13765 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13767 $as_echo "$ac_res" >&6; }
13768
13769 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13770 CFLAGS="$CFLAGS $flag"; break;
13771 fi
13772
13773 done
13774
13775
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
13778 $as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
13779 if ${cc_cv_werror+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782
13783 if ${cc_cv_cflags__Werror+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 ac_save_CFLAGS="$CFLAGS"
13787 CFLAGS="$CFLAGS -Werror"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 int main() { return 0; }
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 eval "cc_cv_cflags__Werror='yes'"
13794 else
13795 eval "cc_cv_cflags__Werror='no'"
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 CFLAGS="$ac_save_CFLAGS"
13800
13801 fi
13802
13803
13804 if eval test x$cc_cv_cflags__Werror = xyes; then :
13805 cc_cv_werror=-Werror
13806 else
13807
13808 if ${cc_cv_cflags__errwarn__all+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 ac_save_CFLAGS="$CFLAGS"
13812 CFLAGS="$CFLAGS -errwarn=%all"
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 int main() { return 0; }
13816 _ACEOF
13817 if ac_fn_c_try_link "$LINENO"; then :
13818 eval "cc_cv_cflags__errwarn__all='yes'"
13819 else
13820 eval "cc_cv_cflags__errwarn__all='no'"
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 CFLAGS="$ac_save_CFLAGS"
13825
13826 fi
13827
13828
13829 if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
13830 cc_cv_werror=-errwarn=%all
13831 fi
13832
13833 fi
13834
13835
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
13838 $as_echo "$cc_cv_werror" >&6; }
13839
13840 if test "x$enable_werror" = "xyes"; then :
13841
13842 CFLAGS="${CFLAGS} $cc_cv_werror"
13843
13844 fi
13845
13846 if test "x$enable_extra_warnings" != "xno"; then :
13847
13848
13849 for flag in -Wextra -Winline; do
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
13852 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
13853 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856
13857 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 ac_save_CFLAGS="$CFLAGS"
13861 CFLAGS="$CFLAGS $flag"
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 int main() { return 0; }
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"; then :
13867 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
13868 else
13869 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 CFLAGS="$ac_save_CFLAGS"
13874
13875 fi
13876
13877
13878 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13879
13880 fi
13881
13882 fi
13883 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13885 $as_echo "$ac_res" >&6; }
13886
13887 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13888 CFLAGS="$CFLAGS $flag";
13889 fi
13890
13891 done
13892
13893
13894 fi
13895
13896 if test "x$enable_optimizations" != "xno"; then :
13897
13898
13899 for flag in -O3 -fomit-frame-pointer; do
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
13902 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
13903 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906
13907 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 ac_save_CFLAGS="$CFLAGS"
13911 CFLAGS="$CFLAGS $flag"
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 int main() { return 0; }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
13918 else
13919 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 CFLAGS="$ac_save_CFLAGS"
13924
13925 fi
13926
13927
13928 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13929
13930 fi
13931
13932 fi
13933 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13935 $as_echo "$ac_res" >&6; }
13936
13937 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
13938 CFLAGS="$CFLAGS $flag";
13939 fi
13940
13941 done
13942
13943
13944 fi
13945
13946
13947 BDPLUS_VERSION_MAJOR=0
13948
13949 BDPLUS_VERSION_MINOR=2
13950
13951 BDPLUS_VERSION_MICRO=0
13952
13953
13954 LT_VERSION_INFO="2:0:2"
13955
13956
13957
13958 ac_config_files="$ac_config_files Makefile src/libbdplus.pc src/libbdplus/bdplus-version.h"
13959
13960 cat >confcache <<\_ACEOF
13961 # This file is a shell script that caches the results of configure
13962 # tests run on this system so they can be shared between configure
13963 # scripts and configure runs, see configure's option --config-cache.
13964 # It is not useful on other systems. If it contains results you don't
13965 # want to keep, you may remove or edit it.
13966 #
13967 # config.status only pays attention to the cache file if you give it
13968 # the --recheck option to rerun configure.
13969 #
13970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13972 # following values.
13973
13974 _ACEOF
13975
13976 # The following way of writing the cache mishandles newlines in values,
13977 # but we know of no workaround that is simple, portable, and efficient.
13978 # So, we kill variables containing newlines.
13979 # Ultrix sh set writes to stderr and can't be redirected directly,
13980 # and sets the high bit in the cache file unless we assign to the vars.
13981 (
13982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13983 eval ac_val=\$$ac_var
13984 case $ac_val in #(
13985 *${as_nl}*)
13986 case $ac_var in #(
13987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13989 esac
13990 case $ac_var in #(
13991 _ | IFS | as_nl) ;; #(
13992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13993 *) { eval $ac_var=; unset $ac_var;} ;;
13994 esac ;;
13995 esac
13996 done
13997
13998 (set) 2>&1 |
13999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14000 *${as_nl}ac_space=\ *)
14001 # `set' does not quote correctly, so add quotes: double-quote
14002 # substitution turns \\\\ into \\, and sed turns \\ into \.
14003 sed -n \
14004 "s/'/'\\\\''/g;
14005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14006 ;; #(
14007 *)
14008 # `set' quotes correctly as required by POSIX, so do not add quotes.
14009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14010 ;;
14011 esac |
14012 sort
14013 ) |
14014 sed '
14015 /^ac_cv_env_/b end
14016 t clear
14017 :clear
14018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14019 t end
14020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14021 :end' >>confcache
14022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14023 if test -w "$cache_file"; then
14024 if test "x$cache_file" != "x/dev/null"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14026 $as_echo "$as_me: updating cache $cache_file" >&6;}
14027 if test ! -f "$cache_file" || test -h "$cache_file"; then
14028 cat confcache >"$cache_file"
14029 else
14030 case $cache_file in #(
14031 */* | ?:*)
14032 mv -f confcache "$cache_file"$$ &&
14033 mv -f "$cache_file"$$ "$cache_file" ;; #(
14034 *)
14035 mv -f confcache "$cache_file" ;;
14036 esac
14037 fi
14038 fi
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14041 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14042 fi
14043 fi
14044 rm -f confcache
14045
14046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14047 # Let make expand exec_prefix.
14048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14049
14050 DEFS=-DHAVE_CONFIG_H
14051
14052 ac_libobjs=
14053 ac_ltlibobjs=
14054 U=
14055 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14056 # 1. Remove the extension, and $U if already installed.
14057 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14058 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14059 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14060 # will be set to the directory where LIBOBJS objects are built.
14061 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14062 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14063 done
14064 LIBOBJS=$ac_libobjs
14065
14066 LTLIBOBJS=$ac_ltlibobjs
14067
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14070 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14071 if test -n "$am_sleep_pid"; then
14072 # Hide warnings about reused PIDs.
14073 wait $am_sleep_pid 2>/dev/null
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14076 $as_echo "done" >&6; }
14077 if test -n "$EXEEXT"; then
14078 am__EXEEXT_TRUE=
14079 am__EXEEXT_FALSE='#'
14080 else
14081 am__EXEEXT_TRUE='#'
14082 am__EXEEXT_FALSE=
14083 fi
14084
14085 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
14086 as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
14087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14088 fi
14089 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
14090 as_fn_error $? "conditional \"HAVE_DARWIN\" was never defined.
14091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14092 fi
14093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14094 as_fn_error $? "conditional \"AMDEP\" was never defined.
14095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14096 fi
14097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14098 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14100 fi
14101
14102 : "${CONFIG_STATUS=./config.status}"
14103 ac_write_fail=0
14104 ac_clean_files_save=$ac_clean_files
14105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14107 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14108 as_write_fail=0
14109 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14110 #! $SHELL
14111 # Generated by $as_me.
14112 # Run this file to recreate the current configuration.
14113 # Compiler output produced by configure, useful for debugging
14114 # configure, is in config.log if it exists.
14115
14116 debug=false
14117 ac_cs_recheck=false
14118 ac_cs_silent=false
14119
14120 SHELL=\${CONFIG_SHELL-$SHELL}
14121 export SHELL
14122 _ASEOF
14123 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14124 ## -------------------- ##
14125 ## M4sh Initialization. ##
14126 ## -------------------- ##
14127
14128 # Be more Bourne compatible
14129 DUALCASE=1; export DUALCASE # for MKS sh
14130 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14131 emulate sh
14132 NULLCMD=:
14133 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14134 # is contrary to our usage. Disable this feature.
14135 alias -g '${1+"$@"}'='"$@"'
14136 setopt NO_GLOB_SUBST
14137 else
14138 case `(set -o) 2>/dev/null` in #(
14139 *posix*) :
14140 set -o posix ;; #(
14141 *) :
14142 ;;
14143 esac
14144 fi
14145
14146
14147 as_nl='
14148 '
14149 export as_nl
14150 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14151 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14152 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14153 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14154 # Prefer a ksh shell builtin over an external printf program on Solaris,
14155 # but without wasting forks for bash or zsh.
14156 if test -z "$BASH_VERSION$ZSH_VERSION" \
14157 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14158 as_echo='print -r --'
14159 as_echo_n='print -rn --'
14160 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14161 as_echo='printf %s\n'
14162 as_echo_n='printf %s'
14163 else
14164 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14165 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14166 as_echo_n='/usr/ucb/echo -n'
14167 else
14168 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14169 as_echo_n_body='eval
14170 arg=$1;
14171 case $arg in #(
14172 *"$as_nl"*)
14173 expr "X$arg" : "X\\(.*\\)$as_nl";
14174 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14175 esac;
14176 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14177 '
14178 export as_echo_n_body
14179 as_echo_n='sh -c $as_echo_n_body as_echo'
14180 fi
14181 export as_echo_body
14182 as_echo='sh -c $as_echo_body as_echo'
14183 fi
14184
14185 # The user is always right.
14186 if test "${PATH_SEPARATOR+set}" != set; then
14187 PATH_SEPARATOR=:
14188 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14189 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14190 PATH_SEPARATOR=';'
14191 }
14192 fi
14193
14194
14195 # IFS
14196 # We need space, tab and new line, in precisely that order. Quoting is
14197 # there to prevent editors from complaining about space-tab.
14198 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14199 # splitting by setting IFS to empty value.)
14200 IFS=" "" $as_nl"
14201
14202 # Find who we are. Look in the path if we contain no directory separator.
14203 as_myself=
14204 case $0 in #((
14205 *[\\/]* ) as_myself=$0 ;;
14206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14208 do
14209 IFS=$as_save_IFS
14210 test -z "$as_dir" && as_dir=.
14211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14212 done
14213 IFS=$as_save_IFS
14214
14215 ;;
14216 esac
14217 # We did not find ourselves, most probably we were run as `sh COMMAND'
14218 # in which case we are not to be found in the path.
14219 if test "x$as_myself" = x; then
14220 as_myself=$0
14221 fi
14222 if test ! -f "$as_myself"; then
14223 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14224 exit 1
14225 fi
14226
14227 # Unset variables that we do not need and which cause bugs (e.g. in
14228 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14229 # suppresses any "Segmentation fault" message there. '((' could
14230 # trigger a bug in pdksh 5.2.14.
14231 for as_var in BASH_ENV ENV MAIL MAILPATH
14232 do eval test x\${$as_var+set} = xset \
14233 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14234 done
14235 PS1='$ '
14236 PS2='> '
14237 PS4='+ '
14238
14239 # NLS nuisances.
14240 LC_ALL=C
14241 export LC_ALL
14242 LANGUAGE=C
14243 export LANGUAGE
14244
14245 # CDPATH.
14246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14247
14248
14249 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14250 # ----------------------------------------
14251 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14252 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14253 # script with STATUS, using 1 if that was 0.
14254 as_fn_error ()
14255 {
14256 as_status=$1; test $as_status -eq 0 && as_status=1
14257 if test "$4"; then
14258 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14259 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14260 fi
14261 $as_echo "$as_me: error: $2" >&2
14262 as_fn_exit $as_status
14263 } # as_fn_error
14264
14265
14266 # as_fn_set_status STATUS
14267 # -----------------------
14268 # Set $? to STATUS, without forking.
14269 as_fn_set_status ()
14270 {
14271 return $1
14272 } # as_fn_set_status
14273
14274 # as_fn_exit STATUS
14275 # -----------------
14276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14277 as_fn_exit ()
14278 {
14279 set +e
14280 as_fn_set_status $1
14281 exit $1
14282 } # as_fn_exit
14283
14284 # as_fn_unset VAR
14285 # ---------------
14286 # Portably unset VAR.
14287 as_fn_unset ()
14288 {
14289 { eval $1=; unset $1;}
14290 }
14291 as_unset=as_fn_unset
14292 # as_fn_append VAR VALUE
14293 # ----------------------
14294 # Append the text in VALUE to the end of the definition contained in VAR. Take
14295 # advantage of any shell optimizations that allow amortized linear growth over
14296 # repeated appends, instead of the typical quadratic growth present in naive
14297 # implementations.
14298 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14299 eval 'as_fn_append ()
14300 {
14301 eval $1+=\$2
14302 }'
14303 else
14304 as_fn_append ()
14305 {
14306 eval $1=\$$1\$2
14307 }
14308 fi # as_fn_append
14309
14310 # as_fn_arith ARG...
14311 # ------------------
14312 # Perform arithmetic evaluation on the ARGs, and store the result in the
14313 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14314 # must be portable across $(()) and expr.
14315 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14316 eval 'as_fn_arith ()
14317 {
14318 as_val=$(( $* ))
14319 }'
14320 else
14321 as_fn_arith ()
14322 {
14323 as_val=`expr "$@" || test $? -eq 1`
14324 }
14325 fi # as_fn_arith
14326
14327
14328 if expr a : '\(a\)' >/dev/null 2>&1 &&
14329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14330 as_expr=expr
14331 else
14332 as_expr=false
14333 fi
14334
14335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14336 as_basename=basename
14337 else
14338 as_basename=false
14339 fi
14340
14341 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14342 as_dirname=dirname
14343 else
14344 as_dirname=false
14345 fi
14346
14347 as_me=`$as_basename -- "$0" ||
14348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14349 X"$0" : 'X\(//\)$' \| \
14350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14351 $as_echo X/"$0" |
14352 sed '/^.*\/\([^/][^/]*\)\/*$/{
14353 s//\1/
14354 q
14355 }
14356 /^X\/\(\/\/\)$/{
14357 s//\1/
14358 q
14359 }
14360 /^X\/\(\/\).*/{
14361 s//\1/
14362 q
14363 }
14364 s/.*/./; q'`
14365
14366 # Avoid depending upon Character Ranges.
14367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14370 as_cr_digits='0123456789'
14371 as_cr_alnum=$as_cr_Letters$as_cr_digits
14372
14373 ECHO_C= ECHO_N= ECHO_T=
14374 case `echo -n x` in #(((((
14375 -n*)
14376 case `echo 'xy\c'` in
14377 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14378 xy) ECHO_C='\c';;
14379 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14380 ECHO_T=' ';;
14381 esac;;
14382 *)
14383 ECHO_N='-n';;
14384 esac
14385
14386 rm -f conf$$ conf$$.exe conf$$.file
14387 if test -d conf$$.dir; then
14388 rm -f conf$$.dir/conf$$.file
14389 else
14390 rm -f conf$$.dir
14391 mkdir conf$$.dir 2>/dev/null
14392 fi
14393 if (echo >conf$$.file) 2>/dev/null; then
14394 if ln -s conf$$.file conf$$ 2>/dev/null; then
14395 as_ln_s='ln -s'
14396 # ... but there are two gotchas:
14397 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14398 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14399 # In both cases, we have to default to `cp -pR'.
14400 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14401 as_ln_s='cp -pR'
14402 elif ln conf$$.file conf$$ 2>/dev/null; then
14403 as_ln_s=ln
14404 else
14405 as_ln_s='cp -pR'
14406 fi
14407 else
14408 as_ln_s='cp -pR'
14409 fi
14410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14411 rmdir conf$$.dir 2>/dev/null
14412
14413
14414 # as_fn_mkdir_p
14415 # -------------
14416 # Create "$as_dir" as a directory, including parents if necessary.
14417 as_fn_mkdir_p ()
14418 {
14419
14420 case $as_dir in #(
14421 -*) as_dir=./$as_dir;;
14422 esac
14423 test -d "$as_dir" || eval $as_mkdir_p || {
14424 as_dirs=
14425 while :; do
14426 case $as_dir in #(
14427 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14428 *) as_qdir=$as_dir;;
14429 esac
14430 as_dirs="'$as_qdir' $as_dirs"
14431 as_dir=`$as_dirname -- "$as_dir" ||
14432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14433 X"$as_dir" : 'X\(//\)[^/]' \| \
14434 X"$as_dir" : 'X\(//\)$' \| \
14435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14436 $as_echo X"$as_dir" |
14437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14438 s//\1/
14439 q
14440 }
14441 /^X\(\/\/\)[^/].*/{
14442 s//\1/
14443 q
14444 }
14445 /^X\(\/\/\)$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\(\/\).*/{
14450 s//\1/
14451 q
14452 }
14453 s/.*/./; q'`
14454 test -d "$as_dir" && break
14455 done
14456 test -z "$as_dirs" || eval "mkdir $as_dirs"
14457 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14458
14459
14460 } # as_fn_mkdir_p
14461 if mkdir -p . 2>/dev/null; then
14462 as_mkdir_p='mkdir -p "$as_dir"'
14463 else
14464 test -d ./-p && rmdir ./-p
14465 as_mkdir_p=false
14466 fi
14467
14468
14469 # as_fn_executable_p FILE
14470 # -----------------------
14471 # Test if FILE is an executable regular file.
14472 as_fn_executable_p ()
14473 {
14474 test -f "$1" && test -x "$1"
14475 } # as_fn_executable_p
14476 as_test_x='test -x'
14477 as_executable_p=as_fn_executable_p
14478
14479 # Sed expression to map a string onto a valid CPP name.
14480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14481
14482 # Sed expression to map a string onto a valid variable name.
14483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14484
14485
14486 exec 6>&1
14487 ## ----------------------------------- ##
14488 ## Main body of $CONFIG_STATUS script. ##
14489 ## ----------------------------------- ##
14490 _ASEOF
14491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14492
14493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14494 # Save the log message, to keep $0 and so on meaningful, and to
14495 # report actual input values of CONFIG_FILES etc. instead of their
14496 # values after options handling.
14497 ac_log="
14498 This file was extended by libbdplus $as_me 0.2.0, which was
14499 generated by GNU Autoconf 2.69. Invocation command line was
14500
14501 CONFIG_FILES = $CONFIG_FILES
14502 CONFIG_HEADERS = $CONFIG_HEADERS
14503 CONFIG_LINKS = $CONFIG_LINKS
14504 CONFIG_COMMANDS = $CONFIG_COMMANDS
14505 $ $0 $@
14506
14507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14508 "
14509
14510 _ACEOF
14511
14512 case $ac_config_files in *"
14513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14514 esac
14515
14516 case $ac_config_headers in *"
14517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14518 esac
14519
14520
14521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14522 # Files that config.status was made for.
14523 config_files="$ac_config_files"
14524 config_headers="$ac_config_headers"
14525 config_commands="$ac_config_commands"
14526
14527 _ACEOF
14528
14529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 ac_cs_usage="\
14531 \`$as_me' instantiates files and other configuration actions
14532 from templates according to the current configuration. Unless the files
14533 and actions are specified as TAGs, all are instantiated by default.
14534
14535 Usage: $0 [OPTION]... [TAG]...
14536
14537 -h, --help print this help, then exit
14538 -V, --version print version number and configuration settings, then exit
14539 --config print configuration, then exit
14540 -q, --quiet, --silent
14541 do not print progress messages
14542 -d, --debug don't remove temporary files
14543 --recheck update $as_me by reconfiguring in the same conditions
14544 --file=FILE[:TEMPLATE]
14545 instantiate the configuration file FILE
14546 --header=FILE[:TEMPLATE]
14547 instantiate the configuration header FILE
14548
14549 Configuration files:
14550 $config_files
14551
14552 Configuration headers:
14553 $config_headers
14554
14555 Configuration commands:
14556 $config_commands
14557
14558 Report bugs to <http://www.videolan.org/developers/libbdplus.html>."
14559
14560 _ACEOF
14561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14563 ac_cs_version="\\
14564 libbdplus config.status 0.2.0
14565 configured by $0, generated by GNU Autoconf 2.69,
14566 with options \\"\$ac_cs_config\\"
14567
14568 Copyright (C) 2012 Free Software Foundation, Inc.
14569 This config.status script is free software; the Free Software Foundation
14570 gives unlimited permission to copy, distribute and modify it."
14571
14572 ac_pwd='$ac_pwd'
14573 srcdir='$srcdir'
14574 INSTALL='$INSTALL'
14575 MKDIR_P='$MKDIR_P'
14576 AWK='$AWK'
14577 test -n "\$AWK" || AWK=awk
14578 _ACEOF
14579
14580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14581 # The default lists apply if the user does not specify any file.
14582 ac_need_defaults=:
14583 while test $# != 0
14584 do
14585 case $1 in
14586 --*=?*)
14587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14589 ac_shift=:
14590 ;;
14591 --*=)
14592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14593 ac_optarg=
14594 ac_shift=:
14595 ;;
14596 *)
14597 ac_option=$1
14598 ac_optarg=$2
14599 ac_shift=shift
14600 ;;
14601 esac
14602
14603 case $ac_option in
14604 # Handling of the options.
14605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14606 ac_cs_recheck=: ;;
14607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14608 $as_echo "$ac_cs_version"; exit ;;
14609 --config | --confi | --conf | --con | --co | --c )
14610 $as_echo "$ac_cs_config"; exit ;;
14611 --debug | --debu | --deb | --de | --d | -d )
14612 debug=: ;;
14613 --file | --fil | --fi | --f )
14614 $ac_shift
14615 case $ac_optarg in
14616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14617 '') as_fn_error $? "missing file argument" ;;
14618 esac
14619 as_fn_append CONFIG_FILES " '$ac_optarg'"
14620 ac_need_defaults=false;;
14621 --header | --heade | --head | --hea )
14622 $ac_shift
14623 case $ac_optarg in
14624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14625 esac
14626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14627 ac_need_defaults=false;;
14628 --he | --h)
14629 # Conflict between --help and --header
14630 as_fn_error $? "ambiguous option: \`$1'
14631 Try \`$0 --help' for more information.";;
14632 --help | --hel | -h )
14633 $as_echo "$ac_cs_usage"; exit ;;
14634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14636 ac_cs_silent=: ;;
14637
14638 # This is an error.
14639 -*) as_fn_error $? "unrecognized option: \`$1'
14640 Try \`$0 --help' for more information." ;;
14641
14642 *) as_fn_append ac_config_targets " $1"
14643 ac_need_defaults=false ;;
14644
14645 esac
14646 shift
14647 done
14648
14649 ac_configure_extra_args=
14650
14651 if $ac_cs_silent; then
14652 exec 6>/dev/null
14653 ac_configure_extra_args="$ac_configure_extra_args --silent"
14654 fi
14655
14656 _ACEOF
14657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14658 if \$ac_cs_recheck; then
14659 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14660 shift
14661 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14662 CONFIG_SHELL='$SHELL'
14663 export CONFIG_SHELL
14664 exec "\$@"
14665 fi
14666
14667 _ACEOF
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 exec 5>>config.log
14670 {
14671 echo
14672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14673 ## Running $as_me. ##
14674 _ASBOX
14675 $as_echo "$ac_log"
14676 } >&5
14677
14678 _ACEOF
14679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14680 #
14681 # INIT-COMMANDS
14682 #
14683 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14684
14685
14686 # The HP-UX ksh and POSIX shell print the target directory to stdout
14687 # if CDPATH is set.
14688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14689
14690 sed_quote_subst='$sed_quote_subst'
14691 double_quote_subst='$double_quote_subst'
14692 delay_variable_subst='$delay_variable_subst'
14693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14699 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14700 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14701 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14702 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14703 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14704 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14705 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14706 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14707 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14708 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14709 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14710 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14711 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14712 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14713 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14714 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14715 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14716 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14717 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14718 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14719 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14720 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14721 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14722 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14723 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14724 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14725 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14726 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14727 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14728 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14729 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14730 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14731 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14732 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14733 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14734 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14735 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14736 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14737 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14738 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14739 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14740 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14741 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14742 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14743 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14744 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14745 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14746 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14747 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14748 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14749 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14750 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14751 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"`'
14752 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14755 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14756 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14757 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14758 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14760 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14761 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14762 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14763 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14764 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14765 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14766 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14767 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14768 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14769 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14770 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14771 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14772 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14773 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14774 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14775 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14776 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14777 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14778 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14779 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14780 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14781 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14782 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14783 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14784 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14785 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14786 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14787 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14788 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14789 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14790 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14791 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14792 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14793 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14794 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14795 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14801 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14802 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14803 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14804 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14805 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14806 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14807 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14808 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14809 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14810 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14811 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14812 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14813 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14814 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14815 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14816 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14817 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14818 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14819 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14820 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14821 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14822 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14823 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14824 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14825 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14826 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14827 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14828 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14829
14830 LTCC='$LTCC'
14831 LTCFLAGS='$LTCFLAGS'
14832 compiler='$compiler_DEFAULT'
14833
14834 # A function that is used when there is no print builtin or printf.
14835 func_fallback_echo ()
14836 {
14837 eval 'cat <<_LTECHO_EOF
14838 \$1
14839 _LTECHO_EOF'
14840 }
14841
14842 # Quote evaled strings.
14843 for var in SHELL \
14844 ECHO \
14845 PATH_SEPARATOR \
14846 SED \
14847 GREP \
14848 EGREP \
14849 FGREP \
14850 LD \
14851 NM \
14852 LN_S \
14853 lt_SP2NL \
14854 lt_NL2SP \
14855 reload_flag \
14856 OBJDUMP \
14857 deplibs_check_method \
14858 file_magic_cmd \
14859 file_magic_glob \
14860 want_nocaseglob \
14861 DLLTOOL \
14862 sharedlib_from_linklib_cmd \
14863 AR \
14864 AR_FLAGS \
14865 archiver_list_spec \
14866 STRIP \
14867 RANLIB \
14868 CC \
14869 CFLAGS \
14870 compiler \
14871 lt_cv_sys_global_symbol_pipe \
14872 lt_cv_sys_global_symbol_to_cdecl \
14873 lt_cv_sys_global_symbol_to_import \
14874 lt_cv_sys_global_symbol_to_c_name_address \
14875 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14876 lt_cv_nm_interface \
14877 nm_file_list_spec \
14878 lt_cv_truncate_bin \
14879 lt_prog_compiler_no_builtin_flag \
14880 lt_prog_compiler_pic \
14881 lt_prog_compiler_wl \
14882 lt_prog_compiler_static \
14883 lt_cv_prog_compiler_c_o \
14884 need_locks \
14885 MANIFEST_TOOL \
14886 DSYMUTIL \
14887 NMEDIT \
14888 LIPO \
14889 OTOOL \
14890 OTOOL64 \
14891 shrext_cmds \
14892 export_dynamic_flag_spec \
14893 whole_archive_flag_spec \
14894 compiler_needs_object \
14895 with_gnu_ld \
14896 allow_undefined_flag \
14897 no_undefined_flag \
14898 hardcode_libdir_flag_spec \
14899 hardcode_libdir_separator \
14900 exclude_expsyms \
14901 include_expsyms \
14902 file_list_spec \
14903 variables_saved_for_relink \
14904 libname_spec \
14905 library_names_spec \
14906 soname_spec \
14907 install_override_mode \
14908 finish_eval \
14909 old_striplib \
14910 striplib \
14911 AS; do
14912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14913 *[\\\\\\\`\\"\\\$]*)
14914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14915 ;;
14916 *)
14917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14918 ;;
14919 esac
14920 done
14921
14922 # Double-quote double-evaled strings.
14923 for var in reload_cmds \
14924 old_postinstall_cmds \
14925 old_postuninstall_cmds \
14926 old_archive_cmds \
14927 extract_expsyms_cmds \
14928 old_archive_from_new_cmds \
14929 old_archive_from_expsyms_cmds \
14930 archive_cmds \
14931 archive_expsym_cmds \
14932 module_cmds \
14933 module_expsym_cmds \
14934 export_symbols_cmds \
14935 prelink_cmds \
14936 postlink_cmds \
14937 postinstall_cmds \
14938 postuninstall_cmds \
14939 finish_cmds \
14940 sys_lib_search_path_spec \
14941 configure_time_dlsearch_path \
14942 configure_time_lt_sys_library_path; do
14943 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14944 *[\\\\\\\`\\"\\\$]*)
14945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14946 ;;
14947 *)
14948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14949 ;;
14950 esac
14951 done
14952
14953 ac_aux_dir='$ac_aux_dir'
14954
14955 # See if we are running on zsh, and set the options that allow our
14956 # commands through without removal of \ escapes INIT.
14957 if test -n "\${ZSH_VERSION+set}"; then
14958 setopt NO_GLOB_SUBST
14959 fi
14960
14961
14962 PACKAGE='$PACKAGE'
14963 VERSION='$VERSION'
14964 RM='$RM'
14965 ofile='$ofile'
14966
14967
14968
14969
14970 _ACEOF
14971
14972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14973
14974 # Handling of arguments.
14975 for ac_config_target in $ac_config_targets
14976 do
14977 case $ac_config_target in
14978 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14979 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14980 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14981 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14982 "src/libbdplus.pc") CONFIG_FILES="$CONFIG_FILES src/libbdplus.pc" ;;
14983 "src/libbdplus/bdplus-version.h") CONFIG_FILES="$CONFIG_FILES src/libbdplus/bdplus-version.h" ;;
14984
14985 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14986 esac
14987 done
14988
14989
14990 # If the user did not use the arguments to specify the items to instantiate,
14991 # then the envvar interface is used. Set only those that are not.
14992 # We use the long form for the default assignment because of an extremely
14993 # bizarre bug on SunOS 4.1.3.
14994 if $ac_need_defaults; then
14995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14998 fi
14999
15000 # Have a temporary directory for convenience. Make it in the build tree
15001 # simply because there is no reason against having it here, and in addition,
15002 # creating and moving files from /tmp can sometimes cause problems.
15003 # Hook for its removal unless debugging.
15004 # Note that there is a small window in which the directory will not be cleaned:
15005 # after its creation but before its name has been assigned to `$tmp'.
15006 $debug ||
15007 {
15008 tmp= ac_tmp=
15009 trap 'exit_status=$?
15010 : "${ac_tmp:=$tmp}"
15011 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15012 ' 0
15013 trap 'as_fn_exit 1' 1 2 13 15
15014 }
15015 # Create a (secure) tmp directory for tmp files.
15016
15017 {
15018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15019 test -d "$tmp"
15020 } ||
15021 {
15022 tmp=./conf$$-$RANDOM
15023 (umask 077 && mkdir "$tmp")
15024 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15025 ac_tmp=$tmp
15026
15027 # Set up the scripts for CONFIG_FILES section.
15028 # No need to generate them if there are no CONFIG_FILES.
15029 # This happens for instance with `./config.status config.h'.
15030 if test -n "$CONFIG_FILES"; then
15031
15032
15033 ac_cr=`echo X | tr X '\015'`
15034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15035 # But we know of no other shell where ac_cr would be empty at this
15036 # point, so we can use a bashism as a fallback.
15037 if test "x$ac_cr" = x; then
15038 eval ac_cr=\$\'\\r\'
15039 fi
15040 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15042 ac_cs_awk_cr='\\r'
15043 else
15044 ac_cs_awk_cr=$ac_cr
15045 fi
15046
15047 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15048 _ACEOF
15049
15050
15051 {
15052 echo "cat >conf$$subs.awk <<_ACEOF" &&
15053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15054 echo "_ACEOF"
15055 } >conf$$subs.sh ||
15056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15057 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15058 ac_delim='%!_!# '
15059 for ac_last_try in false false false false false :; do
15060 . ./conf$$subs.sh ||
15061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15062
15063 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15064 if test $ac_delim_n = $ac_delim_num; then
15065 break
15066 elif $ac_last_try; then
15067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15068 else
15069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15070 fi
15071 done
15072 rm -f conf$$subs.sh
15073
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15076 _ACEOF
15077 sed -n '
15078 h
15079 s/^/S["/; s/!.*/"]=/
15080 p
15081 g
15082 s/^[^!]*!//
15083 :repl
15084 t repl
15085 s/'"$ac_delim"'$//
15086 t delim
15087 :nl
15088 h
15089 s/\(.\{148\}\)..*/\1/
15090 t more1
15091 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15092 p
15093 n
15094 b repl
15095 :more1
15096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15097 p
15098 g
15099 s/.\{148\}//
15100 t nl
15101 :delim
15102 h
15103 s/\(.\{148\}\)..*/\1/
15104 t more2
15105 s/["\\]/\\&/g; s/^/"/; s/$/"/
15106 p
15107 b
15108 :more2
15109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15110 p
15111 g
15112 s/.\{148\}//
15113 t delim
15114 ' <conf$$subs.awk | sed '
15115 /^[^""]/{
15116 N
15117 s/\n//
15118 }
15119 ' >>$CONFIG_STATUS || ac_write_fail=1
15120 rm -f conf$$subs.awk
15121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15122 _ACAWK
15123 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15124 for (key in S) S_is_set[key] = 1
15125 FS = ""
15126
15127 }
15128 {
15129 line = $ 0
15130 nfields = split(line, field, "@")
15131 substed = 0
15132 len = length(field[1])
15133 for (i = 2; i < nfields; i++) {
15134 key = field[i]
15135 keylen = length(key)
15136 if (S_is_set[key]) {
15137 value = S[key]
15138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15139 len += length(value) + length(field[++i])
15140 substed = 1
15141 } else
15142 len += 1 + keylen
15143 }
15144
15145 print line
15146 }
15147
15148 _ACAWK
15149 _ACEOF
15150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15151 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15152 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15153 else
15154 cat
15155 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15156 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15157 _ACEOF
15158
15159 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15160 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15161 # trailing colons and then remove the whole line if VPATH becomes empty
15162 # (actually we leave an empty line to preserve line numbers).
15163 if test "x$srcdir" = x.; then
15164 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15165 h
15166 s///
15167 s/^/:/
15168 s/[ ]*$/:/
15169 s/:\$(srcdir):/:/g
15170 s/:\${srcdir}:/:/g
15171 s/:@srcdir@:/:/g
15172 s/^:*//
15173 s/:*$//
15174 x
15175 s/\(=[ ]*\).*/\1/
15176 G
15177 s/\n//
15178 s/^[^=]*=[ ]*$//
15179 }'
15180 fi
15181
15182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15183 fi # test -n "$CONFIG_FILES"
15184
15185 # Set up the scripts for CONFIG_HEADERS section.
15186 # No need to generate them if there are no CONFIG_HEADERS.
15187 # This happens for instance with `./config.status Makefile'.
15188 if test -n "$CONFIG_HEADERS"; then
15189 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15190 BEGIN {
15191 _ACEOF
15192
15193 # Transform confdefs.h into an awk script `defines.awk', embedded as
15194 # here-document in config.status, that substitutes the proper values into
15195 # config.h.in to produce config.h.
15196
15197 # Create a delimiter string that does not exist in confdefs.h, to ease
15198 # handling of long lines.
15199 ac_delim='%!_!# '
15200 for ac_last_try in false false :; do
15201 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15202 if test -z "$ac_tt"; then
15203 break
15204 elif $ac_last_try; then
15205 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15206 else
15207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15208 fi
15209 done
15210
15211 # For the awk script, D is an array of macro values keyed by name,
15212 # likewise P contains macro parameters if any. Preserve backslash
15213 # newline sequences.
15214
15215 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15216 sed -n '
15217 s/.\{148\}/&'"$ac_delim"'/g
15218 t rset
15219 :rset
15220 s/^[ ]*#[ ]*define[ ][ ]*/ /
15221 t def
15222 d
15223 :def
15224 s/\\$//
15225 t bsnl
15226 s/["\\]/\\&/g
15227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15228 D["\1"]=" \3"/p
15229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15230 d
15231 :bsnl
15232 s/["\\]/\\&/g
15233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15234 D["\1"]=" \3\\\\\\n"\\/p
15235 t cont
15236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15237 t cont
15238 d
15239 :cont
15240 n
15241 s/.\{148\}/&'"$ac_delim"'/g
15242 t clear
15243 :clear
15244 s/\\$//
15245 t bsnlc
15246 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15247 d
15248 :bsnlc
15249 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15250 b cont
15251 ' <confdefs.h | sed '
15252 s/'"$ac_delim"'/"\\\
15253 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15254
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 for (key in D) D_is_set[key] = 1
15257 FS = ""
15258 }
15259 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15260 line = \$ 0
15261 split(line, arg, " ")
15262 if (arg[1] == "#") {
15263 defundef = arg[2]
15264 mac1 = arg[3]
15265 } else {
15266 defundef = substr(arg[1], 2)
15267 mac1 = arg[2]
15268 }
15269 split(mac1, mac2, "(") #)
15270 macro = mac2[1]
15271 prefix = substr(line, 1, index(line, defundef) - 1)
15272 if (D_is_set[macro]) {
15273 # Preserve the white space surrounding the "#".
15274 print prefix "define", macro P[macro] D[macro]
15275 next
15276 } else {
15277 # Replace #undef with comments. This is necessary, for example,
15278 # in the case of _POSIX_SOURCE, which is predefined and required
15279 # on some systems where configure will not decide to define it.
15280 if (defundef == "undef") {
15281 print "/*", prefix defundef, macro, "*/"
15282 next
15283 }
15284 }
15285 }
15286 { print }
15287 _ACAWK
15288 _ACEOF
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15291 fi # test -n "$CONFIG_HEADERS"
15292
15293
15294 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15295 shift
15296 for ac_tag
15297 do
15298 case $ac_tag in
15299 :[FHLC]) ac_mode=$ac_tag; continue;;
15300 esac
15301 case $ac_mode$ac_tag in
15302 :[FHL]*:*);;
15303 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15304 :[FH]-) ac_tag=-:-;;
15305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15306 esac
15307 ac_save_IFS=$IFS
15308 IFS=:
15309 set x $ac_tag
15310 IFS=$ac_save_IFS
15311 shift
15312 ac_file=$1
15313 shift
15314
15315 case $ac_mode in
15316 :L) ac_source=$1;;
15317 :[FH])
15318 ac_file_inputs=
15319 for ac_f
15320 do
15321 case $ac_f in
15322 -) ac_f="$ac_tmp/stdin";;
15323 *) # Look for the file first in the build tree, then in the source tree
15324 # (if the path is not absolute). The absolute path cannot be DOS-style,
15325 # because $ac_f cannot contain `:'.
15326 test -f "$ac_f" ||
15327 case $ac_f in
15328 [\\/$]*) false;;
15329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15330 esac ||
15331 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15332 esac
15333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15334 as_fn_append ac_file_inputs " '$ac_f'"
15335 done
15336
15337 # Let's still pretend it is `configure' which instantiates (i.e., don't
15338 # use $as_me), people would be surprised to read:
15339 # /* config.h. Generated by config.status. */
15340 configure_input='Generated from '`
15341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15342 `' by configure.'
15343 if test x"$ac_file" != x-; then
15344 configure_input="$ac_file. $configure_input"
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15346 $as_echo "$as_me: creating $ac_file" >&6;}
15347 fi
15348 # Neutralize special characters interpreted by sed in replacement strings.
15349 case $configure_input in #(
15350 *\&* | *\|* | *\\* )
15351 ac_sed_conf_input=`$as_echo "$configure_input" |
15352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15353 *) ac_sed_conf_input=$configure_input;;
15354 esac
15355
15356 case $ac_tag in
15357 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15359 esac
15360 ;;
15361 esac
15362
15363 ac_dir=`$as_dirname -- "$ac_file" ||
15364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15365 X"$ac_file" : 'X\(//\)[^/]' \| \
15366 X"$ac_file" : 'X\(//\)$' \| \
15367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15368 $as_echo X"$ac_file" |
15369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\/\)[^/].*/{
15374 s//\1/
15375 q
15376 }
15377 /^X\(\/\/\)$/{
15378 s//\1/
15379 q
15380 }
15381 /^X\(\/\).*/{
15382 s//\1/
15383 q
15384 }
15385 s/.*/./; q'`
15386 as_dir="$ac_dir"; as_fn_mkdir_p
15387 ac_builddir=.
15388
15389 case "$ac_dir" in
15390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15391 *)
15392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15393 # A ".." for each directory in $ac_dir_suffix.
15394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15395 case $ac_top_builddir_sub in
15396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15398 esac ;;
15399 esac
15400 ac_abs_top_builddir=$ac_pwd
15401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15402 # for backward compatibility:
15403 ac_top_builddir=$ac_top_build_prefix
15404
15405 case $srcdir in
15406 .) # We are building in place.
15407 ac_srcdir=.
15408 ac_top_srcdir=$ac_top_builddir_sub
15409 ac_abs_top_srcdir=$ac_pwd ;;
15410 [\\/]* | ?:[\\/]* ) # Absolute name.
15411 ac_srcdir=$srcdir$ac_dir_suffix;
15412 ac_top_srcdir=$srcdir
15413 ac_abs_top_srcdir=$srcdir ;;
15414 *) # Relative name.
15415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15416 ac_top_srcdir=$ac_top_build_prefix$srcdir
15417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15418 esac
15419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15420
15421
15422 case $ac_mode in
15423 :F)
15424 #
15425 # CONFIG_FILE
15426 #
15427
15428 case $INSTALL in
15429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15431 esac
15432 ac_MKDIR_P=$MKDIR_P
15433 case $MKDIR_P in
15434 [\\/$]* | ?:[\\/]* ) ;;
15435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15436 esac
15437 _ACEOF
15438
15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15440 # If the template does not know about datarootdir, expand it.
15441 # FIXME: This hack should be removed a few years after 2.60.
15442 ac_datarootdir_hack=; ac_datarootdir_seen=
15443 ac_sed_dataroot='
15444 /datarootdir/ {
15445 p
15446 q
15447 }
15448 /@datadir@/p
15449 /@docdir@/p
15450 /@infodir@/p
15451 /@localedir@/p
15452 /@mandir@/p'
15453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15454 *datarootdir*) ac_datarootdir_seen=yes;;
15455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15458 _ACEOF
15459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 ac_datarootdir_hack='
15461 s&@datadir@&$datadir&g
15462 s&@docdir@&$docdir&g
15463 s&@infodir@&$infodir&g
15464 s&@localedir@&$localedir&g
15465 s&@mandir@&$mandir&g
15466 s&\\\${datarootdir}&$datarootdir&g' ;;
15467 esac
15468 _ACEOF
15469
15470 # Neutralize VPATH when `$srcdir' = `.'.
15471 # Shell code in configure.ac might set extrasub.
15472 # FIXME: do we really want to maintain this feature?
15473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15474 ac_sed_extra="$ac_vpsub
15475 $extrasub
15476 _ACEOF
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 :t
15479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15480 s|@configure_input@|$ac_sed_conf_input|;t t
15481 s&@top_builddir@&$ac_top_builddir_sub&;t t
15482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15483 s&@srcdir@&$ac_srcdir&;t t
15484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15485 s&@top_srcdir@&$ac_top_srcdir&;t t
15486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15487 s&@builddir@&$ac_builddir&;t t
15488 s&@abs_builddir@&$ac_abs_builddir&;t t
15489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15490 s&@INSTALL@&$ac_INSTALL&;t t
15491 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15492 $ac_datarootdir_hack
15493 "
15494 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15495 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15496
15497 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15498 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15500 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15502 which seems to be undefined. Please make sure it is defined" >&5
15503 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15504 which seems to be undefined. Please make sure it is defined" >&2;}
15505
15506 rm -f "$ac_tmp/stdin"
15507 case $ac_file in
15508 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15509 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15510 esac \
15511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15512 ;;
15513 :H)
15514 #
15515 # CONFIG_HEADER
15516 #
15517 if test x"$ac_file" != x-; then
15518 {
15519 $as_echo "/* $configure_input */" \
15520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15521 } >"$ac_tmp/config.h" \
15522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15523 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15525 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15526 else
15527 rm -f "$ac_file"
15528 mv "$ac_tmp/config.h" "$ac_file" \
15529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15530 fi
15531 else
15532 $as_echo "/* $configure_input */" \
15533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15534 || as_fn_error $? "could not create -" "$LINENO" 5
15535 fi
15536 # Compute "$ac_file"'s index in $config_headers.
15537 _am_arg="$ac_file"
15538 _am_stamp_count=1
15539 for _am_header in $config_headers :; do
15540 case $_am_header in
15541 $_am_arg | $_am_arg:* )
15542 break ;;
15543 * )
15544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15545 esac
15546 done
15547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15549 X"$_am_arg" : 'X\(//\)[^/]' \| \
15550 X"$_am_arg" : 'X\(//\)$' \| \
15551 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15552 $as_echo X"$_am_arg" |
15553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15554 s//\1/
15555 q
15556 }
15557 /^X\(\/\/\)[^/].*/{
15558 s//\1/
15559 q
15560 }
15561 /^X\(\/\/\)$/{
15562 s//\1/
15563 q
15564 }
15565 /^X\(\/\).*/{
15566 s//\1/
15567 q
15568 }
15569 s/.*/./; q'`/stamp-h$_am_stamp_count
15570 ;;
15571
15572 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15573 $as_echo "$as_me: executing $ac_file commands" >&6;}
15574 ;;
15575 esac
15576
15577
15578 case $ac_file$ac_mode in
15579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15580 # Older Autoconf quotes --file arguments for eval, but not when files
15581 # are listed without --file. Let's play safe and only enable the eval
15582 # if we detect the quoting.
15583 # TODO: see whether this extra hack can be removed once we start
15584 # requiring Autoconf 2.70 or later.
15585 case $CONFIG_FILES in #(
15586 *\'*) :
15587 eval set x "$CONFIG_FILES" ;; #(
15588 *) :
15589 set x $CONFIG_FILES ;; #(
15590 *) :
15591 ;;
15592 esac
15593 shift
15594 # Used to flag and report bootstrapping failures.
15595 am_rc=0
15596 for am_mf
15597 do
15598 # Strip MF so we end up with the name of the file.
15599 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15600 # Check whether this is an Automake generated Makefile which includes
15601 # dependency-tracking related rules and includes.
15602 # Grep'ing the whole file directly is not great: AIX grep has a line
15603 # limit of 2048, but all sed's we know have understand at least 4000.
15604 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15605 || continue
15606 am_dirpart=`$as_dirname -- "$am_mf" ||
15607 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15608 X"$am_mf" : 'X\(//\)[^/]' \| \
15609 X"$am_mf" : 'X\(//\)$' \| \
15610 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15611 $as_echo X"$am_mf" |
15612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15613 s//\1/
15614 q
15615 }
15616 /^X\(\/\/\)[^/].*/{
15617 s//\1/
15618 q
15619 }
15620 /^X\(\/\/\)$/{
15621 s//\1/
15622 q
15623 }
15624 /^X\(\/\).*/{
15625 s//\1/
15626 q
15627 }
15628 s/.*/./; q'`
15629 am_filepart=`$as_basename -- "$am_mf" ||
15630 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15631 X"$am_mf" : 'X\(//\)$' \| \
15632 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X/"$am_mf" |
15634 sed '/^.*\/\([^/][^/]*\)\/*$/{
15635 s//\1/
15636 q
15637 }
15638 /^X\/\(\/\/\)$/{
15639 s//\1/
15640 q
15641 }
15642 /^X\/\(\/\).*/{
15643 s//\1/
15644 q
15645 }
15646 s/.*/./; q'`
15647 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15648 && sed -e '/# am--include-marker/d' "$am_filepart" \
15649 | $MAKE -f - am--depfiles" >&5
15650 (cd "$am_dirpart" \
15651 && sed -e '/# am--include-marker/d' "$am_filepart" \
15652 | $MAKE -f - am--depfiles) >&5 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } || am_rc=$?
15656 done
15657 if test $am_rc -ne 0; then
15658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15660 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15661 for automatic dependency tracking. If GNU make was not used, consider
15662 re-running the configure script with MAKE=\"gmake\" (or whatever is
15663 necessary). You can also try re-running configure with the
15664 '--disable-dependency-tracking' option to at least be able to build
15665 the package (albeit without support for automatic dependency tracking).
15666 See \`config.log' for more details" "$LINENO" 5; }
15667 fi
15668 { am_dirpart=; unset am_dirpart;}
15669 { am_filepart=; unset am_filepart;}
15670 { am_mf=; unset am_mf;}
15671 { am_rc=; unset am_rc;}
15672 rm -f conftest-deps.mk
15673 }
15674 ;;
15675 "libtool":C)
15676
15677 # See if we are running on zsh, and set the options that allow our
15678 # commands through without removal of \ escapes.
15679 if test -n "${ZSH_VERSION+set}"; then
15680 setopt NO_GLOB_SUBST
15681 fi
15682
15683 cfgfile=${ofile}T
15684 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15685 $RM "$cfgfile"
15686
15687 cat <<_LT_EOF >> "$cfgfile"
15688 #! $SHELL
15689 # Generated automatically by $as_me ($PACKAGE) $VERSION
15690 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15691
15692 # Provide generalized library-building support services.
15693 # Written by Gordon Matzigkeit, 1996
15694
15695 # Copyright (C) 2014 Free Software Foundation, Inc.
15696 # This is free software; see the source for copying conditions. There is NO
15697 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15698
15699 # GNU Libtool is free software; you can redistribute it and/or modify
15700 # it under the terms of the GNU General Public License as published by
15701 # the Free Software Foundation; either version 2 of of the License, or
15702 # (at your option) any later version.
15703 #
15704 # As a special exception to the GNU General Public License, if you
15705 # distribute this file as part of a program or library that is built
15706 # using GNU Libtool, you may include this file under the same
15707 # distribution terms that you use for the rest of that program.
15708 #
15709 # GNU Libtool is distributed in the hope that it will be useful, but
15710 # WITHOUT ANY WARRANTY; without even the implied warranty of
15711 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15712 # GNU General Public License for more details.
15713 #
15714 # You should have received a copy of the GNU General Public License
15715 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15716
15717
15718 # The names of the tagged configurations supported by this script.
15719 available_tags=''
15720
15721 # Configured defaults for sys_lib_dlsearch_path munging.
15722 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15723
15724 # ### BEGIN LIBTOOL CONFIG
15725
15726 # Which release of libtool.m4 was used?
15727 macro_version=$macro_version
15728 macro_revision=$macro_revision
15729
15730 # Whether or not to build shared libraries.
15731 build_libtool_libs=$enable_shared
15732
15733 # Whether or not to build static libraries.
15734 build_old_libs=$enable_static
15735
15736 # What type of objects to build.
15737 pic_mode=$pic_mode
15738
15739 # Whether or not to optimize for fast installation.
15740 fast_install=$enable_fast_install
15741
15742 # Shared archive member basename,for filename based shared library versioning on AIX.
15743 shared_archive_member_spec=$shared_archive_member_spec
15744
15745 # Shell to use when invoking shell scripts.
15746 SHELL=$lt_SHELL
15747
15748 # An echo program that protects backslashes.
15749 ECHO=$lt_ECHO
15750
15751 # The PATH separator for the build system.
15752 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15753
15754 # The host system.
15755 host_alias=$host_alias
15756 host=$host
15757 host_os=$host_os
15758
15759 # The build system.
15760 build_alias=$build_alias
15761 build=$build
15762 build_os=$build_os
15763
15764 # A sed program that does not truncate output.
15765 SED=$lt_SED
15766
15767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15768 Xsed="\$SED -e 1s/^X//"
15769
15770 # A grep program that handles long lines.
15771 GREP=$lt_GREP
15772
15773 # An ERE matcher.
15774 EGREP=$lt_EGREP
15775
15776 # A literal string matcher.
15777 FGREP=$lt_FGREP
15778
15779 # A BSD- or MS-compatible name lister.
15780 NM=$lt_NM
15781
15782 # Whether we need soft or hard links.
15783 LN_S=$lt_LN_S
15784
15785 # What is the maximum length of a command?
15786 max_cmd_len=$max_cmd_len
15787
15788 # Object file suffix (normally "o").
15789 objext=$ac_objext
15790
15791 # Executable file suffix (normally "").
15792 exeext=$exeext
15793
15794 # whether the shell understands "unset".
15795 lt_unset=$lt_unset
15796
15797 # turn spaces into newlines.
15798 SP2NL=$lt_lt_SP2NL
15799
15800 # turn newlines into spaces.
15801 NL2SP=$lt_lt_NL2SP
15802
15803 # convert \$build file names to \$host format.
15804 to_host_file_cmd=$lt_cv_to_host_file_cmd
15805
15806 # convert \$build files to toolchain format.
15807 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15808
15809 # An object symbol dumper.
15810 OBJDUMP=$lt_OBJDUMP
15811
15812 # Method to check whether dependent libraries are shared objects.
15813 deplibs_check_method=$lt_deplibs_check_method
15814
15815 # Command to use when deplibs_check_method = "file_magic".
15816 file_magic_cmd=$lt_file_magic_cmd
15817
15818 # How to find potential files when deplibs_check_method = "file_magic".
15819 file_magic_glob=$lt_file_magic_glob
15820
15821 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15822 want_nocaseglob=$lt_want_nocaseglob
15823
15824 # DLL creation program.
15825 DLLTOOL=$lt_DLLTOOL
15826
15827 # Command to associate shared and link libraries.
15828 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15829
15830 # The archiver.
15831 AR=$lt_AR
15832
15833 # Flags to create an archive.
15834 AR_FLAGS=$lt_AR_FLAGS
15835
15836 # How to feed a file listing to the archiver.
15837 archiver_list_spec=$lt_archiver_list_spec
15838
15839 # A symbol stripping program.
15840 STRIP=$lt_STRIP
15841
15842 # Commands used to install an old-style archive.
15843 RANLIB=$lt_RANLIB
15844 old_postinstall_cmds=$lt_old_postinstall_cmds
15845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15846
15847 # Whether to use a lock for old archive extraction.
15848 lock_old_archive_extraction=$lock_old_archive_extraction
15849
15850 # A C compiler.
15851 LTCC=$lt_CC
15852
15853 # LTCC compiler flags.
15854 LTCFLAGS=$lt_CFLAGS
15855
15856 # Take the output of nm and produce a listing of raw symbols and C names.
15857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15858
15859 # Transform the output of nm in a proper C declaration.
15860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15861
15862 # Transform the output of nm into a list of symbols to manually relocate.
15863 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15864
15865 # Transform the output of nm in a C name address pair.
15866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15867
15868 # Transform the output of nm in a C name address pair when lib prefix is needed.
15869 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15870
15871 # The name lister interface.
15872 nm_interface=$lt_lt_cv_nm_interface
15873
15874 # Specify filename containing input files for \$NM.
15875 nm_file_list_spec=$lt_nm_file_list_spec
15876
15877 # The root where to search for dependent libraries,and where our libraries should be installed.
15878 lt_sysroot=$lt_sysroot
15879
15880 # Command to truncate a binary pipe.
15881 lt_truncate_bin=$lt_lt_cv_truncate_bin
15882
15883 # The name of the directory that contains temporary libtool files.
15884 objdir=$objdir
15885
15886 # Used to examine libraries when file_magic_cmd begins with "file".
15887 MAGIC_CMD=$MAGIC_CMD
15888
15889 # Must we lock files when doing compilation?
15890 need_locks=$lt_need_locks
15891
15892 # Manifest tool.
15893 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15894
15895 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15896 DSYMUTIL=$lt_DSYMUTIL
15897
15898 # Tool to change global to local symbols on Mac OS X.
15899 NMEDIT=$lt_NMEDIT
15900
15901 # Tool to manipulate fat objects and archives on Mac OS X.
15902 LIPO=$lt_LIPO
15903
15904 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15905 OTOOL=$lt_OTOOL
15906
15907 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15908 OTOOL64=$lt_OTOOL64
15909
15910 # Old archive suffix (normally "a").
15911 libext=$libext
15912
15913 # Shared library suffix (normally ".so").
15914 shrext_cmds=$lt_shrext_cmds
15915
15916 # The commands to extract the exported symbol list from a shared archive.
15917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15918
15919 # Variables whose values should be saved in libtool wrapper scripts and
15920 # restored at link time.
15921 variables_saved_for_relink=$lt_variables_saved_for_relink
15922
15923 # Do we need the "lib" prefix for modules?
15924 need_lib_prefix=$need_lib_prefix
15925
15926 # Do we need a version for libraries?
15927 need_version=$need_version
15928
15929 # Library versioning type.
15930 version_type=$version_type
15931
15932 # Shared library runtime path variable.
15933 runpath_var=$runpath_var
15934
15935 # Shared library path variable.
15936 shlibpath_var=$shlibpath_var
15937
15938 # Is shlibpath searched before the hard-coded library search path?
15939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15940
15941 # Format of library name prefix.
15942 libname_spec=$lt_libname_spec
15943
15944 # List of archive names. First name is the real one, the rest are links.
15945 # The last name is the one that the linker finds with -lNAME
15946 library_names_spec=$lt_library_names_spec
15947
15948 # The coded name of the library, if different from the real name.
15949 soname_spec=$lt_soname_spec
15950
15951 # Permission mode override for installation of shared libraries.
15952 install_override_mode=$lt_install_override_mode
15953
15954 # Command to use after installation of a shared archive.
15955 postinstall_cmds=$lt_postinstall_cmds
15956
15957 # Command to use after uninstallation of a shared archive.
15958 postuninstall_cmds=$lt_postuninstall_cmds
15959
15960 # Commands used to finish a libtool library installation in a directory.
15961 finish_cmds=$lt_finish_cmds
15962
15963 # As "finish_cmds", except a single script fragment to be evaled but
15964 # not shown.
15965 finish_eval=$lt_finish_eval
15966
15967 # Whether we should hardcode library paths into libraries.
15968 hardcode_into_libs=$hardcode_into_libs
15969
15970 # Compile-time system search path for libraries.
15971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15972
15973 # Detected run-time system search path for libraries.
15974 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15975
15976 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15977 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15978
15979 # Whether dlopen is supported.
15980 dlopen_support=$enable_dlopen
15981
15982 # Whether dlopen of programs is supported.
15983 dlopen_self=$enable_dlopen_self
15984
15985 # Whether dlopen of statically linked programs is supported.
15986 dlopen_self_static=$enable_dlopen_self_static
15987
15988 # Commands to strip libraries.
15989 old_striplib=$lt_old_striplib
15990 striplib=$lt_striplib
15991
15992 # Assembler program.
15993 AS=$lt_AS
15994
15995
15996 # The linker used to build libraries.
15997 LD=$lt_LD
15998
15999 # How to create reloadable object files.
16000 reload_flag=$lt_reload_flag
16001 reload_cmds=$lt_reload_cmds
16002
16003 # Commands used to build an old-style archive.
16004 old_archive_cmds=$lt_old_archive_cmds
16005
16006 # A language specific compiler.
16007 CC=$lt_compiler
16008
16009 # Is the compiler the GNU compiler?
16010 with_gcc=$GCC
16011
16012 # Compiler flag to turn off builtin functions.
16013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16014
16015 # Additional compiler flags for building library objects.
16016 pic_flag=$lt_lt_prog_compiler_pic
16017
16018 # How to pass a linker flag through the compiler.
16019 wl=$lt_lt_prog_compiler_wl
16020
16021 # Compiler flag to prevent dynamic linking.
16022 link_static_flag=$lt_lt_prog_compiler_static
16023
16024 # Does compiler simultaneously support -c and -o options?
16025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16026
16027 # Whether or not to add -lc for building shared libraries.
16028 build_libtool_need_lc=$archive_cmds_need_lc
16029
16030 # Whether or not to disallow shared libs when runtime libs are static.
16031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16032
16033 # Compiler flag to allow reflexive dlopens.
16034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16035
16036 # Compiler flag to generate shared objects directly from archives.
16037 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16038
16039 # Whether the compiler copes with passing no objects directly.
16040 compiler_needs_object=$lt_compiler_needs_object
16041
16042 # Create an old-style archive from a shared archive.
16043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16044
16045 # Create a temporary old-style archive to link instead of a shared archive.
16046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16047
16048 # Commands used to build a shared archive.
16049 archive_cmds=$lt_archive_cmds
16050 archive_expsym_cmds=$lt_archive_expsym_cmds
16051
16052 # Commands used to build a loadable module if different from building
16053 # a shared archive.
16054 module_cmds=$lt_module_cmds
16055 module_expsym_cmds=$lt_module_expsym_cmds
16056
16057 # Whether we are building with GNU ld or not.
16058 with_gnu_ld=$lt_with_gnu_ld
16059
16060 # Flag that allows shared libraries with undefined symbols to be built.
16061 allow_undefined_flag=$lt_allow_undefined_flag
16062
16063 # Flag that enforces no undefined symbols.
16064 no_undefined_flag=$lt_no_undefined_flag
16065
16066 # Flag to hardcode \$libdir into a binary during linking.
16067 # This must work even if \$libdir does not exist
16068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16069
16070 # Whether we need a single "-rpath" flag with a separated argument.
16071 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16072
16073 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16074 # DIR into the resulting binary.
16075 hardcode_direct=$hardcode_direct
16076
16077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16078 # DIR into the resulting binary and the resulting library dependency is
16079 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16080 # library is relocated.
16081 hardcode_direct_absolute=$hardcode_direct_absolute
16082
16083 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16084 # into the resulting binary.
16085 hardcode_minus_L=$hardcode_minus_L
16086
16087 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16088 # into the resulting binary.
16089 hardcode_shlibpath_var=$hardcode_shlibpath_var
16090
16091 # Set to "yes" if building a shared library automatically hardcodes DIR
16092 # into the library and all subsequent libraries and executables linked
16093 # against it.
16094 hardcode_automatic=$hardcode_automatic
16095
16096 # Set to yes if linker adds runtime paths of dependent libraries
16097 # to runtime path list.
16098 inherit_rpath=$inherit_rpath
16099
16100 # Whether libtool must link a program against all its dependency libraries.
16101 link_all_deplibs=$link_all_deplibs
16102
16103 # Set to "yes" if exported symbols are required.
16104 always_export_symbols=$always_export_symbols
16105
16106 # The commands to list exported symbols.
16107 export_symbols_cmds=$lt_export_symbols_cmds
16108
16109 # Symbols that should not be listed in the preloaded symbols.
16110 exclude_expsyms=$lt_exclude_expsyms
16111
16112 # Symbols that must always be exported.
16113 include_expsyms=$lt_include_expsyms
16114
16115 # Commands necessary for linking programs (against libraries) with templates.
16116 prelink_cmds=$lt_prelink_cmds
16117
16118 # Commands necessary for finishing linking programs.
16119 postlink_cmds=$lt_postlink_cmds
16120
16121 # Specify filename containing input files.
16122 file_list_spec=$lt_file_list_spec
16123
16124 # How to hardcode a shared library path into an executable.
16125 hardcode_action=$hardcode_action
16126
16127 # ### END LIBTOOL CONFIG
16128
16129 _LT_EOF
16130
16131 cat <<'_LT_EOF' >> "$cfgfile"
16132
16133 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16134
16135 # func_munge_path_list VARIABLE PATH
16136 # -----------------------------------
16137 # VARIABLE is name of variable containing _space_ separated list of
16138 # directories to be munged by the contents of PATH, which is string
16139 # having a format:
16140 # "DIR[:DIR]:"
16141 # string "DIR[ DIR]" will be prepended to VARIABLE
16142 # ":DIR[:DIR]"
16143 # string "DIR[ DIR]" will be appended to VARIABLE
16144 # "DIRP[:DIRP]::[DIRA:]DIRA"
16145 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16146 # "DIRA[ DIRA]" will be appended to VARIABLE
16147 # "DIR[:DIR]"
16148 # VARIABLE will be replaced by "DIR[ DIR]"
16149 func_munge_path_list ()
16150 {
16151 case x$2 in
16152 x)
16153 ;;
16154 *:)
16155 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16156 ;;
16157 x:*)
16158 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16159 ;;
16160 *::*)
16161 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16162 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16163 ;;
16164 *)
16165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16166 ;;
16167 esac
16168 }
16169
16170
16171 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16172 func_cc_basename ()
16173 {
16174 for cc_temp in $*""; do
16175 case $cc_temp in
16176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16178 \-*) ;;
16179 *) break;;
16180 esac
16181 done
16182 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16183 }
16184
16185
16186 # ### END FUNCTIONS SHARED WITH CONFIGURE
16187
16188 _LT_EOF
16189
16190 case $host_os in
16191 aix3*)
16192 cat <<\_LT_EOF >> "$cfgfile"
16193 # AIX sometimes has problems with the GCC collect2 program. For some
16194 # reason, if we set the COLLECT_NAMES environment variable, the problems
16195 # vanish in a puff of smoke.
16196 if test set != "${COLLECT_NAMES+set}"; then
16197 COLLECT_NAMES=
16198 export COLLECT_NAMES
16199 fi
16200 _LT_EOF
16201 ;;
16202 esac
16203
16204
16205 ltmain=$ac_aux_dir/ltmain.sh
16206
16207
16208 # We use sed instead of cat because bash on DJGPP gets confused if
16209 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16210 # text mode, it properly converts lines to CR/LF. This bash problem
16211 # is reportedly fixed, but why not run on old versions too?
16212 sed '$q' "$ltmain" >> "$cfgfile" \
16213 || (rm -f "$cfgfile"; exit 1)
16214
16215 mv -f "$cfgfile" "$ofile" ||
16216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16217 chmod +x "$ofile"
16218
16219 ;;
16220
16221 esac
16222 done # for ac_tag
16223
16224
16225 as_fn_exit 0
16226 _ACEOF
16227 ac_clean_files=$ac_clean_files_save
16228
16229 test $ac_write_fail = 0 ||
16230 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16231
16232
16233 # configure is writing to config.log, and then calls config.status.
16234 # config.status does its own redirection, appending to config.log.
16235 # Unfortunately, on DOS this fails, as config.log is still kept open
16236 # by configure, so config.status won't be able to write to it; its
16237 # output is simply discarded. So we exec the FD to /dev/null,
16238 # effectively closing config.log, so it can be properly (re)opened and
16239 # appended to by config.status. When coming back to configure, we
16240 # need to make the FD available again.
16241 if test "$no_create" != yes; then
16242 ac_cs_success=:
16243 ac_config_status_args=
16244 test "$silent" = yes &&
16245 ac_config_status_args="$ac_config_status_args --quiet"
16246 exec 5>/dev/null
16247 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16248 exec 5>>config.log
16249 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16250 # would make configure fail if this is the last instruction.
16251 $ac_cs_success || as_fn_exit 1
16252 fi
16253 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16255 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16256 fi
16257