Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for speex 1.2.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='speex'
623 PACKAGE_TARNAME='speex'
624 PACKAGE_VERSION='1.2.1'
625 PACKAGE_STRING='speex 1.2.1'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="libspeex/speex.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 INCLUDE_STDINT
666 USIZE32
667 SIZE32
668 USIZE16
669 SIZE16
670 SPEEXDSP_LIBS
671 SPEEXDSP_CFLAGS
672 BUILD_VORBIS_PSY_FALSE
673 BUILD_VORBIS_PSY_TRUE
674 FFT_PKGCONFIG
675 BUILD_SMALLFT_FALSE
676 BUILD_SMALLFT_TRUE
677 BUILD_KISS_FFT_FALSE
678 BUILD_KISS_FFT_TRUE
679 FFT_LIBS
680 FFT_CFLAGS
681 WINMM_LIBS
682 OGG_LIBS
683 OGG_CFLAGS
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 BUILD_BINARIES_FALSE
688 BUILD_BINARIES_TRUE
689 SPEEX_VERSION
690 LIBOBJS
691 LIBM
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 EGREP
709 GREP
710 SED
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 LIBTOOL
728 OBJDUMP
729 DLLTOOL
730 AS
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 MAINT
740 MAINTAINER_MODE_FALSE
741 MAINTAINER_MODE_TRUE
742 CSCOPE
743 ETAGS
744 CTAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 SPEEX_LT_AGE
769 SPEEX_LT_REVISION
770 SPEEX_LT_CURRENT
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 runstatedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_maintainer_mode
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_aix_soname
825 enable_dependency_tracking
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_valgrind
830 enable_sse
831 enable_fixed_point
832 enable_float_api
833 enable_binaries
834 enable_vbr
835 enable_arm4_asm
836 enable_arm5e_asm
837 enable_blackfin_asm
838 enable_fixed_point_debug
839 enable_ti_c55x
840 enable_vorbis_psy
841 with_fft
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 LT_SYS_LIBRARY_PATH
852 PKG_CONFIG
853 PKG_CONFIG_PATH
854 PKG_CONFIG_LIBDIR
855 OGG_CFLAGS
856 OGG_LIBS
857 FFT_CFLAGS
858 FFT_LIBS
859 SPEEXDSP_CFLAGS
860 SPEEXDSP_LIBS'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 runstatedir='${localstatedir}/run'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: \`$ac_useropt'"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -runstatedir | --runstatedir | --runstatedi | --runstated \
1151 | --runstate | --runstat | --runsta | --runst | --runs \
1152 | --run | --ru | --r)
1153 ac_prev=runstatedir ;;
1154 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156 | --run=* | --ru=* | --r=*)
1157 runstatedir=$ac_optarg ;;
1158
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 ac_prev=sbindir ;;
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 | --sbi=* | --sb=*)
1163 sbindir=$ac_optarg ;;
1164
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1168 | --sha | --sh)
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 | --sha=* | --sh=*)
1174 sharedstatedir=$ac_optarg ;;
1175
1176 -site | --site | --sit)
1177 ac_prev=site ;;
1178 -site=* | --site=* | --sit=*)
1179 site=$ac_optarg ;;
1180
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 ac_prev=srcdir ;;
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1185
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1192
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1197
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 verbose=yes ;;
1200
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1203
1204 -with-* | --with-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
1219
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: \`$ac_useropt'"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1256 ;;
1257
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 esac
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274 ;;
1275
1276 esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1282 fi
1283
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir runstatedir
1297 do
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1300 case $ac_val in
1301 */ )
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1304 esac
1305 # Be sure to have absolute directory names.
1306 case $ac_val in
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 esac
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 printf "%s\n" X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1388 fi
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1401
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures speex 1.2.1 to adapt to many kinds of systems.
1410
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416 Defaults for the options are specified in brackets.
1417
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1434
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1439
1440 For better control, use the options below.
1441
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/speex]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464
1465 cat <<\_ACEOF
1466
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of speex 1.2.1:";;
1481 esac
1482 cat <<\_ACEOF
1483
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-silent-rules less verbose build output (undo: "make V=1")
1489 --disable-silent-rules verbose build output (undo: "make V=0")
1490 --disable-maintainer-mode
1491 disable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --enable-valgrind Enable valgrind extra checks
1503 --enable-sse Enable SSE support
1504 --enable-fixed-point Compile as fixed-point
1505 --disable-float-api Disable the floating-point API
1506 --disable-binaries Do not build the encoder and decoder programs, only the library
1507 --disable-vbr Disable VBR and VAD from the codec
1508 --enable-arm4-asm Make use of ARM4 assembly optimizations
1509 --enable-arm5e-asm Make use of ARM5E assembly optimizations
1510 --enable-blackfin-asm Make use of Blackfin assembly optimizations
1511 --enable-fixed-point-debug Debug fixed-point implementation
1512 --enable-ti-c55x Enable support for TI C55X DSP
1513 --enable-vorbis-psy Enable the Vorbis psy model
1514
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-aix-soname=aix|svr4|both
1521 shared library versioning (aka "SONAME") variant to
1522 provide on AIX, [default=aix].
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526 --with-fft=choice use an alternate FFT implementation. The available
1527 choices are kiss (default fixed point), smallft
1528 (default floating point), gpl-fftw3 and
1529 proprietary-intel-mkl
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 LT_SYS_LIBRARY_PATH
1540 User-defined run-time library search path.
1541 PKG_CONFIG path to pkg-config utility
1542 PKG_CONFIG_PATH
1543 directories to add to pkg-config's search path
1544 PKG_CONFIG_LIBDIR
1545 path overriding pkg-config's built-in search path
1546 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1547 OGG_LIBS linker flags for OGG, overriding pkg-config
1548 FFT_CFLAGS C compiler flags for FFT, overriding pkg-config
1549 FFT_LIBS linker flags for FFT, overriding pkg-config
1550 SPEEXDSP_CFLAGS
1551 C compiler flags for SPEEXDSP, overriding pkg-config
1552 SPEEXDSP_LIBS
1553 linker flags for SPEEXDSP, overriding pkg-config
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <[email protected]>.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
1569 ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588 .) # We are building in place.
1589 ac_srcdir=.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for configure.gnu first; this name is used for a wrapper for
1605 # Metaconfig's "Configure" on case-insensitive file systems.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 speex configure 1.2.1
1623 generated by GNU Autoconf 2.71
1624
1625 Copyright (C) 2021 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_compile
1674
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 printf "%s\n" "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 test -x conftest$ac_exeext
1703 }
1704 then :
1705 ac_retval=0
1706 else $as_nop
1707 printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_link
1721
1722 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_c_check_header_compile ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1732 then :
1733 printf %s "(cached) " >&6
1734 else $as_nop
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"
1741 then :
1742 eval "$3=yes"
1743 else $as_nop
1744 eval "$3=no"
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1747 fi
1748 eval ac_res=\$$3
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 printf "%s\n" "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_header_compile
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 printf %s "checking for $2... " >&6; }
1763 if eval test \${$3+y}
1764 then :
1765 printf %s "(cached) " >&6
1766 else $as_nop
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1772
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below. */
1775
1776 #include <limits.h>
1777 #undef $2
1778
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1792
1793 int
1794 main (void)
1795 {
1796 return $2 ();
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"
1802 then :
1803 eval "$3=yes"
1804 else $as_nop
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1808 conftest$ac_exeext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 printf "%s\n" "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_func
1816
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1820 # executables *can* be run.
1821 ac_fn_c_try_run ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 printf "%s\n" "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 printf "%s\n" "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }
1845 then :
1846 ac_retval=0
1847 else $as_nop
1848 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1849 printf "%s\n" "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=$ac_status
1853 fi
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_run
1859
1860 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1861 # --------------------------------------------
1862 # Tries to find the compile-time value of EXPR in a program that includes
1863 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1864 # computed
1865 ac_fn_c_compute_int ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if test "$cross_compiling" = yes; then
1869 # Depending upon the size, compute the lo and hi bounds.
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main (void)
1875 {
1876 static int test_array [1 - 2 * !(($2) >= 0)];
1877 test_array [0] = 0;
1878 return test_array [0];
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"
1885 then :
1886 ac_lo=0 ac_mid=0
1887 while :; do
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main (void)
1893 {
1894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895 test_array [0] = 0;
1896 return test_array [0];
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"
1903 then :
1904 ac_hi=$ac_mid; break
1905 else $as_nop
1906 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1907 if test $ac_lo -le $ac_mid; then
1908 ac_lo= ac_hi=
1909 break
1910 fi
1911 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1914 done
1915 else $as_nop
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main (void)
1921 {
1922 static int test_array [1 - 2 * !(($2) < 0)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"
1931 then :
1932 ac_hi=-1 ac_mid=-1
1933 while :; do
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 int
1938 main (void)
1939 {
1940 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1941 test_array [0] = 0;
1942 return test_array [0];
1943
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"
1949 then :
1950 ac_lo=$ac_mid; break
1951 else $as_nop
1952 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1953 if test $ac_mid -le $ac_hi; then
1954 ac_lo= ac_hi=
1955 break
1956 fi
1957 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1960 done
1961 else $as_nop
1962 ac_lo= ac_hi=
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1967 # Binary search between lo and hi bounds.
1968 while test "x$ac_lo" != "x$ac_hi"; do
1969 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main (void)
1975 {
1976 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1977 test_array [0] = 0;
1978 return test_array [0];
1979
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"
1985 then :
1986 ac_hi=$ac_mid
1987 else $as_nop
1988 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1991 done
1992 case $ac_lo in #((
1993 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1994 '') ac_retval=1 ;;
1995 esac
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 static long int longval (void) { return $2; }
2001 static unsigned long int ulongval (void) { return $2; }
2002 #include <stdio.h>
2003 #include <stdlib.h>
2004 int
2005 main (void)
2006 {
2007
2008 FILE *f = fopen ("conftest.val", "w");
2009 if (! f)
2010 return 1;
2011 if (($2) < 0)
2012 {
2013 long int i = longval ();
2014 if (i != ($2))
2015 return 1;
2016 fprintf (f, "%ld", i);
2017 }
2018 else
2019 {
2020 unsigned long int i = ulongval ();
2021 if (i != ($2))
2022 return 1;
2023 fprintf (f, "%lu", i);
2024 }
2025 /* Do not output a trailing newline, as this causes \r\n confusion
2026 on some platforms. */
2027 return ferror (f) || fclose (f) != 0;
2028
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_run "$LINENO"
2034 then :
2035 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2036 else $as_nop
2037 ac_retval=1
2038 fi
2039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2040 conftest.$ac_objext conftest.beam conftest.$ac_ext
2041 rm -f conftest.val
2042
2043 fi
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2046
2047 } # ac_fn_c_compute_int
2048 ac_configure_args_raw=
2049 for ac_arg
2050 do
2051 case $ac_arg in
2052 *\'*)
2053 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054 esac
2055 as_fn_append ac_configure_args_raw " '$ac_arg'"
2056 done
2057
2058 case $ac_configure_args_raw in
2059 *$as_nl*)
2060 ac_safe_unquote= ;;
2061 *)
2062 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2063 ac_unsafe_a="$ac_unsafe_z#~"
2064 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2065 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2066 esac
2067
2068 cat >config.log <<_ACEOF
2069 This file contains any messages produced by compilers while
2070 running configure, to aid debugging if configure makes a mistake.
2071
2072 It was created by speex $as_me 1.2.1, which was
2073 generated by GNU Autoconf 2.71. Invocation command line was
2074
2075 $ $0$ac_configure_args_raw
2076
2077 _ACEOF
2078 exec 5>>config.log
2079 {
2080 cat <<_ASUNAME
2081 ## --------- ##
2082 ## Platform. ##
2083 ## --------- ##
2084
2085 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2086 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2087 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2088 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2089 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2090
2091 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2092 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2093
2094 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2095 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2096 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2097 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2098 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2099 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2100 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2101
2102 _ASUNAME
2103
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107 IFS=$as_save_IFS
2108 case $as_dir in #(((
2109 '') as_dir=./ ;;
2110 */) ;;
2111 *) as_dir=$as_dir/ ;;
2112 esac
2113 printf "%s\n" "PATH: $as_dir"
2114 done
2115 IFS=$as_save_IFS
2116
2117 } >&5
2118
2119 cat >&5 <<_ACEOF
2120
2121
2122 ## ----------- ##
2123 ## Core tests. ##
2124 ## ----------- ##
2125
2126 _ACEOF
2127
2128
2129 # Keep a trace of the command line.
2130 # Strip out --no-create and --no-recursion so they do not pile up.
2131 # Strip out --silent because we don't want to record it for future runs.
2132 # Also quote any args containing shell meta-characters.
2133 # Make two passes to allow for proper duplicate-argument suppression.
2134 ac_configure_args=
2135 ac_configure_args0=
2136 ac_configure_args1=
2137 ac_must_keep_next=false
2138 for ac_pass in 1 2
2139 do
2140 for ac_arg
2141 do
2142 case $ac_arg in
2143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145 | -silent | --silent | --silen | --sile | --sil)
2146 continue ;;
2147 *\'*)
2148 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 esac
2150 case $ac_pass in
2151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2152 2)
2153 as_fn_append ac_configure_args1 " '$ac_arg'"
2154 if test $ac_must_keep_next = true; then
2155 ac_must_keep_next=false # Got value, back to normal.
2156 else
2157 case $ac_arg in
2158 *=* | --config-cache | -C | -disable-* | --disable-* \
2159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161 | -with-* | --with-* | -without-* | --without-* | --x)
2162 case "$ac_configure_args0 " in
2163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 esac
2165 ;;
2166 -* ) ac_must_keep_next=true ;;
2167 esac
2168 fi
2169 as_fn_append ac_configure_args " '$ac_arg'"
2170 ;;
2171 esac
2172 done
2173 done
2174 { ac_configure_args0=; unset ac_configure_args0;}
2175 { ac_configure_args1=; unset ac_configure_args1;}
2176
2177 # When interrupted or exit'd, cleanup temporary files, and complete
2178 # config.log. We remove comments because anyway the quotes in there
2179 # would cause problems or look ugly.
2180 # WARNING: Use '\'' to represent an apostrophe within the trap.
2181 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2182 trap 'exit_status=$?
2183 # Sanitize IFS.
2184 IFS=" "" $as_nl"
2185 # Save into config.log some information that might help in debugging.
2186 {
2187 echo
2188
2189 printf "%s\n" "## ---------------- ##
2190 ## Cache variables. ##
2191 ## ---------------- ##"
2192 echo
2193 # The following way of writing the cache mishandles newlines in values,
2194 (
2195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2196 eval ac_val=\$$ac_var
2197 case $ac_val in #(
2198 *${as_nl}*)
2199 case $ac_var in #(
2200 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2201 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202 esac
2203 case $ac_var in #(
2204 _ | IFS | as_nl) ;; #(
2205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2206 *) { eval $ac_var=; unset $ac_var;} ;;
2207 esac ;;
2208 esac
2209 done
2210 (set) 2>&1 |
2211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2212 *${as_nl}ac_space=\ *)
2213 sed -n \
2214 "s/'\''/'\''\\\\'\'''\''/g;
2215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216 ;; #(
2217 *)
2218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219 ;;
2220 esac |
2221 sort
2222 )
2223 echo
2224
2225 printf "%s\n" "## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##"
2228 echo
2229 for ac_var in $ac_subst_vars
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 printf "%s\n" "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238
2239 if test -n "$ac_subst_files"; then
2240 printf "%s\n" "## ------------------- ##
2241 ## File substitutions. ##
2242 ## ------------------- ##"
2243 echo
2244 for ac_var in $ac_subst_files
2245 do
2246 eval ac_val=\$$ac_var
2247 case $ac_val in
2248 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 esac
2250 printf "%s\n" "$ac_var='\''$ac_val'\''"
2251 done | sort
2252 echo
2253 fi
2254
2255 if test -s confdefs.h; then
2256 printf "%s\n" "## ----------- ##
2257 ## confdefs.h. ##
2258 ## ----------- ##"
2259 echo
2260 cat confdefs.h
2261 echo
2262 fi
2263 test "$ac_signal" != 0 &&
2264 printf "%s\n" "$as_me: caught signal $ac_signal"
2265 printf "%s\n" "$as_me: exit $exit_status"
2266 } >&5
2267 rm -f core *.core core.conftest.* &&
2268 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269 exit $exit_status
2270 ' 0
2271 for ac_signal in 1 2 13 15; do
2272 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273 done
2274 ac_signal=0
2275
2276 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2277 rm -f -r conftest* confdefs.h
2278
2279 printf "%s\n" "/* confdefs.h */" > confdefs.h
2280
2281 # Predefined preprocessor variables.
2282
2283 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2284
2285 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2286
2287 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2288
2289 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2290
2291 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2292
2293 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2294
2295
2296 # Let the site file select an alternate cache file if it wants to.
2297 # Prefer an explicitly selected file to automatically selected ones.
2298 if test -n "$CONFIG_SITE"; then
2299 ac_site_files="$CONFIG_SITE"
2300 elif test "x$prefix" != xNONE; then
2301 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2302 else
2303 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2304 fi
2305
2306 for ac_site_file in $ac_site_files
2307 do
2308 case $ac_site_file in #(
2309 */*) :
2310 ;; #(
2311 *) :
2312 ac_site_file=./$ac_site_file ;;
2313 esac
2314 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2318 . "$ac_site_file" \
2319 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2323 fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2332 case $cache_file in
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2335 esac
2336 fi
2337 else
2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2340 >$cache_file
2341 fi
2342
2343 # Test code for whether the C compiler supports C89 (global declarations)
2344 ac_c_conftest_c89_globals='
2345 /* Does the compiler advertise C89 conformance?
2346 Do not test the value of __STDC__, because some compilers set it to 0
2347 while being otherwise adequately conformant. */
2348 #if !defined __STDC__
2349 # error "Compiler does not advertise C89 conformance"
2350 #endif
2351
2352 #include <stddef.h>
2353 #include <stdarg.h>
2354 struct stat;
2355 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2356 struct buf { int x; };
2357 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2358 static char *e (p, i)
2359 char **p;
2360 int i;
2361 {
2362 return p[i];
2363 }
2364 static char *f (char * (*g) (char **, int), char **p, ...)
2365 {
2366 char *s;
2367 va_list v;
2368 va_start (v,p);
2369 s = g (p, va_arg (v,int));
2370 va_end (v);
2371 return s;
2372 }
2373
2374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2375 function prototypes and stuff, but not \xHH hex character constants.
2376 These do not provoke an error unfortunately, instead are silently treated
2377 as an "x". The following induces an error, until -std is added to get
2378 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2379 array size at least. It is necessary to write \x00 == 0 to get something
2380 that is true only with -std. */
2381 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2382
2383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2384 inside strings and character constants. */
2385 #define FOO(x) '\''x'\''
2386 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2387
2388 int test (int i, double x);
2389 struct s1 {int (*f) (int a);};
2390 struct s2 {int (*f) (double a);};
2391 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2392 int, int);'
2393
2394 # Test code for whether the C compiler supports C89 (body of main).
2395 ac_c_conftest_c89_main='
2396 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2397 '
2398
2399 # Test code for whether the C compiler supports C99 (global declarations)
2400 ac_c_conftest_c99_globals='
2401 // Does the compiler advertise C99 conformance?
2402 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2403 # error "Compiler does not advertise C99 conformance"
2404 #endif
2405
2406 #include <stdbool.h>
2407 extern int puts (const char *);
2408 extern int printf (const char *, ...);
2409 extern int dprintf (int, const char *, ...);
2410 extern void *malloc (size_t);
2411
2412 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2413 // dprintf is used instead of fprintf to avoid needing to declare
2414 // FILE and stderr.
2415 #define debug(...) dprintf (2, __VA_ARGS__)
2416 #define showlist(...) puts (#__VA_ARGS__)
2417 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2418 static void
2419 test_varargs_macros (void)
2420 {
2421 int x = 1234;
2422 int y = 5678;
2423 debug ("Flag");
2424 debug ("X = %d\n", x);
2425 showlist (The first, second, and third items.);
2426 report (x>y, "x is %d but y is %d", x, y);
2427 }
2428
2429 // Check long long types.
2430 #define BIG64 18446744073709551615ull
2431 #define BIG32 4294967295ul
2432 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2433 #if !BIG_OK
2434 #error "your preprocessor is broken"
2435 #endif
2436 #if BIG_OK
2437 #else
2438 #error "your preprocessor is broken"
2439 #endif
2440 static long long int bignum = -9223372036854775807LL;
2441 static unsigned long long int ubignum = BIG64;
2442
2443 struct incomplete_array
2444 {
2445 int datasize;
2446 double data[];
2447 };
2448
2449 struct named_init {
2450 int number;
2451 const wchar_t *name;
2452 double average;
2453 };
2454
2455 typedef const char *ccp;
2456
2457 static inline int
2458 test_restrict (ccp restrict text)
2459 {
2460 // See if C++-style comments work.
2461 // Iterate through items via the restricted pointer.
2462 // Also check for declarations in for loops.
2463 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2464 continue;
2465 return 0;
2466 }
2467
2468 // Check varargs and va_copy.
2469 static bool
2470 test_varargs (const char *format, ...)
2471 {
2472 va_list args;
2473 va_start (args, format);
2474 va_list args_copy;
2475 va_copy (args_copy, args);
2476
2477 const char *str = "";
2478 int number = 0;
2479 float fnumber = 0;
2480
2481 while (*format)
2482 {
2483 switch (*format++)
2484 {
2485 case '\''s'\'': // string
2486 str = va_arg (args_copy, const char *);
2487 break;
2488 case '\''d'\'': // int
2489 number = va_arg (args_copy, int);
2490 break;
2491 case '\''f'\'': // float
2492 fnumber = va_arg (args_copy, double);
2493 break;
2494 default:
2495 break;
2496 }
2497 }
2498 va_end (args_copy);
2499 va_end (args);
2500
2501 return *str && number && fnumber;
2502 }
2503 '
2504
2505 # Test code for whether the C compiler supports C99 (body of main).
2506 ac_c_conftest_c99_main='
2507 // Check bool.
2508 _Bool success = false;
2509 success |= (argc != 0);
2510
2511 // Check restrict.
2512 if (test_restrict ("String literal") == 0)
2513 success = true;
2514 char *restrict newvar = "Another string";
2515
2516 // Check varargs.
2517 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2518 test_varargs_macros ();
2519
2520 // Check flexible array members.
2521 struct incomplete_array *ia =
2522 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2523 ia->datasize = 10;
2524 for (int i = 0; i < ia->datasize; ++i)
2525 ia->data[i] = i * 1.234;
2526
2527 // Check named initializers.
2528 struct named_init ni = {
2529 .number = 34,
2530 .name = L"Test wide string",
2531 .average = 543.34343,
2532 };
2533
2534 ni.number = 58;
2535
2536 int dynamic_array[ni.number];
2537 dynamic_array[0] = argv[0][0];
2538 dynamic_array[ni.number - 1] = 543;
2539
2540 // work around unused variable warnings
2541 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2542 || dynamic_array[ni.number - 1] != 543);
2543 '
2544
2545 # Test code for whether the C compiler supports C11 (global declarations)
2546 ac_c_conftest_c11_globals='
2547 // Does the compiler advertise C11 conformance?
2548 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2549 # error "Compiler does not advertise C11 conformance"
2550 #endif
2551
2552 // Check _Alignas.
2553 char _Alignas (double) aligned_as_double;
2554 char _Alignas (0) no_special_alignment;
2555 extern char aligned_as_int;
2556 char _Alignas (0) _Alignas (int) aligned_as_int;
2557
2558 // Check _Alignof.
2559 enum
2560 {
2561 int_alignment = _Alignof (int),
2562 int_array_alignment = _Alignof (int[100]),
2563 char_alignment = _Alignof (char)
2564 };
2565 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2566
2567 // Check _Noreturn.
2568 int _Noreturn does_not_return (void) { for (;;) continue; }
2569
2570 // Check _Static_assert.
2571 struct test_static_assert
2572 {
2573 int x;
2574 _Static_assert (sizeof (int) <= sizeof (long int),
2575 "_Static_assert does not work in struct");
2576 long int y;
2577 };
2578
2579 // Check UTF-8 literals.
2580 #define u8 syntax error!
2581 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2582
2583 // Check duplicate typedefs.
2584 typedef long *long_ptr;
2585 typedef long int *long_ptr;
2586 typedef long_ptr long_ptr;
2587
2588 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2589 struct anonymous
2590 {
2591 union {
2592 struct { int i; int j; };
2593 struct { int k; long int l; } w;
2594 };
2595 int m;
2596 } v1;
2597 '
2598
2599 # Test code for whether the C compiler supports C11 (body of main).
2600 ac_c_conftest_c11_main='
2601 _Static_assert ((offsetof (struct anonymous, i)
2602 == offsetof (struct anonymous, w.k)),
2603 "Anonymous union alignment botch");
2604 v1.i = 2;
2605 v1.w.k = 5;
2606 ok |= v1.i != 5;
2607 '
2608
2609 # Test code for whether the C compiler supports C11 (complete).
2610 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2611 ${ac_c_conftest_c99_globals}
2612 ${ac_c_conftest_c11_globals}
2613
2614 int
2615 main (int argc, char **argv)
2616 {
2617 int ok = 0;
2618 ${ac_c_conftest_c89_main}
2619 ${ac_c_conftest_c99_main}
2620 ${ac_c_conftest_c11_main}
2621 return ok;
2622 }
2623 "
2624
2625 # Test code for whether the C compiler supports C99 (complete).
2626 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2627 ${ac_c_conftest_c99_globals}
2628
2629 int
2630 main (int argc, char **argv)
2631 {
2632 int ok = 0;
2633 ${ac_c_conftest_c89_main}
2634 ${ac_c_conftest_c99_main}
2635 return ok;
2636 }
2637 "
2638
2639 # Test code for whether the C compiler supports C89 (complete).
2640 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2641
2642 int
2643 main (int argc, char **argv)
2644 {
2645 int ok = 0;
2646 ${ac_c_conftest_c89_main}
2647 return ok;
2648 }
2649 "
2650
2651 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2652 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2653 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2654 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2655 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2656 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2657 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2658 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2659 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2660
2661 # Auxiliary files required by this configure script.
2662 ac_aux_files="compile ltmain.sh config.guess config.sub missing install-sh"
2663
2664 # Locations in which to look for auxiliary files.
2665 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2666
2667 # Search for a directory containing all of the required auxiliary files,
2668 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2669 # If we don't find one directory that contains all the files we need,
2670 # we report the set of missing files from the *first* directory in
2671 # $ac_aux_dir_candidates and give up.
2672 ac_missing_aux_files=""
2673 ac_first_candidate=:
2674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 as_found=false
2677 for as_dir in $ac_aux_dir_candidates
2678 do
2679 IFS=$as_save_IFS
2680 case $as_dir in #(((
2681 '') as_dir=./ ;;
2682 */) ;;
2683 *) as_dir=$as_dir/ ;;
2684 esac
2685 as_found=:
2686
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2688 ac_aux_dir_found=yes
2689 ac_install_sh=
2690 for ac_aux in $ac_aux_files
2691 do
2692 # As a special case, if "install-sh" is required, that requirement
2693 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2694 # and $ac_install_sh is set appropriately for whichever one is found.
2695 if test x"$ac_aux" = x"install-sh"
2696 then
2697 if test -f "${as_dir}install-sh"; then
2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2699 ac_install_sh="${as_dir}install-sh -c"
2700 elif test -f "${as_dir}install.sh"; then
2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2702 ac_install_sh="${as_dir}install.sh -c"
2703 elif test -f "${as_dir}shtool"; then
2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2705 ac_install_sh="${as_dir}shtool install -c"
2706 else
2707 ac_aux_dir_found=no
2708 if $ac_first_candidate; then
2709 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2710 else
2711 break
2712 fi
2713 fi
2714 else
2715 if test -f "${as_dir}${ac_aux}"; then
2716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2717 else
2718 ac_aux_dir_found=no
2719 if $ac_first_candidate; then
2720 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2721 else
2722 break
2723 fi
2724 fi
2725 fi
2726 done
2727 if test "$ac_aux_dir_found" = yes; then
2728 ac_aux_dir="$as_dir"
2729 break
2730 fi
2731 ac_first_candidate=false
2732
2733 as_found=false
2734 done
2735 IFS=$as_save_IFS
2736 if $as_found
2737 then :
2738
2739 else $as_nop
2740 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2741 fi
2742
2743
2744 # These three variables are undocumented and unsupported,
2745 # and are intended to be withdrawn in a future Autoconf release.
2746 # They can cause serious problems if a builder's source tree is in a directory
2747 # whose full name contains unusual characters.
2748 if test -f "${ac_aux_dir}config.guess"; then
2749 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2750 fi
2751 if test -f "${ac_aux_dir}config.sub"; then
2752 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2753 fi
2754 if test -f "$ac_aux_dir/configure"; then
2755 ac_configure="$SHELL ${ac_aux_dir}configure"
2756 fi
2757
2758 # Check that the precious variables saved in the cache have kept the same
2759 # value.
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2767 set,)
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2769 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2771 ,set)
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2773 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2775 ,);;
2776 *)
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x $ac_old_val`
2780 ac_new_val_w=`echo x $ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2784 ac_cache_corrupted=:
2785 else
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2787 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2789 fi
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2794 fi;;
2795 esac
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2798 case $ac_new_val in
2799 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2801 esac
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2805 esac
2806 fi
2807 done
2808 if $ac_cache_corrupted; then
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2814 and start over" "$LINENO" 5
2815 fi
2816 ## -------------------- ##
2817 ## Main body of script. ##
2818 ## -------------------- ##
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826
2827
2828
2829
2830
2831 # Check whether --enable-silent-rules was given.
2832 if test ${enable_silent_rules+y}
2833 then :
2834 enableval=$enable_silent_rules;
2835 fi
2836
2837 case $enable_silent_rules in # (((
2838 yes) AM_DEFAULT_VERBOSITY=0;;
2839 no) AM_DEFAULT_VERBOSITY=1;;
2840 *) AM_DEFAULT_VERBOSITY=0;;
2841 esac
2842 am_make=${MAKE-make}
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2844 printf %s "checking whether $am_make supports nested variables... " >&6; }
2845 if test ${am_cv_make_support_nested_variables+y}
2846 then :
2847 printf %s "(cached) " >&6
2848 else $as_nop
2849 if printf "%s\n" 'TRUE=$(BAR$(V))
2850 BAR0=false
2851 BAR1=true
2852 V=1
2853 am__doit:
2854 @$(TRUE)
2855 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2856 am_cv_make_support_nested_variables=yes
2857 else
2858 am_cv_make_support_nested_variables=no
2859 fi
2860 fi
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2862 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2863 if test $am_cv_make_support_nested_variables = yes; then
2864 AM_V='$(V)'
2865 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2866 else
2867 AM_V=$AM_DEFAULT_VERBOSITY
2868 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2869 fi
2870 AM_BACKSLASH='\'
2871
2872
2873
2874 SPEEX_MAJOR_VERSION=1
2875 SPEEX_MINOR_VERSION=2
2876 SPEEX_MICRO_VERSION=1
2877 SPEEX_EXTRA_VERSION=
2878
2879 SPEEX_LT_CURRENT=6
2880 SPEEX_LT_REVISION=2
2881 SPEEX_LT_AGE=5
2882
2883
2884
2885
2886
2887
2888 am__api_version='1.16'
2889
2890
2891
2892 # Find a good install program. We prefer a C program (faster),
2893 # so one script is as good as another. But avoid the broken or
2894 # incompatible versions:
2895 # SysV /etc/install, /usr/sbin/install
2896 # SunOS /usr/etc/install
2897 # IRIX /sbin/install
2898 # AIX /bin/install
2899 # AmigaOS /C/install, which installs bootblocks on floppy discs
2900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2903 # OS/2's system install, which has a completely different semantic
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 # Reject install programs that cannot install multiple files.
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2907 printf %s "checking for a BSD-compatible install... " >&6; }
2908 if test -z "$INSTALL"; then
2909 if test ${ac_cv_path_install+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else $as_nop
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 case $as_dir in #(((
2918 '') as_dir=./ ;;
2919 */) ;;
2920 *) as_dir=$as_dir/ ;;
2921 esac
2922 # Account for fact that we put trailing slashes in our PATH walk.
2923 case $as_dir in #((
2924 ./ | /[cC]/* | \
2925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2926 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2927 /usr/ucb/* ) ;;
2928 *)
2929 # OSF1 and SCO ODT 3.0 have their own names for install.
2930 # Don't use installbsd from OSF since it installs stuff as root
2931 # by default.
2932 for ac_prog in ginstall scoinst install; do
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2935 if test $ac_prog = install &&
2936 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937 # AIX install. It has an incompatible calling convention.
2938 :
2939 elif test $ac_prog = install &&
2940 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2941 # program-specific install script used by HP pwplus--don't use.
2942 :
2943 else
2944 rm -rf conftest.one conftest.two conftest.dir
2945 echo one > conftest.one
2946 echo two > conftest.two
2947 mkdir conftest.dir
2948 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2949 test -s conftest.one && test -s conftest.two &&
2950 test -s conftest.dir/conftest.one &&
2951 test -s conftest.dir/conftest.two
2952 then
2953 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2954 break 3
2955 fi
2956 fi
2957 fi
2958 done
2959 done
2960 ;;
2961 esac
2962
2963 done
2964 IFS=$as_save_IFS
2965
2966 rm -rf conftest.one conftest.two conftest.dir
2967
2968 fi
2969 if test ${ac_cv_path_install+y}; then
2970 INSTALL=$ac_cv_path_install
2971 else
2972 # As a last resort, use the slow shell script. Don't cache a
2973 # value for INSTALL within a source directory, because that will
2974 # break other packages using the cache if that directory is
2975 # removed, or if the value is a relative name.
2976 INSTALL=$ac_install_sh
2977 fi
2978 fi
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2980 printf "%s\n" "$INSTALL" >&6; }
2981
2982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2983 # It thinks the first close brace ends the variable substitution.
2984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2985
2986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2987
2988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2989
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2991 printf %s "checking whether build environment is sane... " >&6; }
2992 # Reject unsafe characters in $srcdir or the absolute working directory
2993 # name. Accept space and tab only in the latter.
2994 am_lf='
2995 '
2996 case `pwd` in
2997 *[\\\"\#\$\&\'\`$am_lf]*)
2998 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2999 esac
3000 case $srcdir in
3001 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3002 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3003 esac
3004
3005 # Do 'set' in a subshell so we don't clobber the current shell's
3006 # arguments. Must try -L first in case configure is actually a
3007 # symlink; some systems play weird games with the mod time of symlinks
3008 # (eg FreeBSD returns the mod time of the symlink's containing
3009 # directory).
3010 if (
3011 am_has_slept=no
3012 for am_try in 1 2; do
3013 echo "timestamp, slept: $am_has_slept" > conftest.file
3014 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3015 if test "$*" = "X"; then
3016 # -L didn't work.
3017 set X `ls -t "$srcdir/configure" conftest.file`
3018 fi
3019 if test "$*" != "X $srcdir/configure conftest.file" \
3020 && test "$*" != "X conftest.file $srcdir/configure"; then
3021
3022 # If neither matched, then we have a broken ls. This can happen
3023 # if, for instance, CONFIG_SHELL is bash and it inherits a
3024 # broken ls alias from the environment. This has actually
3025 # happened. Such a system could not be considered "sane".
3026 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3027 alias in your environment" "$LINENO" 5
3028 fi
3029 if test "$2" = conftest.file || test $am_try -eq 2; then
3030 break
3031 fi
3032 # Just in case.
3033 sleep 1
3034 am_has_slept=yes
3035 done
3036 test "$2" = conftest.file
3037 )
3038 then
3039 # Ok.
3040 :
3041 else
3042 as_fn_error $? "newly created file is older than distributed files!
3043 Check your system clock" "$LINENO" 5
3044 fi
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046 printf "%s\n" "yes" >&6; }
3047 # If we didn't sleep, we still need to ensure time stamps of config.status and
3048 # generated files are strictly newer.
3049 am_sleep_pid=
3050 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3051 ( sleep 1 ) &
3052 am_sleep_pid=$!
3053 fi
3054
3055 rm -f conftest.file
3056
3057 test "$program_prefix" != NONE &&
3058 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3059 # Use a double $ so make ignores it.
3060 test "$program_suffix" != NONE &&
3061 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3062 # Double any \ or $.
3063 # By default was `s,x,x', remove it if useless.
3064 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3065 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3066
3067
3068 # Expand $ac_aux_dir to an absolute path.
3069 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3070
3071
3072 if test x"${MISSING+set}" != xset; then
3073 MISSING="\${SHELL} '$am_aux_dir/missing'"
3074 fi
3075 # Use eval to expand $SHELL
3076 if eval "$MISSING --is-lightweight"; then
3077 am_missing_run="$MISSING "
3078 else
3079 am_missing_run=
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3081 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3082 fi
3083
3084 if test x"${install_sh+set}" != xset; then
3085 case $am_aux_dir in
3086 *\ * | *\ *)
3087 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3088 *)
3089 install_sh="\${SHELL} $am_aux_dir/install-sh"
3090 esac
3091 fi
3092
3093 # Installed binaries are usually stripped using 'strip' when the user
3094 # run "make install-strip". However 'strip' might not be the right
3095 # tool to use in cross-compilation environments, therefore Automake
3096 # will honor the 'STRIP' environment variable to overrule this program.
3097 if test "$cross_compiling" != no; then
3098 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}strip; ac_word=$2
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 printf %s "checking for $ac_word... " >&6; }
3103 if test ${ac_cv_prog_STRIP+y}
3104 then :
3105 printf %s "(cached) " >&6
3106 else $as_nop
3107 if test -n "$STRIP"; then
3108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 case $as_dir in #(((
3115 '') as_dir=./ ;;
3116 */) ;;
3117 *) as_dir=$as_dir/ ;;
3118 esac
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 STRIP=$ac_cv_prog_STRIP
3132 if test -n "$STRIP"; then
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3134 printf "%s\n" "$STRIP" >&6; }
3135 else
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 printf "%s\n" "no" >&6; }
3138 fi
3139
3140
3141 fi
3142 if test -z "$ac_cv_prog_STRIP"; then
3143 ac_ct_STRIP=$STRIP
3144 # Extract the first word of "strip", so it can be a program name with args.
3145 set dummy strip; ac_word=$2
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 printf %s "checking for $ac_word... " >&6; }
3148 if test ${ac_cv_prog_ac_ct_STRIP+y}
3149 then :
3150 printf %s "(cached) " >&6
3151 else $as_nop
3152 if test -n "$ac_ct_STRIP"; then
3153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 case $as_dir in #(((
3160 '') as_dir=./ ;;
3161 */) ;;
3162 *) as_dir=$as_dir/ ;;
3163 esac
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_ac_ct_STRIP="strip"
3167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3177 if test -n "$ac_ct_STRIP"; then
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3179 printf "%s\n" "$ac_ct_STRIP" >&6; }
3180 else
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 printf "%s\n" "no" >&6; }
3183 fi
3184
3185 if test "x$ac_ct_STRIP" = x; then
3186 STRIP=":"
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 STRIP=$ac_ct_STRIP
3195 fi
3196 else
3197 STRIP="$ac_cv_prog_STRIP"
3198 fi
3199
3200 fi
3201 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3202
3203
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3205 printf %s "checking for a race-free mkdir -p... " >&6; }
3206 if test -z "$MKDIR_P"; then
3207 if test ${ac_cv_path_mkdir+y}
3208 then :
3209 printf %s "(cached) " >&6
3210 else $as_nop
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3213 do
3214 IFS=$as_save_IFS
3215 case $as_dir in #(((
3216 '') as_dir=./ ;;
3217 */) ;;
3218 *) as_dir=$as_dir/ ;;
3219 esac
3220 for ac_prog in mkdir gmkdir; do
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3223 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3224 'mkdir ('*'coreutils) '* | \
3225 'BusyBox '* | \
3226 'mkdir (fileutils) '4.1*)
3227 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3228 break 3;;
3229 esac
3230 done
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236
3237 test -d ./--version && rmdir ./--version
3238 if test ${ac_cv_path_mkdir+y}; then
3239 MKDIR_P="$ac_cv_path_mkdir -p"
3240 else
3241 # As a last resort, use the slow shell script. Don't cache a
3242 # value for MKDIR_P within a source directory, because that will
3243 # break other packages using the cache if that directory is
3244 # removed, or if the value is a relative name.
3245 MKDIR_P="$ac_install_sh -d"
3246 fi
3247 fi
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3249 printf "%s\n" "$MKDIR_P" >&6; }
3250
3251 for ac_prog in gawk mawk nawk awk
3252 do
3253 # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 printf %s "checking for $ac_word... " >&6; }
3257 if test ${ac_cv_prog_AWK+y}
3258 then :
3259 printf %s "(cached) " >&6
3260 else $as_nop
3261 if test -n "$AWK"; then
3262 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 case $as_dir in #(((
3269 '') as_dir=./ ;;
3270 */) ;;
3271 *) as_dir=$as_dir/ ;;
3272 esac
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_AWK="$ac_prog"
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 AWK=$ac_cv_prog_AWK
3286 if test -n "$AWK"; then
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3288 printf "%s\n" "$AWK" >&6; }
3289 else
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 printf "%s\n" "no" >&6; }
3292 fi
3293
3294
3295 test -n "$AWK" && break
3296 done
3297
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3299 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3300 set x ${MAKE-make}
3301 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3302 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3303 then :
3304 printf %s "(cached) " >&6
3305 else $as_nop
3306 cat >conftest.make <<\_ACEOF
3307 SHELL = /bin/sh
3308 all:
3309 @echo '@@@%%%=$(MAKE)=@@@%%%'
3310 _ACEOF
3311 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3313 *@@@%%%=?*=@@@%%%*)
3314 eval ac_cv_prog_make_${ac_make}_set=yes;;
3315 *)
3316 eval ac_cv_prog_make_${ac_make}_set=no;;
3317 esac
3318 rm -f conftest.make
3319 fi
3320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 printf "%s\n" "yes" >&6; }
3323 SET_MAKE=
3324 else
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 printf "%s\n" "no" >&6; }
3327 SET_MAKE="MAKE=${MAKE-make}"
3328 fi
3329
3330 rm -rf .tst 2>/dev/null
3331 mkdir .tst 2>/dev/null
3332 if test -d .tst; then
3333 am__leading_dot=.
3334 else
3335 am__leading_dot=_
3336 fi
3337 rmdir .tst 2>/dev/null
3338
3339 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3340 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3341 # is not polluted with repeated "-I."
3342 am__isrc=' -I$(srcdir)'
3343 # test to see if srcdir already configured
3344 if test -f $srcdir/config.status; then
3345 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3346 fi
3347 fi
3348
3349 # test whether we have cygpath
3350 if test -z "$CYGPATH_W"; then
3351 if (cygpath --version) >/dev/null 2>/dev/null; then
3352 CYGPATH_W='cygpath -w'
3353 else
3354 CYGPATH_W=echo
3355 fi
3356 fi
3357
3358
3359 # Define the identity of the package.
3360 PACKAGE='speex'
3361 VERSION='1.2.1'
3362
3363
3364 # Some tools Automake needs.
3365
3366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3367
3368
3369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3370
3371
3372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3373
3374
3375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3376
3377
3378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3379
3380 # For better backward compatibility. To be removed once Automake 1.9.x
3381 # dies out for good. For more background, see:
3382 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3383 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3384 mkdir_p='$(MKDIR_P)'
3385
3386 # We need awk for the "check" target (and possibly the TAP driver). The
3387 # system "awk" is bad on some platforms.
3388 # Always define AMTAR for backward compatibility. Yes, it's still used
3389 # in the wild :-( We should find a proper way to deprecate it ...
3390 AMTAR='$${TAR-tar}'
3391
3392
3393 # We'll loop over all known methods to create a tar archive until one works.
3394 _am_tools='gnutar pax cpio none'
3395
3396 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3397
3398
3399
3400
3401
3402 # Variables for tags utilities; see am/tags.am
3403 if test -z "$CTAGS"; then
3404 CTAGS=ctags
3405 fi
3406
3407 if test -z "$ETAGS"; then
3408 ETAGS=etags
3409 fi
3410
3411 if test -z "$CSCOPE"; then
3412 CSCOPE=cscope
3413 fi
3414
3415
3416
3417 # POSIX will say in a future version that running "rm -f" with no argument
3418 # is OK; and we want to be able to make that assumption in our Makefile
3419 # recipes. So use an aggressive probe to check that the usage we want is
3420 # actually supported "in the wild" to an acceptable degree.
3421 # See automake bug#10828.
3422 # To make any issue more visible, cause the running configure to be aborted
3423 # by default if the 'rm' program in use doesn't match our expectations; the
3424 # user can still override this though.
3425 if rm -f && rm -fr && rm -rf; then : OK; else
3426 cat >&2 <<'END'
3427 Oops!
3428
3429 Your 'rm' program seems unable to run without file operands specified
3430 on the command line, even when the '-f' option is present. This is contrary
3431 to the behaviour of most rm programs out there, and not conforming with
3432 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3433
3434 Please tell [email protected] about your system, including the value
3435 of your $PATH and any error possibly output before this message. This
3436 can help us improve future automake versions.
3437
3438 END
3439 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3440 echo 'Configuration will proceed anyway, since you have set the' >&2
3441 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3442 echo >&2
3443 else
3444 cat >&2 <<'END'
3445 Aborting the configuration process, to ensure you take notice of the issue.
3446
3447 You can download and install GNU coreutils to get an 'rm' implementation
3448 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3449
3450 If you want to complete the configuration process using your problematic
3451 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3452 to "yes", and re-run configure.
3453
3454 END
3455 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3456 fi
3457 fi
3458
3459
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3461 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3462 # Check whether --enable-maintainer-mode was given.
3463 if test ${enable_maintainer_mode+y}
3464 then :
3465 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3466 else $as_nop
3467 USE_MAINTAINER_MODE=yes
3468 fi
3469
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3471 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3472 if test $USE_MAINTAINER_MODE = yes; then
3473 MAINTAINER_MODE_TRUE=
3474 MAINTAINER_MODE_FALSE='#'
3475 else
3476 MAINTAINER_MODE_TRUE='#'
3477 MAINTAINER_MODE_FALSE=
3478 fi
3479
3480 MAINT=$MAINTAINER_MODE_TRUE
3481
3482
3483
3484
3485
3486 # Make sure we can run config.sub.
3487 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3488 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3489
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3491 printf %s "checking build system type... " >&6; }
3492 if test ${ac_cv_build+y}
3493 then :
3494 printf %s "(cached) " >&6
3495 else $as_nop
3496 ac_build_alias=$build_alias
3497 test "x$ac_build_alias" = x &&
3498 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3499 test "x$ac_build_alias" = x &&
3500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3501 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3502 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3503
3504 fi
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3506 printf "%s\n" "$ac_cv_build" >&6; }
3507 case $ac_cv_build in
3508 *-*-*) ;;
3509 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3510 esac
3511 build=$ac_cv_build
3512 ac_save_IFS=$IFS; IFS='-'
3513 set x $ac_cv_build
3514 shift
3515 build_cpu=$1
3516 build_vendor=$2
3517 shift; shift
3518 # Remember, the first character of IFS is used to create $*,
3519 # except with old shells:
3520 build_os=$*
3521 IFS=$ac_save_IFS
3522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3523
3524
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3526 printf %s "checking host system type... " >&6; }
3527 if test ${ac_cv_host+y}
3528 then :
3529 printf %s "(cached) " >&6
3530 else $as_nop
3531 if test "x$host_alias" = x; then
3532 ac_cv_host=$ac_cv_build
3533 else
3534 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3535 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3536 fi
3537
3538 fi
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3540 printf "%s\n" "$ac_cv_host" >&6; }
3541 case $ac_cv_host in
3542 *-*-*) ;;
3543 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3544 esac
3545 host=$ac_cv_host
3546 ac_save_IFS=$IFS; IFS='-'
3547 set x $ac_cv_host
3548 shift
3549 host_cpu=$1
3550 host_vendor=$2
3551 shift; shift
3552 # Remember, the first character of IFS is used to create $*,
3553 # except with old shells:
3554 host_os=$*
3555 IFS=$ac_save_IFS
3556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3557
3558
3559 enable_win32_dll=yes
3560
3561 case $host in
3562 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3563 if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}as; ac_word=$2
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 printf %s "checking for $ac_word... " >&6; }
3568 if test ${ac_cv_prog_AS+y}
3569 then :
3570 printf %s "(cached) " >&6
3571 else $as_nop
3572 if test -n "$AS"; then
3573 ac_cv_prog_AS="$AS" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 case $as_dir in #(((
3580 '') as_dir=./ ;;
3581 */) ;;
3582 *) as_dir=$as_dir/ ;;
3583 esac
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_AS="${ac_tool_prefix}as"
3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590 done
3591 done
3592 IFS=$as_save_IFS
3593
3594 fi
3595 fi
3596 AS=$ac_cv_prog_AS
3597 if test -n "$AS"; then
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3599 printf "%s\n" "$AS" >&6; }
3600 else
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 printf "%s\n" "no" >&6; }
3603 fi
3604
3605
3606 fi
3607 if test -z "$ac_cv_prog_AS"; then
3608 ac_ct_AS=$AS
3609 # Extract the first word of "as", so it can be a program name with args.
3610 set dummy as; ac_word=$2
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 printf %s "checking for $ac_word... " >&6; }
3613 if test ${ac_cv_prog_ac_ct_AS+y}
3614 then :
3615 printf %s "(cached) " >&6
3616 else $as_nop
3617 if test -n "$ac_ct_AS"; then
3618 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_AS="as"
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3642 if test -n "$ac_ct_AS"; then
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3644 printf "%s\n" "$ac_ct_AS" >&6; }
3645 else
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 printf "%s\n" "no" >&6; }
3648 fi
3649
3650 if test "x$ac_ct_AS" = x; then
3651 AS="false"
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 AS=$ac_ct_AS
3660 fi
3661 else
3662 AS="$ac_cv_prog_AS"
3663 fi
3664
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 printf %s "checking for $ac_word... " >&6; }
3670 if test ${ac_cv_prog_DLLTOOL+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else $as_nop
3674 if test -n "$DLLTOOL"; then
3675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 case $as_dir in #(((
3682 '') as_dir=./ ;;
3683 */) ;;
3684 *) as_dir=$as_dir/ ;;
3685 esac
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi
3697 fi
3698 DLLTOOL=$ac_cv_prog_DLLTOOL
3699 if test -n "$DLLTOOL"; then
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3701 printf "%s\n" "$DLLTOOL" >&6; }
3702 else
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 printf "%s\n" "no" >&6; }
3705 fi
3706
3707
3708 fi
3709 if test -z "$ac_cv_prog_DLLTOOL"; then
3710 ac_ct_DLLTOOL=$DLLTOOL
3711 # Extract the first word of "dlltool", so it can be a program name with args.
3712 set dummy dlltool; ac_word=$2
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 printf %s "checking for $ac_word... " >&6; }
3715 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
3716 then :
3717 printf %s "(cached) " >&6
3718 else $as_nop
3719 if test -n "$ac_ct_DLLTOOL"; then
3720 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 case $as_dir in #(((
3727 '') as_dir=./ ;;
3728 */) ;;
3729 *) as_dir=$as_dir/ ;;
3730 esac
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3744 if test -n "$ac_ct_DLLTOOL"; then
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3746 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
3747 else
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 printf "%s\n" "no" >&6; }
3750 fi
3751
3752 if test "x$ac_ct_DLLTOOL" = x; then
3753 DLLTOOL="false"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 DLLTOOL=$ac_ct_DLLTOOL
3762 fi
3763 else
3764 DLLTOOL="$ac_cv_prog_DLLTOOL"
3765 fi
3766
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 printf %s "checking for $ac_word... " >&6; }
3772 if test ${ac_cv_prog_OBJDUMP+y}
3773 then :
3774 printf %s "(cached) " >&6
3775 else $as_nop
3776 if test -n "$OBJDUMP"; then
3777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 case $as_dir in #(((
3784 '') as_dir=./ ;;
3785 */) ;;
3786 *) as_dir=$as_dir/ ;;
3787 esac
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 OBJDUMP=$ac_cv_prog_OBJDUMP
3801 if test -n "$OBJDUMP"; then
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3803 printf "%s\n" "$OBJDUMP" >&6; }
3804 else
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3807 fi
3808
3809
3810 fi
3811 if test -z "$ac_cv_prog_OBJDUMP"; then
3812 ac_ct_OBJDUMP=$OBJDUMP
3813 # Extract the first word of "objdump", so it can be a program name with args.
3814 set dummy objdump; ac_word=$2
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 printf %s "checking for $ac_word... " >&6; }
3817 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
3818 then :
3819 printf %s "(cached) " >&6
3820 else $as_nop
3821 if test -n "$ac_ct_OBJDUMP"; then
3822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 case $as_dir in #(((
3829 '') as_dir=./ ;;
3830 */) ;;
3831 *) as_dir=$as_dir/ ;;
3832 esac
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3846 if test -n "$ac_ct_OBJDUMP"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3848 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 fi
3853
3854 if test "x$ac_ct_OBJDUMP" = x; then
3855 OBJDUMP="false"
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858 yes:)
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861 ac_tool_warned=yes ;;
3862 esac
3863 OBJDUMP=$ac_ct_OBJDUMP
3864 fi
3865 else
3866 OBJDUMP="$ac_cv_prog_OBJDUMP"
3867 fi
3868
3869 ;;
3870 esac
3871
3872 test -z "$AS" && AS=as
3873
3874
3875
3876
3877
3878 test -z "$DLLTOOL" && DLLTOOL=dlltool
3879
3880
3881
3882
3883
3884 test -z "$OBJDUMP" && OBJDUMP=objdump
3885
3886
3887
3888
3889
3890 case `pwd` in
3891 *\ * | *\ *)
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3893 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3894 esac
3895
3896
3897
3898 macro_version='2.4.6'
3899 macro_revision='2.4.6'
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914 ltmain=$ac_aux_dir/ltmain.sh
3915
3916 # Backslashify metacharacters that are still active within
3917 # double-quoted strings.
3918 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3919
3920 # Same as above, but do not quote variable references.
3921 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3922
3923 # Sed substitution to delay expansion of an escaped shell variable in a
3924 # double_quote_subst'ed string.
3925 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3926
3927 # Sed substitution to delay expansion of an escaped single quote.
3928 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3929
3930 # Sed substitution to avoid accidental globbing in evaled expressions
3931 no_glob_subst='s/\*/\\\*/g'
3932
3933 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3934 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3935 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3936
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3938 printf %s "checking how to print strings... " >&6; }
3939 # Test print first, because it will be a builtin if present.
3940 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3941 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3942 ECHO='print -r --'
3943 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3944 ECHO='printf %s\n'
3945 else
3946 # Use this function as a fallback that always works.
3947 func_fallback_echo ()
3948 {
3949 eval 'cat <<_LTECHO_EOF
3950 $1
3951 _LTECHO_EOF'
3952 }
3953 ECHO='func_fallback_echo'
3954 fi
3955
3956 # func_echo_all arg...
3957 # Invoke $ECHO with all args, space-separated.
3958 func_echo_all ()
3959 {
3960 $ECHO ""
3961 }
3962
3963 case $ECHO in
3964 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3965 printf "%s\n" "printf" >&6; } ;;
3966 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3967 printf "%s\n" "print -r" >&6; } ;;
3968 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3969 printf "%s\n" "cat" >&6; } ;;
3970 esac
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 DEPDIR="${am__leading_dot}deps"
3995
3996 ac_config_commands="$ac_config_commands depfiles"
3997
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3999 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4000 cat > confinc.mk << 'END'
4001 am__doit:
4002 @echo this is the am__doit target >confinc.out
4003 .PHONY: am__doit
4004 END
4005 am__include="#"
4006 am__quote=
4007 # BSD make does it like this.
4008 echo '.include "confinc.mk" # ignored' > confmf.BSD
4009 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4010 echo 'include confinc.mk # ignored' > confmf.GNU
4011 _am_result=no
4012 for s in GNU BSD; do
4013 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4014 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4018 case $?:`cat confinc.out 2>/dev/null` in #(
4019 '0:this is the am__doit target') :
4020 case $s in #(
4021 BSD) :
4022 am__include='.include' am__quote='"' ;; #(
4023 *) :
4024 am__include='include' am__quote='' ;;
4025 esac ;; #(
4026 *) :
4027 ;;
4028 esac
4029 if test "$am__include" != "#"; then
4030 _am_result="yes ($s style)"
4031 break
4032 fi
4033 done
4034 rm -f confinc.* confmf.*
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4036 printf "%s\n" "${_am_result}" >&6; }
4037
4038 # Check whether --enable-dependency-tracking was given.
4039 if test ${enable_dependency_tracking+y}
4040 then :
4041 enableval=$enable_dependency_tracking;
4042 fi
4043
4044 if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4046 AMDEPBACKSLASH='\'
4047 am__nodep='_no'
4048 fi
4049 if test "x$enable_dependency_tracking" != xno; then
4050 AMDEP_TRUE=
4051 AMDEP_FALSE='#'
4052 else
4053 AMDEP_TRUE='#'
4054 AMDEP_FALSE=
4055 fi
4056
4057
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 if test -n "$ac_tool_prefix"; then
4064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_CC+y}
4069 then :
4070 printf %s "(cached) " >&6
4071 else $as_nop
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 case $as_dir in #(((
4080 '') as_dir=./ ;;
4081 */) ;;
4082 *) as_dir=$as_dir/ ;;
4083 esac
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 printf "%s\n" "$CC" >&6; }
4100 else
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$ac_cv_prog_CC"; then
4108 ac_ct_CC=$CC
4109 # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 printf %s "checking for $ac_word... " >&6; }
4113 if test ${ac_cv_prog_ac_ct_CC+y}
4114 then :
4115 printf %s "(cached) " >&6
4116 else $as_nop
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 case $as_dir in #(((
4125 '') as_dir=./ ;;
4126 */) ;;
4127 *) as_dir=$as_dir/ ;;
4128 esac
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_CC="gcc"
4132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4144 printf "%s\n" "$ac_ct_CC" >&6; }
4145 else
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 printf "%s\n" "no" >&6; }
4148 fi
4149
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4160 fi
4161 else
4162 CC="$ac_cv_prog_CC"
4163 fi
4164
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}cc; ac_word=$2
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 printf %s "checking for $ac_word... " >&6; }
4171 if test ${ac_cv_prog_CC+y}
4172 then :
4173 printf %s "(cached) " >&6
4174 else $as_nop
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 case $as_dir in #(((
4183 '') as_dir=./ ;;
4184 */) ;;
4185 *) as_dir=$as_dir/ ;;
4186 esac
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_CC="${ac_tool_prefix}cc"
4190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 CC=$ac_cv_prog_CC
4200 if test -n "$CC"; then
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202 printf "%s\n" "$CC" >&6; }
4203 else
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 printf "%s\n" "no" >&6; }
4206 fi
4207
4208
4209 fi
4210 fi
4211 if test -z "$CC"; then
4212 # Extract the first word of "cc", so it can be a program name with args.
4213 set dummy cc; ac_word=$2
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 printf %s "checking for $ac_word... " >&6; }
4216 if test ${ac_cv_prog_CC+y}
4217 then :
4218 printf %s "(cached) " >&6
4219 else $as_nop
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223 ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227 IFS=$as_save_IFS
4228 case $as_dir in #(((
4229 '') as_dir=./ ;;
4230 */) ;;
4231 *) as_dir=$as_dir/ ;;
4232 esac
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4235 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236 ac_prog_rejected=yes
4237 continue
4238 fi
4239 ac_cv_prog_CC="cc"
4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243 done
4244 done
4245 IFS=$as_save_IFS
4246
4247 if test $ac_prog_rejected = yes; then
4248 # We found a bogon in the path, so make sure we never use it.
4249 set dummy $ac_cv_prog_CC
4250 shift
4251 if test $# != 0; then
4252 # We chose a different compiler from the bogus one.
4253 # However, it has the same basename, so the bogon will be chosen
4254 # first if we set CC to just the basename; use the full file name.
4255 shift
4256 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4257 fi
4258 fi
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 printf "%s\n" "$CC" >&6; }
4265 else
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 printf "%s\n" "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 if test -z "$CC"; then
4273 if test -n "$ac_tool_prefix"; then
4274 for ac_prog in cl.exe
4275 do
4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 printf %s "checking for $ac_word... " >&6; }
4280 if test ${ac_cv_prog_CC+y}
4281 then :
4282 printf %s "(cached) " >&6
4283 else $as_nop
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 case $as_dir in #(((
4292 '') as_dir=./ ;;
4293 */) ;;
4294 *) as_dir=$as_dir/ ;;
4295 esac
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4300 break 2
4301 fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 CC=$ac_cv_prog_CC
4309 if test -n "$CC"; then
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 printf "%s\n" "$CC" >&6; }
4312 else
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 printf "%s\n" "no" >&6; }
4315 fi
4316
4317
4318 test -n "$CC" && break
4319 done
4320 fi
4321 if test -z "$CC"; then
4322 ac_ct_CC=$CC
4323 for ac_prog in cl.exe
4324 do
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 printf %s "checking for $ac_word... " >&6; }
4329 if test ${ac_cv_prog_ac_ct_CC+y}
4330 then :
4331 printf %s "(cached) " >&6
4332 else $as_nop
4333 if test -n "$ac_ct_CC"; then
4334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339 IFS=$as_save_IFS
4340 case $as_dir in #(((
4341 '') as_dir=./ ;;
4342 */) ;;
4343 *) as_dir=$as_dir/ ;;
4344 esac
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
4348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 printf "%s\n" "$ac_ct_CC" >&6; }
4361 else
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 printf "%s\n" "no" >&6; }
4364 fi
4365
4366
4367 test -n "$ac_ct_CC" && break
4368 done
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CC=$ac_ct_CC
4380 fi
4381 fi
4382
4383 fi
4384 if test -z "$CC"; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}clang; ac_word=$2
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 printf %s "checking for $ac_word... " >&6; }
4390 if test ${ac_cv_prog_CC+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else $as_nop
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC="$CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 case $as_dir in #(((
4402 '') as_dir=./ ;;
4403 */) ;;
4404 *) as_dir=$as_dir/ ;;
4405 esac
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4408 ac_cv_prog_CC="${ac_tool_prefix}clang"
4409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 CC=$ac_cv_prog_CC
4419 if test -n "$CC"; then
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4421 printf "%s\n" "$CC" >&6; }
4422 else
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 printf "%s\n" "no" >&6; }
4425 fi
4426
4427
4428 fi
4429 if test -z "$ac_cv_prog_CC"; then
4430 ac_ct_CC=$CC
4431 # Extract the first word of "clang", so it can be a program name with args.
4432 set dummy clang; ac_word=$2
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 printf %s "checking for $ac_word... " >&6; }
4435 if test ${ac_cv_prog_ac_ct_CC+y}
4436 then :
4437 printf %s "(cached) " >&6
4438 else $as_nop
4439 if test -n "$ac_ct_CC"; then
4440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445 IFS=$as_save_IFS
4446 case $as_dir in #(((
4447 '') as_dir=./ ;;
4448 */) ;;
4449 *) as_dir=$as_dir/ ;;
4450 esac
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_CC="clang"
4454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4466 printf "%s\n" "$ac_ct_CC" >&6; }
4467 else
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 printf "%s\n" "no" >&6; }
4470 fi
4471
4472 if test "x$ac_ct_CC" = x; then
4473 CC=""
4474 else
4475 case $cross_compiling:$ac_tool_warned in
4476 yes:)
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479 ac_tool_warned=yes ;;
4480 esac
4481 CC=$ac_ct_CC
4482 fi
4483 else
4484 CC="$ac_cv_prog_CC"
4485 fi
4486
4487 fi
4488
4489
4490 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4491 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4492 as_fn_error $? "no acceptable C compiler found in \$PATH
4493 See \`config.log' for more details" "$LINENO" 5; }
4494
4495 # Provide some information about the compiler.
4496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4497 set X $ac_compile
4498 ac_compiler=$2
4499 for ac_option in --version -v -V -qversion -version; do
4500 { { ac_try="$ac_compiler $ac_option >&5"
4501 case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 printf "%s\n" "$ac_try_echo"; } >&5
4507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 ac_status=$?
4509 if test -s conftest.err; then
4510 sed '10a\
4511 ... rest of stderr output deleted ...
4512 10q' conftest.err >conftest.er1
4513 cat conftest.er1 >&5
4514 fi
4515 rm -f conftest.er1 conftest.err
4516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4518 done
4519
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522
4523 int
4524 main (void)
4525 {
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 ac_clean_files_save=$ac_clean_files
4532 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4533 # Try to create an executable without -o first, disregard a.out.
4534 # It will help us diagnose broken compilers, and finding out an intuition
4535 # of exeext.
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4537 printf %s "checking whether the C compiler works... " >&6; }
4538 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4539
4540 # The possible output files:
4541 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4542
4543 ac_rmfiles=
4544 for ac_file in $ac_files
4545 do
4546 case $ac_file in
4547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4548 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4549 esac
4550 done
4551 rm -f $ac_rmfiles
4552
4553 if { { ac_try="$ac_link_default"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 printf "%s\n" "$ac_try_echo"; } >&5
4560 (eval "$ac_link_default") 2>&5
4561 ac_status=$?
4562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4564 then :
4565 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4566 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4567 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4568 # so that the user can short-circuit this test for compilers unknown to
4569 # Autoconf.
4570 for ac_file in $ac_files ''
4571 do
4572 test -f "$ac_file" || continue
4573 case $ac_file in
4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4575 ;;
4576 [ab].out )
4577 # We found the default executable, but exeext='' is most
4578 # certainly right.
4579 break;;
4580 *.* )
4581 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4582 then :; else
4583 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584 fi
4585 # We set ac_cv_exeext here because the later test for it is not
4586 # safe: cross compilers may not add the suffix if given an `-o'
4587 # argument, so we may need to know it at that point already.
4588 # Even if this section looks crufty: it has the advantage of
4589 # actually working.
4590 break;;
4591 * )
4592 break;;
4593 esac
4594 done
4595 test "$ac_cv_exeext" = no && ac_cv_exeext=
4596
4597 else $as_nop
4598 ac_file=''
4599 fi
4600 if test -z "$ac_file"
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 printf "%s\n" "no" >&6; }
4604 printf "%s\n" "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error 77 "C compiler cannot create executables
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 else $as_nop
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613 printf "%s\n" "yes" >&6; }
4614 fi
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4616 printf %s "checking for C compiler default output file name... " >&6; }
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4618 printf "%s\n" "$ac_file" >&6; }
4619 ac_exeext=$ac_cv_exeext
4620
4621 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4622 ac_clean_files=$ac_clean_files_save
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4624 printf %s "checking for suffix of executables... " >&6; }
4625 if { { ac_try="$ac_link"
4626 case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629 esac
4630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4631 printf "%s\n" "$ac_try_echo"; } >&5
4632 (eval "$ac_link") 2>&5
4633 ac_status=$?
4634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4636 then :
4637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4639 # work properly (i.e., refer to `conftest.exe'), while it won't with
4640 # `rm'.
4641 for ac_file in conftest.exe conftest conftest.*; do
4642 test -f "$ac_file" || continue
4643 case $ac_file in
4644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4646 break;;
4647 * ) break;;
4648 esac
4649 done
4650 else $as_nop
4651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4654 See \`config.log' for more details" "$LINENO" 5; }
4655 fi
4656 rm -f conftest conftest$ac_cv_exeext
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4658 printf "%s\n" "$ac_cv_exeext" >&6; }
4659
4660 rm -f conftest.$ac_ext
4661 EXEEXT=$ac_cv_exeext
4662 ac_exeext=$EXEEXT
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <stdio.h>
4666 int
4667 main (void)
4668 {
4669 FILE *f = fopen ("conftest.out", "w");
4670 return ferror (f) || fclose (f) != 0;
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 ac_clean_files="$ac_clean_files conftest.out"
4677 # Check that the compiler produces executables we can run. If not, either
4678 # the compiler is broken, or we cross compile.
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4680 printf %s "checking whether we are cross compiling... " >&6; }
4681 if test "$cross_compiling" != yes; then
4682 { { ac_try="$ac_link"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 printf "%s\n" "$ac_try_echo"; } >&5
4689 (eval "$ac_link") 2>&5
4690 ac_status=$?
4691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 if { ac_try='./conftest$ac_cv_exeext'
4694 { { case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 printf "%s\n" "$ac_try_echo"; } >&5
4700 (eval "$ac_try") 2>&5
4701 ac_status=$?
4702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; }; then
4704 cross_compiling=no
4705 else
4706 if test "$cross_compiling" = maybe; then
4707 cross_compiling=yes
4708 else
4709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error 77 "cannot run C compiled programs.
4712 If you meant to cross compile, use \`--host'.
4713 See \`config.log' for more details" "$LINENO" 5; }
4714 fi
4715 fi
4716 fi
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4718 printf "%s\n" "$cross_compiling" >&6; }
4719
4720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4721 ac_clean_files=$ac_clean_files_save
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4723 printf %s "checking for suffix of object files... " >&6; }
4724 if test ${ac_cv_objext+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else $as_nop
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.o conftest.obj
4740 if { { ac_try="$ac_compile"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 printf "%s\n" "$ac_try_echo"; } >&5
4747 (eval "$ac_compile") 2>&5
4748 ac_status=$?
4749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }
4751 then :
4752 for ac_file in conftest.o conftest.obj conftest.*; do
4753 test -f "$ac_file" || continue;
4754 case $ac_file in
4755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4757 break;;
4758 esac
4759 done
4760 else $as_nop
4761 printf "%s\n" "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4765 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4766 as_fn_error $? "cannot compute suffix of object files: cannot compile
4767 See \`config.log' for more details" "$LINENO" 5; }
4768 fi
4769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4770 fi
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4772 printf "%s\n" "$ac_cv_objext" >&6; }
4773 OBJEXT=$ac_cv_objext
4774 ac_objext=$OBJEXT
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4776 printf %s "checking whether the compiler supports GNU C... " >&6; }
4777 if test ${ac_cv_c_compiler_gnu+y}
4778 then :
4779 printf %s "(cached) " >&6
4780 else $as_nop
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main (void)
4786 {
4787 #ifndef __GNUC__
4788 choke me
4789 #endif
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"
4796 then :
4797 ac_compiler_gnu=yes
4798 else $as_nop
4799 ac_compiler_gnu=no
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4803
4804 fi
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4806 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 if test $ac_compiler_gnu = yes; then
4810 GCC=yes
4811 else
4812 GCC=
4813 fi
4814 ac_test_CFLAGS=${CFLAGS+y}
4815 ac_save_CFLAGS=$CFLAGS
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4817 printf %s "checking whether $CC accepts -g... " >&6; }
4818 if test ${ac_cv_prog_cc_g+y}
4819 then :
4820 printf %s "(cached) " >&6
4821 else $as_nop
4822 ac_save_c_werror_flag=$ac_c_werror_flag
4823 ac_c_werror_flag=yes
4824 ac_cv_prog_cc_g=no
4825 CFLAGS="-g"
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main (void)
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 ac_cv_prog_cc_g=yes
4840 else $as_nop
4841 CFLAGS=""
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main (void)
4847 {
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"
4854 then :
4855
4856 else $as_nop
4857 ac_c_werror_flag=$ac_save_c_werror_flag
4858 CFLAGS="-g"
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main (void)
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"
4871 then :
4872 ac_cv_prog_cc_g=yes
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4879 ac_c_werror_flag=$ac_save_c_werror_flag
4880 fi
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4882 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4883 if test $ac_test_CFLAGS; then
4884 CFLAGS=$ac_save_CFLAGS
4885 elif test $ac_cv_prog_cc_g = yes; then
4886 if test "$GCC" = yes; then
4887 CFLAGS="-g -O2"
4888 else
4889 CFLAGS="-g"
4890 fi
4891 else
4892 if test "$GCC" = yes; then
4893 CFLAGS="-O2"
4894 else
4895 CFLAGS=
4896 fi
4897 fi
4898 ac_prog_cc_stdc=no
4899 if test x$ac_prog_cc_stdc = xno
4900 then :
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4902 printf %s "checking for $CC option to enable C11 features... " >&6; }
4903 if test ${ac_cv_prog_cc_c11+y}
4904 then :
4905 printf %s "(cached) " >&6
4906 else $as_nop
4907 ac_cv_prog_cc_c11=no
4908 ac_save_CC=$CC
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 $ac_c_conftest_c11_program
4912 _ACEOF
4913 for ac_arg in '' -std=gnu11
4914 do
4915 CC="$ac_save_CC $ac_arg"
4916 if ac_fn_c_try_compile "$LINENO"
4917 then :
4918 ac_cv_prog_cc_c11=$ac_arg
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext conftest.beam
4921 test "x$ac_cv_prog_cc_c11" != "xno" && break
4922 done
4923 rm -f conftest.$ac_ext
4924 CC=$ac_save_CC
4925 fi
4926
4927 if test "x$ac_cv_prog_cc_c11" = xno
4928 then :
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4930 printf "%s\n" "unsupported" >&6; }
4931 else $as_nop
4932 if test "x$ac_cv_prog_cc_c11" = x
4933 then :
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4935 printf "%s\n" "none needed" >&6; }
4936 else $as_nop
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4938 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4939 CC="$CC $ac_cv_prog_cc_c11"
4940 fi
4941 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4942 ac_prog_cc_stdc=c11
4943 fi
4944 fi
4945 if test x$ac_prog_cc_stdc = xno
4946 then :
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4948 printf %s "checking for $CC option to enable C99 features... " >&6; }
4949 if test ${ac_cv_prog_cc_c99+y}
4950 then :
4951 printf %s "(cached) " >&6
4952 else $as_nop
4953 ac_cv_prog_cc_c99=no
4954 ac_save_CC=$CC
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 $ac_c_conftest_c99_program
4958 _ACEOF
4959 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4960 do
4961 CC="$ac_save_CC $ac_arg"
4962 if ac_fn_c_try_compile "$LINENO"
4963 then :
4964 ac_cv_prog_cc_c99=$ac_arg
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.beam
4967 test "x$ac_cv_prog_cc_c99" != "xno" && break
4968 done
4969 rm -f conftest.$ac_ext
4970 CC=$ac_save_CC
4971 fi
4972
4973 if test "x$ac_cv_prog_cc_c99" = xno
4974 then :
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4976 printf "%s\n" "unsupported" >&6; }
4977 else $as_nop
4978 if test "x$ac_cv_prog_cc_c99" = x
4979 then :
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4981 printf "%s\n" "none needed" >&6; }
4982 else $as_nop
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4984 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4985 CC="$CC $ac_cv_prog_cc_c99"
4986 fi
4987 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4988 ac_prog_cc_stdc=c99
4989 fi
4990 fi
4991 if test x$ac_prog_cc_stdc = xno
4992 then :
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4994 printf %s "checking for $CC option to enable C89 features... " >&6; }
4995 if test ${ac_cv_prog_cc_c89+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else $as_nop
4999 ac_cv_prog_cc_c89=no
5000 ac_save_CC=$CC
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 $ac_c_conftest_c89_program
5004 _ACEOF
5005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5006 do
5007 CC="$ac_save_CC $ac_arg"
5008 if ac_fn_c_try_compile "$LINENO"
5009 then :
5010 ac_cv_prog_cc_c89=$ac_arg
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.beam
5013 test "x$ac_cv_prog_cc_c89" != "xno" && break
5014 done
5015 rm -f conftest.$ac_ext
5016 CC=$ac_save_CC
5017 fi
5018
5019 if test "x$ac_cv_prog_cc_c89" = xno
5020 then :
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5022 printf "%s\n" "unsupported" >&6; }
5023 else $as_nop
5024 if test "x$ac_cv_prog_cc_c89" = x
5025 then :
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5027 printf "%s\n" "none needed" >&6; }
5028 else $as_nop
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5030 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5031 CC="$CC $ac_cv_prog_cc_c89"
5032 fi
5033 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5034 ac_prog_cc_stdc=c89
5035 fi
5036 fi
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043
5044
5045 ac_ext=c
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5051 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5052 if test ${am_cv_prog_cc_c_o+y}
5053 then :
5054 printf %s "(cached) " >&6
5055 else $as_nop
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058
5059 int
5060 main (void)
5061 {
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 # Make sure it works both with $CC and with simple cc.
5068 # Following AC_PROG_CC_C_O, we do the test twice because some
5069 # compilers refuse to overwrite an existing .o file with -o,
5070 # though they will create one.
5071 am_cv_prog_cc_c_o=yes
5072 for am_i in 1 2; do
5073 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5074 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } \
5078 && test -f conftest2.$ac_objext; then
5079 : OK
5080 else
5081 am_cv_prog_cc_c_o=no
5082 break
5083 fi
5084 done
5085 rm -f core conftest*
5086 unset am_i
5087 fi
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5089 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5090 if test "$am_cv_prog_cc_c_o" != yes; then
5091 # Losing compiler, so override with the script.
5092 # FIXME: It is wrong to rewrite CC.
5093 # But if we don't then we get into trouble of one sort or another.
5094 # A longer-term fix would be to have automake use am__CC in this case,
5095 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5096 CC="$am_aux_dir/compile $CC"
5097 fi
5098 ac_ext=c
5099 ac_cpp='$CPP $CPPFLAGS'
5100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103
5104
5105 depcc="$CC" am_compiler_list=
5106
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5108 printf %s "checking dependency style of $depcc... " >&6; }
5109 if test ${am_cv_CC_dependencies_compiler_type+y}
5110 then :
5111 printf %s "(cached) " >&6
5112 else $as_nop
5113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5114 # We make a subdir and do the tests there. Otherwise we can end up
5115 # making bogus files that we don't know about and never remove. For
5116 # instance it was reported that on HP-UX the gcc test will end up
5117 # making a dummy file named 'D' -- because '-MD' means "put the output
5118 # in D".
5119 rm -rf conftest.dir
5120 mkdir conftest.dir
5121 # Copy depcomp to subdir because otherwise we won't find it if we're
5122 # using a relative directory.
5123 cp "$am_depcomp" conftest.dir
5124 cd conftest.dir
5125 # We will build objects and dependencies in a subdirectory because
5126 # it helps to detect inapplicable dependency modes. For instance
5127 # both Tru64's cc and ICC support -MD to output dependencies as a
5128 # side effect of compilation, but ICC will put the dependencies in
5129 # the current directory while Tru64 will put them in the object
5130 # directory.
5131 mkdir sub
5132
5133 am_cv_CC_dependencies_compiler_type=none
5134 if test "$am_compiler_list" = ""; then
5135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5136 fi
5137 am__universal=false
5138 case " $depcc " in #(
5139 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5140 esac
5141
5142 for depmode in $am_compiler_list; do
5143 # Setup a source with many dependencies, because some compilers
5144 # like to wrap large dependency lists on column 80 (with \), and
5145 # we should not choose a depcomp mode which is confused by this.
5146 #
5147 # We need to recreate these files for each test, as the compiler may
5148 # overwrite some of them when testing with obscure command lines.
5149 # This happens at least with the AIX C compiler.
5150 : > sub/conftest.c
5151 for i in 1 2 3 4 5 6; do
5152 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5153 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5154 # Solaris 10 /bin/sh.
5155 echo '/* dummy */' > sub/conftst$i.h
5156 done
5157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5158
5159 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5160 # mode. It turns out that the SunPro C++ compiler does not properly
5161 # handle '-M -o', and we need to detect this. Also, some Intel
5162 # versions had trouble with output in subdirs.
5163 am__obj=sub/conftest.${OBJEXT-o}
5164 am__minus_obj="-o $am__obj"
5165 case $depmode in
5166 gcc)
5167 # This depmode causes a compiler race in universal mode.
5168 test "$am__universal" = false || continue
5169 ;;
5170 nosideeffect)
5171 # After this tag, mechanisms are not by side-effect, so they'll
5172 # only be used when explicitly requested.
5173 if test "x$enable_dependency_tracking" = xyes; then
5174 continue
5175 else
5176 break
5177 fi
5178 ;;
5179 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5180 # This compiler won't grok '-c -o', but also, the minuso test has
5181 # not run yet. These depmodes are late enough in the game, and
5182 # so weak that their functioning should not be impacted.
5183 am__obj=conftest.${OBJEXT-o}
5184 am__minus_obj=
5185 ;;
5186 none) break ;;
5187 esac
5188 if depmode=$depmode \
5189 source=sub/conftest.c object=$am__obj \
5190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5191 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5192 >/dev/null 2>conftest.err &&
5193 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5195 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5197 # icc doesn't choke on unknown options, it will just issue warnings
5198 # or remarks (even with -Werror). So we grep stderr for any message
5199 # that says an option was ignored or not supported.
5200 # When given -MP, icc 7.0 and 7.1 complain thusly:
5201 # icc: Command line warning: ignoring option '-M'; no argument required
5202 # The diagnosis changed in icc 8.0:
5203 # icc: Command line remark: option '-MP' not supported
5204 if (grep 'ignoring option' conftest.err ||
5205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5206 am_cv_CC_dependencies_compiler_type=$depmode
5207 break
5208 fi
5209 fi
5210 done
5211
5212 cd ..
5213 rm -rf conftest.dir
5214 else
5215 am_cv_CC_dependencies_compiler_type=none
5216 fi
5217
5218 fi
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5222
5223 if
5224 test "x$enable_dependency_tracking" != xno \
5225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5226 am__fastdepCC_TRUE=
5227 am__fastdepCC_FALSE='#'
5228 else
5229 am__fastdepCC_TRUE='#'
5230 am__fastdepCC_FALSE=
5231 fi
5232
5233
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5235 printf %s "checking for a sed that does not truncate output... " >&6; }
5236 if test ${ac_cv_path_SED+y}
5237 then :
5238 printf %s "(cached) " >&6
5239 else $as_nop
5240 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5241 for ac_i in 1 2 3 4 5 6 7; do
5242 ac_script="$ac_script$as_nl$ac_script"
5243 done
5244 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5245 { ac_script=; unset ac_script;}
5246 if test -z "$SED"; then
5247 ac_path_SED_found=false
5248 # Loop through the user's path and test for each of PROGNAME-LIST
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 case $as_dir in #(((
5254 '') as_dir=./ ;;
5255 */) ;;
5256 *) as_dir=$as_dir/ ;;
5257 esac
5258 for ac_prog in sed gsed
5259 do
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5262 as_fn_executable_p "$ac_path_SED" || continue
5263 # Check for GNU ac_path_SED and select it if it is found.
5264 # Check for GNU $ac_path_SED
5265 case `"$ac_path_SED" --version 2>&1` in
5266 *GNU*)
5267 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5268 *)
5269 ac_count=0
5270 printf %s 0123456789 >"conftest.in"
5271 while :
5272 do
5273 cat "conftest.in" "conftest.in" >"conftest.tmp"
5274 mv "conftest.tmp" "conftest.in"
5275 cp "conftest.in" "conftest.nl"
5276 printf "%s\n" '' >> "conftest.nl"
5277 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279 as_fn_arith $ac_count + 1 && ac_count=$as_val
5280 if test $ac_count -gt ${ac_path_SED_max-0}; then
5281 # Best one so far, save it but keep looking for a better one
5282 ac_cv_path_SED="$ac_path_SED"
5283 ac_path_SED_max=$ac_count
5284 fi
5285 # 10*(2^10) chars as input seems more than enough
5286 test $ac_count -gt 10 && break
5287 done
5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289 esac
5290
5291 $ac_path_SED_found && break 3
5292 done
5293 done
5294 done
5295 IFS=$as_save_IFS
5296 if test -z "$ac_cv_path_SED"; then
5297 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5298 fi
5299 else
5300 ac_cv_path_SED=$SED
5301 fi
5302
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5305 printf "%s\n" "$ac_cv_path_SED" >&6; }
5306 SED="$ac_cv_path_SED"
5307 rm -f conftest.sed
5308
5309 test -z "$SED" && SED=sed
5310 Xsed="$SED -e 1s/^X//"
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5323 printf %s "checking for grep that handles long lines and -e... " >&6; }
5324 if test ${ac_cv_path_GREP+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else $as_nop
5328 if test -z "$GREP"; then
5329 ac_path_GREP_found=false
5330 # Loop through the user's path and test for each of PROGNAME-LIST
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5333 do
5334 IFS=$as_save_IFS
5335 case $as_dir in #(((
5336 '') as_dir=./ ;;
5337 */) ;;
5338 *) as_dir=$as_dir/ ;;
5339 esac
5340 for ac_prog in grep ggrep
5341 do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5344 as_fn_executable_p "$ac_path_GREP" || continue
5345 # Check for GNU ac_path_GREP and select it if it is found.
5346 # Check for GNU $ac_path_GREP
5347 case `"$ac_path_GREP" --version 2>&1` in
5348 *GNU*)
5349 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5350 *)
5351 ac_count=0
5352 printf %s 0123456789 >"conftest.in"
5353 while :
5354 do
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 printf "%s\n" 'GREP' >> "conftest.nl"
5359 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_GREP="$ac_path_GREP"
5365 ac_path_GREP_max=$ac_count
5366 fi
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5372
5373 $ac_path_GREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_GREP"; then
5379 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5380 fi
5381 else
5382 ac_cv_path_GREP=$GREP
5383 fi
5384
5385 fi
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5387 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5388 GREP="$ac_cv_path_GREP"
5389
5390
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5392 printf %s "checking for egrep... " >&6; }
5393 if test ${ac_cv_path_EGREP+y}
5394 then :
5395 printf %s "(cached) " >&6
5396 else $as_nop
5397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5398 then ac_cv_path_EGREP="$GREP -E"
5399 else
5400 if test -z "$EGREP"; then
5401 ac_path_EGREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5405 do
5406 IFS=$as_save_IFS
5407 case $as_dir in #(((
5408 '') as_dir=./ ;;
5409 */) ;;
5410 *) as_dir=$as_dir/ ;;
5411 esac
5412 for ac_prog in egrep
5413 do
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5416 as_fn_executable_p "$ac_path_EGREP" || continue
5417 # Check for GNU ac_path_EGREP and select it if it is found.
5418 # Check for GNU $ac_path_EGREP
5419 case `"$ac_path_EGREP" --version 2>&1` in
5420 *GNU*)
5421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5422 *)
5423 ac_count=0
5424 printf %s 0123456789 >"conftest.in"
5425 while :
5426 do
5427 cat "conftest.in" "conftest.in" >"conftest.tmp"
5428 mv "conftest.tmp" "conftest.in"
5429 cp "conftest.in" "conftest.nl"
5430 printf "%s\n" 'EGREP' >> "conftest.nl"
5431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5433 as_fn_arith $ac_count + 1 && ac_count=$as_val
5434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5435 # Best one so far, save it but keep looking for a better one
5436 ac_cv_path_EGREP="$ac_path_EGREP"
5437 ac_path_EGREP_max=$ac_count
5438 fi
5439 # 10*(2^10) chars as input seems more than enough
5440 test $ac_count -gt 10 && break
5441 done
5442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5443 esac
5444
5445 $ac_path_EGREP_found && break 3
5446 done
5447 done
5448 done
5449 IFS=$as_save_IFS
5450 if test -z "$ac_cv_path_EGREP"; then
5451 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5452 fi
5453 else
5454 ac_cv_path_EGREP=$EGREP
5455 fi
5456
5457 fi
5458 fi
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5460 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5461 EGREP="$ac_cv_path_EGREP"
5462
5463
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5465 printf %s "checking for fgrep... " >&6; }
5466 if test ${ac_cv_path_FGREP+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else $as_nop
5470 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5471 then ac_cv_path_FGREP="$GREP -F"
5472 else
5473 if test -z "$FGREP"; then
5474 ac_path_FGREP_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5478 do
5479 IFS=$as_save_IFS
5480 case $as_dir in #(((
5481 '') as_dir=./ ;;
5482 */) ;;
5483 *) as_dir=$as_dir/ ;;
5484 esac
5485 for ac_prog in fgrep
5486 do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5489 as_fn_executable_p "$ac_path_FGREP" || continue
5490 # Check for GNU ac_path_FGREP and select it if it is found.
5491 # Check for GNU $ac_path_FGREP
5492 case `"$ac_path_FGREP" --version 2>&1` in
5493 *GNU*)
5494 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5495 *)
5496 ac_count=0
5497 printf %s 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 printf "%s\n" 'FGREP' >> "conftest.nl"
5504 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 as_fn_arith $ac_count + 1 && ac_count=$as_val
5507 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_FGREP="$ac_path_FGREP"
5510 ac_path_FGREP_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5517
5518 $ac_path_FGREP_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_FGREP"; then
5524 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5525 fi
5526 else
5527 ac_cv_path_FGREP=$FGREP
5528 fi
5529
5530 fi
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5533 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5534 FGREP="$ac_cv_path_FGREP"
5535
5536
5537 test -z "$GREP" && GREP=grep
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 # Check whether --with-gnu-ld was given.
5558 if test ${with_gnu_ld+y}
5559 then :
5560 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5561 else $as_nop
5562 with_gnu_ld=no
5563 fi
5564
5565 ac_prog=ld
5566 if test yes = "$GCC"; then
5567 # Check if gcc -print-prog-name=ld gives a path.
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5569 printf %s "checking for ld used by $CC... " >&6; }
5570 case $host in
5571 *-*-mingw*)
5572 # gcc leaves a trailing carriage return, which upsets mingw
5573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5574 *)
5575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5576 esac
5577 case $ac_prog in
5578 # Accept absolute paths.
5579 [\\/]* | ?:[\\/]*)
5580 re_direlt='/[^/][^/]*/\.\./'
5581 # Canonicalize the pathname of ld
5582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5585 done
5586 test -z "$LD" && LD=$ac_prog
5587 ;;
5588 "")
5589 # If it fails, then pretend we aren't using GCC.
5590 ac_prog=ld
5591 ;;
5592 *)
5593 # If it is relative, then search for the first ld in PATH.
5594 with_gnu_ld=unknown
5595 ;;
5596 esac
5597 elif test yes = "$with_gnu_ld"; then
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5599 printf %s "checking for GNU ld... " >&6; }
5600 else
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5602 printf %s "checking for non-GNU ld... " >&6; }
5603 fi
5604 if test ${lt_cv_path_LD+y}
5605 then :
5606 printf %s "(cached) " >&6
5607 else $as_nop
5608 if test -z "$LD"; then
5609 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5610 for ac_dir in $PATH; do
5611 IFS=$lt_save_ifs
5612 test -z "$ac_dir" && ac_dir=.
5613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5614 lt_cv_path_LD=$ac_dir/$ac_prog
5615 # Check to see if the program is GNU ld. I'd rather use --version,
5616 # but apparently some variants of GNU ld only accept -v.
5617 # Break only if it was the GNU/non-GNU ld that we prefer.
5618 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5619 *GNU* | *'with BFD'*)
5620 test no != "$with_gnu_ld" && break
5621 ;;
5622 *)
5623 test yes != "$with_gnu_ld" && break
5624 ;;
5625 esac
5626 fi
5627 done
5628 IFS=$lt_save_ifs
5629 else
5630 lt_cv_path_LD=$LD # Let the user override the test with a path.
5631 fi
5632 fi
5633
5634 LD=$lt_cv_path_LD
5635 if test -n "$LD"; then
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5637 printf "%s\n" "$LD" >&6; }
5638 else
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 printf "%s\n" "no" >&6; }
5641 fi
5642 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5644 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5645 if test ${lt_cv_prog_gnu_ld+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else $as_nop
5649 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5650 case `$LD -v 2>&1 </dev/null` in
5651 *GNU* | *'with BFD'*)
5652 lt_cv_prog_gnu_ld=yes
5653 ;;
5654 *)
5655 lt_cv_prog_gnu_ld=no
5656 ;;
5657 esac
5658 fi
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5660 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5661 with_gnu_ld=$lt_cv_prog_gnu_ld
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5672 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5673 if test ${lt_cv_path_NM+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else $as_nop
5677 if test -n "$NM"; then
5678 # Let the user override the test.
5679 lt_cv_path_NM=$NM
5680 else
5681 lt_nm_to_check=${ac_tool_prefix}nm
5682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5683 lt_nm_to_check="$lt_nm_to_check nm"
5684 fi
5685 for lt_tmp_nm in $lt_nm_to_check; do
5686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5687 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5688 IFS=$lt_save_ifs
5689 test -z "$ac_dir" && ac_dir=.
5690 tmp_nm=$ac_dir/$lt_tmp_nm
5691 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5692 # Check to see if the nm accepts a BSD-compat flag.
5693 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5694 # nm: unknown option "B" ignored
5695 # Tru64's nm complains that /dev/null is an invalid object file
5696 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5697 case $build_os in
5698 mingw*) lt_bad_file=conftest.nm/nofile ;;
5699 *) lt_bad_file=/dev/null ;;
5700 esac
5701 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5702 *$lt_bad_file* | *'Invalid file or object type'*)
5703 lt_cv_path_NM="$tmp_nm -B"
5704 break 2
5705 ;;
5706 *)
5707 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5708 */dev/null*)
5709 lt_cv_path_NM="$tmp_nm -p"
5710 break 2
5711 ;;
5712 *)
5713 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5714 continue # so that we can try to find one that supports BSD flags
5715 ;;
5716 esac
5717 ;;
5718 esac
5719 fi
5720 done
5721 IFS=$lt_save_ifs
5722 done
5723 : ${lt_cv_path_NM=no}
5724 fi
5725 fi
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5727 printf "%s\n" "$lt_cv_path_NM" >&6; }
5728 if test no != "$lt_cv_path_NM"; then
5729 NM=$lt_cv_path_NM
5730 else
5731 # Didn't find any BSD compatible name lister, look for dumpbin.
5732 if test -n "$DUMPBIN"; then :
5733 # Let the user override the test.
5734 else
5735 if test -n "$ac_tool_prefix"; then
5736 for ac_prog in dumpbin "link -dump"
5737 do
5738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 printf %s "checking for $ac_word... " >&6; }
5742 if test ${ac_cv_prog_DUMPBIN+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 if test -n "$DUMPBIN"; then
5747 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 case $as_dir in #(((
5754 '') as_dir=./ ;;
5755 */) ;;
5756 *) as_dir=$as_dir/ ;;
5757 esac
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 DUMPBIN=$ac_cv_prog_DUMPBIN
5771 if test -n "$DUMPBIN"; then
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5773 printf "%s\n" "$DUMPBIN" >&6; }
5774 else
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 printf "%s\n" "no" >&6; }
5777 fi
5778
5779
5780 test -n "$DUMPBIN" && break
5781 done
5782 fi
5783 if test -z "$DUMPBIN"; then
5784 ac_ct_DUMPBIN=$DUMPBIN
5785 for ac_prog in dumpbin "link -dump"
5786 do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 printf %s "checking for $ac_word... " >&6; }
5791 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else $as_nop
5795 if test -n "$ac_ct_DUMPBIN"; then
5796 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 case $as_dir in #(((
5803 '') as_dir=./ ;;
5804 */) ;;
5805 *) as_dir=$as_dir/ ;;
5806 esac
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5820 if test -n "$ac_ct_DUMPBIN"; then
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5822 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5823 else
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 printf "%s\n" "no" >&6; }
5826 fi
5827
5828
5829 test -n "$ac_ct_DUMPBIN" && break
5830 done
5831
5832 if test "x$ac_ct_DUMPBIN" = x; then
5833 DUMPBIN=":"
5834 else
5835 case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841 DUMPBIN=$ac_ct_DUMPBIN
5842 fi
5843 fi
5844
5845 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5846 *COFF*)
5847 DUMPBIN="$DUMPBIN -symbols -headers"
5848 ;;
5849 *)
5850 DUMPBIN=:
5851 ;;
5852 esac
5853 fi
5854
5855 if test : != "$DUMPBIN"; then
5856 NM=$DUMPBIN
5857 fi
5858 fi
5859 test -z "$NM" && NM=nm
5860
5861
5862
5863
5864
5865
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5867 printf %s "checking the name lister ($NM) interface... " >&6; }
5868 if test ${lt_cv_nm_interface+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else $as_nop
5872 lt_cv_nm_interface="BSD nm"
5873 echo "int some_variable = 0;" > conftest.$ac_ext
5874 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5875 (eval "$ac_compile" 2>conftest.err)
5876 cat conftest.err >&5
5877 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5878 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5879 cat conftest.err >&5
5880 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5881 cat conftest.out >&5
5882 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5883 lt_cv_nm_interface="MS dumpbin"
5884 fi
5885 rm -f conftest*
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5888 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5889
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5891 printf %s "checking whether ln -s works... " >&6; }
5892 LN_S=$as_ln_s
5893 if test "$LN_S" = "ln -s"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 printf "%s\n" "yes" >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5898 printf "%s\n" "no, using $LN_S" >&6; }
5899 fi
5900
5901 # find the maximum length of command line arguments
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5903 printf %s "checking the maximum length of command line arguments... " >&6; }
5904 if test ${lt_cv_sys_max_cmd_len+y}
5905 then :
5906 printf %s "(cached) " >&6
5907 else $as_nop
5908 i=0
5909 teststring=ABCD
5910
5911 case $build_os in
5912 msdosdjgpp*)
5913 # On DJGPP, this test can blow up pretty badly due to problems in libc
5914 # (any single argument exceeding 2000 bytes causes a buffer overrun
5915 # during glob expansion). Even if it were fixed, the result of this
5916 # check would be larger than it should be.
5917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5918 ;;
5919
5920 gnu*)
5921 # Under GNU Hurd, this test is not required because there is
5922 # no limit to the length of command line arguments.
5923 # Libtool will interpret -1 as no limit whatsoever
5924 lt_cv_sys_max_cmd_len=-1;
5925 ;;
5926
5927 cygwin* | mingw* | cegcc*)
5928 # On Win9x/ME, this test blows up -- it succeeds, but takes
5929 # about 5 minutes as the teststring grows exponentially.
5930 # Worse, since 9x/ME are not pre-emptively multitasking,
5931 # you end up with a "frozen" computer, even though with patience
5932 # the test eventually succeeds (with a max line length of 256k).
5933 # Instead, let's just punt: use the minimum linelength reported by
5934 # all of the supported platforms: 8192 (on NT/2K/XP).
5935 lt_cv_sys_max_cmd_len=8192;
5936 ;;
5937
5938 mint*)
5939 # On MiNT this can take a long time and run out of memory.
5940 lt_cv_sys_max_cmd_len=8192;
5941 ;;
5942
5943 amigaos*)
5944 # On AmigaOS with pdksh, this test takes hours, literally.
5945 # So we just punt and use a minimum line length of 8192.
5946 lt_cv_sys_max_cmd_len=8192;
5947 ;;
5948
5949 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5950 # This has been around since 386BSD, at least. Likely further.
5951 if test -x /sbin/sysctl; then
5952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5953 elif test -x /usr/sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5955 else
5956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5957 fi
5958 # And add a safety zone
5959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961 ;;
5962
5963 interix*)
5964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965 lt_cv_sys_max_cmd_len=196608
5966 ;;
5967
5968 os2*)
5969 # The test takes a long time on OS/2.
5970 lt_cv_sys_max_cmd_len=8192
5971 ;;
5972
5973 osf*)
5974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5976 # nice to cause kernel panics so lets avoid the loop below.
5977 # First set a reasonable default.
5978 lt_cv_sys_max_cmd_len=16384
5979 #
5980 if test -x /sbin/sysconfig; then
5981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5983 esac
5984 fi
5985 ;;
5986 sco3.2v5*)
5987 lt_cv_sys_max_cmd_len=102400
5988 ;;
5989 sysv5* | sco5v6* | sysv4.2uw2*)
5990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5991 if test -n "$kargmax"; then
5992 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5993 else
5994 lt_cv_sys_max_cmd_len=32768
5995 fi
5996 ;;
5997 *)
5998 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5999 if test -n "$lt_cv_sys_max_cmd_len" && \
6000 test undefined != "$lt_cv_sys_max_cmd_len"; then
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6003 else
6004 # Make teststring a little bigger before we do anything with it.
6005 # a 1K string should be a reasonable start.
6006 for i in 1 2 3 4 5 6 7 8; do
6007 teststring=$teststring$teststring
6008 done
6009 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6010 # If test is not a shell built-in, we'll probably end up computing a
6011 # maximum length that is only half of the actual maximum length, but
6012 # we can't tell.
6013 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6014 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6015 test 17 != "$i" # 1/2 MB should be enough
6016 do
6017 i=`expr $i + 1`
6018 teststring=$teststring$teststring
6019 done
6020 # Only check the string length outside the loop.
6021 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6022 teststring=
6023 # Add a significant safety factor because C++ compilers can tack on
6024 # massive amounts of additional arguments before passing them to the
6025 # linker. It appears as though 1/2 is a usable value.
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 fi
6028 ;;
6029 esac
6030
6031 fi
6032
6033 if test -n "$lt_cv_sys_max_cmd_len"; then
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6035 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6036 else
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6038 printf "%s\n" "none" >&6; }
6039 fi
6040 max_cmd_len=$lt_cv_sys_max_cmd_len
6041
6042
6043
6044
6045
6046
6047 : ${CP="cp -f"}
6048 : ${MV="mv -f"}
6049 : ${RM="rm -f"}
6050
6051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6052 lt_unset=unset
6053 else
6054 lt_unset=false
6055 fi
6056
6057
6058
6059
6060
6061 # test EBCDIC or ASCII
6062 case `echo X|tr X '\101'` in
6063 A) # ASCII based system
6064 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6065 lt_SP2NL='tr \040 \012'
6066 lt_NL2SP='tr \015\012 \040\040'
6067 ;;
6068 *) # EBCDIC based system
6069 lt_SP2NL='tr \100 \n'
6070 lt_NL2SP='tr \r\n \100\100'
6071 ;;
6072 esac
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6083 printf %s "checking how to convert $build file names to $host format... " >&6; }
6084 if test ${lt_cv_to_host_file_cmd+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 case $host in
6089 *-*-mingw* )
6090 case $build in
6091 *-*-mingw* ) # actually msys
6092 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6093 ;;
6094 *-*-cygwin* )
6095 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6096 ;;
6097 * ) # otherwise, assume *nix
6098 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6099 ;;
6100 esac
6101 ;;
6102 *-*-cygwin* )
6103 case $build in
6104 *-*-mingw* ) # actually msys
6105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6106 ;;
6107 *-*-cygwin* )
6108 lt_cv_to_host_file_cmd=func_convert_file_noop
6109 ;;
6110 * ) # otherwise, assume *nix
6111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6112 ;;
6113 esac
6114 ;;
6115 * ) # unhandled hosts (and "normal" native builds)
6116 lt_cv_to_host_file_cmd=func_convert_file_noop
6117 ;;
6118 esac
6119
6120 fi
6121
6122 to_host_file_cmd=$lt_cv_to_host_file_cmd
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6124 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6125
6126
6127
6128
6129
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6131 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6132 if test ${lt_cv_to_tool_file_cmd+y}
6133 then :
6134 printf %s "(cached) " >&6
6135 else $as_nop
6136 #assume ordinary cross tools, or native build.
6137 lt_cv_to_tool_file_cmd=func_convert_file_noop
6138 case $host in
6139 *-*-mingw* )
6140 case $build in
6141 *-*-mingw* ) # actually msys
6142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6143 ;;
6144 esac
6145 ;;
6146 esac
6147
6148 fi
6149
6150 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6152 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6153
6154
6155
6156
6157
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6159 printf %s "checking for $LD option to reload object files... " >&6; }
6160 if test ${lt_cv_ld_reload_flag+y}
6161 then :
6162 printf %s "(cached) " >&6
6163 else $as_nop
6164 lt_cv_ld_reload_flag='-r'
6165 fi
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6167 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6170 "" | " "*) ;;
6171 *) reload_flag=" $reload_flag" ;;
6172 esac
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 case $host_os in
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 if test yes != "$GCC"; then
6177 reload_cmds=false
6178 fi
6179 ;;
6180 darwin*)
6181 if test yes = "$GCC"; then
6182 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6183 else
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 fi
6186 ;;
6187 esac
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 printf %s "checking for $ac_word... " >&6; }
6202 if test ${ac_cv_prog_OBJDUMP+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 if test -n "$OBJDUMP"; then
6207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 case $as_dir in #(((
6214 '') as_dir=./ ;;
6215 */) ;;
6216 *) as_dir=$as_dir/ ;;
6217 esac
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 OBJDUMP=$ac_cv_prog_OBJDUMP
6231 if test -n "$OBJDUMP"; then
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6233 printf "%s\n" "$OBJDUMP" >&6; }
6234 else
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 printf "%s\n" "no" >&6; }
6237 fi
6238
6239
6240 fi
6241 if test -z "$ac_cv_prog_OBJDUMP"; then
6242 ac_ct_OBJDUMP=$OBJDUMP
6243 # Extract the first word of "objdump", so it can be a program name with args.
6244 set dummy objdump; ac_word=$2
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 printf %s "checking for $ac_word... " >&6; }
6247 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6248 then :
6249 printf %s "(cached) " >&6
6250 else $as_nop
6251 if test -n "$ac_ct_OBJDUMP"; then
6252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 case $as_dir in #(((
6259 '') as_dir=./ ;;
6260 */) ;;
6261 *) as_dir=$as_dir/ ;;
6262 esac
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6276 if test -n "$ac_ct_OBJDUMP"; then
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6278 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6279 else
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 printf "%s\n" "no" >&6; }
6282 fi
6283
6284 if test "x$ac_ct_OBJDUMP" = x; then
6285 OBJDUMP="false"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293 OBJDUMP=$ac_ct_OBJDUMP
6294 fi
6295 else
6296 OBJDUMP="$ac_cv_prog_OBJDUMP"
6297 fi
6298
6299 test -z "$OBJDUMP" && OBJDUMP=objdump
6300
6301
6302
6303
6304
6305
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6307 printf %s "checking how to recognize dependent libraries... " >&6; }
6308 if test ${lt_cv_deplibs_check_method+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else $as_nop
6312 lt_cv_file_magic_cmd='$MAGIC_CMD'
6313 lt_cv_file_magic_test_file=
6314 lt_cv_deplibs_check_method='unknown'
6315 # Need to set the preceding variable on all platforms that support
6316 # interlibrary dependencies.
6317 # 'none' -- dependencies not supported.
6318 # 'unknown' -- same as none, but documents that we really don't know.
6319 # 'pass_all' -- all dependencies passed with no checks.
6320 # 'test_compile' -- check by making test program.
6321 # 'file_magic [[regex]]' -- check by looking for files in library path
6322 # that responds to the $file_magic_cmd with a given extended regex.
6323 # If you have 'file' or equivalent on your system and you're not sure
6324 # whether 'pass_all' will *always* work, you probably want this one.
6325
6326 case $host_os in
6327 aix[4-9]*)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330
6331 beos*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334
6335 bsdi[45]*)
6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6337 lt_cv_file_magic_cmd='/usr/bin/file -L'
6338 lt_cv_file_magic_test_file=/shlib/libc.so
6339 ;;
6340
6341 cygwin*)
6342 # func_win32_libid is a shell function defined in ltmain.sh
6343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344 lt_cv_file_magic_cmd='func_win32_libid'
6345 ;;
6346
6347 mingw* | pw32*)
6348 # Base MSYS/MinGW do not provide the 'file' command needed by
6349 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6350 # unless we find 'file', for example because we are cross-compiling.
6351 if ( file / ) >/dev/null 2>&1; then
6352 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6353 lt_cv_file_magic_cmd='func_win32_libid'
6354 else
6355 # Keep this pattern in sync with the one in func_win32_libid.
6356 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6357 lt_cv_file_magic_cmd='$OBJDUMP -f'
6358 fi
6359 ;;
6360
6361 cegcc*)
6362 # use the weaker test based on 'objdump'. See mingw*.
6363 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6364 lt_cv_file_magic_cmd='$OBJDUMP -f'
6365 ;;
6366
6367 darwin* | rhapsody*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 freebsd* | dragonfly*)
6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373 case $host_cpu in
6374 i*86 )
6375 # Not sure whether the presence of OpenBSD here was a mistake.
6376 # Let's accept both of them until this is cleared up.
6377 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6378 lt_cv_file_magic_cmd=/usr/bin/file
6379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6380 ;;
6381 esac
6382 else
6383 lt_cv_deplibs_check_method=pass_all
6384 fi
6385 ;;
6386
6387 haiku*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391 hpux10.20* | hpux11*)
6392 lt_cv_file_magic_cmd=/usr/bin/file
6393 case $host_cpu in
6394 ia64*)
6395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6397 ;;
6398 hppa*64*)
6399 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]'
6400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6401 ;;
6402 *)
6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6404 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6405 ;;
6406 esac
6407 ;;
6408
6409 interix[3-9]*)
6410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6412 ;;
6413
6414 irix5* | irix6* | nonstopux*)
6415 case $LD in
6416 *-32|*"-32 ") libmagic=32-bit;;
6417 *-n32|*"-n32 ") libmagic=N32;;
6418 *-64|*"-64 ") libmagic=64-bit;;
6419 *) libmagic=never-match;;
6420 esac
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 # This must be glibc/ELF.
6425 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 netbsd* | netbsdelf*-gnu)
6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432 else
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6434 fi
6435 ;;
6436
6437 newos6*)
6438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6439 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6441 ;;
6442
6443 *nto* | *qnx*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447 openbsd* | bitrig*)
6448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6450 else
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6452 fi
6453 ;;
6454
6455 osf3* | osf4* | osf5*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459 rdos*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 solaris*)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
6470
6471 sysv4 | sysv4.3*)
6472 case $host_vendor in
6473 motorola)
6474 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]'
6475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6476 ;;
6477 ncr)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 sequent)
6481 lt_cv_file_magic_cmd='/bin/file'
6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6483 ;;
6484 sni)
6485 lt_cv_file_magic_cmd='/bin/file'
6486 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6487 lt_cv_file_magic_test_file=/lib/libc.so
6488 ;;
6489 siemens)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492 pc)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 esac
6496 ;;
6497
6498 tpf*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501 os2*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504 esac
6505
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6508 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6509
6510 file_magic_glob=
6511 want_nocaseglob=no
6512 if test "$build" = "$host"; then
6513 case $host_os in
6514 mingw* | pw32*)
6515 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6516 want_nocaseglob=yes
6517 else
6518 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6519 fi
6520 ;;
6521 esac
6522 fi
6523
6524 file_magic_cmd=$lt_cv_file_magic_cmd
6525 deplibs_check_method=$lt_cv_deplibs_check_method
6526 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 printf %s "checking for $ac_word... " >&6; }
6554 if test ${ac_cv_prog_DLLTOOL+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else $as_nop
6558 if test -n "$DLLTOOL"; then
6559 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 case $as_dir in #(((
6566 '') as_dir=./ ;;
6567 */) ;;
6568 *) as_dir=$as_dir/ ;;
6569 esac
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 DLLTOOL=$ac_cv_prog_DLLTOOL
6583 if test -n "$DLLTOOL"; then
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6585 printf "%s\n" "$DLLTOOL" >&6; }
6586 else
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_DLLTOOL"; then
6594 ac_ct_DLLTOOL=$DLLTOOL
6595 # Extract the first word of "dlltool", so it can be a program name with args.
6596 set dummy dlltool; ac_word=$2
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 printf %s "checking for $ac_word... " >&6; }
6599 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6600 then :
6601 printf %s "(cached) " >&6
6602 else $as_nop
6603 if test -n "$ac_ct_DLLTOOL"; then
6604 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 case $as_dir in #(((
6611 '') as_dir=./ ;;
6612 */) ;;
6613 *) as_dir=$as_dir/ ;;
6614 esac
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6628 if test -n "$ac_ct_DLLTOOL"; then
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6630 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6631 else
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 printf "%s\n" "no" >&6; }
6634 fi
6635
6636 if test "x$ac_ct_DLLTOOL" = x; then
6637 DLLTOOL="false"
6638 else
6639 case $cross_compiling:$ac_tool_warned in
6640 yes:)
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645 DLLTOOL=$ac_ct_DLLTOOL
6646 fi
6647 else
6648 DLLTOOL="$ac_cv_prog_DLLTOOL"
6649 fi
6650
6651 test -z "$DLLTOOL" && DLLTOOL=dlltool
6652
6653
6654
6655
6656
6657
6658
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6660 printf %s "checking how to associate runtime and link libraries... " >&6; }
6661 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else $as_nop
6665 lt_cv_sharedlib_from_linklib_cmd='unknown'
6666
6667 case $host_os in
6668 cygwin* | mingw* | pw32* | cegcc*)
6669 # two different shell functions defined in ltmain.sh;
6670 # decide which one to use based on capabilities of $DLLTOOL
6671 case `$DLLTOOL --help 2>&1` in
6672 *--identify-strict*)
6673 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6674 ;;
6675 *)
6676 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6677 ;;
6678 esac
6679 ;;
6680 *)
6681 # fallback: assume linklib IS sharedlib
6682 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6683 ;;
6684 esac
6685
6686 fi
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6688 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6689 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6690 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6691
6692
6693
6694
6695
6696
6697
6698
6699 if test -n "$ac_tool_prefix"; then
6700 for ac_prog in ar
6701 do
6702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 printf %s "checking for $ac_word... " >&6; }
6706 if test ${ac_cv_prog_AR+y}
6707 then :
6708 printf %s "(cached) " >&6
6709 else $as_nop
6710 if test -n "$AR"; then
6711 ac_cv_prog_AR="$AR" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 case $as_dir in #(((
6718 '') as_dir=./ ;;
6719 */) ;;
6720 *) as_dir=$as_dir/ ;;
6721 esac
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 AR=$ac_cv_prog_AR
6735 if test -n "$AR"; then
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6737 printf "%s\n" "$AR" >&6; }
6738 else
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 printf "%s\n" "no" >&6; }
6741 fi
6742
6743
6744 test -n "$AR" && break
6745 done
6746 fi
6747 if test -z "$AR"; then
6748 ac_ct_AR=$AR
6749 for ac_prog in ar
6750 do
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 printf %s "checking for $ac_word... " >&6; }
6755 if test ${ac_cv_prog_ac_ct_AR+y}
6756 then :
6757 printf %s "(cached) " >&6
6758 else $as_nop
6759 if test -n "$ac_ct_AR"; then
6760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 case $as_dir in #(((
6767 '') as_dir=./ ;;
6768 */) ;;
6769 *) as_dir=$as_dir/ ;;
6770 esac
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_AR="$ac_prog"
6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786 printf "%s\n" "$ac_ct_AR" >&6; }
6787 else
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 printf "%s\n" "no" >&6; }
6790 fi
6791
6792
6793 test -n "$ac_ct_AR" && break
6794 done
6795
6796 if test "x$ac_ct_AR" = x; then
6797 AR="false"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805 AR=$ac_ct_AR
6806 fi
6807 fi
6808
6809 : ${AR=ar}
6810 : ${AR_FLAGS=cr}
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6823 printf %s "checking for archiver @FILE support... " >&6; }
6824 if test ${lt_cv_ar_at_file+y}
6825 then :
6826 printf %s "(cached) " >&6
6827 else $as_nop
6828 lt_cv_ar_at_file=no
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831
6832 int
6833 main (void)
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_compile "$LINENO"
6841 then :
6842 echo conftest.$ac_objext > conftest.lst
6843 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6845 (eval $lt_ar_try) 2>&5
6846 ac_status=$?
6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }
6849 if test 0 -eq "$ac_status"; then
6850 # Ensure the archiver fails upon bogus file names.
6851 rm -f conftest.$ac_objext libconftest.a
6852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6853 (eval $lt_ar_try) 2>&5
6854 ac_status=$?
6855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }
6857 if test 0 -ne "$ac_status"; then
6858 lt_cv_ar_at_file=@
6859 fi
6860 fi
6861 rm -f conftest.* libconftest.a
6862
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6865
6866 fi
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6868 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6869
6870 if test no = "$lt_cv_ar_at_file"; then
6871 archiver_list_spec=
6872 else
6873 archiver_list_spec=$lt_cv_ar_at_file
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}strip; ac_word=$2
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 printf %s "checking for $ac_word... " >&6; }
6887 if test ${ac_cv_prog_STRIP+y}
6888 then :
6889 printf %s "(cached) " >&6
6890 else $as_nop
6891 if test -n "$STRIP"; then
6892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 case $as_dir in #(((
6899 '') as_dir=./ ;;
6900 */) ;;
6901 *) as_dir=$as_dir/ ;;
6902 esac
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 STRIP=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6918 printf "%s\n" "$STRIP" >&6; }
6919 else
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 printf "%s\n" "no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_STRIP"; then
6927 ac_ct_STRIP=$STRIP
6928 # Extract the first word of "strip", so it can be a program name with args.
6929 set dummy strip; ac_word=$2
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 printf %s "checking for $ac_word... " >&6; }
6932 if test ${ac_cv_prog_ac_ct_STRIP+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else $as_nop
6936 if test -n "$ac_ct_STRIP"; then
6937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 case $as_dir in #(((
6944 '') as_dir=./ ;;
6945 */) ;;
6946 *) as_dir=$as_dir/ ;;
6947 esac
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_STRIP="strip"
6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6961 if test -n "$ac_ct_STRIP"; then
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6963 printf "%s\n" "$ac_ct_STRIP" >&6; }
6964 else
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 printf "%s\n" "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_STRIP" = x; then
6970 STRIP=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 STRIP=$ac_ct_STRIP
6979 fi
6980 else
6981 STRIP="$ac_cv_prog_STRIP"
6982 fi
6983
6984 test -z "$STRIP" && STRIP=:
6985
6986
6987
6988
6989
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 printf %s "checking for $ac_word... " >&6; }
6996 if test ${ac_cv_prog_RANLIB+y}
6997 then :
6998 printf %s "(cached) " >&6
6999 else $as_nop
7000 if test -n "$RANLIB"; then
7001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 case $as_dir in #(((
7008 '') as_dir=./ ;;
7009 */) ;;
7010 *) as_dir=$as_dir/ ;;
7011 esac
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018 done
7019 done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 RANLIB=$ac_cv_prog_RANLIB
7025 if test -n "$RANLIB"; then
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7027 printf "%s\n" "$RANLIB" >&6; }
7028 else
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 printf "%s\n" "no" >&6; }
7031 fi
7032
7033
7034 fi
7035 if test -z "$ac_cv_prog_RANLIB"; then
7036 ac_ct_RANLIB=$RANLIB
7037 # Extract the first word of "ranlib", so it can be a program name with args.
7038 set dummy ranlib; ac_word=$2
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 printf %s "checking for $ac_word... " >&6; }
7041 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7042 then :
7043 printf %s "(cached) " >&6
7044 else $as_nop
7045 if test -n "$ac_ct_RANLIB"; then
7046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051 IFS=$as_save_IFS
7052 case $as_dir in #(((
7053 '') as_dir=./ ;;
7054 */) ;;
7055 *) as_dir=$as_dir/ ;;
7056 esac
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_ac_ct_RANLIB="ranlib"
7060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7070 if test -n "$ac_ct_RANLIB"; then
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7072 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7073 else
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 printf "%s\n" "no" >&6; }
7076 fi
7077
7078 if test "x$ac_ct_RANLIB" = x; then
7079 RANLIB=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 RANLIB=$ac_ct_RANLIB
7088 fi
7089 else
7090 RANLIB="$ac_cv_prog_RANLIB"
7091 fi
7092
7093 test -z "$RANLIB" && RANLIB=:
7094
7095
7096
7097
7098
7099
7100 # Determine commands to create old-style static archives.
7101 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7102 old_postinstall_cmds='chmod 644 $oldlib'
7103 old_postuninstall_cmds=
7104
7105 if test -n "$RANLIB"; then
7106 case $host_os in
7107 bitrig* | openbsd*)
7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7109 ;;
7110 *)
7111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7112 ;;
7113 esac
7114 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7115 fi
7116
7117 case $host_os in
7118 darwin*)
7119 lock_old_archive_extraction=yes ;;
7120 *)
7121 lock_old_archive_extraction=no ;;
7122 esac
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 # If no C compiler was specified, use CC.
7163 LTCC=${LTCC-"$CC"}
7164
7165 # If no C compiler flags were specified, use CFLAGS.
7166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7167
7168 # Allow CC to be a program name with arguments.
7169 compiler=$CC
7170
7171
7172 # Check for command to grab the raw symbol name followed by C symbol from nm.
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7174 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7175 if test ${lt_cv_sys_global_symbol_pipe+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179
7180 # These are sane defaults that work on at least a few old systems.
7181 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7182
7183 # Character class describing NM global symbol codes.
7184 symcode='[BCDEGRST]'
7185
7186 # Regexp to match symbols that can be accessed directly from C.
7187 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7188
7189 # Define system-specific variables.
7190 case $host_os in
7191 aix*)
7192 symcode='[BCDT]'
7193 ;;
7194 cygwin* | mingw* | pw32* | cegcc*)
7195 symcode='[ABCDGISTW]'
7196 ;;
7197 hpux*)
7198 if test ia64 = "$host_cpu"; then
7199 symcode='[ABCDEGRST]'
7200 fi
7201 ;;
7202 irix* | nonstopux*)
7203 symcode='[BCDEGRST]'
7204 ;;
7205 osf*)
7206 symcode='[BCDEGQRST]'
7207 ;;
7208 solaris*)
7209 symcode='[BDRT]'
7210 ;;
7211 sco3.2v5*)
7212 symcode='[DT]'
7213 ;;
7214 sysv4.2uw2*)
7215 symcode='[DT]'
7216 ;;
7217 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7218 symcode='[ABDT]'
7219 ;;
7220 sysv4)
7221 symcode='[DFNSTU]'
7222 ;;
7223 esac
7224
7225 # If we're using GNU nm, then use its standard symbol codes.
7226 case `$NM -V 2>&1` in
7227 *GNU* | *'with BFD'*)
7228 symcode='[ABCDGIRSTW]' ;;
7229 esac
7230
7231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7232 # Gets list of data symbols to import.
7233 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7234 # Adjust the below global symbol transforms to fixup imported variables.
7235 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7236 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7237 lt_c_name_lib_hook="\
7238 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7239 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7240 else
7241 # Disable hooks by default.
7242 lt_cv_sys_global_symbol_to_import=
7243 lt_cdecl_hook=
7244 lt_c_name_hook=
7245 lt_c_name_lib_hook=
7246 fi
7247
7248 # Transform an extracted symbol line into a proper C declaration.
7249 # Some systems (esp. on ia64) link data and code symbols differently,
7250 # so use this general approach.
7251 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7252 $lt_cdecl_hook\
7253 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7254 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7255
7256 # Transform an extracted symbol line into symbol name and symbol address
7257 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7258 $lt_c_name_hook\
7259 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7260 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7261
7262 # Transform an extracted symbol line into symbol name with lib prefix and
7263 # symbol address.
7264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7265 $lt_c_name_lib_hook\
7266 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7267 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7268 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7269
7270 # Handle CRLF in mingw tool chain
7271 opt_cr=
7272 case $build_os in
7273 mingw*)
7274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7275 ;;
7276 esac
7277
7278 # Try without a prefix underscore, then with it.
7279 for ac_symprfx in "" "_"; do
7280
7281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7282 symxfrm="\\1 $ac_symprfx\\2 \\2"
7283
7284 # Write the raw and C identifiers.
7285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7286 # Fake it for dumpbin and say T for any non-static function,
7287 # D for any global variable and I for any imported variable.
7288 # Also find C++ and __fastcall symbols from MSVC++,
7289 # which start with @ or ?.
7290 lt_cv_sys_global_symbol_pipe="$AWK '"\
7291 " {last_section=section; section=\$ 3};"\
7292 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7293 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7294 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7295 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7296 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7297 " \$ 0!~/External *\|/{next};"\
7298 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7299 " {if(hide[section]) next};"\
7300 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7301 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7302 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7303 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7304 " ' prfx=^$ac_symprfx"
7305 else
7306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7307 fi
7308 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7309
7310 # Check to see that the pipe works correctly.
7311 pipe_works=no
7312
7313 rm -f conftest*
7314 cat > conftest.$ac_ext <<_LT_EOF
7315 #ifdef __cplusplus
7316 extern "C" {
7317 #endif
7318 char nm_test_var;
7319 void nm_test_func(void);
7320 void nm_test_func(void){}
7321 #ifdef __cplusplus
7322 }
7323 #endif
7324 int main(){nm_test_var='a';nm_test_func();return(0);}
7325 _LT_EOF
7326
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7333 nlist=conftest.nm
7334 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7335 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7336 # Try sorting and uniquifying the output.
7337 if sort "$nlist" | uniq > "$nlist"T; then
7338 mv -f "$nlist"T "$nlist"
7339 else
7340 rm -f "$nlist"T
7341 fi
7342
7343 # Make sure that we snagged all the symbols we need.
7344 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7345 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7346 cat <<_LT_EOF > conftest.$ac_ext
7347 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7348 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7349 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7350 relocations are performed -- see ld's documentation on pseudo-relocs. */
7351 # define LT_DLSYM_CONST
7352 #elif defined __osf__
7353 /* This system does not cope well with relocations in const data. */
7354 # define LT_DLSYM_CONST
7355 #else
7356 # define LT_DLSYM_CONST const
7357 #endif
7358
7359 #ifdef __cplusplus
7360 extern "C" {
7361 #endif
7362
7363 _LT_EOF
7364 # Now generate the symbol file.
7365 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7366
7367 cat <<_LT_EOF >> conftest.$ac_ext
7368
7369 /* The mapping between symbol names and symbols. */
7370 LT_DLSYM_CONST struct {
7371 const char *name;
7372 void *address;
7373 }
7374 lt__PROGRAM__LTX_preloaded_symbols[] =
7375 {
7376 { "@PROGRAM@", (void *) 0 },
7377 _LT_EOF
7378 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7379 cat <<\_LT_EOF >> conftest.$ac_ext
7380 {0, (void *) 0}
7381 };
7382
7383 /* This works around a problem in FreeBSD linker */
7384 #ifdef FREEBSD_WORKAROUND
7385 static const void *lt_preloaded_setup() {
7386 return lt__PROGRAM__LTX_preloaded_symbols;
7387 }
7388 #endif
7389
7390 #ifdef __cplusplus
7391 }
7392 #endif
7393 _LT_EOF
7394 # Now try linking the two files.
7395 mv conftest.$ac_objext conftstm.$ac_objext
7396 lt_globsym_save_LIBS=$LIBS
7397 lt_globsym_save_CFLAGS=$CFLAGS
7398 LIBS=conftstm.$ac_objext
7399 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7401 (eval $ac_link) 2>&5
7402 ac_status=$?
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7405 pipe_works=yes
7406 fi
7407 LIBS=$lt_globsym_save_LIBS
7408 CFLAGS=$lt_globsym_save_CFLAGS
7409 else
7410 echo "cannot find nm_test_func in $nlist" >&5
7411 fi
7412 else
7413 echo "cannot find nm_test_var in $nlist" >&5
7414 fi
7415 else
7416 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7417 fi
7418 else
7419 echo "$progname: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7421 fi
7422 rm -rf conftest* conftst*
7423
7424 # Do not use the global_symbol_pipe unless it works.
7425 if test yes = "$pipe_works"; then
7426 break
7427 else
7428 lt_cv_sys_global_symbol_pipe=
7429 fi
7430 done
7431
7432 fi
7433
7434 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7435 lt_cv_sys_global_symbol_to_cdecl=
7436 fi
7437 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7439 printf "%s\n" "failed" >&6; }
7440 else
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7442 printf "%s\n" "ok" >&6; }
7443 fi
7444
7445 # Response file support.
7446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7447 nm_file_list_spec='@'
7448 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7449 nm_file_list_spec='@'
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7489 printf %s "checking for sysroot... " >&6; }
7490
7491 # Check whether --with-sysroot was given.
7492 if test ${with_sysroot+y}
7493 then :
7494 withval=$with_sysroot;
7495 else $as_nop
7496 with_sysroot=no
7497 fi
7498
7499
7500 lt_sysroot=
7501 case $with_sysroot in #(
7502 yes)
7503 if test yes = "$GCC"; then
7504 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7505 fi
7506 ;; #(
7507 /*)
7508 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7509 ;; #(
7510 no|'')
7511 ;; #(
7512 *)
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7514 printf "%s\n" "$with_sysroot" >&6; }
7515 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7516 ;;
7517 esac
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7520 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7521
7522
7523
7524
7525
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7527 printf %s "checking for a working dd... " >&6; }
7528 if test ${ac_cv_path_lt_DD+y}
7529 then :
7530 printf %s "(cached) " >&6
7531 else $as_nop
7532 printf 0123456789abcdef0123456789abcdef >conftest.i
7533 cat conftest.i conftest.i >conftest2.i
7534 : ${lt_DD:=$DD}
7535 if test -z "$lt_DD"; then
7536 ac_path_lt_DD_found=false
7537 # Loop through the user's path and test for each of PROGNAME-LIST
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 case $as_dir in #(((
7543 '') as_dir=./ ;;
7544 */) ;;
7545 *) as_dir=$as_dir/ ;;
7546 esac
7547 for ac_prog in dd
7548 do
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7551 as_fn_executable_p "$ac_path_lt_DD" || continue
7552 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7553 cmp -s conftest.i conftest.out \
7554 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7555 fi
7556 $ac_path_lt_DD_found && break 3
7557 done
7558 done
7559 done
7560 IFS=$as_save_IFS
7561 if test -z "$ac_cv_path_lt_DD"; then
7562 :
7563 fi
7564 else
7565 ac_cv_path_lt_DD=$lt_DD
7566 fi
7567
7568 rm -f conftest.i conftest2.i conftest.out
7569 fi
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7571 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7572
7573
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7575 printf %s "checking how to truncate binary pipes... " >&6; }
7576 if test ${lt_cv_truncate_bin+y}
7577 then :
7578 printf %s "(cached) " >&6
7579 else $as_nop
7580 printf 0123456789abcdef0123456789abcdef >conftest.i
7581 cat conftest.i conftest.i >conftest2.i
7582 lt_cv_truncate_bin=
7583 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7584 cmp -s conftest.i conftest.out \
7585 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7586 fi
7587 rm -f conftest.i conftest2.i conftest.out
7588 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7589 fi
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7591 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7592
7593
7594
7595
7596
7597
7598
7599 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7600 func_cc_basename ()
7601 {
7602 for cc_temp in $*""; do
7603 case $cc_temp in
7604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7606 \-*) ;;
7607 *) break;;
7608 esac
7609 done
7610 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7611 }
7612
7613 # Check whether --enable-libtool-lock was given.
7614 if test ${enable_libtool_lock+y}
7615 then :
7616 enableval=$enable_libtool_lock;
7617 fi
7618
7619 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7620
7621 # Some flags need to be propagated to the compiler or linker for good
7622 # libtool support.
7623 case $host in
7624 ia64-*-hpux*)
7625 # Find out what ABI is being produced by ac_compile, and set mode
7626 # options accordingly.
7627 echo 'int i;' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 case `/usr/bin/file conftest.$ac_objext` in
7634 *ELF-32*)
7635 HPUX_IA64_MODE=32
7636 ;;
7637 *ELF-64*)
7638 HPUX_IA64_MODE=64
7639 ;;
7640 esac
7641 fi
7642 rm -rf conftest*
7643 ;;
7644 *-*-irix6*)
7645 # Find out what ABI is being produced by ac_compile, and set linker
7646 # options accordingly.
7647 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7649 (eval $ac_compile) 2>&5
7650 ac_status=$?
7651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7652 test $ac_status = 0; }; then
7653 if test yes = "$lt_cv_prog_gnu_ld"; then
7654 case `/usr/bin/file conftest.$ac_objext` in
7655 *32-bit*)
7656 LD="${LD-ld} -melf32bsmip"
7657 ;;
7658 *N32*)
7659 LD="${LD-ld} -melf32bmipn32"
7660 ;;
7661 *64-bit*)
7662 LD="${LD-ld} -melf64bmip"
7663 ;;
7664 esac
7665 else
7666 case `/usr/bin/file conftest.$ac_objext` in
7667 *32-bit*)
7668 LD="${LD-ld} -32"
7669 ;;
7670 *N32*)
7671 LD="${LD-ld} -n32"
7672 ;;
7673 *64-bit*)
7674 LD="${LD-ld} -64"
7675 ;;
7676 esac
7677 fi
7678 fi
7679 rm -rf conftest*
7680 ;;
7681
7682 mips64*-*linux*)
7683 # Find out what ABI is being produced by ac_compile, and set linker
7684 # options accordingly.
7685 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7687 (eval $ac_compile) 2>&5
7688 ac_status=$?
7689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; }; then
7691 emul=elf
7692 case `/usr/bin/file conftest.$ac_objext` in
7693 *32-bit*)
7694 emul="${emul}32"
7695 ;;
7696 *64-bit*)
7697 emul="${emul}64"
7698 ;;
7699 esac
7700 case `/usr/bin/file conftest.$ac_objext` in
7701 *MSB*)
7702 emul="${emul}btsmip"
7703 ;;
7704 *LSB*)
7705 emul="${emul}ltsmip"
7706 ;;
7707 esac
7708 case `/usr/bin/file conftest.$ac_objext` in
7709 *N32*)
7710 emul="${emul}n32"
7711 ;;
7712 esac
7713 LD="${LD-ld} -m $emul"
7714 fi
7715 rm -rf conftest*
7716 ;;
7717
7718 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7719 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7720 # Find out what ABI is being produced by ac_compile, and set linker
7721 # options accordingly. Note that the listed cases only cover the
7722 # situations where additional linker options are needed (such as when
7723 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7724 # vice versa); the common cases where no linker options are needed do
7725 # not appear in the list.
7726 echo 'int i;' > conftest.$ac_ext
7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7728 (eval $ac_compile) 2>&5
7729 ac_status=$?
7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 case `/usr/bin/file conftest.o` in
7733 *32-bit*)
7734 case $host in
7735 x86_64-*kfreebsd*-gnu)
7736 LD="${LD-ld} -m elf_i386_fbsd"
7737 ;;
7738 x86_64-*linux*)
7739 case `/usr/bin/file conftest.o` in
7740 *x86-64*)
7741 LD="${LD-ld} -m elf32_x86_64"
7742 ;;
7743 *)
7744 LD="${LD-ld} -m elf_i386"
7745 ;;
7746 esac
7747 ;;
7748 powerpc64le-*linux*)
7749 LD="${LD-ld} -m elf32lppclinux"
7750 ;;
7751 powerpc64-*linux*)
7752 LD="${LD-ld} -m elf32ppclinux"
7753 ;;
7754 s390x-*linux*)
7755 LD="${LD-ld} -m elf_s390"
7756 ;;
7757 sparc64-*linux*)
7758 LD="${LD-ld} -m elf32_sparc"
7759 ;;
7760 esac
7761 ;;
7762 *64-bit*)
7763 case $host in
7764 x86_64-*kfreebsd*-gnu)
7765 LD="${LD-ld} -m elf_x86_64_fbsd"
7766 ;;
7767 x86_64-*linux*)
7768 LD="${LD-ld} -m elf_x86_64"
7769 ;;
7770 powerpcle-*linux*)
7771 LD="${LD-ld} -m elf64lppc"
7772 ;;
7773 powerpc-*linux*)
7774 LD="${LD-ld} -m elf64ppc"
7775 ;;
7776 s390*-*linux*|s390*-*tpf*)
7777 LD="${LD-ld} -m elf64_s390"
7778 ;;
7779 sparc*-*linux*)
7780 LD="${LD-ld} -m elf64_sparc"
7781 ;;
7782 esac
7783 ;;
7784 esac
7785 fi
7786 rm -rf conftest*
7787 ;;
7788
7789 *-*-sco3.2v5*)
7790 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7791 SAVE_CFLAGS=$CFLAGS
7792 CFLAGS="$CFLAGS -belf"
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7794 printf %s "checking whether the C compiler needs -belf... " >&6; }
7795 if test ${lt_cv_cc_needs_belf+y}
7796 then :
7797 printf %s "(cached) " >&6
7798 else $as_nop
7799 ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807
7808 int
7809 main (void)
7810 {
7811
7812 ;
7813 return 0;
7814 }
7815 _ACEOF
7816 if ac_fn_c_try_link "$LINENO"
7817 then :
7818 lt_cv_cc_needs_belf=yes
7819 else $as_nop
7820 lt_cv_cc_needs_belf=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7823 conftest$ac_exeext conftest.$ac_ext
7824 ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7832 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7833 if test yes != "$lt_cv_cc_needs_belf"; then
7834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7835 CFLAGS=$SAVE_CFLAGS
7836 fi
7837 ;;
7838 *-*solaris*)
7839 # Find out what ABI is being produced by ac_compile, and set linker
7840 # options accordingly.
7841 echo 'int i;' > conftest.$ac_ext
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843 (eval $ac_compile) 2>&5
7844 ac_status=$?
7845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 case `/usr/bin/file conftest.o` in
7848 *64-bit*)
7849 case $lt_cv_prog_gnu_ld in
7850 yes*)
7851 case $host in
7852 i?86-*-solaris*|x86_64-*-solaris*)
7853 LD="${LD-ld} -m elf_x86_64"
7854 ;;
7855 sparc*-*-solaris*)
7856 LD="${LD-ld} -m elf64_sparc"
7857 ;;
7858 esac
7859 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7860 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7861 LD=${LD-ld}_sol2
7862 fi
7863 ;;
7864 *)
7865 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7866 LD="${LD-ld} -64"
7867 fi
7868 ;;
7869 esac
7870 ;;
7871 esac
7872 fi
7873 rm -rf conftest*
7874 ;;
7875 esac
7876
7877 need_locks=$enable_libtool_lock
7878
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}mt; ac_word=$2
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 printf %s "checking for $ac_word... " >&6; }
7884 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else $as_nop
7888 if test -n "$MANIFEST_TOOL"; then
7889 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 case $as_dir in #(((
7896 '') as_dir=./ ;;
7897 */) ;;
7898 *) as_dir=$as_dir/ ;;
7899 esac
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7913 if test -n "$MANIFEST_TOOL"; then
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7915 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7916 else
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 printf "%s\n" "no" >&6; }
7919 fi
7920
7921
7922 fi
7923 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7924 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7925 # Extract the first word of "mt", so it can be a program name with args.
7926 set dummy mt; ac_word=$2
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 printf %s "checking for $ac_word... " >&6; }
7929 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
7933 if test -n "$ac_ct_MANIFEST_TOOL"; then
7934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939 IFS=$as_save_IFS
7940 case $as_dir in #(((
7941 '') as_dir=./ ;;
7942 */) ;;
7943 *) as_dir=$as_dir/ ;;
7944 esac
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7958 if test -n "$ac_ct_MANIFEST_TOOL"; then
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7960 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7961 else
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 printf "%s\n" "no" >&6; }
7964 fi
7965
7966 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7967 MANIFEST_TOOL=":"
7968 else
7969 case $cross_compiling:$ac_tool_warned in
7970 yes:)
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973 ac_tool_warned=yes ;;
7974 esac
7975 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7976 fi
7977 else
7978 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7979 fi
7980
7981 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7983 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7984 if test ${lt_cv_path_mainfest_tool+y}
7985 then :
7986 printf %s "(cached) " >&6
7987 else $as_nop
7988 lt_cv_path_mainfest_tool=no
7989 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7990 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7991 cat conftest.err >&5
7992 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7993 lt_cv_path_mainfest_tool=yes
7994 fi
7995 rm -f conftest*
7996 fi
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7998 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7999 if test yes != "$lt_cv_path_mainfest_tool"; then
8000 MANIFEST_TOOL=:
8001 fi
8002
8003
8004
8005
8006
8007
8008 case $host_os in
8009 rhapsody* | darwin*)
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 printf %s "checking for $ac_word... " >&6; }
8015 if test ${ac_cv_prog_DSYMUTIL+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else $as_nop
8019 if test -n "$DSYMUTIL"; then
8020 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 case $as_dir in #(((
8027 '') as_dir=./ ;;
8028 */) ;;
8029 *) as_dir=$as_dir/ ;;
8030 esac
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8044 if test -n "$DSYMUTIL"; then
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8046 printf "%s\n" "$DSYMUTIL" >&6; }
8047 else
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 printf "%s\n" "no" >&6; }
8050 fi
8051
8052
8053 fi
8054 if test -z "$ac_cv_prog_DSYMUTIL"; then
8055 ac_ct_DSYMUTIL=$DSYMUTIL
8056 # Extract the first word of "dsymutil", so it can be a program name with args.
8057 set dummy dsymutil; ac_word=$2
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 printf %s "checking for $ac_word... " >&6; }
8060 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8061 then :
8062 printf %s "(cached) " >&6
8063 else $as_nop
8064 if test -n "$ac_ct_DSYMUTIL"; then
8065 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 case $as_dir in #(((
8072 '') as_dir=./ ;;
8073 */) ;;
8074 *) as_dir=$as_dir/ ;;
8075 esac
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8078 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8080 break 2
8081 fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8089 if test -n "$ac_ct_DSYMUTIL"; then
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8091 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8092 else
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 printf "%s\n" "no" >&6; }
8095 fi
8096
8097 if test "x$ac_ct_DSYMUTIL" = x; then
8098 DSYMUTIL=":"
8099 else
8100 case $cross_compiling:$ac_tool_warned in
8101 yes:)
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8104 ac_tool_warned=yes ;;
8105 esac
8106 DSYMUTIL=$ac_ct_DSYMUTIL
8107 fi
8108 else
8109 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8110 fi
8111
8112 if test -n "$ac_tool_prefix"; then
8113 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8114 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 printf %s "checking for $ac_word... " >&6; }
8117 if test ${ac_cv_prog_NMEDIT+y}
8118 then :
8119 printf %s "(cached) " >&6
8120 else $as_nop
8121 if test -n "$NMEDIT"; then
8122 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 case $as_dir in #(((
8129 '') as_dir=./ ;;
8130 */) ;;
8131 *) as_dir=$as_dir/ ;;
8132 esac
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 NMEDIT=$ac_cv_prog_NMEDIT
8146 if test -n "$NMEDIT"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8148 printf "%s\n" "$NMEDIT" >&6; }
8149 else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 printf "%s\n" "no" >&6; }
8152 fi
8153
8154
8155 fi
8156 if test -z "$ac_cv_prog_NMEDIT"; then
8157 ac_ct_NMEDIT=$NMEDIT
8158 # Extract the first word of "nmedit", so it can be a program name with args.
8159 set dummy nmedit; ac_word=$2
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 printf %s "checking for $ac_word... " >&6; }
8162 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else $as_nop
8166 if test -n "$ac_ct_NMEDIT"; then
8167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 case $as_dir in #(((
8174 '') as_dir=./ ;;
8175 */) ;;
8176 *) as_dir=$as_dir/ ;;
8177 esac
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8191 if test -n "$ac_ct_NMEDIT"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8193 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8194 else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 printf "%s\n" "no" >&6; }
8197 fi
8198
8199 if test "x$ac_ct_NMEDIT" = x; then
8200 NMEDIT=":"
8201 else
8202 case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 NMEDIT=$ac_ct_NMEDIT
8209 fi
8210 else
8211 NMEDIT="$ac_cv_prog_NMEDIT"
8212 fi
8213
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 printf %s "checking for $ac_word... " >&6; }
8219 if test ${ac_cv_prog_LIPO+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else $as_nop
8223 if test -n "$LIPO"; then
8224 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 case $as_dir in #(((
8231 '') as_dir=./ ;;
8232 */) ;;
8233 *) as_dir=$as_dir/ ;;
8234 esac
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8237 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245 fi
8246 fi
8247 LIPO=$ac_cv_prog_LIPO
8248 if test -n "$LIPO"; then
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8250 printf "%s\n" "$LIPO" >&6; }
8251 else
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 printf "%s\n" "no" >&6; }
8254 fi
8255
8256
8257 fi
8258 if test -z "$ac_cv_prog_LIPO"; then
8259 ac_ct_LIPO=$LIPO
8260 # Extract the first word of "lipo", so it can be a program name with args.
8261 set dummy lipo; ac_word=$2
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 printf %s "checking for $ac_word... " >&6; }
8264 if test ${ac_cv_prog_ac_ct_LIPO+y}
8265 then :
8266 printf %s "(cached) " >&6
8267 else $as_nop
8268 if test -n "$ac_ct_LIPO"; then
8269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 case $as_dir in #(((
8276 '') as_dir=./ ;;
8277 */) ;;
8278 *) as_dir=$as_dir/ ;;
8279 esac
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_ac_ct_LIPO="lipo"
8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290 fi
8291 fi
8292 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8293 if test -n "$ac_ct_LIPO"; then
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8295 printf "%s\n" "$ac_ct_LIPO" >&6; }
8296 else
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 printf "%s\n" "no" >&6; }
8299 fi
8300
8301 if test "x$ac_ct_LIPO" = x; then
8302 LIPO=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305 yes:)
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8309 esac
8310 LIPO=$ac_ct_LIPO
8311 fi
8312 else
8313 LIPO="$ac_cv_prog_LIPO"
8314 fi
8315
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}otool; ac_word=$2
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 printf %s "checking for $ac_word... " >&6; }
8321 if test ${ac_cv_prog_OTOOL+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else $as_nop
8325 if test -n "$OTOOL"; then
8326 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8327 else
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331 IFS=$as_save_IFS
8332 case $as_dir in #(((
8333 '') as_dir=./ ;;
8334 */) ;;
8335 *) as_dir=$as_dir/ ;;
8336 esac
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 OTOOL=$ac_cv_prog_OTOOL
8350 if test -n "$OTOOL"; then
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8352 printf "%s\n" "$OTOOL" >&6; }
8353 else
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 printf "%s\n" "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_OTOOL"; then
8361 ac_ct_OTOOL=$OTOOL
8362 # Extract the first word of "otool", so it can be a program name with args.
8363 set dummy otool; ac_word=$2
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 printf %s "checking for $ac_word... " >&6; }
8366 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else $as_nop
8370 if test -n "$ac_ct_OTOOL"; then
8371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 case $as_dir in #(((
8378 '') as_dir=./ ;;
8379 */) ;;
8380 *) as_dir=$as_dir/ ;;
8381 esac
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_ac_ct_OTOOL="otool"
8385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8395 if test -n "$ac_ct_OTOOL"; then
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8397 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8398 else
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 printf "%s\n" "no" >&6; }
8401 fi
8402
8403 if test "x$ac_ct_OTOOL" = x; then
8404 OTOOL=":"
8405 else
8406 case $cross_compiling:$ac_tool_warned in
8407 yes:)
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8411 esac
8412 OTOOL=$ac_ct_OTOOL
8413 fi
8414 else
8415 OTOOL="$ac_cv_prog_OTOOL"
8416 fi
8417
8418 if test -n "$ac_tool_prefix"; then
8419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 printf %s "checking for $ac_word... " >&6; }
8423 if test ${ac_cv_prog_OTOOL64+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else $as_nop
8427 if test -n "$OTOOL64"; then
8428 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 case $as_dir in #(((
8435 '') as_dir=./ ;;
8436 */) ;;
8437 *) as_dir=$as_dir/ ;;
8438 esac
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi
8450 fi
8451 OTOOL64=$ac_cv_prog_OTOOL64
8452 if test -n "$OTOOL64"; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8454 printf "%s\n" "$OTOOL64" >&6; }
8455 else
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 printf "%s\n" "no" >&6; }
8458 fi
8459
8460
8461 fi
8462 if test -z "$ac_cv_prog_OTOOL64"; then
8463 ac_ct_OTOOL64=$OTOOL64
8464 # Extract the first word of "otool64", so it can be a program name with args.
8465 set dummy otool64; ac_word=$2
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 printf %s "checking for $ac_word... " >&6; }
8468 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else $as_nop
8472 if test -n "$ac_ct_OTOOL64"; then
8473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 case $as_dir in #(((
8480 '') as_dir=./ ;;
8481 */) ;;
8482 *) as_dir=$as_dir/ ;;
8483 esac
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_ac_ct_OTOOL64="otool64"
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8497 if test -n "$ac_ct_OTOOL64"; then
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8499 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8500 else
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 printf "%s\n" "no" >&6; }
8503 fi
8504
8505 if test "x$ac_ct_OTOOL64" = x; then
8506 OTOOL64=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 OTOOL64=$ac_ct_OTOOL64
8515 fi
8516 else
8517 OTOOL64="$ac_cv_prog_OTOOL64"
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8547 printf %s "checking for -single_module linker flag... " >&6; }
8548 if test ${lt_cv_apple_cc_single_mod+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else $as_nop
8552 lt_cv_apple_cc_single_mod=no
8553 if test -z "$LT_MULTI_MODULE"; then
8554 # By default we will add the -single_module flag. You can override
8555 # by either setting the environment variable LT_MULTI_MODULE
8556 # non-empty at configure time, or by adding -multi_module to the
8557 # link flags.
8558 rm -rf libconftest.dylib*
8559 echo "int foo(void){return 1;}" > conftest.c
8560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8561 -dynamiclib -Wl,-single_module conftest.c" >&5
8562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8564 _lt_result=$?
8565 # If there is a non-empty error log, and "single_module"
8566 # appears in it, assume the flag caused a linker warning
8567 if test -s conftest.err && $GREP single_module conftest.err; then
8568 cat conftest.err >&5
8569 # Otherwise, if the output was created with a 0 exit code from
8570 # the compiler, it worked.
8571 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8572 lt_cv_apple_cc_single_mod=yes
8573 else
8574 cat conftest.err >&5
8575 fi
8576 rm -rf libconftest.dylib*
8577 rm -f conftest.*
8578 fi
8579 fi
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8581 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8582
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8584 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8585 if test ${lt_cv_ld_exported_symbols_list+y}
8586 then :
8587 printf %s "(cached) " >&6
8588 else $as_nop
8589 lt_cv_ld_exported_symbols_list=no
8590 save_LDFLAGS=$LDFLAGS
8591 echo "_main" > conftest.sym
8592 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595
8596 int
8597 main (void)
8598 {
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"
8605 then :
8606 lt_cv_ld_exported_symbols_list=yes
8607 else $as_nop
8608 lt_cv_ld_exported_symbols_list=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8611 conftest$ac_exeext conftest.$ac_ext
8612 LDFLAGS=$save_LDFLAGS
8613
8614 fi
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8616 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8617
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8619 printf %s "checking for -force_load linker flag... " >&6; }
8620 if test ${lt_cv_ld_force_load+y}
8621 then :
8622 printf %s "(cached) " >&6
8623 else $as_nop
8624 lt_cv_ld_force_load=no
8625 cat > conftest.c << _LT_EOF
8626 int forced_loaded() { return 2;}
8627 _LT_EOF
8628 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8629 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8630 echo "$AR cr libconftest.a conftest.o" >&5
8631 $AR cr libconftest.a conftest.o 2>&5
8632 echo "$RANLIB libconftest.a" >&5
8633 $RANLIB libconftest.a 2>&5
8634 cat > conftest.c << _LT_EOF
8635 int main() { return 0;}
8636 _LT_EOF
8637 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8638 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8639 _lt_result=$?
8640 if test -s conftest.err && $GREP force_load conftest.err; then
8641 cat conftest.err >&5
8642 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8643 lt_cv_ld_force_load=yes
8644 else
8645 cat conftest.err >&5
8646 fi
8647 rm -f conftest.err libconftest.a conftest conftest.c
8648 rm -rf conftest.dSYM
8649
8650 fi
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8652 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8653 case $host_os in
8654 rhapsody* | darwin1.[012])
8655 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8656 darwin1.*)
8657 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8658 darwin*) # darwin 5.x on
8659 # if running on 10.5 or later, the deployment target defaults
8660 # to the OS version, if on x86, and 10.4, the deployment
8661 # target defaults to 10.4. Don't you love it?
8662 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8663 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8664 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8665 10.[012][,.]*)
8666 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8667 10.*|11.*)
8668 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8669 esac
8670 ;;
8671 esac
8672 if test yes = "$lt_cv_apple_cc_single_mod"; then
8673 _lt_dar_single_mod='$single_module'
8674 fi
8675 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8676 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8677 else
8678 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8679 fi
8680 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8681 _lt_dsymutil='~$DSYMUTIL $lib || :'
8682 else
8683 _lt_dsymutil=
8684 fi
8685 ;;
8686 esac
8687
8688 # func_munge_path_list VARIABLE PATH
8689 # -----------------------------------
8690 # VARIABLE is name of variable containing _space_ separated list of
8691 # directories to be munged by the contents of PATH, which is string
8692 # having a format:
8693 # "DIR[:DIR]:"
8694 # string "DIR[ DIR]" will be prepended to VARIABLE
8695 # ":DIR[:DIR]"
8696 # string "DIR[ DIR]" will be appended to VARIABLE
8697 # "DIRP[:DIRP]::[DIRA:]DIRA"
8698 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8699 # "DIRA[ DIRA]" will be appended to VARIABLE
8700 # "DIR[:DIR]"
8701 # VARIABLE will be replaced by "DIR[ DIR]"
8702 func_munge_path_list ()
8703 {
8704 case x$2 in
8705 x)
8706 ;;
8707 *:)
8708 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8709 ;;
8710 x:*)
8711 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8712 ;;
8713 *::*)
8714 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8715 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8716 ;;
8717 *)
8718 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8719 ;;
8720 esac
8721 }
8722
8723 ac_header= ac_cache=
8724 for ac_item in $ac_header_c_list
8725 do
8726 if test $ac_cache; then
8727 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8728 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8729 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8730 fi
8731 ac_header= ac_cache=
8732 elif test $ac_header; then
8733 ac_cache=$ac_item
8734 else
8735 ac_header=$ac_item
8736 fi
8737 done
8738
8739
8740
8741
8742
8743
8744
8745
8746 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8747 then :
8748
8749 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8750
8751 fi
8752 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8753 "
8754 if test "x$ac_cv_header_dlfcn_h" = xyes
8755 then :
8756 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8757
8758 fi
8759
8760
8761
8762
8763
8764 # Set options
8765
8766
8767
8768 enable_dlopen=no
8769
8770
8771
8772 # Check whether --enable-shared was given.
8773 if test ${enable_shared+y}
8774 then :
8775 enableval=$enable_shared; p=${PACKAGE-default}
8776 case $enableval in
8777 yes) enable_shared=yes ;;
8778 no) enable_shared=no ;;
8779 *)
8780 enable_shared=no
8781 # Look at the argument we got. We use all the common list separators.
8782 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8783 for pkg in $enableval; do
8784 IFS=$lt_save_ifs
8785 if test "X$pkg" = "X$p"; then
8786 enable_shared=yes
8787 fi
8788 done
8789 IFS=$lt_save_ifs
8790 ;;
8791 esac
8792 else $as_nop
8793 enable_shared=yes
8794 fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 # Check whether --enable-static was given.
8805 if test ${enable_static+y}
8806 then :
8807 enableval=$enable_static; p=${PACKAGE-default}
8808 case $enableval in
8809 yes) enable_static=yes ;;
8810 no) enable_static=no ;;
8811 *)
8812 enable_static=no
8813 # Look at the argument we got. We use all the common list separators.
8814 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8815 for pkg in $enableval; do
8816 IFS=$lt_save_ifs
8817 if test "X$pkg" = "X$p"; then
8818 enable_static=yes
8819 fi
8820 done
8821 IFS=$lt_save_ifs
8822 ;;
8823 esac
8824 else $as_nop
8825 enable_static=yes
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 # Check whether --with-pic was given.
8838 if test ${with_pic+y}
8839 then :
8840 withval=$with_pic; lt_p=${PACKAGE-default}
8841 case $withval in
8842 yes|no) pic_mode=$withval ;;
8843 *)
8844 pic_mode=default
8845 # Look at the argument we got. We use all the common list separators.
8846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8847 for lt_pkg in $withval; do
8848 IFS=$lt_save_ifs
8849 if test "X$lt_pkg" = "X$lt_p"; then
8850 pic_mode=yes
8851 fi
8852 done
8853 IFS=$lt_save_ifs
8854 ;;
8855 esac
8856 else $as_nop
8857 pic_mode=default
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867 # Check whether --enable-fast-install was given.
8868 if test ${enable_fast_install+y}
8869 then :
8870 enableval=$enable_fast_install; p=${PACKAGE-default}
8871 case $enableval in
8872 yes) enable_fast_install=yes ;;
8873 no) enable_fast_install=no ;;
8874 *)
8875 enable_fast_install=no
8876 # Look at the argument we got. We use all the common list separators.
8877 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8878 for pkg in $enableval; do
8879 IFS=$lt_save_ifs
8880 if test "X$pkg" = "X$p"; then
8881 enable_fast_install=yes
8882 fi
8883 done
8884 IFS=$lt_save_ifs
8885 ;;
8886 esac
8887 else $as_nop
8888 enable_fast_install=yes
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897
8898 shared_archive_member_spec=
8899 case $host,$enable_shared in
8900 power*-*-aix[5-9]*,yes)
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8902 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8903
8904 # Check whether --with-aix-soname was given.
8905 if test ${with_aix_soname+y}
8906 then :
8907 withval=$with_aix_soname; case $withval in
8908 aix|svr4|both)
8909 ;;
8910 *)
8911 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8912 ;;
8913 esac
8914 lt_cv_with_aix_soname=$with_aix_soname
8915 else $as_nop
8916 if test ${lt_cv_with_aix_soname+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else $as_nop
8920 lt_cv_with_aix_soname=aix
8921 fi
8922
8923 with_aix_soname=$lt_cv_with_aix_soname
8924 fi
8925
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8927 printf "%s\n" "$with_aix_soname" >&6; }
8928 if test aix != "$with_aix_soname"; then
8929 # For the AIX way of multilib, we name the shared archive member
8930 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8931 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8932 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8933 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8934 if test 64 = "${OBJECT_MODE-32}"; then
8935 shared_archive_member_spec=shr_64
8936 else
8937 shared_archive_member_spec=shr
8938 fi
8939 fi
8940 ;;
8941 *)
8942 with_aix_soname=aix
8943 ;;
8944 esac
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 # This can be used to rebuild libtool when needed
8956 LIBTOOL_DEPS=$ltmain
8957
8958 # Always use our own libtool.
8959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 test -z "$LN_S" && LN_S="ln -s"
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005 if test -n "${ZSH_VERSION+set}"; then
9006 setopt NO_GLOB_SUBST
9007 fi
9008
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9010 printf %s "checking for objdir... " >&6; }
9011 if test ${lt_cv_objdir+y}
9012 then :
9013 printf %s "(cached) " >&6
9014 else $as_nop
9015 rm -f .libs 2>/dev/null
9016 mkdir .libs 2>/dev/null
9017 if test -d .libs; then
9018 lt_cv_objdir=.libs
9019 else
9020 # MS-DOS does not allow filenames that begin with a dot.
9021 lt_cv_objdir=_libs
9022 fi
9023 rmdir .libs 2>/dev/null
9024 fi
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9026 printf "%s\n" "$lt_cv_objdir" >&6; }
9027 objdir=$lt_cv_objdir
9028
9029
9030
9031
9032
9033 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9034
9035
9036
9037
9038 case $host_os in
9039 aix3*)
9040 # AIX sometimes has problems with the GCC collect2 program. For some
9041 # reason, if we set the COLLECT_NAMES environment variable, the problems
9042 # vanish in a puff of smoke.
9043 if test set != "${COLLECT_NAMES+set}"; then
9044 COLLECT_NAMES=
9045 export COLLECT_NAMES
9046 fi
9047 ;;
9048 esac
9049
9050 # Global variables:
9051 ofile=libtool
9052 can_build_shared=yes
9053
9054 # All known linkers require a '.a' archive for static linking (except MSVC,
9055 # which needs '.lib').
9056 libext=a
9057
9058 with_gnu_ld=$lt_cv_prog_gnu_ld
9059
9060 old_CC=$CC
9061 old_CFLAGS=$CFLAGS
9062
9063 # Set sane defaults for various variables
9064 test -z "$CC" && CC=cc
9065 test -z "$LTCC" && LTCC=$CC
9066 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9067 test -z "$LD" && LD=ld
9068 test -z "$ac_objext" && ac_objext=o
9069
9070 func_cc_basename $compiler
9071 cc_basename=$func_cc_basename_result
9072
9073
9074 # Only perform the check for file, if the check method requires it
9075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9076 case $deplibs_check_method in
9077 file_magic*)
9078 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9080 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9081 if test ${lt_cv_path_MAGIC_CMD+y}
9082 then :
9083 printf %s "(cached) " >&6
9084 else $as_nop
9085 case $MAGIC_CMD in
9086 [\\/*] | ?:[\\/]*)
9087 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9088 ;;
9089 *)
9090 lt_save_MAGIC_CMD=$MAGIC_CMD
9091 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9093 for ac_dir in $ac_dummy; do
9094 IFS=$lt_save_ifs
9095 test -z "$ac_dir" && ac_dir=.
9096 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9097 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9098 if test -n "$file_magic_test_file"; then
9099 case $deplibs_check_method in
9100 "file_magic "*)
9101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9102 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9104 $EGREP "$file_magic_regex" > /dev/null; then
9105 :
9106 else
9107 cat <<_LT_EOF 1>&2
9108
9109 *** Warning: the command libtool uses to detect shared libraries,
9110 *** $file_magic_cmd, produces output that libtool cannot recognize.
9111 *** The result is that libtool may fail to recognize shared libraries
9112 *** as such. This will affect the creation of libtool libraries that
9113 *** depend on shared libraries, but programs linked with such libtool
9114 *** libraries will work regardless of this problem. Nevertheless, you
9115 *** may want to report the problem to your system manager and/or to
9116 *** [email protected]
9117
9118 _LT_EOF
9119 fi ;;
9120 esac
9121 fi
9122 break
9123 fi
9124 done
9125 IFS=$lt_save_ifs
9126 MAGIC_CMD=$lt_save_MAGIC_CMD
9127 ;;
9128 esac
9129 fi
9130
9131 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9132 if test -n "$MAGIC_CMD"; then
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9134 printf "%s\n" "$MAGIC_CMD" >&6; }
9135 else
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 printf "%s\n" "no" >&6; }
9138 fi
9139
9140
9141
9142
9143
9144 if test -z "$lt_cv_path_MAGIC_CMD"; then
9145 if test -n "$ac_tool_prefix"; then
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9147 printf %s "checking for file... " >&6; }
9148 if test ${lt_cv_path_MAGIC_CMD+y}
9149 then :
9150 printf %s "(cached) " >&6
9151 else $as_nop
9152 case $MAGIC_CMD in
9153 [\\/*] | ?:[\\/]*)
9154 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9155 ;;
9156 *)
9157 lt_save_MAGIC_CMD=$MAGIC_CMD
9158 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9159 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9160 for ac_dir in $ac_dummy; do
9161 IFS=$lt_save_ifs
9162 test -z "$ac_dir" && ac_dir=.
9163 if test -f "$ac_dir/file"; then
9164 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9165 if test -n "$file_magic_test_file"; then
9166 case $deplibs_check_method in
9167 "file_magic "*)
9168 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9169 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9171 $EGREP "$file_magic_regex" > /dev/null; then
9172 :
9173 else
9174 cat <<_LT_EOF 1>&2
9175
9176 *** Warning: the command libtool uses to detect shared libraries,
9177 *** $file_magic_cmd, produces output that libtool cannot recognize.
9178 *** The result is that libtool may fail to recognize shared libraries
9179 *** as such. This will affect the creation of libtool libraries that
9180 *** depend on shared libraries, but programs linked with such libtool
9181 *** libraries will work regardless of this problem. Nevertheless, you
9182 *** may want to report the problem to your system manager and/or to
9183 *** [email protected]
9184
9185 _LT_EOF
9186 fi ;;
9187 esac
9188 fi
9189 break
9190 fi
9191 done
9192 IFS=$lt_save_ifs
9193 MAGIC_CMD=$lt_save_MAGIC_CMD
9194 ;;
9195 esac
9196 fi
9197
9198 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9199 if test -n "$MAGIC_CMD"; then
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9201 printf "%s\n" "$MAGIC_CMD" >&6; }
9202 else
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 printf "%s\n" "no" >&6; }
9205 fi
9206
9207
9208 else
9209 MAGIC_CMD=:
9210 fi
9211 fi
9212
9213 fi
9214 ;;
9215 esac
9216
9217 # Use C for the default configuration in the libtool script
9218
9219 lt_save_CC=$CC
9220 ac_ext=c
9221 ac_cpp='$CPP $CPPFLAGS'
9222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9225
9226
9227 # Source file extension for C test sources.
9228 ac_ext=c
9229
9230 # Object file extension for compiled C test sources.
9231 objext=o
9232 objext=$objext
9233
9234 # Code to be used in simple compile tests
9235 lt_simple_compile_test_code="int some_variable = 0;"
9236
9237 # Code to be used in simple link tests
9238 lt_simple_link_test_code='int main(){return(0);}'
9239
9240
9241
9242
9243
9244
9245
9246 # If no C compiler was specified, use CC.
9247 LTCC=${LTCC-"$CC"}
9248
9249 # If no C compiler flags were specified, use CFLAGS.
9250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9251
9252 # Allow CC to be a program name with arguments.
9253 compiler=$CC
9254
9255 # Save the default compiler, since it gets overwritten when the other
9256 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9257 compiler_DEFAULT=$CC
9258
9259 # save warnings/boilerplate of simple test code
9260 ac_outfile=conftest.$ac_objext
9261 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9262 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9263 _lt_compiler_boilerplate=`cat conftest.err`
9264 $RM conftest*
9265
9266 ac_outfile=conftest.$ac_objext
9267 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9268 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9269 _lt_linker_boilerplate=`cat conftest.err`
9270 $RM -r conftest*
9271
9272
9273 ## CAVEAT EMPTOR:
9274 ## There is no encapsulation within the following macros, do not change
9275 ## the running order or otherwise move them around unless you know exactly
9276 ## what you are doing...
9277 if test -n "$compiler"; then
9278
9279 lt_prog_compiler_no_builtin_flag=
9280
9281 if test yes = "$GCC"; then
9282 case $cc_basename in
9283 nvcc*)
9284 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9285 *)
9286 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9287 esac
9288
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9290 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9291 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9292 then :
9293 printf %s "(cached) " >&6
9294 else $as_nop
9295 lt_cv_prog_compiler_rtti_exceptions=no
9296 ac_outfile=conftest.$ac_objext
9297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9298 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9299 # Insert the option either (1) after the last *FLAGS variable, or
9300 # (2) before a word containing "conftest.", or (3) at the end.
9301 # Note that $ac_compile itself does not contain backslashes and begins
9302 # with a dollar sign (not a hyphen), so the echo should work correctly.
9303 # The option is referenced via a variable to avoid confusing sed.
9304 lt_compile=`echo "$ac_compile" | $SED \
9305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9307 -e 's:$: $lt_compiler_flag:'`
9308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9309 (eval "$lt_compile" 2>conftest.err)
9310 ac_status=$?
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 if (exit $ac_status) && test -s "$ac_outfile"; then
9314 # The compiler can only warn and ignore the option if not recognized
9315 # So say no if there are warnings other than the usual output.
9316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9319 lt_cv_prog_compiler_rtti_exceptions=yes
9320 fi
9321 fi
9322 $RM conftest*
9323
9324 fi
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9326 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9327
9328 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9329 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9330 else
9331 :
9332 fi
9333
9334 fi
9335
9336
9337
9338
9339
9340
9341 lt_prog_compiler_wl=
9342 lt_prog_compiler_pic=
9343 lt_prog_compiler_static=
9344
9345
9346 if test yes = "$GCC"; then
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_static='-static'
9349
9350 case $host_os in
9351 aix*)
9352 # All AIX code is PIC.
9353 if test ia64 = "$host_cpu"; then
9354 # AIX 5 now supports IA64 processor
9355 lt_prog_compiler_static='-Bstatic'
9356 fi
9357 lt_prog_compiler_pic='-fPIC'
9358 ;;
9359
9360 amigaos*)
9361 case $host_cpu in
9362 powerpc)
9363 # see comment about AmigaOS4 .so support
9364 lt_prog_compiler_pic='-fPIC'
9365 ;;
9366 m68k)
9367 # FIXME: we need at least 68020 code to build shared libraries, but
9368 # adding the '-m68020' flag to GCC prevents building anything better,
9369 # like '-m68040'.
9370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9371 ;;
9372 esac
9373 ;;
9374
9375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9376 # PIC is the default for these OSes.
9377 ;;
9378
9379 mingw* | cygwin* | pw32* | os2* | cegcc*)
9380 # This hack is so that the source file can tell whether it is being
9381 # built for inclusion in a dll (and should export symbols for example).
9382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9383 # (--disable-auto-import) libraries
9384 lt_prog_compiler_pic='-DDLL_EXPORT'
9385 case $host_os in
9386 os2*)
9387 lt_prog_compiler_static='$wl-static'
9388 ;;
9389 esac
9390 ;;
9391
9392 darwin* | rhapsody*)
9393 # PIC is the default on this platform
9394 # Common symbols not allowed in MH_DYLIB files
9395 lt_prog_compiler_pic='-fno-common'
9396 ;;
9397
9398 haiku*)
9399 # PIC is the default for Haiku.
9400 # The "-static" flag exists, but is broken.
9401 lt_prog_compiler_static=
9402 ;;
9403
9404 hpux*)
9405 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9406 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9407 # sets the default TLS model and affects inlining.
9408 case $host_cpu in
9409 hppa*64*)
9410 # +Z the default
9411 ;;
9412 *)
9413 lt_prog_compiler_pic='-fPIC'
9414 ;;
9415 esac
9416 ;;
9417
9418 interix[3-9]*)
9419 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9420 # Instead, we relocate shared libraries at runtime.
9421 ;;
9422
9423 msdosdjgpp*)
9424 # Just because we use GCC doesn't mean we suddenly get shared libraries
9425 # on systems that don't support them.
9426 lt_prog_compiler_can_build_shared=no
9427 enable_shared=no
9428 ;;
9429
9430 *nto* | *qnx*)
9431 # QNX uses GNU C++, but need to define -shared option too, otherwise
9432 # it will coredump.
9433 lt_prog_compiler_pic='-fPIC -shared'
9434 ;;
9435
9436 sysv4*MP*)
9437 if test -d /usr/nec; then
9438 lt_prog_compiler_pic=-Kconform_pic
9439 fi
9440 ;;
9441
9442 *)
9443 lt_prog_compiler_pic='-fPIC'
9444 ;;
9445 esac
9446
9447 case $cc_basename in
9448 nvcc*) # Cuda Compiler Driver 2.2
9449 lt_prog_compiler_wl='-Xlinker '
9450 if test -n "$lt_prog_compiler_pic"; then
9451 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9452 fi
9453 ;;
9454 esac
9455 else
9456 # PORTME Check for flag to pass linker flags through the system compiler.
9457 case $host_os in
9458 aix*)
9459 lt_prog_compiler_wl='-Wl,'
9460 if test ia64 = "$host_cpu"; then
9461 # AIX 5 now supports IA64 processor
9462 lt_prog_compiler_static='-Bstatic'
9463 else
9464 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9465 fi
9466 ;;
9467
9468 darwin* | rhapsody*)
9469 # PIC is the default on this platform
9470 # Common symbols not allowed in MH_DYLIB files
9471 lt_prog_compiler_pic='-fno-common'
9472 case $cc_basename in
9473 nagfor*)
9474 # NAG Fortran compiler
9475 lt_prog_compiler_wl='-Wl,-Wl,,'
9476 lt_prog_compiler_pic='-PIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 ;;
9479 esac
9480 ;;
9481
9482 mingw* | cygwin* | pw32* | os2* | cegcc*)
9483 # This hack is so that the source file can tell whether it is being
9484 # built for inclusion in a dll (and should export symbols for example).
9485 lt_prog_compiler_pic='-DDLL_EXPORT'
9486 case $host_os in
9487 os2*)
9488 lt_prog_compiler_static='$wl-static'
9489 ;;
9490 esac
9491 ;;
9492
9493 hpux9* | hpux10* | hpux11*)
9494 lt_prog_compiler_wl='-Wl,'
9495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9496 # not for PA HP-UX.
9497 case $host_cpu in
9498 hppa*64*|ia64*)
9499 # +Z the default
9500 ;;
9501 *)
9502 lt_prog_compiler_pic='+Z'
9503 ;;
9504 esac
9505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9506 lt_prog_compiler_static='$wl-a ${wl}archive'
9507 ;;
9508
9509 irix5* | irix6* | nonstopux*)
9510 lt_prog_compiler_wl='-Wl,'
9511 # PIC (with -KPIC) is the default.
9512 lt_prog_compiler_static='-non_shared'
9513 ;;
9514
9515 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9516 case $cc_basename in
9517 # old Intel for x86_64, which still supported -KPIC.
9518 ecc*)
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-KPIC'
9521 lt_prog_compiler_static='-static'
9522 ;;
9523 # flang / f18. f95 an alias for gfortran or flang on Debian
9524 flang* | f18* | f95*)
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-fPIC'
9527 lt_prog_compiler_static='-static'
9528 ;;
9529 # icc used to be incompatible with GCC.
9530 # ICC 10 doesn't accept -KPIC any more.
9531 icc* | ifort*)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-fPIC'
9534 lt_prog_compiler_static='-static'
9535 ;;
9536 # Lahey Fortran 8.1.
9537 lf95*)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='--shared'
9540 lt_prog_compiler_static='--static'
9541 ;;
9542 nagfor*)
9543 # NAG Fortran compiler
9544 lt_prog_compiler_wl='-Wl,-Wl,,'
9545 lt_prog_compiler_pic='-PIC'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9548 tcc*)
9549 # Fabrice Bellard et al's Tiny C Compiler
9550 lt_prog_compiler_wl='-Wl,'
9551 lt_prog_compiler_pic='-fPIC'
9552 lt_prog_compiler_static='-static'
9553 ;;
9554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9555 # Portland Group compilers (*not* the Pentium gcc compiler,
9556 # which looks to be a dead project)
9557 lt_prog_compiler_wl='-Wl,'
9558 lt_prog_compiler_pic='-fpic'
9559 lt_prog_compiler_static='-Bstatic'
9560 ;;
9561 ccc*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # All Alpha code is PIC.
9564 lt_prog_compiler_static='-non_shared'
9565 ;;
9566 xl* | bgxl* | bgf* | mpixl*)
9567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-qpic'
9570 lt_prog_compiler_static='-qstaticlink'
9571 ;;
9572 *)
9573 case `$CC -V 2>&1 | sed 5q` in
9574 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9575 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 lt_prog_compiler_wl=''
9579 ;;
9580 *Sun\ F* | *Sun*Fortran*)
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-Bstatic'
9583 lt_prog_compiler_wl='-Qoption ld '
9584 ;;
9585 *Sun\ C*)
9586 # Sun C 5.9
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 lt_prog_compiler_wl='-Wl,'
9590 ;;
9591 *Intel*\ [CF]*Compiler*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-fPIC'
9594 lt_prog_compiler_static='-static'
9595 ;;
9596 *Portland\ Group*)
9597 lt_prog_compiler_wl='-Wl,'
9598 lt_prog_compiler_pic='-fpic'
9599 lt_prog_compiler_static='-Bstatic'
9600 ;;
9601 esac
9602 ;;
9603 esac
9604 ;;
9605
9606 newsos6)
9607 lt_prog_compiler_pic='-KPIC'
9608 lt_prog_compiler_static='-Bstatic'
9609 ;;
9610
9611 *nto* | *qnx*)
9612 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 # it will coredump.
9614 lt_prog_compiler_pic='-fPIC -shared'
9615 ;;
9616
9617 osf3* | osf4* | osf5*)
9618 lt_prog_compiler_wl='-Wl,'
9619 # All OSF/1 code is PIC.
9620 lt_prog_compiler_static='-non_shared'
9621 ;;
9622
9623 rdos*)
9624 lt_prog_compiler_static='-non_shared'
9625 ;;
9626
9627 solaris*)
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-Bstatic'
9630 case $cc_basename in
9631 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9632 lt_prog_compiler_wl='-Qoption ld ';;
9633 *)
9634 lt_prog_compiler_wl='-Wl,';;
9635 esac
9636 ;;
9637
9638 sunos4*)
9639 lt_prog_compiler_wl='-Qoption ld '
9640 lt_prog_compiler_pic='-PIC'
9641 lt_prog_compiler_static='-Bstatic'
9642 ;;
9643
9644 sysv4 | sysv4.2uw2* | sysv4.3*)
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 ;;
9649
9650 sysv4*MP*)
9651 if test -d /usr/nec; then
9652 lt_prog_compiler_pic='-Kconform_pic'
9653 lt_prog_compiler_static='-Bstatic'
9654 fi
9655 ;;
9656
9657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 ;;
9662
9663 unicos*)
9664 lt_prog_compiler_wl='-Wl,'
9665 lt_prog_compiler_can_build_shared=no
9666 ;;
9667
9668 uts4*)
9669 lt_prog_compiler_pic='-pic'
9670 lt_prog_compiler_static='-Bstatic'
9671 ;;
9672
9673 *)
9674 lt_prog_compiler_can_build_shared=no
9675 ;;
9676 esac
9677 fi
9678
9679 case $host_os in
9680 # For platforms that do not support PIC, -DPIC is meaningless:
9681 *djgpp*)
9682 lt_prog_compiler_pic=
9683 ;;
9684 *)
9685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9686 ;;
9687 esac
9688
9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9690 printf %s "checking for $compiler option to produce PIC... " >&6; }
9691 if test ${lt_cv_prog_compiler_pic+y}
9692 then :
9693 printf %s "(cached) " >&6
9694 else $as_nop
9695 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9696 fi
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9698 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9699 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9700
9701 #
9702 # Check to make sure the PIC flag actually works.
9703 #
9704 if test -n "$lt_prog_compiler_pic"; then
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9706 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9707 if test ${lt_cv_prog_compiler_pic_works+y}
9708 then :
9709 printf %s "(cached) " >&6
9710 else $as_nop
9711 lt_cv_prog_compiler_pic_works=no
9712 ac_outfile=conftest.$ac_objext
9713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9715 # Insert the option either (1) after the last *FLAGS variable, or
9716 # (2) before a word containing "conftest.", or (3) at the end.
9717 # Note that $ac_compile itself does not contain backslashes and begins
9718 # with a dollar sign (not a hyphen), so the echo should work correctly.
9719 # The option is referenced via a variable to avoid confusing sed.
9720 lt_compile=`echo "$ac_compile" | $SED \
9721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9723 -e 's:$: $lt_compiler_flag:'`
9724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9725 (eval "$lt_compile" 2>conftest.err)
9726 ac_status=$?
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 if (exit $ac_status) && test -s "$ac_outfile"; then
9730 # The compiler can only warn and ignore the option if not recognized
9731 # So say no if there are warnings other than the usual output.
9732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9735 lt_cv_prog_compiler_pic_works=yes
9736 fi
9737 fi
9738 $RM conftest*
9739
9740 fi
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9742 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9743
9744 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9745 case $lt_prog_compiler_pic in
9746 "" | " "*) ;;
9747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9748 esac
9749 else
9750 lt_prog_compiler_pic=
9751 lt_prog_compiler_can_build_shared=no
9752 fi
9753
9754 fi
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766 #
9767 # Check to make sure the static flag actually works.
9768 #
9769 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9771 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9772 if test ${lt_cv_prog_compiler_static_works+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else $as_nop
9776 lt_cv_prog_compiler_static_works=no
9777 save_LDFLAGS=$LDFLAGS
9778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9781 # The linker can only warn and ignore the option if not recognized
9782 # So say no if there are warnings
9783 if test -s conftest.err; then
9784 # Append any errors to the config.log.
9785 cat conftest.err 1>&5
9786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788 if diff conftest.exp conftest.er2 >/dev/null; then
9789 lt_cv_prog_compiler_static_works=yes
9790 fi
9791 else
9792 lt_cv_prog_compiler_static_works=yes
9793 fi
9794 fi
9795 $RM -r conftest*
9796 LDFLAGS=$save_LDFLAGS
9797
9798 fi
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9800 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9801
9802 if test yes = "$lt_cv_prog_compiler_static_works"; then
9803 :
9804 else
9805 lt_prog_compiler_static=
9806 fi
9807
9808
9809
9810
9811
9812
9813
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9815 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9816 if test ${lt_cv_prog_compiler_c_o+y}
9817 then :
9818 printf %s "(cached) " >&6
9819 else $as_nop
9820 lt_cv_prog_compiler_c_o=no
9821 $RM -r conftest 2>/dev/null
9822 mkdir conftest
9823 cd conftest
9824 mkdir out
9825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9826
9827 lt_compiler_flag="-o out/conftest2.$ac_objext"
9828 # Insert the option either (1) after the last *FLAGS variable, or
9829 # (2) before a word containing "conftest.", or (3) at the end.
9830 # Note that $ac_compile itself does not contain backslashes and begins
9831 # with a dollar sign (not a hyphen), so the echo should work correctly.
9832 lt_compile=`echo "$ac_compile" | $SED \
9833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835 -e 's:$: $lt_compiler_flag:'`
9836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9837 (eval "$lt_compile" 2>out/conftest.err)
9838 ac_status=$?
9839 cat out/conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9842 then
9843 # The compiler can only warn and ignore the option if not recognized
9844 # So say no if there are warnings
9845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9848 lt_cv_prog_compiler_c_o=yes
9849 fi
9850 fi
9851 chmod u+w . 2>&5
9852 $RM conftest*
9853 # SGI C++ compiler will create directory out/ii_files/ for
9854 # template instantiation
9855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9856 $RM out/* && rmdir out
9857 cd ..
9858 $RM -r conftest
9859 $RM conftest*
9860
9861 fi
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9863 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9864
9865
9866
9867
9868
9869
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9872 if test ${lt_cv_prog_compiler_c_o+y}
9873 then :
9874 printf %s "(cached) " >&6
9875 else $as_nop
9876 lt_cv_prog_compiler_c_o=no
9877 $RM -r conftest 2>/dev/null
9878 mkdir conftest
9879 cd conftest
9880 mkdir out
9881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9882
9883 lt_compiler_flag="-o out/conftest2.$ac_objext"
9884 # Insert the option either (1) after the last *FLAGS variable, or
9885 # (2) before a word containing "conftest.", or (3) at the end.
9886 # Note that $ac_compile itself does not contain backslashes and begins
9887 # with a dollar sign (not a hyphen), so the echo should work correctly.
9888 lt_compile=`echo "$ac_compile" | $SED \
9889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9891 -e 's:$: $lt_compiler_flag:'`
9892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9893 (eval "$lt_compile" 2>out/conftest.err)
9894 ac_status=$?
9895 cat out/conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9898 then
9899 # The compiler can only warn and ignore the option if not recognized
9900 # So say no if there are warnings
9901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9904 lt_cv_prog_compiler_c_o=yes
9905 fi
9906 fi
9907 chmod u+w . 2>&5
9908 $RM conftest*
9909 # SGI C++ compiler will create directory out/ii_files/ for
9910 # template instantiation
9911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9912 $RM out/* && rmdir out
9913 cd ..
9914 $RM -r conftest
9915 $RM conftest*
9916
9917 fi
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9919 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9920
9921
9922
9923
9924 hard_links=nottested
9925 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9926 # do not overwrite the value of need_locks provided by the user
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9928 printf %s "checking if we can lock with hard links... " >&6; }
9929 hard_links=yes
9930 $RM conftest*
9931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9932 touch conftest.a
9933 ln conftest.a conftest.b 2>&5 || hard_links=no
9934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9936 printf "%s\n" "$hard_links" >&6; }
9937 if test no = "$hard_links"; then
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9939 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9940 need_locks=warn
9941 fi
9942 else
9943 need_locks=no
9944 fi
9945
9946
9947
9948
9949
9950
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9952 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9953
9954 runpath_var=
9955 allow_undefined_flag=
9956 always_export_symbols=no
9957 archive_cmds=
9958 archive_expsym_cmds=
9959 compiler_needs_object=no
9960 enable_shared_with_static_runtimes=no
9961 export_dynamic_flag_spec=
9962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9963 hardcode_automatic=no
9964 hardcode_direct=no
9965 hardcode_direct_absolute=no
9966 hardcode_libdir_flag_spec=
9967 hardcode_libdir_separator=
9968 hardcode_minus_L=no
9969 hardcode_shlibpath_var=unsupported
9970 inherit_rpath=no
9971 link_all_deplibs=unknown
9972 module_cmds=
9973 module_expsym_cmds=
9974 old_archive_from_new_cmds=
9975 old_archive_from_expsyms_cmds=
9976 thread_safe_flag_spec=
9977 whole_archive_flag_spec=
9978 # include_expsyms should be a list of space-separated symbols to be *always*
9979 # included in the symbol list
9980 include_expsyms=
9981 # exclude_expsyms can be an extended regexp of symbols to exclude
9982 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9983 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9984 # as well as any symbol that contains 'd'.
9985 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9987 # platforms (ab)use it in PIC code, but their linkers get confused if
9988 # the symbol is explicitly referenced. Since portable code cannot
9989 # rely on this symbol name, it's probably fine to never include it in
9990 # preloaded symbol tables.
9991 # Exclude shared library initialization/finalization symbols.
9992 extract_expsyms_cmds=
9993
9994 case $host_os in
9995 cygwin* | mingw* | pw32* | cegcc*)
9996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9997 # When not using gcc, we currently assume that we are using
9998 # Microsoft Visual C++.
9999 if test yes != "$GCC"; then
10000 with_gnu_ld=no
10001 fi
10002 ;;
10003 interix*)
10004 # we just hope/assume this is gcc and not c89 (= MSVC++)
10005 with_gnu_ld=yes
10006 ;;
10007 openbsd* | bitrig*)
10008 with_gnu_ld=no
10009 ;;
10010 linux* | k*bsd*-gnu | gnu*)
10011 link_all_deplibs=no
10012 ;;
10013 esac
10014
10015 ld_shlibs=yes
10016
10017 # On some targets, GNU ld is compatible enough with the native linker
10018 # that we're better off using the native interface for both.
10019 lt_use_gnu_ld_interface=no
10020 if test yes = "$with_gnu_ld"; then
10021 case $host_os in
10022 aix*)
10023 # The AIX port of GNU ld has always aspired to compatibility
10024 # with the native linker. However, as the warning in the GNU ld
10025 # block says, versions before 2.19.5* couldn't really create working
10026 # shared libraries, regardless of the interface used.
10027 case `$LD -v 2>&1` in
10028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10030 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10031 *)
10032 lt_use_gnu_ld_interface=yes
10033 ;;
10034 esac
10035 ;;
10036 *)
10037 lt_use_gnu_ld_interface=yes
10038 ;;
10039 esac
10040 fi
10041
10042 if test yes = "$lt_use_gnu_ld_interface"; then
10043 # If archive_cmds runs LD, not CC, wlarc should be empty
10044 wlarc='$wl'
10045
10046 # Set some defaults for GNU ld with shared library support. These
10047 # are reset later if shared libraries are not supported. Putting them
10048 # here allows them to be overridden if necessary.
10049 runpath_var=LD_RUN_PATH
10050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10051 export_dynamic_flag_spec='$wl--export-dynamic'
10052 # ancient GNU ld didn't support --whole-archive et. al.
10053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10054 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10055 else
10056 whole_archive_flag_spec=
10057 fi
10058 supports_anon_versioning=no
10059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10060 *GNU\ gold*) supports_anon_versioning=yes ;;
10061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10064 *\ 2.11.*) ;; # other 2.11 versions
10065 *) supports_anon_versioning=yes ;;
10066 esac
10067
10068 # See if GNU ld supports shared libraries.
10069 case $host_os in
10070 aix[3-9]*)
10071 # On AIX/PPC, the GNU linker is very broken
10072 if test ia64 != "$host_cpu"; then
10073 ld_shlibs=no
10074 cat <<_LT_EOF 1>&2
10075
10076 *** Warning: the GNU linker, at least up to release 2.19, is reported
10077 *** to be unable to reliably create shared libraries on AIX.
10078 *** Therefore, libtool is disabling shared libraries support. If you
10079 *** really care for shared libraries, you may want to install binutils
10080 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10081 *** You will then need to restart the configuration process.
10082
10083 _LT_EOF
10084 fi
10085 ;;
10086
10087 amigaos*)
10088 case $host_cpu in
10089 powerpc)
10090 # see comment about AmigaOS4 .so support
10091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10092 archive_expsym_cmds=''
10093 ;;
10094 m68k)
10095 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)'
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_minus_L=yes
10098 ;;
10099 esac
10100 ;;
10101
10102 beos*)
10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104 allow_undefined_flag=unsupported
10105 # Joseph Beckenbach <[email protected]> says some releases of gcc
10106 # support --undefined. This deserves some investigation. FIXME
10107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10108 else
10109 ld_shlibs=no
10110 fi
10111 ;;
10112
10113 cygwin* | mingw* | pw32* | cegcc*)
10114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10115 # as there is no search path for DLLs.
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 export_dynamic_flag_spec='$wl--export-all-symbols'
10118 allow_undefined_flag=unsupported
10119 always_export_symbols=no
10120 enable_shared_with_static_runtimes=yes
10121 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'
10122 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10123
10124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10126 # If the export-symbols file already is a .def file, use it as
10127 # is; otherwise, prepend EXPORTS...
10128 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10129 cp $export_symbols $output_objdir/$soname.def;
10130 else
10131 echo EXPORTS > $output_objdir/$soname.def;
10132 cat $export_symbols >> $output_objdir/$soname.def;
10133 fi~
10134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135 else
10136 ld_shlibs=no
10137 fi
10138 ;;
10139
10140 haiku*)
10141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10142 link_all_deplibs=yes
10143 ;;
10144
10145 os2*)
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_minus_L=yes
10148 allow_undefined_flag=unsupported
10149 shrext_cmds=.dll
10150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10153 $ECHO EXPORTS >> $output_objdir/$libname.def~
10154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10156 emximp -o $lib $output_objdir/$libname.def'
10157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10160 $ECHO EXPORTS >> $output_objdir/$libname.def~
10161 prefix_cmds="$SED"~
10162 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10163 prefix_cmds="$prefix_cmds -e 1d";
10164 fi~
10165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10168 emximp -o $lib $output_objdir/$libname.def'
10169 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10170 enable_shared_with_static_runtimes=yes
10171 ;;
10172
10173 interix[3-9]*)
10174 hardcode_direct=no
10175 hardcode_shlibpath_var=no
10176 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10177 export_dynamic_flag_spec='$wl-E'
10178 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10179 # Instead, shared libraries are loaded at an image base (0x10000000 by
10180 # default) and relocated if they conflict, which is a slow very memory
10181 # consuming and fragmenting process. To avoid this, we pick a random,
10182 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10183 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10185 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'
10186 ;;
10187
10188 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10189 tmp_diet=no
10190 if test linux-dietlibc = "$host_os"; then
10191 case $cc_basename in
10192 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10193 esac
10194 fi
10195 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10196 && test no = "$tmp_diet"
10197 then
10198 tmp_addflag=' $pic_flag'
10199 tmp_sharedflag='-shared'
10200 case $cc_basename,$host_cpu in
10201 pgcc*) # Portland Group C compiler
10202 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'
10203 tmp_addflag=' $pic_flag'
10204 ;;
10205 pgf77* | pgf90* | pgf95* | pgfortran*)
10206 # Portland Group f77 and f90 compilers
10207 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'
10208 tmp_addflag=' $pic_flag -Mnomain' ;;
10209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10210 tmp_addflag=' -i_dynamic' ;;
10211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10212 tmp_addflag=' -i_dynamic -nofor_main' ;;
10213 ifc* | ifort*) # Intel Fortran compiler
10214 tmp_addflag=' -nofor_main' ;;
10215 lf95*) # Lahey Fortran 8.1
10216 whole_archive_flag_spec=
10217 tmp_sharedflag='--shared' ;;
10218 nagfor*) # NAGFOR 5.3
10219 tmp_sharedflag='-Wl,-shared' ;;
10220 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10221 tmp_sharedflag='-qmkshrobj'
10222 tmp_addflag= ;;
10223 nvcc*) # Cuda Compiler Driver 2.2
10224 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'
10225 compiler_needs_object=yes
10226 ;;
10227 esac
10228 case `$CC -V 2>&1 | sed 5q` in
10229 *Sun\ C*) # Sun C 5.9
10230 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'
10231 compiler_needs_object=yes
10232 tmp_sharedflag='-G' ;;
10233 *Sun\ F*) # Sun Fortran 8.3
10234 tmp_sharedflag='-G' ;;
10235 esac
10236 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10237
10238 if test yes = "$supports_anon_versioning"; then
10239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10241 echo "local: *; };" >> $output_objdir/$libname.ver~
10242 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10243 fi
10244
10245 case $cc_basename in
10246 tcc*)
10247 export_dynamic_flag_spec='-rdynamic'
10248 ;;
10249 xlf* | bgf* | bgxlf* | mpixlf*)
10250 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10251 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10253 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10254 if test yes = "$supports_anon_versioning"; then
10255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10257 echo "local: *; };" >> $output_objdir/$libname.ver~
10258 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10259 fi
10260 ;;
10261 esac
10262 else
10263 ld_shlibs=no
10264 fi
10265 ;;
10266
10267 netbsd* | netbsdelf*-gnu)
10268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10269 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10270 wlarc=
10271 else
10272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10274 fi
10275 ;;
10276
10277 solaris*)
10278 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10279 ld_shlibs=no
10280 cat <<_LT_EOF 1>&2
10281
10282 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10283 *** create shared libraries on Solaris systems. Therefore, libtool
10284 *** is disabling shared libraries support. We urge you to upgrade GNU
10285 *** binutils to release 2.9.1 or newer. Another option is to modify
10286 *** your PATH or compiler configuration so that the native linker is
10287 *** used, and then restart.
10288
10289 _LT_EOF
10290 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10293 else
10294 ld_shlibs=no
10295 fi
10296 ;;
10297
10298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10299 case `$LD -v 2>&1` in
10300 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10301 ld_shlibs=no
10302 cat <<_LT_EOF 1>&2
10303
10304 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10305 *** reliably create shared libraries on SCO systems. Therefore, libtool
10306 *** is disabling shared libraries support. We urge you to upgrade GNU
10307 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10308 *** your PATH or compiler configuration so that the native linker is
10309 *** used, and then restart.
10310
10311 _LT_EOF
10312 ;;
10313 *)
10314 # For security reasons, it is highly recommended that you always
10315 # use absolute paths for naming shared libraries, and exclude the
10316 # DT_RUNPATH tag from executables and libraries. But doing so
10317 # requires that you compile everything twice, which is a pain.
10318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10322 else
10323 ld_shlibs=no
10324 fi
10325 ;;
10326 esac
10327 ;;
10328
10329 sunos4*)
10330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10331 wlarc=
10332 hardcode_direct=yes
10333 hardcode_shlibpath_var=no
10334 ;;
10335
10336 *)
10337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10340 else
10341 ld_shlibs=no
10342 fi
10343 ;;
10344 esac
10345
10346 if test no = "$ld_shlibs"; then
10347 runpath_var=
10348 hardcode_libdir_flag_spec=
10349 export_dynamic_flag_spec=
10350 whole_archive_flag_spec=
10351 fi
10352 else
10353 # PORTME fill in a description of your system's linker (not GNU ld)
10354 case $host_os in
10355 aix3*)
10356 allow_undefined_flag=unsupported
10357 always_export_symbols=yes
10358 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'
10359 # Note: this linker hardcodes the directories in LIBPATH if there
10360 # are no directories specified by -L.
10361 hardcode_minus_L=yes
10362 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10363 # Neither direct hardcoding nor static linking is supported with a
10364 # broken collect2.
10365 hardcode_direct=unsupported
10366 fi
10367 ;;
10368
10369 aix[4-9]*)
10370 if test ia64 = "$host_cpu"; then
10371 # On IA64, the linker does run time linking by default, so we don't
10372 # have to do anything special.
10373 aix_use_runtimelinking=no
10374 exp_sym_flag='-Bexport'
10375 no_entry_flag=
10376 else
10377 # If we're using GNU nm, then we don't want the "-C" option.
10378 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10379 # Without the "-l" option, or with the "-B" option, AIX nm treats
10380 # weak defined symbols like other global defined symbols, whereas
10381 # GNU nm marks them as "W".
10382 # While the 'weak' keyword is ignored in the Export File, we need
10383 # it in the Import File for the 'aix-soname' feature, so we have
10384 # to replace the "-B" option with "-P" for AIX nm.
10385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10386 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'
10387 else
10388 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'
10389 fi
10390 aix_use_runtimelinking=no
10391
10392 # Test if we are trying to use run time linking or normal
10393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10394 # have runtime linking enabled, and use it for executables.
10395 # For shared libraries, we enable/disable runtime linking
10396 # depending on the kind of the shared library created -
10397 # when "with_aix_soname,aix_use_runtimelinking" is:
10398 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10399 # "aix,yes" lib.so shared, rtl:yes, for executables
10400 # lib.a static archive
10401 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10402 # lib.a(lib.so.V) shared, rtl:no, for executables
10403 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10404 # lib.a(lib.so.V) shared, rtl:no
10405 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10406 # lib.a static archive
10407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10408 for ld_flag in $LDFLAGS; do
10409 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10410 aix_use_runtimelinking=yes
10411 break
10412 fi
10413 done
10414 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10415 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10416 # so we don't have lib.a shared libs to link our executables.
10417 # We have to force runtime linking in this case.
10418 aix_use_runtimelinking=yes
10419 LDFLAGS="$LDFLAGS -Wl,-brtl"
10420 fi
10421 ;;
10422 esac
10423
10424 exp_sym_flag='-bexport'
10425 no_entry_flag='-bnoentry'
10426 fi
10427
10428 # When large executables or shared objects are built, AIX ld can
10429 # have problems creating the table of contents. If linking a library
10430 # or program results in "error TOC overflow" add -mminimal-toc to
10431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10433
10434 archive_cmds=''
10435 hardcode_direct=yes
10436 hardcode_direct_absolute=yes
10437 hardcode_libdir_separator=':'
10438 link_all_deplibs=yes
10439 file_list_spec='$wl-f,'
10440 case $with_aix_soname,$aix_use_runtimelinking in
10441 aix,*) ;; # traditional, no import file
10442 svr4,* | *,yes) # use import file
10443 # The Import File defines what to hardcode.
10444 hardcode_direct=no
10445 hardcode_direct_absolute=no
10446 ;;
10447 esac
10448
10449 if test yes = "$GCC"; then
10450 case $host_os in aix4.[012]|aix4.[012].*)
10451 # We only want to do this on AIX 4.2 and lower, the check
10452 # below for broken collect2 doesn't work under 4.3+
10453 collect2name=`$CC -print-prog-name=collect2`
10454 if test -f "$collect2name" &&
10455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10456 then
10457 # We have reworked collect2
10458 :
10459 else
10460 # We have old collect2
10461 hardcode_direct=unsupported
10462 # It fails to find uninstalled libraries when the uninstalled
10463 # path is not listed in the libpath. Setting hardcode_minus_L
10464 # to unsupported forces relinking
10465 hardcode_minus_L=yes
10466 hardcode_libdir_flag_spec='-L$libdir'
10467 hardcode_libdir_separator=
10468 fi
10469 ;;
10470 esac
10471 shared_flag='-shared'
10472 if test yes = "$aix_use_runtimelinking"; then
10473 shared_flag="$shared_flag "'$wl-G'
10474 fi
10475 # Need to ensure runtime linking is disabled for the traditional
10476 # shared library, or the linker may eventually find shared libraries
10477 # /with/ Import File - we do not want to mix them.
10478 shared_flag_aix='-shared'
10479 shared_flag_svr4='-shared $wl-G'
10480 else
10481 # not using gcc
10482 if test ia64 = "$host_cpu"; then
10483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10484 # chokes on -Wl,-G. The following line is correct:
10485 shared_flag='-G'
10486 else
10487 if test yes = "$aix_use_runtimelinking"; then
10488 shared_flag='$wl-G'
10489 else
10490 shared_flag='$wl-bM:SRE'
10491 fi
10492 shared_flag_aix='$wl-bM:SRE'
10493 shared_flag_svr4='$wl-G'
10494 fi
10495 fi
10496
10497 export_dynamic_flag_spec='$wl-bexpall'
10498 # It seems that -bexpall does not export symbols beginning with
10499 # underscore (_), so it is better to generate a list of symbols to export.
10500 always_export_symbols=yes
10501 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10502 # Warning - without using the other runtime loading flags (-brtl),
10503 # -berok will link without error, but may produce a broken library.
10504 allow_undefined_flag='-berok'
10505 # Determine the default libpath from the value encoded in an
10506 # empty executable.
10507 if test set = "${lt_cv_aix_libpath+set}"; then
10508 aix_libpath=$lt_cv_aix_libpath
10509 else
10510 if test ${lt_cv_aix_libpath_+y}
10511 then :
10512 printf %s "(cached) " >&6
10513 else $as_nop
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516
10517 int
10518 main (void)
10519 {
10520
10521 ;
10522 return 0;
10523 }
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"
10526 then :
10527
10528 lt_aix_libpath_sed='
10529 /Import File Strings/,/^$/ {
10530 /^0/ {
10531 s/^0 *\([^ ]*\) *$/\1/
10532 p
10533 }
10534 }'
10535 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 # Check for a 64-bit object if we didn't find anything.
10537 if test -z "$lt_cv_aix_libpath_"; then
10538 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 fi
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10542 conftest$ac_exeext conftest.$ac_ext
10543 if test -z "$lt_cv_aix_libpath_"; then
10544 lt_cv_aix_libpath_=/usr/lib:/lib
10545 fi
10546
10547 fi
10548
10549 aix_libpath=$lt_cv_aix_libpath_
10550 fi
10551
10552 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10553 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
10554 else
10555 if test ia64 = "$host_cpu"; then
10556 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10557 allow_undefined_flag="-z nodefs"
10558 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"
10559 else
10560 # Determine the default libpath from the value encoded in an
10561 # empty executable.
10562 if test set = "${lt_cv_aix_libpath+set}"; then
10563 aix_libpath=$lt_cv_aix_libpath
10564 else
10565 if test ${lt_cv_aix_libpath_+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else $as_nop
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571
10572 int
10573 main (void)
10574 {
10575
10576 ;
10577 return 0;
10578 }
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"
10581 then :
10582
10583 lt_aix_libpath_sed='
10584 /Import File Strings/,/^$/ {
10585 /^0/ {
10586 s/^0 *\([^ ]*\) *$/\1/
10587 p
10588 }
10589 }'
10590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$lt_cv_aix_libpath_"; then
10593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10594 fi
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test -z "$lt_cv_aix_libpath_"; then
10599 lt_cv_aix_libpath_=/usr/lib:/lib
10600 fi
10601
10602 fi
10603
10604 aix_libpath=$lt_cv_aix_libpath_
10605 fi
10606
10607 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10608 # Warning - without using the other run time loading flags,
10609 # -berok will link without error, but may produce a broken library.
10610 no_undefined_flag=' $wl-bernotok'
10611 allow_undefined_flag=' $wl-berok'
10612 if test yes = "$with_gnu_ld"; then
10613 # We only use this code for GNU lds that support --whole-archive.
10614 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10615 else
10616 # Exported symbols can be pulled into shared objects from archives
10617 whole_archive_flag_spec='$convenience'
10618 fi
10619 archive_cmds_need_lc=yes
10620 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10621 # -brtl affects multiple linker settings, -berok does not and is overridden later
10622 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10623 if test svr4 != "$with_aix_soname"; then
10624 # This is similar to how AIX traditionally builds its shared libraries.
10625 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'
10626 fi
10627 if test aix != "$with_aix_soname"; then
10628 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'
10629 else
10630 # used by -dlpreopen to get the symbols
10631 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10632 fi
10633 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10634 fi
10635 fi
10636 ;;
10637
10638 amigaos*)
10639 case $host_cpu in
10640 powerpc)
10641 # see comment about AmigaOS4 .so support
10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10643 archive_expsym_cmds=''
10644 ;;
10645 m68k)
10646 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)'
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_minus_L=yes
10649 ;;
10650 esac
10651 ;;
10652
10653 bsdi[45]*)
10654 export_dynamic_flag_spec=-rdynamic
10655 ;;
10656
10657 cygwin* | mingw* | pw32* | cegcc*)
10658 # When not using gcc, we currently assume that we are using
10659 # Microsoft Visual C++.
10660 # hardcode_libdir_flag_spec is actually meaningless, as there is
10661 # no search path for DLLs.
10662 case $cc_basename in
10663 cl*)
10664 # Native MSVC
10665 hardcode_libdir_flag_spec=' '
10666 allow_undefined_flag=unsupported
10667 always_export_symbols=yes
10668 file_list_spec='@'
10669 # Tell ltmain to make .lib files, not .a files.
10670 libext=lib
10671 # Tell ltmain to make .dll files, not .so files.
10672 shrext_cmds=.dll
10673 # FIXME: Setting linknames here is a bad hack.
10674 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10675 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10676 cp "$export_symbols" "$output_objdir/$soname.def";
10677 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10678 else
10679 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10680 fi~
10681 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10682 linknames='
10683 # The linker will not automatically build a static lib if we build a DLL.
10684 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10685 enable_shared_with_static_runtimes=yes
10686 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10688 # Don't use ranlib
10689 old_postinstall_cmds='chmod 644 $oldlib'
10690 postlink_cmds='lt_outputfile="@OUTPUT@"~
10691 lt_tool_outputfile="@TOOL_OUTPUT@"~
10692 case $lt_outputfile in
10693 *.exe|*.EXE) ;;
10694 *)
10695 lt_outputfile=$lt_outputfile.exe
10696 lt_tool_outputfile=$lt_tool_outputfile.exe
10697 ;;
10698 esac~
10699 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10701 $RM "$lt_outputfile.manifest";
10702 fi'
10703 ;;
10704 *)
10705 # Assume MSVC wrapper
10706 hardcode_libdir_flag_spec=' '
10707 allow_undefined_flag=unsupported
10708 # Tell ltmain to make .lib files, not .a files.
10709 libext=lib
10710 # Tell ltmain to make .dll files, not .so files.
10711 shrext_cmds=.dll
10712 # FIXME: Setting linknames here is a bad hack.
10713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10714 # The linker will automatically build a .lib file if we build a DLL.
10715 old_archive_from_new_cmds='true'
10716 # FIXME: Should let the user specify the lib program.
10717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10718 enable_shared_with_static_runtimes=yes
10719 ;;
10720 esac
10721 ;;
10722
10723 darwin* | rhapsody*)
10724
10725
10726 archive_cmds_need_lc=no
10727 hardcode_direct=no
10728 hardcode_automatic=yes
10729 hardcode_shlibpath_var=unsupported
10730 if test yes = "$lt_cv_ld_force_load"; then
10731 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\"`'
10732
10733 else
10734 whole_archive_flag_spec=''
10735 fi
10736 link_all_deplibs=yes
10737 allow_undefined_flag=$_lt_dar_allow_undefined
10738 case $cc_basename in
10739 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10740 *) _lt_dar_can_shared=$GCC ;;
10741 esac
10742 if test yes = "$_lt_dar_can_shared"; then
10743 output_verbose_link_cmd=func_echo_all
10744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10746 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"
10747 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"
10748
10749 else
10750 ld_shlibs=no
10751 fi
10752
10753 ;;
10754
10755 dgux*)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_shlibpath_var=no
10759 ;;
10760
10761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10762 # support. Future versions do this automatically, but an explicit c++rt0.o
10763 # does not break anything, and helps significantly (at the cost of a little
10764 # extra space).
10765 freebsd2.2*)
10766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10767 hardcode_libdir_flag_spec='-R$libdir'
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 ;;
10771
10772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10773 freebsd2.*)
10774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_direct=yes
10776 hardcode_minus_L=yes
10777 hardcode_shlibpath_var=no
10778 ;;
10779
10780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10781 freebsd* | dragonfly*)
10782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10783 hardcode_libdir_flag_spec='-R$libdir'
10784 hardcode_direct=yes
10785 hardcode_shlibpath_var=no
10786 ;;
10787
10788 hpux9*)
10789 if test yes = "$GCC"; then
10790 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'
10791 else
10792 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'
10793 fi
10794 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10795 hardcode_libdir_separator=:
10796 hardcode_direct=yes
10797
10798 # hardcode_minus_L: Not really in the search PATH,
10799 # but as the default location of the library.
10800 hardcode_minus_L=yes
10801 export_dynamic_flag_spec='$wl-E'
10802 ;;
10803
10804 hpux10*)
10805 if test yes,no = "$GCC,$with_gnu_ld"; then
10806 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10807 else
10808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10809 fi
10810 if test no = "$with_gnu_ld"; then
10811 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10812 hardcode_libdir_separator=:
10813 hardcode_direct=yes
10814 hardcode_direct_absolute=yes
10815 export_dynamic_flag_spec='$wl-E'
10816 # hardcode_minus_L: Not really in the search PATH,
10817 # but as the default location of the library.
10818 hardcode_minus_L=yes
10819 fi
10820 ;;
10821
10822 hpux11*)
10823 if test yes,no = "$GCC,$with_gnu_ld"; then
10824 case $host_cpu in
10825 hppa*64*)
10826 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10827 ;;
10828 ia64*)
10829 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10830 ;;
10831 *)
10832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10833 ;;
10834 esac
10835 else
10836 case $host_cpu in
10837 hppa*64*)
10838 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10839 ;;
10840 ia64*)
10841 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10842 ;;
10843 *)
10844
10845 # Older versions of the 11.00 compiler do not understand -b yet
10846 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10848 printf %s "checking if $CC understands -b... " >&6; }
10849 if test ${lt_cv_prog_compiler__b+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else $as_nop
10853 lt_cv_prog_compiler__b=no
10854 save_LDFLAGS=$LDFLAGS
10855 LDFLAGS="$LDFLAGS -b"
10856 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10858 # The linker can only warn and ignore the option if not recognized
10859 # So say no if there are warnings
10860 if test -s conftest.err; then
10861 # Append any errors to the config.log.
10862 cat conftest.err 1>&5
10863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10865 if diff conftest.exp conftest.er2 >/dev/null; then
10866 lt_cv_prog_compiler__b=yes
10867 fi
10868 else
10869 lt_cv_prog_compiler__b=yes
10870 fi
10871 fi
10872 $RM -r conftest*
10873 LDFLAGS=$save_LDFLAGS
10874
10875 fi
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10877 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10878
10879 if test yes = "$lt_cv_prog_compiler__b"; then
10880 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10881 else
10882 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10883 fi
10884
10885 ;;
10886 esac
10887 fi
10888 if test no = "$with_gnu_ld"; then
10889 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10890 hardcode_libdir_separator=:
10891
10892 case $host_cpu in
10893 hppa*64*|ia64*)
10894 hardcode_direct=no
10895 hardcode_shlibpath_var=no
10896 ;;
10897 *)
10898 hardcode_direct=yes
10899 hardcode_direct_absolute=yes
10900 export_dynamic_flag_spec='$wl-E'
10901
10902 # hardcode_minus_L: Not really in the search PATH,
10903 # but as the default location of the library.
10904 hardcode_minus_L=yes
10905 ;;
10906 esac
10907 fi
10908 ;;
10909
10910 irix5* | irix6* | nonstopux*)
10911 if test yes = "$GCC"; then
10912 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'
10913 # Try to use the -exported_symbol ld option, if it does not
10914 # work, assume that -exports_file does not work either and
10915 # implicitly export all symbols.
10916 # This should be the same for all languages, so no per-tag cache variable.
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10918 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10919 if test ${lt_cv_irix_exported_symbol+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else $as_nop
10923 save_LDFLAGS=$LDFLAGS
10924 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10927 int foo (void) { return 0; }
10928 _ACEOF
10929 if ac_fn_c_try_link "$LINENO"
10930 then :
10931 lt_cv_irix_exported_symbol=yes
10932 else $as_nop
10933 lt_cv_irix_exported_symbol=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LDFLAGS=$save_LDFLAGS
10938 fi
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10940 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10941 if test yes = "$lt_cv_irix_exported_symbol"; then
10942 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'
10943 fi
10944 link_all_deplibs=no
10945 else
10946 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'
10947 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'
10948 fi
10949 archive_cmds_need_lc='no'
10950 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10951 hardcode_libdir_separator=:
10952 inherit_rpath=yes
10953 link_all_deplibs=yes
10954 ;;
10955
10956 linux*)
10957 case $cc_basename in
10958 tcc*)
10959 # Fabrice Bellard et al's Tiny C Compiler
10960 ld_shlibs=yes
10961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10962 ;;
10963 esac
10964 ;;
10965
10966 netbsd* | netbsdelf*-gnu)
10967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10969 else
10970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10971 fi
10972 hardcode_libdir_flag_spec='-R$libdir'
10973 hardcode_direct=yes
10974 hardcode_shlibpath_var=no
10975 ;;
10976
10977 newsos6)
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_direct=yes
10980 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10981 hardcode_libdir_separator=:
10982 hardcode_shlibpath_var=no
10983 ;;
10984
10985 *nto* | *qnx*)
10986 ;;
10987
10988 openbsd* | bitrig*)
10989 if test -f /usr/libexec/ld.so; then
10990 hardcode_direct=yes
10991 hardcode_shlibpath_var=no
10992 hardcode_direct_absolute=yes
10993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10996 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10997 export_dynamic_flag_spec='$wl-E'
10998 else
10999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11000 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11001 fi
11002 else
11003 ld_shlibs=no
11004 fi
11005 ;;
11006
11007 os2*)
11008 hardcode_libdir_flag_spec='-L$libdir'
11009 hardcode_minus_L=yes
11010 allow_undefined_flag=unsupported
11011 shrext_cmds=.dll
11012 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11015 $ECHO EXPORTS >> $output_objdir/$libname.def~
11016 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11018 emximp -o $lib $output_objdir/$libname.def'
11019 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11022 $ECHO EXPORTS >> $output_objdir/$libname.def~
11023 prefix_cmds="$SED"~
11024 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11025 prefix_cmds="$prefix_cmds -e 1d";
11026 fi~
11027 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11028 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11030 emximp -o $lib $output_objdir/$libname.def'
11031 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11032 enable_shared_with_static_runtimes=yes
11033 ;;
11034
11035 osf3*)
11036 if test yes = "$GCC"; then
11037 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11038 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'
11039 else
11040 allow_undefined_flag=' -expect_unresolved \*'
11041 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'
11042 fi
11043 archive_cmds_need_lc='no'
11044 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11045 hardcode_libdir_separator=:
11046 ;;
11047
11048 osf4* | osf5*) # as osf3* with the addition of -msym flag
11049 if test yes = "$GCC"; then
11050 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11051 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'
11052 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11053 else
11054 allow_undefined_flag=' -expect_unresolved \*'
11055 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'
11056 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~
11057 $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'
11058
11059 # Both c and cxx compiler support -rpath directly
11060 hardcode_libdir_flag_spec='-rpath $libdir'
11061 fi
11062 archive_cmds_need_lc='no'
11063 hardcode_libdir_separator=:
11064 ;;
11065
11066 solaris*)
11067 no_undefined_flag=' -z defs'
11068 if test yes = "$GCC"; then
11069 wlarc='$wl'
11070 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11072 $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'
11073 else
11074 case `$CC -V 2>&1` in
11075 *"Compilers 5.0"*)
11076 wlarc=''
11077 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11079 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11080 ;;
11081 *)
11082 wlarc='$wl'
11083 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11085 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11086 ;;
11087 esac
11088 fi
11089 hardcode_libdir_flag_spec='-R$libdir'
11090 hardcode_shlibpath_var=no
11091 case $host_os in
11092 solaris2.[0-5] | solaris2.[0-5].*) ;;
11093 *)
11094 # The compiler driver will combine and reorder linker options,
11095 # but understands '-z linker_flag'. GCC discards it without '$wl',
11096 # but is careful enough not to reorder.
11097 # Supported since Solaris 2.6 (maybe 2.5.1?)
11098 if test yes = "$GCC"; then
11099 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11100 else
11101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11102 fi
11103 ;;
11104 esac
11105 link_all_deplibs=yes
11106 ;;
11107
11108 sunos4*)
11109 if test sequent = "$host_vendor"; then
11110 # Use $CC to link under sequent, because it throws in some extra .o
11111 # files that make .init and .fini sections work.
11112 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11113 else
11114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11115 fi
11116 hardcode_libdir_flag_spec='-L$libdir'
11117 hardcode_direct=yes
11118 hardcode_minus_L=yes
11119 hardcode_shlibpath_var=no
11120 ;;
11121
11122 sysv4)
11123 case $host_vendor in
11124 sni)
11125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11126 hardcode_direct=yes # is this really true???
11127 ;;
11128 siemens)
11129 ## LD is ld it makes a PLAMLIB
11130 ## CC just makes a GrossModule.
11131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11132 reload_cmds='$CC -r -o $output$reload_objs'
11133 hardcode_direct=no
11134 ;;
11135 motorola)
11136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11138 ;;
11139 esac
11140 runpath_var='LD_RUN_PATH'
11141 hardcode_shlibpath_var=no
11142 ;;
11143
11144 sysv4.3*)
11145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11146 hardcode_shlibpath_var=no
11147 export_dynamic_flag_spec='-Bexport'
11148 ;;
11149
11150 sysv4*MP*)
11151 if test -d /usr/nec; then
11152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11153 hardcode_shlibpath_var=no
11154 runpath_var=LD_RUN_PATH
11155 hardcode_runpath_var=yes
11156 ld_shlibs=yes
11157 fi
11158 ;;
11159
11160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11161 no_undefined_flag='$wl-z,text'
11162 archive_cmds_need_lc=no
11163 hardcode_shlibpath_var=no
11164 runpath_var='LD_RUN_PATH'
11165
11166 if test yes = "$GCC"; then
11167 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 else
11170 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11171 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 fi
11173 ;;
11174
11175 sysv5* | sco3.2v5* | sco5v6*)
11176 # Note: We CANNOT use -z defs as we might desire, because we do not
11177 # link with -lc, and that would cause any symbols used from libc to
11178 # always be unresolved, which means just about no library would
11179 # ever link correctly. If we're not using GNU ld we use -z text
11180 # though, which does catch some bad symbols but isn't as heavy-handed
11181 # as -z defs.
11182 no_undefined_flag='$wl-z,text'
11183 allow_undefined_flag='$wl-z,nodefs'
11184 archive_cmds_need_lc=no
11185 hardcode_shlibpath_var=no
11186 hardcode_libdir_flag_spec='$wl-R,$libdir'
11187 hardcode_libdir_separator=':'
11188 link_all_deplibs=yes
11189 export_dynamic_flag_spec='$wl-Bexport'
11190 runpath_var='LD_RUN_PATH'
11191
11192 if test yes = "$GCC"; then
11193 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11195 else
11196 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11198 fi
11199 ;;
11200
11201 uts4*)
11202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11203 hardcode_libdir_flag_spec='-L$libdir'
11204 hardcode_shlibpath_var=no
11205 ;;
11206
11207 *)
11208 ld_shlibs=no
11209 ;;
11210 esac
11211
11212 if test sni = "$host_vendor"; then
11213 case $host in
11214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11215 export_dynamic_flag_spec='$wl-Blargedynsym'
11216 ;;
11217 esac
11218 fi
11219 fi
11220
11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11222 printf "%s\n" "$ld_shlibs" >&6; }
11223 test no = "$ld_shlibs" && can_build_shared=no
11224
11225 with_gnu_ld=$with_gnu_ld
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241 #
11242 # Do we need to explicitly link libc?
11243 #
11244 case "x$archive_cmds_need_lc" in
11245 x|xyes)
11246 # Assume -lc should be added
11247 archive_cmds_need_lc=yes
11248
11249 if test yes,yes = "$GCC,$enable_shared"; then
11250 case $archive_cmds in
11251 *'~'*)
11252 # FIXME: we may have to deal with multi-command sequences.
11253 ;;
11254 '$CC '*)
11255 # Test whether the compiler implicitly links with -lc since on some
11256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11257 # to ld, don't add -lc before -lgcc.
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11259 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11260 if test ${lt_cv_archive_cmds_need_lc+y}
11261 then :
11262 printf %s "(cached) " >&6
11263 else $as_nop
11264 $RM conftest*
11265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11266
11267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11268 (eval $ac_compile) 2>&5
11269 ac_status=$?
11270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11271 test $ac_status = 0; } 2>conftest.err; then
11272 soname=conftest
11273 lib=conftest
11274 libobjs=conftest.$ac_objext
11275 deplibs=
11276 wl=$lt_prog_compiler_wl
11277 pic_flag=$lt_prog_compiler_pic
11278 compiler_flags=-v
11279 linker_flags=-v
11280 verstring=
11281 output_objdir=.
11282 libname=conftest
11283 lt_save_allow_undefined_flag=$allow_undefined_flag
11284 allow_undefined_flag=
11285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11286 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11287 ac_status=$?
11288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11289 test $ac_status = 0; }
11290 then
11291 lt_cv_archive_cmds_need_lc=no
11292 else
11293 lt_cv_archive_cmds_need_lc=yes
11294 fi
11295 allow_undefined_flag=$lt_save_allow_undefined_flag
11296 else
11297 cat conftest.err 1>&5
11298 fi
11299 $RM conftest*
11300
11301 fi
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11303 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11304 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11305 ;;
11306 esac
11307 fi
11308 ;;
11309 esac
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11463 printf %s "checking dynamic linker characteristics... " >&6; }
11464
11465 if test yes = "$GCC"; then
11466 case $host_os in
11467 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11468 *) lt_awk_arg='/^libraries:/' ;;
11469 esac
11470 case $host_os in
11471 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11472 *) lt_sed_strip_eq='s|=/|/|g' ;;
11473 esac
11474 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11475 case $lt_search_path_spec in
11476 *\;*)
11477 # if the path contains ";" then we assume it to be the separator
11478 # otherwise default to the standard path separator (i.e. ":") - it is
11479 # assumed that no part of a normal pathname contains ";" but that should
11480 # okay in the real world where ";" in dirpaths is itself problematic.
11481 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11482 ;;
11483 *)
11484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11485 ;;
11486 esac
11487 # Ok, now we have the path, separated by spaces, we can step through it
11488 # and add multilib dir if necessary...
11489 lt_tmp_lt_search_path_spec=
11490 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11491 # ...but if some path component already ends with the multilib dir we assume
11492 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11493 case "$lt_multi_os_dir; $lt_search_path_spec " in
11494 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11495 lt_multi_os_dir=
11496 ;;
11497 esac
11498 for lt_sys_path in $lt_search_path_spec; do
11499 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11501 elif test -n "$lt_multi_os_dir"; then
11502 test -d "$lt_sys_path" && \
11503 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11504 fi
11505 done
11506 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11507 BEGIN {RS = " "; FS = "/|\n";} {
11508 lt_foo = "";
11509 lt_count = 0;
11510 for (lt_i = NF; lt_i > 0; lt_i--) {
11511 if ($lt_i != "" && $lt_i != ".") {
11512 if ($lt_i == "..") {
11513 lt_count++;
11514 } else {
11515 if (lt_count == 0) {
11516 lt_foo = "/" $lt_i lt_foo;
11517 } else {
11518 lt_count--;
11519 }
11520 }
11521 }
11522 }
11523 if (lt_foo != "") { lt_freq[lt_foo]++; }
11524 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11525 }'`
11526 # AWK program above erroneously prepends '/' to C:/dos/paths
11527 # for these hosts.
11528 case $host_os in
11529 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11530 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11531 esac
11532 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11533 else
11534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11535 fi
11536 library_names_spec=
11537 libname_spec='lib$name'
11538 soname_spec=
11539 shrext_cmds=.so
11540 postinstall_cmds=
11541 postuninstall_cmds=
11542 finish_cmds=
11543 finish_eval=
11544 shlibpath_var=
11545 shlibpath_overrides_runpath=unknown
11546 version_type=none
11547 dynamic_linker="$host_os ld.so"
11548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11549 need_lib_prefix=unknown
11550 hardcode_into_libs=no
11551
11552 # when you set need_version to no, make sure it does not cause -set_version
11553 # flags to be left without arguments
11554 need_version=unknown
11555
11556
11557
11558 case $host_os in
11559 aix3*)
11560 version_type=linux # correct to gnu/linux during the next big refactor
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11562 shlibpath_var=LIBPATH
11563
11564 # AIX 3 has no versioning support, so we append a major version to the name.
11565 soname_spec='$libname$release$shared_ext$major'
11566 ;;
11567
11568 aix[4-9]*)
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 need_lib_prefix=no
11571 need_version=no
11572 hardcode_into_libs=yes
11573 if test ia64 = "$host_cpu"; then
11574 # AIX 5 supports IA64
11575 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 else
11578 # With GCC up to 2.95.x, collect2 would create an import file
11579 # for dependence libraries. The import file would start with
11580 # the line '#! .'. This would cause the generated library to
11581 # depend on '.', always an invalid library. This was fixed in
11582 # development snapshots of GCC prior to 3.0.
11583 case $host_os in
11584 aix4 | aix4.[01] | aix4.[01].*)
11585 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11586 echo ' yes '
11587 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11588 :
11589 else
11590 can_build_shared=no
11591 fi
11592 ;;
11593 esac
11594 # Using Import Files as archive members, it is possible to support
11595 # filename-based versioning of shared library archives on AIX. While
11596 # this would work for both with and without runtime linking, it will
11597 # prevent static linking of such archives. So we do filename-based
11598 # shared library versioning with .so extension only, which is used
11599 # when both runtime linking and shared linking is enabled.
11600 # Unfortunately, runtime linking may impact performance, so we do
11601 # not want this to be the default eventually. Also, we use the
11602 # versioned .so libs for executables only if there is the -brtl
11603 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11604 # To allow for filename-based versioning support, we need to create
11605 # libNAME.so.V as an archive file, containing:
11606 # *) an Import File, referring to the versioned filename of the
11607 # archive as well as the shared archive member, telling the
11608 # bitwidth (32 or 64) of that shared object, and providing the
11609 # list of exported symbols of that shared object, eventually
11610 # decorated with the 'weak' keyword
11611 # *) the shared object with the F_LOADONLY flag set, to really avoid
11612 # it being seen by the linker.
11613 # At run time we better use the real file rather than another symlink,
11614 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11615
11616 case $with_aix_soname,$aix_use_runtimelinking in
11617 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11618 # soname into executable. Probably we can add versioning support to
11619 # collect2, so additional links can be useful in future.
11620 aix,yes) # traditional libtool
11621 dynamic_linker='AIX unversionable lib.so'
11622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11623 # instead of lib<name>.a to let people know that these are not
11624 # typical AIX shared libraries.
11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11626 ;;
11627 aix,no) # traditional AIX only
11628 dynamic_linker='AIX lib.a(lib.so.V)'
11629 # We preserve .a as extension for shared libraries through AIX4.2
11630 # and later when we are not doing run time linking.
11631 library_names_spec='$libname$release.a $libname.a'
11632 soname_spec='$libname$release$shared_ext$major'
11633 ;;
11634 svr4,*) # full svr4 only
11635 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11636 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11637 # We do not specify a path in Import Files, so LIBPATH fires.
11638 shlibpath_overrides_runpath=yes
11639 ;;
11640 *,yes) # both, prefer svr4
11641 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11642 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11643 # unpreferred sharedlib libNAME.a needs extra handling
11644 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"'
11645 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"'
11646 # We do not specify a path in Import Files, so LIBPATH fires.
11647 shlibpath_overrides_runpath=yes
11648 ;;
11649 *,no) # both, prefer aix
11650 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11651 library_names_spec='$libname$release.a $libname.a'
11652 soname_spec='$libname$release$shared_ext$major'
11653 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11654 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)'
11655 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"'
11656 ;;
11657 esac
11658 shlibpath_var=LIBPATH
11659 fi
11660 ;;
11661
11662 amigaos*)
11663 case $host_cpu in
11664 powerpc)
11665 # Since July 2007 AmigaOS4 officially supports .so libraries.
11666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668 ;;
11669 m68k)
11670 library_names_spec='$libname.ixlibrary $libname.a'
11671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11672 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'
11673 ;;
11674 esac
11675 ;;
11676
11677 beos*)
11678 library_names_spec='$libname$shared_ext'
11679 dynamic_linker="$host_os ld.so"
11680 shlibpath_var=LIBRARY_PATH
11681 ;;
11682
11683 bsdi[45]*)
11684 version_type=linux # correct to gnu/linux during the next big refactor
11685 need_version=no
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 soname_spec='$libname$release$shared_ext$major'
11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11692 # the default ld.so.conf also contains /usr/contrib/lib and
11693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11694 # libtool to hard-code these into programs
11695 ;;
11696
11697 cygwin* | mingw* | pw32* | cegcc*)
11698 version_type=windows
11699 shrext_cmds=.dll
11700 need_version=no
11701 need_lib_prefix=no
11702
11703 case $GCC,$cc_basename in
11704 yes,*)
11705 # gcc
11706 library_names_spec='$libname.dll.a'
11707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11708 postinstall_cmds='base_file=`basename \$file`~
11709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11710 dldir=$destdir/`dirname \$dlpath`~
11711 test -d \$dldir || mkdir -p \$dldir~
11712 $install_prog $dir/$dlname \$dldir/$dlname~
11713 chmod a+x \$dldir/$dlname~
11714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11716 fi'
11717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11718 dlpath=$dir/\$dldll~
11719 $RM \$dlpath'
11720 shlibpath_overrides_runpath=yes
11721
11722 case $host_os in
11723 cygwin*)
11724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11725 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11726
11727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11728 ;;
11729 mingw* | cegcc*)
11730 # MinGW DLLs use traditional 'lib' prefix
11731 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11732 ;;
11733 pw32*)
11734 # pw32 DLLs use 'pw' prefix rather than 'lib'
11735 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11736 ;;
11737 esac
11738 dynamic_linker='Win32 ld.exe'
11739 ;;
11740
11741 *,cl*)
11742 # Native MSVC
11743 libname_spec='$name'
11744 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11745 library_names_spec='$libname.dll.lib'
11746
11747 case $build_os in
11748 mingw*)
11749 sys_lib_search_path_spec=
11750 lt_save_ifs=$IFS
11751 IFS=';'
11752 for lt_path in $LIB
11753 do
11754 IFS=$lt_save_ifs
11755 # Let DOS variable expansion print the short 8.3 style file name.
11756 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11757 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11758 done
11759 IFS=$lt_save_ifs
11760 # Convert to MSYS style.
11761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11762 ;;
11763 cygwin*)
11764 # Convert to unix form, then to dos form, then back to unix form
11765 # but this time dos style (no spaces!) so that the unix form looks
11766 # like /cygdrive/c/PROGRA~1:/cygdr...
11767 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11768 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11769 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11770 ;;
11771 *)
11772 sys_lib_search_path_spec=$LIB
11773 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11774 # It is most probably a Windows format PATH.
11775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11776 else
11777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11778 fi
11779 # FIXME: find the short name or the path components, as spaces are
11780 # common. (e.g. "Program Files" -> "PROGRA~1")
11781 ;;
11782 esac
11783
11784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11785 postinstall_cmds='base_file=`basename \$file`~
11786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11787 dldir=$destdir/`dirname \$dlpath`~
11788 test -d \$dldir || mkdir -p \$dldir~
11789 $install_prog $dir/$dlname \$dldir/$dlname'
11790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11791 dlpath=$dir/\$dldll~
11792 $RM \$dlpath'
11793 shlibpath_overrides_runpath=yes
11794 dynamic_linker='Win32 link.exe'
11795 ;;
11796
11797 *)
11798 # Assume MSVC wrapper
11799 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11800 dynamic_linker='Win32 ld.exe'
11801 ;;
11802 esac
11803 # FIXME: first we should search . and the directory the executable is in
11804 shlibpath_var=PATH
11805 ;;
11806
11807 darwin* | rhapsody*)
11808 dynamic_linker="$host_os dyld"
11809 version_type=darwin
11810 need_lib_prefix=no
11811 need_version=no
11812 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11813 soname_spec='$libname$release$major$shared_ext'
11814 shlibpath_overrides_runpath=yes
11815 shlibpath_var=DYLD_LIBRARY_PATH
11816 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11817
11818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11820 ;;
11821
11822 dgux*)
11823 version_type=linux # correct to gnu/linux during the next big refactor
11824 need_lib_prefix=no
11825 need_version=no
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 ;;
11830
11831 freebsd* | dragonfly*)
11832 # DragonFly does not have aout. When/if they implement a new
11833 # versioning mechanism, adjust this.
11834 if test -x /usr/bin/objformat; then
11835 objformat=`/usr/bin/objformat`
11836 else
11837 case $host_os in
11838 freebsd[23].*) objformat=aout ;;
11839 *) objformat=elf ;;
11840 esac
11841 fi
11842 version_type=freebsd-$objformat
11843 case $version_type in
11844 freebsd-elf*)
11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11846 soname_spec='$libname$release$shared_ext$major'
11847 need_version=no
11848 need_lib_prefix=no
11849 ;;
11850 freebsd-*)
11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11852 need_version=yes
11853 ;;
11854 esac
11855 shlibpath_var=LD_LIBRARY_PATH
11856 case $host_os in
11857 freebsd2.*)
11858 shlibpath_overrides_runpath=yes
11859 ;;
11860 freebsd3.[01]* | freebsdelf3.[01]*)
11861 shlibpath_overrides_runpath=yes
11862 hardcode_into_libs=yes
11863 ;;
11864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11866 shlibpath_overrides_runpath=no
11867 hardcode_into_libs=yes
11868 ;;
11869 *) # from 4.6 on, and DragonFly
11870 shlibpath_overrides_runpath=yes
11871 hardcode_into_libs=yes
11872 ;;
11873 esac
11874 ;;
11875
11876 haiku*)
11877 version_type=linux # correct to gnu/linux during the next big refactor
11878 need_lib_prefix=no
11879 need_version=no
11880 dynamic_linker="$host_os runtime_loader"
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882 soname_spec='$libname$release$shared_ext$major'
11883 shlibpath_var=LIBRARY_PATH
11884 shlibpath_overrides_runpath=no
11885 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11886 hardcode_into_libs=yes
11887 ;;
11888
11889 hpux9* | hpux10* | hpux11*)
11890 # Give a soname corresponding to the major version so that dld.sl refuses to
11891 # link against other versions.
11892 version_type=sunos
11893 need_lib_prefix=no
11894 need_version=no
11895 case $host_cpu in
11896 ia64*)
11897 shrext_cmds='.so'
11898 hardcode_into_libs=yes
11899 dynamic_linker="$host_os dld.so"
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903 soname_spec='$libname$release$shared_ext$major'
11904 if test 32 = "$HPUX_IA64_MODE"; then
11905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11906 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11907 else
11908 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11909 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11910 fi
11911 ;;
11912 hppa*64*)
11913 shrext_cmds='.sl'
11914 hardcode_into_libs=yes
11915 dynamic_linker="$host_os dld.sl"
11916 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11919 soname_spec='$libname$release$shared_ext$major'
11920 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11922 ;;
11923 *)
11924 shrext_cmds='.sl'
11925 dynamic_linker="$host_os dld.sl"
11926 shlibpath_var=SHLIB_PATH
11927 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929 soname_spec='$libname$release$shared_ext$major'
11930 ;;
11931 esac
11932 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11933 postinstall_cmds='chmod 555 $lib'
11934 # or fails outright, so override atomically:
11935 install_override_mode=555
11936 ;;
11937
11938 interix[3-9]*)
11939 version_type=linux # correct to gnu/linux during the next big refactor
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11943 soname_spec='$libname$release$shared_ext$major'
11944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=no
11947 hardcode_into_libs=yes
11948 ;;
11949
11950 irix5* | irix6* | nonstopux*)
11951 case $host_os in
11952 nonstopux*) version_type=nonstopux ;;
11953 *)
11954 if test yes = "$lt_cv_prog_gnu_ld"; then
11955 version_type=linux # correct to gnu/linux during the next big refactor
11956 else
11957 version_type=irix
11958 fi ;;
11959 esac
11960 need_lib_prefix=no
11961 need_version=no
11962 soname_spec='$libname$release$shared_ext$major'
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11964 case $host_os in
11965 irix5* | nonstopux*)
11966 libsuff= shlibsuff=
11967 ;;
11968 *)
11969 case $LD in # libtool.m4 will add one of these switches to LD
11970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11971 libsuff= shlibsuff= libmagic=32-bit;;
11972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11973 libsuff=32 shlibsuff=N32 libmagic=N32;;
11974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11976 *) libsuff= shlibsuff= libmagic=never-match;;
11977 esac
11978 ;;
11979 esac
11980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11981 shlibpath_overrides_runpath=no
11982 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11983 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11984 hardcode_into_libs=yes
11985 ;;
11986
11987 # No shared lib support for Linux oldld, aout, or coff.
11988 linux*oldld* | linux*aout* | linux*coff*)
11989 dynamic_linker=no
11990 ;;
11991
11992 linux*android*)
11993 version_type=none # Android doesn't support versioned libraries.
11994 need_lib_prefix=no
11995 need_version=no
11996 library_names_spec='$libname$release$shared_ext'
11997 soname_spec='$libname$release$shared_ext'
11998 finish_cmds=
11999 shlibpath_var=LD_LIBRARY_PATH
12000 shlibpath_overrides_runpath=yes
12001
12002 # This implies no fast_install, which is unacceptable.
12003 # Some rework will be needed to allow for fast_install
12004 # before this can be enabled.
12005 hardcode_into_libs=yes
12006
12007 dynamic_linker='Android linker'
12008 # Don't embed -rpath directories since the linker doesn't support them.
12009 hardcode_libdir_flag_spec='-L$libdir'
12010 ;;
12011
12012 # This must be glibc/ELF.
12013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 need_lib_prefix=no
12016 need_version=no
12017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12018 soname_spec='$libname$release$shared_ext$major'
12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 shlibpath_overrides_runpath=no
12022
12023 # Some binutils ld are patched to set DT_RUNPATH
12024 if test ${lt_cv_shlibpath_overrides_runpath+y}
12025 then :
12026 printf %s "(cached) " >&6
12027 else $as_nop
12028 lt_cv_shlibpath_overrides_runpath=no
12029 save_LDFLAGS=$LDFLAGS
12030 save_libdir=$libdir
12031 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12032 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035
12036 int
12037 main (void)
12038 {
12039
12040 ;
12041 return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_link "$LINENO"
12045 then :
12046 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12047 then :
12048 lt_cv_shlibpath_overrides_runpath=yes
12049 fi
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12052 conftest$ac_exeext conftest.$ac_ext
12053 LDFLAGS=$save_LDFLAGS
12054 libdir=$save_libdir
12055
12056 fi
12057
12058 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12059
12060 # This implies no fast_install, which is unacceptable.
12061 # Some rework will be needed to allow for fast_install
12062 # before this can be enabled.
12063 hardcode_into_libs=yes
12064
12065 # Ideally, we could use ldconfig to report *all* directores which are
12066 # searched for libraries, however this is still not possible. Aside from not
12067 # being certain /sbin/ldconfig is available, command
12068 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12069 # even though it is searched at run-time. Try to do the best guess by
12070 # appending ld.so.conf contents (and includes) to the search path.
12071 if test -f /etc/ld.so.conf; then
12072 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' ' '`
12073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12074 fi
12075
12076 # We used to test for /lib/ld.so.1 and disable shared libraries on
12077 # powerpc, because MkLinux only supported shared libraries with the
12078 # GNU dynamic linker. Since this was broken with cross compilers,
12079 # most powerpc-linux boxes support dynamic linking these days and
12080 # people can always --disable-shared, the test was removed, and we
12081 # assume the GNU/Linux dynamic linker is in use.
12082 dynamic_linker='GNU/Linux ld.so'
12083 ;;
12084
12085 netbsdelf*-gnu)
12086 version_type=linux
12087 need_lib_prefix=no
12088 need_version=no
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=no
12093 hardcode_into_libs=yes
12094 dynamic_linker='NetBSD ld.elf_so'
12095 ;;
12096
12097 netbsd*)
12098 version_type=sunos
12099 need_lib_prefix=no
12100 need_version=no
12101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12104 dynamic_linker='NetBSD (a.out) ld.so'
12105 else
12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12107 soname_spec='$libname$release$shared_ext$major'
12108 dynamic_linker='NetBSD ld.elf_so'
12109 fi
12110 shlibpath_var=LD_LIBRARY_PATH
12111 shlibpath_overrides_runpath=yes
12112 hardcode_into_libs=yes
12113 ;;
12114
12115 newsos6)
12116 version_type=linux # correct to gnu/linux during the next big refactor
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=yes
12120 ;;
12121
12122 *nto* | *qnx*)
12123 version_type=qnx
12124 need_lib_prefix=no
12125 need_version=no
12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127 soname_spec='$libname$release$shared_ext$major'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 shlibpath_overrides_runpath=no
12130 hardcode_into_libs=yes
12131 dynamic_linker='ldqnx.so'
12132 ;;
12133
12134 openbsd* | bitrig*)
12135 version_type=sunos
12136 sys_lib_dlsearch_path_spec=/usr/lib
12137 need_lib_prefix=no
12138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12139 need_version=no
12140 else
12141 need_version=yes
12142 fi
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=yes
12147 ;;
12148
12149 os2*)
12150 libname_spec='$name'
12151 version_type=windows
12152 shrext_cmds=.dll
12153 need_version=no
12154 need_lib_prefix=no
12155 # OS/2 can only load a DLL with a base name of 8 characters or less.
12156 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12157 v=$($ECHO $release$versuffix | tr -d .-);
12158 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12159 $ECHO $n$v`$shared_ext'
12160 library_names_spec='${libname}_dll.$libext'
12161 dynamic_linker='OS/2 ld.exe'
12162 shlibpath_var=BEGINLIBPATH
12163 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12165 postinstall_cmds='base_file=`basename \$file`~
12166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12167 dldir=$destdir/`dirname \$dlpath`~
12168 test -d \$dldir || mkdir -p \$dldir~
12169 $install_prog $dir/$dlname \$dldir/$dlname~
12170 chmod a+x \$dldir/$dlname~
12171 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12172 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12173 fi'
12174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12175 dlpath=$dir/\$dldll~
12176 $RM \$dlpath'
12177 ;;
12178
12179 osf3* | osf4* | osf5*)
12180 version_type=osf
12181 need_lib_prefix=no
12182 need_version=no
12183 soname_spec='$libname$release$shared_ext$major'
12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12188 ;;
12189
12190 rdos*)
12191 dynamic_linker=no
12192 ;;
12193
12194 solaris*)
12195 version_type=linux # correct to gnu/linux during the next big refactor
12196 need_lib_prefix=no
12197 need_version=no
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12203 # ldd complains unless libraries are executable
12204 postinstall_cmds='chmod +x $lib'
12205 ;;
12206
12207 sunos4*)
12208 version_type=sunos
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=yes
12213 if test yes = "$with_gnu_ld"; then
12214 need_lib_prefix=no
12215 fi
12216 need_version=yes
12217 ;;
12218
12219 sysv4 | sysv4.3*)
12220 version_type=linux # correct to gnu/linux during the next big refactor
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222 soname_spec='$libname$release$shared_ext$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 case $host_vendor in
12225 sni)
12226 shlibpath_overrides_runpath=no
12227 need_lib_prefix=no
12228 runpath_var=LD_RUN_PATH
12229 ;;
12230 siemens)
12231 need_lib_prefix=no
12232 ;;
12233 motorola)
12234 need_lib_prefix=no
12235 need_version=no
12236 shlibpath_overrides_runpath=no
12237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12238 ;;
12239 esac
12240 ;;
12241
12242 sysv4*MP*)
12243 if test -d /usr/nec; then
12244 version_type=linux # correct to gnu/linux during the next big refactor
12245 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12246 soname_spec='$libname$shared_ext.$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 fi
12249 ;;
12250
12251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12252 version_type=sco
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=yes
12259 hardcode_into_libs=yes
12260 if test yes = "$with_gnu_ld"; then
12261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12262 else
12263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12264 case $host_os in
12265 sco3.2v5*)
12266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12267 ;;
12268 esac
12269 fi
12270 sys_lib_dlsearch_path_spec='/usr/lib'
12271 ;;
12272
12273 tpf*)
12274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12275 version_type=linux # correct to gnu/linux during the next big refactor
12276 need_lib_prefix=no
12277 need_version=no
12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 ;;
12283
12284 uts4*)
12285 version_type=linux # correct to gnu/linux during the next big refactor
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287 soname_spec='$libname$release$shared_ext$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 ;;
12290
12291 *)
12292 dynamic_linker=no
12293 ;;
12294 esac
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12296 printf "%s\n" "$dynamic_linker" >&6; }
12297 test no = "$dynamic_linker" && can_build_shared=no
12298
12299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12300 if test yes = "$GCC"; then
12301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12302 fi
12303
12304 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12305 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12306 fi
12307
12308 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12309 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12310 fi
12311
12312 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12313 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12314
12315 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12316 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12317
12318 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12319 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12418 printf %s "checking how to hardcode library paths into programs... " >&6; }
12419 hardcode_action=
12420 if test -n "$hardcode_libdir_flag_spec" ||
12421 test -n "$runpath_var" ||
12422 test yes = "$hardcode_automatic"; then
12423
12424 # We can hardcode non-existent directories.
12425 if test no != "$hardcode_direct" &&
12426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12427 # have to relink, otherwise we might link with an installed library
12428 # when we should be linking with a yet-to-be-installed one
12429 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12430 test no != "$hardcode_minus_L"; then
12431 # Linking always hardcodes the temporary library directory.
12432 hardcode_action=relink
12433 else
12434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12435 hardcode_action=immediate
12436 fi
12437 else
12438 # We cannot hardcode anything, or else we can only hardcode existing
12439 # directories.
12440 hardcode_action=unsupported
12441 fi
12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12443 printf "%s\n" "$hardcode_action" >&6; }
12444
12445 if test relink = "$hardcode_action" ||
12446 test yes = "$inherit_rpath"; then
12447 # Fast installation is not supported
12448 enable_fast_install=no
12449 elif test yes = "$shlibpath_overrides_runpath" ||
12450 test no = "$enable_shared"; then
12451 # Fast installation is not necessary
12452 enable_fast_install=needless
12453 fi
12454
12455
12456
12457
12458
12459
12460 if test yes != "$enable_dlopen"; then
12461 enable_dlopen=unknown
12462 enable_dlopen_self=unknown
12463 enable_dlopen_self_static=unknown
12464 else
12465 lt_cv_dlopen=no
12466 lt_cv_dlopen_libs=
12467
12468 case $host_os in
12469 beos*)
12470 lt_cv_dlopen=load_add_on
12471 lt_cv_dlopen_libs=
12472 lt_cv_dlopen_self=yes
12473 ;;
12474
12475 mingw* | pw32* | cegcc*)
12476 lt_cv_dlopen=LoadLibrary
12477 lt_cv_dlopen_libs=
12478 ;;
12479
12480 cygwin*)
12481 lt_cv_dlopen=dlopen
12482 lt_cv_dlopen_libs=
12483 ;;
12484
12485 darwin*)
12486 # if libdl is installed we need to link against it
12487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12488 printf %s "checking for dlopen in -ldl... " >&6; }
12489 if test ${ac_cv_lib_dl_dlopen+y}
12490 then :
12491 printf %s "(cached) " >&6
12492 else $as_nop
12493 ac_check_lib_save_LIBS=$LIBS
12494 LIBS="-ldl $LIBS"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12501 char dlopen ();
12502 int
12503 main (void)
12504 {
12505 return dlopen ();
12506 ;
12507 return 0;
12508 }
12509 _ACEOF
12510 if ac_fn_c_try_link "$LINENO"
12511 then :
12512 ac_cv_lib_dl_dlopen=yes
12513 else $as_nop
12514 ac_cv_lib_dl_dlopen=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12521 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12522 if test "x$ac_cv_lib_dl_dlopen" = xyes
12523 then :
12524 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12525 else $as_nop
12526
12527 lt_cv_dlopen=dyld
12528 lt_cv_dlopen_libs=
12529 lt_cv_dlopen_self=yes
12530
12531 fi
12532
12533 ;;
12534
12535 tpf*)
12536 # Don't try to run any link tests for TPF. We know it's impossible
12537 # because TPF is a cross-compiler, and we know how we open DSOs.
12538 lt_cv_dlopen=dlopen
12539 lt_cv_dlopen_libs=
12540 lt_cv_dlopen_self=no
12541 ;;
12542
12543 *)
12544 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12545 if test "x$ac_cv_func_shl_load" = xyes
12546 then :
12547 lt_cv_dlopen=shl_load
12548 else $as_nop
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12550 printf %s "checking for shl_load in -ldld... " >&6; }
12551 if test ${ac_cv_lib_dld_shl_load+y}
12552 then :
12553 printf %s "(cached) " >&6
12554 else $as_nop
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-ldld $LIBS"
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563 char shl_load ();
12564 int
12565 main (void)
12566 {
12567 return shl_load ();
12568 ;
12569 return 0;
12570 }
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"
12573 then :
12574 ac_cv_lib_dld_shl_load=yes
12575 else $as_nop
12576 ac_cv_lib_dld_shl_load=no
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12583 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12584 if test "x$ac_cv_lib_dld_shl_load" = xyes
12585 then :
12586 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12587 else $as_nop
12588 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12589 if test "x$ac_cv_func_dlopen" = xyes
12590 then :
12591 lt_cv_dlopen=dlopen
12592 else $as_nop
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12594 printf %s "checking for dlopen in -ldl... " >&6; }
12595 if test ${ac_cv_lib_dl_dlopen+y}
12596 then :
12597 printf %s "(cached) " >&6
12598 else $as_nop
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-ldl $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 char dlopen ();
12608 int
12609 main (void)
12610 {
12611 return dlopen ();
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"
12617 then :
12618 ac_cv_lib_dl_dlopen=yes
12619 else $as_nop
12620 ac_cv_lib_dl_dlopen=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12625 fi
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12627 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12628 if test "x$ac_cv_lib_dl_dlopen" = xyes
12629 then :
12630 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12631 else $as_nop
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12633 printf %s "checking for dlopen in -lsvld... " >&6; }
12634 if test ${ac_cv_lib_svld_dlopen+y}
12635 then :
12636 printf %s "(cached) " >&6
12637 else $as_nop
12638 ac_check_lib_save_LIBS=$LIBS
12639 LIBS="-lsvld $LIBS"
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12646 char dlopen ();
12647 int
12648 main (void)
12649 {
12650 return dlopen ();
12651 ;
12652 return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"
12656 then :
12657 ac_cv_lib_svld_dlopen=yes
12658 else $as_nop
12659 ac_cv_lib_svld_dlopen=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12666 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12667 if test "x$ac_cv_lib_svld_dlopen" = xyes
12668 then :
12669 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12670 else $as_nop
12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12672 printf %s "checking for dld_link in -ldld... " >&6; }
12673 if test ${ac_cv_lib_dld_dld_link+y}
12674 then :
12675 printf %s "(cached) " >&6
12676 else $as_nop
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-ldld $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 char dld_link ();
12686 int
12687 main (void)
12688 {
12689 return dld_link ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"
12695 then :
12696 ac_cv_lib_dld_dld_link=yes
12697 else $as_nop
12698 ac_cv_lib_dld_dld_link=no
12699 fi
12700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12703 fi
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12705 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12706 if test "x$ac_cv_lib_dld_dld_link" = xyes
12707 then :
12708 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12709 fi
12710
12711
12712 fi
12713
12714
12715 fi
12716
12717
12718 fi
12719
12720
12721 fi
12722
12723
12724 fi
12725
12726 ;;
12727 esac
12728
12729 if test no = "$lt_cv_dlopen"; then
12730 enable_dlopen=no
12731 else
12732 enable_dlopen=yes
12733 fi
12734
12735 case $lt_cv_dlopen in
12736 dlopen)
12737 save_CPPFLAGS=$CPPFLAGS
12738 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12739
12740 save_LDFLAGS=$LDFLAGS
12741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12742
12743 save_LIBS=$LIBS
12744 LIBS="$lt_cv_dlopen_libs $LIBS"
12745
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12747 printf %s "checking whether a program can dlopen itself... " >&6; }
12748 if test ${lt_cv_dlopen_self+y}
12749 then :
12750 printf %s "(cached) " >&6
12751 else $as_nop
12752 if test yes = "$cross_compiling"; then :
12753 lt_cv_dlopen_self=cross
12754 else
12755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12756 lt_status=$lt_dlunknown
12757 cat > conftest.$ac_ext <<_LT_EOF
12758 #line $LINENO "configure"
12759 #include "confdefs.h"
12760
12761 #if HAVE_DLFCN_H
12762 #include <dlfcn.h>
12763 #endif
12764
12765 #include <stdio.h>
12766
12767 #ifdef RTLD_GLOBAL
12768 # define LT_DLGLOBAL RTLD_GLOBAL
12769 #else
12770 # ifdef DL_GLOBAL
12771 # define LT_DLGLOBAL DL_GLOBAL
12772 # else
12773 # define LT_DLGLOBAL 0
12774 # endif
12775 #endif
12776
12777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12778 find out it does not work in some platform. */
12779 #ifndef LT_DLLAZY_OR_NOW
12780 # ifdef RTLD_LAZY
12781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12782 # else
12783 # ifdef DL_LAZY
12784 # define LT_DLLAZY_OR_NOW DL_LAZY
12785 # else
12786 # ifdef RTLD_NOW
12787 # define LT_DLLAZY_OR_NOW RTLD_NOW
12788 # else
12789 # ifdef DL_NOW
12790 # define LT_DLLAZY_OR_NOW DL_NOW
12791 # else
12792 # define LT_DLLAZY_OR_NOW 0
12793 # endif
12794 # endif
12795 # endif
12796 # endif
12797 #endif
12798
12799 /* When -fvisibility=hidden is used, assume the code has been annotated
12800 correspondingly for the symbols needed. */
12801 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12802 int fnord () __attribute__((visibility("default")));
12803 #endif
12804
12805 int fnord () { return 42; }
12806 int main ()
12807 {
12808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12809 int status = $lt_dlunknown;
12810
12811 if (self)
12812 {
12813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12814 else
12815 {
12816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12817 else puts (dlerror ());
12818 }
12819 /* dlclose (self); */
12820 }
12821 else
12822 puts (dlerror ());
12823
12824 return status;
12825 }
12826 _LT_EOF
12827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12828 (eval $ac_link) 2>&5
12829 ac_status=$?
12830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12832 (./conftest; exit; ) >&5 2>/dev/null
12833 lt_status=$?
12834 case x$lt_status in
12835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12838 esac
12839 else :
12840 # compilation failed
12841 lt_cv_dlopen_self=no
12842 fi
12843 fi
12844 rm -fr conftest*
12845
12846
12847 fi
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12849 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12850
12851 if test yes = "$lt_cv_dlopen_self"; then
12852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12854 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12855 if test ${lt_cv_dlopen_self_static+y}
12856 then :
12857 printf %s "(cached) " >&6
12858 else $as_nop
12859 if test yes = "$cross_compiling"; then :
12860 lt_cv_dlopen_self_static=cross
12861 else
12862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12863 lt_status=$lt_dlunknown
12864 cat > conftest.$ac_ext <<_LT_EOF
12865 #line $LINENO "configure"
12866 #include "confdefs.h"
12867
12868 #if HAVE_DLFCN_H
12869 #include <dlfcn.h>
12870 #endif
12871
12872 #include <stdio.h>
12873
12874 #ifdef RTLD_GLOBAL
12875 # define LT_DLGLOBAL RTLD_GLOBAL
12876 #else
12877 # ifdef DL_GLOBAL
12878 # define LT_DLGLOBAL DL_GLOBAL
12879 # else
12880 # define LT_DLGLOBAL 0
12881 # endif
12882 #endif
12883
12884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12885 find out it does not work in some platform. */
12886 #ifndef LT_DLLAZY_OR_NOW
12887 # ifdef RTLD_LAZY
12888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12889 # else
12890 # ifdef DL_LAZY
12891 # define LT_DLLAZY_OR_NOW DL_LAZY
12892 # else
12893 # ifdef RTLD_NOW
12894 # define LT_DLLAZY_OR_NOW RTLD_NOW
12895 # else
12896 # ifdef DL_NOW
12897 # define LT_DLLAZY_OR_NOW DL_NOW
12898 # else
12899 # define LT_DLLAZY_OR_NOW 0
12900 # endif
12901 # endif
12902 # endif
12903 # endif
12904 #endif
12905
12906 /* When -fvisibility=hidden is used, assume the code has been annotated
12907 correspondingly for the symbols needed. */
12908 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12909 int fnord () __attribute__((visibility("default")));
12910 #endif
12911
12912 int fnord () { return 42; }
12913 int main ()
12914 {
12915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12916 int status = $lt_dlunknown;
12917
12918 if (self)
12919 {
12920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12921 else
12922 {
12923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12924 else puts (dlerror ());
12925 }
12926 /* dlclose (self); */
12927 }
12928 else
12929 puts (dlerror ());
12930
12931 return status;
12932 }
12933 _LT_EOF
12934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12935 (eval $ac_link) 2>&5
12936 ac_status=$?
12937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12938 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12939 (./conftest; exit; ) >&5 2>/dev/null
12940 lt_status=$?
12941 case x$lt_status in
12942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12944 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12945 esac
12946 else :
12947 # compilation failed
12948 lt_cv_dlopen_self_static=no
12949 fi
12950 fi
12951 rm -fr conftest*
12952
12953
12954 fi
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12956 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12957 fi
12958
12959 CPPFLAGS=$save_CPPFLAGS
12960 LDFLAGS=$save_LDFLAGS
12961 LIBS=$save_LIBS
12962 ;;
12963 esac
12964
12965 case $lt_cv_dlopen_self in
12966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12967 *) enable_dlopen_self=unknown ;;
12968 esac
12969
12970 case $lt_cv_dlopen_self_static in
12971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12972 *) enable_dlopen_self_static=unknown ;;
12973 esac
12974 fi
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992 striplib=
12993 old_striplib=
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12995 printf %s "checking whether stripping libraries is possible... " >&6; }
12996 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12997 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12998 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 printf "%s\n" "yes" >&6; }
13001 else
13002 # FIXME - insert some real tests, host_os isn't really good enough
13003 case $host_os in
13004 darwin*)
13005 if test -n "$STRIP"; then
13006 striplib="$STRIP -x"
13007 old_striplib="$STRIP -S"
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13009 printf "%s\n" "yes" >&6; }
13010 else
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 printf "%s\n" "no" >&6; }
13013 fi
13014 ;;
13015 *)
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 printf "%s\n" "no" >&6; }
13018 ;;
13019 esac
13020 fi
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033 # Report what library types will actually be built
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13035 printf %s "checking if libtool supports shared libraries... " >&6; }
13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13037 printf "%s\n" "$can_build_shared" >&6; }
13038
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13040 printf %s "checking whether to build shared libraries... " >&6; }
13041 test no = "$can_build_shared" && enable_shared=no
13042
13043 # On AIX, shared libraries and static libraries use the same namespace, and
13044 # are all built from PIC.
13045 case $host_os in
13046 aix3*)
13047 test yes = "$enable_shared" && enable_static=no
13048 if test -n "$RANLIB"; then
13049 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13050 postinstall_cmds='$RANLIB $lib'
13051 fi
13052 ;;
13053
13054 aix[4-9]*)
13055 if test ia64 != "$host_cpu"; then
13056 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13057 yes,aix,yes) ;; # shared object as lib.so file only
13058 yes,svr4,*) ;; # shared object as lib.so archive member only
13059 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13060 esac
13061 fi
13062 ;;
13063 esac
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13065 printf "%s\n" "$enable_shared" >&6; }
13066
13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13068 printf %s "checking whether to build static libraries... " >&6; }
13069 # Make sure either enable_shared or enable_static is yes.
13070 test yes = "$enable_shared" || enable_static=yes
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13072 printf "%s\n" "$enable_static" >&6; }
13073
13074
13075
13076
13077 fi
13078 ac_ext=c
13079 ac_cpp='$CPP $CPPFLAGS'
13080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083
13084 CC=$lt_save_CC
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 ac_config_commands="$ac_config_commands libtool"
13101
13102
13103
13104
13105 # Only expand once:
13106
13107
13108
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13110 printf %s "checking whether byte ordering is bigendian... " >&6; }
13111 if test ${ac_cv_c_bigendian+y}
13112 then :
13113 printf %s "(cached) " >&6
13114 else $as_nop
13115 ac_cv_c_bigendian=unknown
13116 # See if we're dealing with a universal compiler.
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #ifndef __APPLE_CC__
13120 not a universal capable compiler
13121 #endif
13122 typedef int dummy;
13123
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"
13126 then :
13127
13128 # Check for potential -arch flags. It is not universal unless
13129 # there are at least two -arch flags with different values.
13130 ac_arch=
13131 ac_prev=
13132 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13133 if test -n "$ac_prev"; then
13134 case $ac_word in
13135 i?86 | x86_64 | ppc | ppc64)
13136 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13137 ac_arch=$ac_word
13138 else
13139 ac_cv_c_bigendian=universal
13140 break
13141 fi
13142 ;;
13143 esac
13144 ac_prev=
13145 elif test "x$ac_word" = "x-arch"; then
13146 ac_prev=arch
13147 fi
13148 done
13149 fi
13150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13151 if test $ac_cv_c_bigendian = unknown; then
13152 # See if sys/param.h defines the BYTE_ORDER macro.
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <sys/types.h>
13156 #include <sys/param.h>
13157
13158 int
13159 main (void)
13160 {
13161 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13162 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13163 && LITTLE_ENDIAN)
13164 bogus endian macros
13165 #endif
13166
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_compile "$LINENO"
13172 then :
13173 # It does; now see whether it defined to BIG_ENDIAN or not.
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 #include <sys/types.h>
13177 #include <sys/param.h>
13178
13179 int
13180 main (void)
13181 {
13182 #if BYTE_ORDER != BIG_ENDIAN
13183 not big endian
13184 #endif
13185
13186 ;
13187 return 0;
13188 }
13189 _ACEOF
13190 if ac_fn_c_try_compile "$LINENO"
13191 then :
13192 ac_cv_c_bigendian=yes
13193 else $as_nop
13194 ac_cv_c_bigendian=no
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13199 fi
13200 if test $ac_cv_c_bigendian = unknown; then
13201 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204 #include <limits.h>
13205
13206 int
13207 main (void)
13208 {
13209 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13210 bogus endian macros
13211 #endif
13212
13213 ;
13214 return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_compile "$LINENO"
13218 then :
13219 # It does; now see whether it defined to _BIG_ENDIAN or not.
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 #include <limits.h>
13223
13224 int
13225 main (void)
13226 {
13227 #ifndef _BIG_ENDIAN
13228 not big endian
13229 #endif
13230
13231 ;
13232 return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_c_try_compile "$LINENO"
13236 then :
13237 ac_cv_c_bigendian=yes
13238 else $as_nop
13239 ac_cv_c_bigendian=no
13240 fi
13241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13244 fi
13245 if test $ac_cv_c_bigendian = unknown; then
13246 # Compile a test program.
13247 if test "$cross_compiling" = yes
13248 then :
13249 # Try to guess by grepping values from an object file.
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 unsigned short int ascii_mm[] =
13253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13254 unsigned short int ascii_ii[] =
13255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13256 int use_ascii (int i) {
13257 return ascii_mm[i] + ascii_ii[i];
13258 }
13259 unsigned short int ebcdic_ii[] =
13260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13261 unsigned short int ebcdic_mm[] =
13262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13263 int use_ebcdic (int i) {
13264 return ebcdic_mm[i] + ebcdic_ii[i];
13265 }
13266 extern int foo;
13267
13268 int
13269 main (void)
13270 {
13271 return use_ascii (foo) == use_ebcdic (foo);
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_c_try_compile "$LINENO"
13277 then :
13278 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13279 ac_cv_c_bigendian=yes
13280 fi
13281 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13282 if test "$ac_cv_c_bigendian" = unknown; then
13283 ac_cv_c_bigendian=no
13284 else
13285 # finding both strings is unlikely to happen, but who knows?
13286 ac_cv_c_bigendian=unknown
13287 fi
13288 fi
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13291 else $as_nop
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 $ac_includes_default
13295 int
13296 main (void)
13297 {
13298
13299 /* Are we little or big endian? From Harbison&Steele. */
13300 union
13301 {
13302 long int l;
13303 char c[sizeof (long int)];
13304 } u;
13305 u.l = 1;
13306 return u.c[sizeof (long int) - 1] == 1;
13307
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_run "$LINENO"
13313 then :
13314 ac_cv_c_bigendian=no
13315 else $as_nop
13316 ac_cv_c_bigendian=yes
13317 fi
13318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13319 conftest.$ac_objext conftest.beam conftest.$ac_ext
13320 fi
13321
13322 fi
13323 fi
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13325 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13326 case $ac_cv_c_bigendian in #(
13327 yes)
13328 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
13329 ;; #(
13330 no)
13331 ;; #(
13332 universal)
13333
13334 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13335
13336 ;; #(
13337 *)
13338 as_fn_error $? "unknown endianness
13339 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13340 esac
13341
13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13343 printf %s "checking for an ANSI C-conforming const... " >&6; }
13344 if test ${ac_cv_c_const+y}
13345 then :
13346 printf %s "(cached) " >&6
13347 else $as_nop
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350
13351 int
13352 main (void)
13353 {
13354
13355 #ifndef __cplusplus
13356 /* Ultrix mips cc rejects this sort of thing. */
13357 typedef int charset[2];
13358 const charset cs = { 0, 0 };
13359 /* SunOS 4.1.1 cc rejects this. */
13360 char const *const *pcpcc;
13361 char **ppc;
13362 /* NEC SVR4.0.2 mips cc rejects this. */
13363 struct point {int x, y;};
13364 static struct point const zero = {0,0};
13365 /* IBM XL C 1.02.0.0 rejects this.
13366 It does not let you subtract one const X* pointer from another in
13367 an arm of an if-expression whose if-part is not a constant
13368 expression */
13369 const char *g = "string";
13370 pcpcc = &g + (g ? g-g : 0);
13371 /* HPUX 7.0 cc rejects these. */
13372 ++pcpcc;
13373 ppc = (char**) pcpcc;
13374 pcpcc = (char const *const *) ppc;
13375 { /* SCO 3.2v4 cc rejects this sort of thing. */
13376 char tx;
13377 char *t = &tx;
13378 char const *s = 0 ? (char *) 0 : (char const *) 0;
13379
13380 *t++ = 0;
13381 if (s) return 0;
13382 }
13383 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13384 int x[] = {25, 17};
13385 const int *foo = &x[0];
13386 ++foo;
13387 }
13388 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13389 typedef const int *iptr;
13390 iptr p = 0;
13391 ++p;
13392 }
13393 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13394 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13395 struct s { int j; const int *ap[3]; } bx;
13396 struct s *b = &bx; b->j = 5;
13397 }
13398 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13399 const int foo = 10;
13400 if (!foo) return 0;
13401 }
13402 return !cs[0] && !zero.x;
13403 #endif
13404
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"
13410 then :
13411 ac_cv_c_const=yes
13412 else $as_nop
13413 ac_cv_c_const=no
13414 fi
13415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13416 fi
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13418 printf "%s\n" "$ac_cv_c_const" >&6; }
13419 if test $ac_cv_c_const = no; then
13420
13421 printf "%s\n" "#define const /**/" >>confdefs.h
13422
13423 fi
13424
13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13426 printf %s "checking for inline... " >&6; }
13427 if test ${ac_cv_c_inline+y}
13428 then :
13429 printf %s "(cached) " >&6
13430 else $as_nop
13431 ac_cv_c_inline=no
13432 for ac_kw in inline __inline__ __inline; do
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 #ifndef __cplusplus
13436 typedef int foo_t;
13437 static $ac_kw foo_t static_foo (void) {return 0; }
13438 $ac_kw foo_t foo (void) {return 0; }
13439 #endif
13440
13441 _ACEOF
13442 if ac_fn_c_try_compile "$LINENO"
13443 then :
13444 ac_cv_c_inline=$ac_kw
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13447 test "$ac_cv_c_inline" != no && break
13448 done
13449
13450 fi
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13452 printf "%s\n" "$ac_cv_c_inline" >&6; }
13453
13454 case $ac_cv_c_inline in
13455 inline | yes) ;;
13456 *)
13457 case $ac_cv_c_inline in
13458 no) ac_val=;;
13459 *) ac_val=$ac_cv_c_inline;;
13460 esac
13461 cat >>confdefs.h <<_ACEOF
13462 #ifndef __cplusplus
13463 #define inline $ac_val
13464 #endif
13465 _ACEOF
13466 ;;
13467 esac
13468
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13470 printf %s "checking for C/C++ restrict keyword... " >&6; }
13471 if test ${ac_cv_c_restrict+y}
13472 then :
13473 printf %s "(cached) " >&6
13474 else $as_nop
13475 ac_cv_c_restrict=no
13476 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13477 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13478 # Put 'restrict' last, because C++ lacks it.
13479 for ac_kw in __restrict__ __restrict _Restrict restrict; do
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482 typedef int *int_ptr;
13483 int foo (int_ptr $ac_kw ip) { return ip[0]; }
13484 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
13485 int bar (int ip[$ac_kw]) { return ip[0]; }
13486
13487 int
13488 main (void)
13489 {
13490 int s[1];
13491 int *$ac_kw t = s;
13492 t[0] = 0;
13493 return foo (t) + bar (t);
13494
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"
13500 then :
13501 ac_cv_c_restrict=$ac_kw
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13504 test "$ac_cv_c_restrict" != no && break
13505 done
13506
13507 fi
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13509 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13510
13511 case $ac_cv_c_restrict in
13512 restrict) ;;
13513 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13514 ;;
13515 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13516 ;;
13517 esac
13518
13519
13520
13521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
13522 printf %s "checking for C99 variable-size arrays... " >&6; }
13523 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525
13526 int
13527 main (void)
13528 {
13529
13530 int foo;
13531 foo = 10;
13532 int array[foo];
13533
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 if ac_fn_c_try_compile "$LINENO"
13539 then :
13540 has_var_arrays=yes;
13541 printf "%s\n" "#define VAR_ARRAYS /**/" >>confdefs.h
13542
13543
13544 else $as_nop
13545 has_var_arrays=no
13546
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
13550 printf "%s\n" "$has_var_arrays" >&6; }
13551
13552 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
13553 if test "x$ac_cv_header_alloca_h" = xyes
13554 then :
13555 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
13556
13557 fi
13558 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13559 if test "x$ac_cv_header_getopt_h" = xyes
13560 then :
13561 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13562
13563 fi
13564
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13566 printf %s "checking for alloca... " >&6; }
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569
13570 #ifdef HAVE_ALLOCA_H
13571 # include <alloca.h>
13572 #endif
13573 #include <stdlib.h>
13574
13575 int
13576 main (void)
13577 {
13578
13579 int foo=10;
13580 int *array = alloca(foo);
13581
13582 ;
13583 return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"
13587 then :
13588
13589 has_alloca=yes;
13590 if test x$has_var_arrays = "xno" ; then
13591
13592 printf "%s\n" "#define USE_ALLOCA /**/" >>confdefs.h
13593
13594 fi
13595
13596 else $as_nop
13597 has_alloca=no
13598
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5
13602 printf "%s\n" "$has_alloca" >&6; }
13603
13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE in current arch/CFLAGS" >&5
13605 printf %s "checking for SSE in current arch/CFLAGS... " >&6; }
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608
13609
13610 #include <xmmintrin.h>
13611 __m128 testfunc(float *a, float *b) {
13612 return _mm_add_ps(_mm_loadu_ps(a), _mm_loadu_ps(b));
13613 }
13614
13615 int
13616 main (void)
13617 {
13618
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"
13624 then :
13625
13626 has_sse=yes
13627
13628 else $as_nop
13629
13630 has_sse=no
13631
13632
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13635 conftest$ac_exeext conftest.$ac_ext
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_sse" >&5
13637 printf "%s\n" "$has_sse" >&6; }
13638
13639 SAVE_CFLAGS="$CFLAGS"
13640 CFLAGS="$CFLAGS -fvisibility=hidden"
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF visibility" >&5
13642 printf %s "checking for ELF visibility... " >&6; }
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645
13646
13647 #pragma GCC visibility push(hidden)
13648 __attribute__((visibility("default")))
13649 int var=10;
13650
13651 int
13652 main (void)
13653 {
13654
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 if ac_fn_c_try_compile "$LINENO"
13660 then :
13661
13662 has_visibility=yes
13663
13664 printf "%s\n" "#define EXPORT __attribute__((visibility(\"default\")))" >>confdefs.h
13665
13666
13667 else $as_nop
13668
13669 has_visibility=no
13670
13671 printf "%s\n" "#define EXPORT /**/" >>confdefs.h
13672
13673 CFLAGS="$SAVE_CFLAGS"
13674
13675
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_visibility" >&5
13679 printf "%s\n" "$has_visibility" >&6; }
13680
13681 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_sys_soundcard_h" = xyes
13683 then :
13684 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
13685
13686 fi
13687 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
13688 if test "x$ac_cv_header_sys_audioio_h" = xyes
13689 then :
13690 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
13691
13692 fi
13693
13694
13695 LIBM=
13696 case $host in
13697 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13698 # These system don't have libm, or don't need it
13699 ;;
13700 *-ncr-sysv4.3*)
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13702 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
13703 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
13704 then :
13705 printf %s "(cached) " >&6
13706 else $as_nop
13707 ac_check_lib_save_LIBS=$LIBS
13708 LIBS="-lmw $LIBS"
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13715 char _mwvalidcheckl ();
13716 int
13717 main (void)
13718 {
13719 return _mwvalidcheckl ();
13720 ;
13721 return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_link "$LINENO"
13725 then :
13726 ac_cv_lib_mw__mwvalidcheckl=yes
13727 else $as_nop
13728 ac_cv_lib_mw__mwvalidcheckl=no
13729 fi
13730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13731 conftest$ac_exeext conftest.$ac_ext
13732 LIBS=$ac_check_lib_save_LIBS
13733 fi
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13735 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13736 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
13737 then :
13738 LIBM=-lmw
13739 fi
13740
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13742 printf %s "checking for cos in -lm... " >&6; }
13743 if test ${ac_cv_lib_m_cos+y}
13744 then :
13745 printf %s "(cached) " >&6
13746 else $as_nop
13747 ac_check_lib_save_LIBS=$LIBS
13748 LIBS="-lm $LIBS"
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13755 char cos ();
13756 int
13757 main (void)
13758 {
13759 return cos ();
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"
13765 then :
13766 ac_cv_lib_m_cos=yes
13767 else $as_nop
13768 ac_cv_lib_m_cos=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13771 conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13773 fi
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13775 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13776 if test "x$ac_cv_lib_m_cos" = xyes
13777 then :
13778 LIBM="$LIBM -lm"
13779 fi
13780
13781 ;;
13782 *)
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13784 printf %s "checking for cos in -lm... " >&6; }
13785 if test ${ac_cv_lib_m_cos+y}
13786 then :
13787 printf %s "(cached) " >&6
13788 else $as_nop
13789 ac_check_lib_save_LIBS=$LIBS
13790 LIBS="-lm $LIBS"
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 char cos ();
13798 int
13799 main (void)
13800 {
13801 return cos ();
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"
13807 then :
13808 ac_cv_lib_m_cos=yes
13809 else $as_nop
13810 ac_cv_lib_m_cos=no
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13813 conftest$ac_exeext conftest.$ac_ext
13814 LIBS=$ac_check_lib_save_LIBS
13815 fi
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13817 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13818 if test "x$ac_cv_lib_m_cos" = xyes
13819 then :
13820 LIBM=-lm
13821 fi
13822
13823 ;;
13824 esac
13825
13826
13827
13828 # Check for getopt_long; if not found, use included source.
13829
13830 for ac_func in getopt_long
13831 do :
13832 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13833 if test "x$ac_cv_func_getopt_long" = xyes
13834 then :
13835 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13836
13837 else $as_nop
13838 # FreeBSD has a gnugetopt library.
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
13840 printf %s "checking for getopt_long in -lgnugetopt... " >&6; }
13841 if test ${ac_cv_lib_gnugetopt_getopt_long+y}
13842 then :
13843 printf %s "(cached) " >&6
13844 else $as_nop
13845 ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-lgnugetopt $LIBS"
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 char getopt_long ();
13854 int
13855 main (void)
13856 {
13857 return getopt_long ();
13858 ;
13859 return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"
13863 then :
13864 ac_cv_lib_gnugetopt_getopt_long=yes
13865 else $as_nop
13866 ac_cv_lib_gnugetopt_getopt_long=no
13867 fi
13868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13869 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13871 fi
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
13873 printf "%s\n" "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
13874 if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes
13875 then :
13876 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13877
13878 else $as_nop
13879 # Use the GNU replacement.
13880 case " $LIBOBJS " in
13881 *" getopt.$ac_objext "* ) ;;
13882 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13883 ;;
13884 esac
13885
13886 case " $LIBOBJS " in
13887 *" getopt1.$ac_objext "* ) ;;
13888 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
13889 ;;
13890 esac
13891
13892 fi
13893
13894 fi
13895
13896 done
13897
13898 SPEEX_VERSION=$PACKAGE_VERSION
13899
13900
13901
13902
13903 printf "%s\n" "#define SPEEX_VERSION \"${PACKAGE_VERSION}\"" >>confdefs.h
13904
13905
13906 printf "%s\n" "#define SPEEX_MAJOR_VERSION ${SPEEX_MAJOR_VERSION}" >>confdefs.h
13907
13908
13909 printf "%s\n" "#define SPEEX_MINOR_VERSION ${SPEEX_MINOR_VERSION}" >>confdefs.h
13910
13911
13912 printf "%s\n" "#define SPEEX_MICRO_VERSION ${SPEEX_MICRO_VERSION}" >>confdefs.h
13913
13914
13915 printf "%s\n" "#define SPEEX_EXTRA_VERSION \"${SPEEX_EXTRA_VERSION}\"" >>confdefs.h
13916
13917
13918 # Check whether --enable-valgrind was given.
13919 if test ${enable_valgrind+y}
13920 then :
13921 enableval=$enable_valgrind; if test "$enableval" = yes; then
13922
13923 printf "%s\n" "#define ENABLE_VALGRIND /**/" >>confdefs.h
13924
13925 fi
13926 fi
13927
13928
13929 # Check whether --enable-sse was given.
13930 if test ${enable_sse+y}
13931 then :
13932 enableval=$enable_sse;
13933 if test "x$enableval" != xno; then
13934 has_sse=yes
13935 CFLAGS="$CFLAGS -O3 -msse"
13936 else
13937 has_sse=no
13938 fi
13939
13940 fi
13941
13942
13943
13944 FFT=smallft
13945
13946 # Check whether --enable-fixed-point was given.
13947 if test ${enable_fixed_point+y}
13948 then :
13949 enableval=$enable_fixed_point; if test "$enableval" = yes; then
13950 FFT=kiss
13951 has_sse=no
13952
13953 printf "%s\n" "#define FIXED_POINT /**/" >>confdefs.h
13954
13955 else
13956
13957 printf "%s\n" "#define FLOATING_POINT /**/" >>confdefs.h
13958
13959 fi
13960 else $as_nop
13961
13962 printf "%s\n" "#define FLOATING_POINT /**/" >>confdefs.h
13963
13964 fi
13965
13966
13967 if test "$has_sse" = yes; then
13968
13969 printf "%s\n" "#define _USE_SSE /**/" >>confdefs.h
13970
13971 fi
13972
13973 # Check whether --enable-float-api was given.
13974 if test ${enable_float_api+y}
13975 then :
13976 enableval=$enable_float_api; if test "$enableval" = no; then
13977
13978 printf "%s\n" "#define DISABLE_FLOAT_API /**/" >>confdefs.h
13979
13980 fi
13981 fi
13982
13983
13984 # Check whether --enable-binaries was given.
13985 if test ${enable_binaries+y}
13986 then :
13987 enableval=$enable_binaries;
13988 fi
13989
13990
13991
13992
13993
13994
13995
13996
13997 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13998 if test -n "$ac_tool_prefix"; then
13999 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14000 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002 printf %s "checking for $ac_word... " >&6; }
14003 if test ${ac_cv_path_PKG_CONFIG+y}
14004 then :
14005 printf %s "(cached) " >&6
14006 else $as_nop
14007 case $PKG_CONFIG in
14008 [\\/]* | ?:[\\/]*)
14009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14010 ;;
14011 *)
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015 IFS=$as_save_IFS
14016 case $as_dir in #(((
14017 '') as_dir=./ ;;
14018 */) ;;
14019 *) as_dir=$as_dir/ ;;
14020 esac
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14023 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 ;;
14032 esac
14033 fi
14034 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14035 if test -n "$PKG_CONFIG"; then
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14037 printf "%s\n" "$PKG_CONFIG" >&6; }
14038 else
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14041 fi
14042
14043
14044 fi
14045 if test -z "$ac_cv_path_PKG_CONFIG"; then
14046 ac_pt_PKG_CONFIG=$PKG_CONFIG
14047 # Extract the first word of "pkg-config", so it can be a program name with args.
14048 set dummy pkg-config; ac_word=$2
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 printf %s "checking for $ac_word... " >&6; }
14051 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14052 then :
14053 printf %s "(cached) " >&6
14054 else $as_nop
14055 case $ac_pt_PKG_CONFIG in
14056 [\\/]* | ?:[\\/]*)
14057 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14058 ;;
14059 *)
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14062 do
14063 IFS=$as_save_IFS
14064 case $as_dir in #(((
14065 '') as_dir=./ ;;
14066 */) ;;
14067 *) as_dir=$as_dir/ ;;
14068 esac
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14071 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14073 break 2
14074 fi
14075 done
14076 done
14077 IFS=$as_save_IFS
14078
14079 ;;
14080 esac
14081 fi
14082 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14083 if test -n "$ac_pt_PKG_CONFIG"; then
14084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14085 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14086 else
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
14089 fi
14090
14091 if test "x$ac_pt_PKG_CONFIG" = x; then
14092 PKG_CONFIG=""
14093 else
14094 case $cross_compiling:$ac_tool_warned in
14095 yes:)
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14098 ac_tool_warned=yes ;;
14099 esac
14100 PKG_CONFIG=$ac_pt_PKG_CONFIG
14101 fi
14102 else
14103 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14104 fi
14105
14106 fi
14107 if test -n "$PKG_CONFIG"; then
14108 _pkg_min_version=0.9.0
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14110 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14111 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14113 printf "%s\n" "yes" >&6; }
14114 else
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116 printf "%s\n" "no" >&6; }
14117 PKG_CONFIG=""
14118 fi
14119 fi
14120 if test "x$enable_binaries" != "xno"
14121 then :
14122
14123
14124 pkg_failed=no
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
14126 printf %s "checking for OGG... " >&6; }
14127
14128 if test -n "$OGG_CFLAGS"; then
14129 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
14130 elif test -n "$PKG_CONFIG"; then
14131 if test -n "$PKG_CONFIG" && \
14132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
14133 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
14134 ac_status=$?
14135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; }; then
14137 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg" 2>/dev/null`
14138 test "x$?" != "x0" && pkg_failed=yes
14139 else
14140 pkg_failed=yes
14141 fi
14142 else
14143 pkg_failed=untried
14144 fi
14145 if test -n "$OGG_LIBS"; then
14146 pkg_cv_OGG_LIBS="$OGG_LIBS"
14147 elif test -n "$PKG_CONFIG"; then
14148 if test -n "$PKG_CONFIG" && \
14149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg\""; } >&5
14150 ($PKG_CONFIG --exists --print-errors "ogg") 2>&5
14151 ac_status=$?
14152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14153 test $ac_status = 0; }; then
14154 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg" 2>/dev/null`
14155 test "x$?" != "x0" && pkg_failed=yes
14156 else
14157 pkg_failed=yes
14158 fi
14159 else
14160 pkg_failed=untried
14161 fi
14162
14163
14164
14165 if test $pkg_failed = yes; then
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 printf "%s\n" "no" >&6; }
14168
14169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14170 _pkg_short_errors_supported=yes
14171 else
14172 _pkg_short_errors_supported=no
14173 fi
14174 if test $_pkg_short_errors_supported = yes; then
14175 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg" 2>&1`
14176 else
14177 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg" 2>&1`
14178 fi
14179 # Put the nasty error message in config.log where it belongs
14180 echo "$OGG_PKG_ERRORS" >&5
14181
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ogg not found, not building example programs" >&5
14183 printf "%s\n" "$as_me: WARNING: Ogg not found, not building example programs" >&2;}
14184 if false; then
14185 BUILD_BINARIES_TRUE=
14186 BUILD_BINARIES_FALSE='#'
14187 else
14188 BUILD_BINARIES_TRUE='#'
14189 BUILD_BINARIES_FALSE=
14190 fi
14191
14192 elif test $pkg_failed = untried; then
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 printf "%s\n" "no" >&6; }
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ogg not found, not building example programs" >&5
14196 printf "%s\n" "$as_me: WARNING: Ogg not found, not building example programs" >&2;}
14197 if false; then
14198 BUILD_BINARIES_TRUE=
14199 BUILD_BINARIES_FALSE='#'
14200 else
14201 BUILD_BINARIES_TRUE='#'
14202 BUILD_BINARIES_FALSE=
14203 fi
14204
14205 else
14206 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
14207 OGG_LIBS=$pkg_cv_OGG_LIBS
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14209 printf "%s\n" "yes" >&6; }
14210 if true; then
14211 BUILD_BINARIES_TRUE=
14212 BUILD_BINARIES_FALSE='#'
14213 else
14214 BUILD_BINARIES_TRUE='#'
14215 BUILD_BINARIES_FALSE=
14216 fi
14217
14218 fi
14219 else $as_nop
14220 if false; then
14221 BUILD_BINARIES_TRUE=
14222 BUILD_BINARIES_FALSE='#'
14223 else
14224 BUILD_BINARIES_TRUE='#'
14225 BUILD_BINARIES_FALSE=
14226 fi
14227
14228 fi
14229
14230 # Check whether --enable-vbr was given.
14231 if test ${enable_vbr+y}
14232 then :
14233 enableval=$enable_vbr; if test "$enableval" = no; then
14234
14235 printf "%s\n" "#define DISABLE_VBR /**/" >>confdefs.h
14236
14237 fi
14238 fi
14239
14240
14241 # Check whether --enable-arm4-asm was given.
14242 if test ${enable_arm4_asm+y}
14243 then :
14244 enableval=$enable_arm4_asm; if test "$enableval" = yes; then
14245
14246 printf "%s\n" "#define ARM4_ASM /**/" >>confdefs.h
14247
14248 fi
14249 fi
14250
14251
14252 # Check whether --enable-arm5e-asm was given.
14253 if test ${enable_arm5e_asm+y}
14254 then :
14255 enableval=$enable_arm5e_asm; if test "$enableval" = yes; then
14256
14257 printf "%s\n" "#define ARM5E_ASM /**/" >>confdefs.h
14258
14259 fi
14260 fi
14261
14262
14263 # Check whether --enable-blackfin-asm was given.
14264 if test ${enable_blackfin_asm+y}
14265 then :
14266 enableval=$enable_blackfin_asm; if test "$enableval" = yes; then
14267
14268 printf "%s\n" "#define BFIN_ASM /**/" >>confdefs.h
14269
14270 fi
14271 fi
14272
14273 WINMM_LIBS=""
14274 case $host_os in
14275 uclinux) LDFLAGS="-Wl,-elf2flt=-s100000 $LDFLAGS";;
14276 *mingw*) WINMM_LIBS="-lwinmm";;
14277 esac
14278
14279
14280 # Check whether --enable-fixed-point-debug was given.
14281 if test ${enable_fixed_point_debug+y}
14282 then :
14283 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
14284
14285 printf "%s\n" "#define FIXED_DEBUG /**/" >>confdefs.h
14286
14287 fi
14288 fi
14289
14290
14291 # Check whether --enable-ti-c55x was given.
14292 if test ${enable_ti_c55x+y}
14293 then :
14294 enableval=$enable_ti_c55x; if test "$enableval" = yes; then
14295 has_char16=yes;
14296
14297 printf "%s\n" "#define TI_C55X /**/" >>confdefs.h
14298
14299 fi
14300 fi
14301
14302
14303 # Check whether --enable-vorbis-psy was given.
14304 if test ${enable_vorbis_psy+y}
14305 then :
14306 enableval=$enable_vorbis_psy; if test "$enableval" = yes; then
14307 vorbis_psy=yes;
14308
14309 printf "%s\n" "#define VORBIS_PSYCHO /**/" >>confdefs.h
14310
14311 fi
14312 fi
14313
14314
14315
14316 # Check whether --with-fft was given.
14317 if test ${with_fft+y}
14318 then :
14319 withval=$with_fft; FFT=$withval
14320
14321 fi
14322
14323
14324 FFT_PKGCONFIG=
14325 case $FFT in #(
14326 kiss) :
14327
14328
14329 printf "%s\n" "#define USE_KISS_FFT /**/" >>confdefs.h
14330
14331 ;; #(
14332 smallft) :
14333
14334
14335 printf "%s\n" "#define USE_SMALLFT /**/" >>confdefs.h
14336
14337 ;; #(
14338 gpl-fftw3) :
14339
14340
14341 printf "%s\n" "#define USE_GPL_FFTW3 /**/" >>confdefs.h
14342
14343
14344 pkg_failed=no
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5
14346 printf %s "checking for FFT... " >&6; }
14347
14348 if test -n "$FFT_CFLAGS"; then
14349 pkg_cv_FFT_CFLAGS="$FFT_CFLAGS"
14350 elif test -n "$PKG_CONFIG"; then
14351 if test -n "$PKG_CONFIG" && \
14352 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f\""; } >&5
14353 ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
14354 ac_status=$?
14355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356 test $ac_status = 0; }; then
14357 pkg_cv_FFT_CFLAGS=`$PKG_CONFIG --cflags "fftw3f" 2>/dev/null`
14358 test "x$?" != "x0" && pkg_failed=yes
14359 else
14360 pkg_failed=yes
14361 fi
14362 else
14363 pkg_failed=untried
14364 fi
14365 if test -n "$FFT_LIBS"; then
14366 pkg_cv_FFT_LIBS="$FFT_LIBS"
14367 elif test -n "$PKG_CONFIG"; then
14368 if test -n "$PKG_CONFIG" && \
14369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f\""; } >&5
14370 ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
14371 ac_status=$?
14372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14373 test $ac_status = 0; }; then
14374 pkg_cv_FFT_LIBS=`$PKG_CONFIG --libs "fftw3f" 2>/dev/null`
14375 test "x$?" != "x0" && pkg_failed=yes
14376 else
14377 pkg_failed=yes
14378 fi
14379 else
14380 pkg_failed=untried
14381 fi
14382
14383
14384
14385 if test $pkg_failed = yes; then
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387 printf "%s\n" "no" >&6; }
14388
14389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14390 _pkg_short_errors_supported=yes
14391 else
14392 _pkg_short_errors_supported=no
14393 fi
14394 if test $_pkg_short_errors_supported = yes; then
14395 FFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3f" 2>&1`
14396 else
14397 FFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3f" 2>&1`
14398 fi
14399 # Put the nasty error message in config.log where it belongs
14400 echo "$FFT_PKG_ERRORS" >&5
14401
14402 as_fn_error $? "Package requirements (fftw3f) were not met:
14403
14404 $FFT_PKG_ERRORS
14405
14406 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14407 installed software in a non-standard prefix.
14408
14409 Alternatively, you may set the environment variables FFT_CFLAGS
14410 and FFT_LIBS to avoid the need to call pkg-config.
14411 See the pkg-config man page for more details." "$LINENO" 5
14412 elif test $pkg_failed = untried; then
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 printf "%s\n" "no" >&6; }
14415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14417 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14418 is in your PATH or set the PKG_CONFIG environment variable to the full
14419 path to pkg-config.
14420
14421 Alternatively, you may set the environment variables FFT_CFLAGS
14422 and FFT_LIBS to avoid the need to call pkg-config.
14423 See the pkg-config man page for more details.
14424
14425 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14426 See \`config.log' for more details" "$LINENO" 5; }
14427 else
14428 FFT_CFLAGS=$pkg_cv_FFT_CFLAGS
14429 FFT_LIBS=$pkg_cv_FFT_LIBS
14430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 printf "%s\n" "yes" >&6; }
14432
14433 fi
14434 ;; #(
14435 proprietary-intel-mkl) :
14436
14437
14438 printf "%s\n" "#define USE_INTEL_MKL /**/" >>confdefs.h
14439
14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valid MKL" >&5
14441 printf %s "checking for valid MKL... " >&6; }
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444
14445
14446 #include <mkl.h>
14447 void func() {
14448 DFTI_DESCRIPTOR_HANDLE h;
14449 MKL_LONG result=DftiCreateDescriptor(&h, DFTI_SINGLE, DFTI_REAL, 0);
14450 }
14451 int
14452 main (void)
14453 {
14454
14455 ;
14456 return 0;
14457 }
14458 _ACEOF
14459 if ac_fn_c_try_link "$LINENO"
14460 then :
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14462 printf "%s\n" "yes" >&6; }
14463 else $as_nop
14464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14465 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14466 as_fn_error $? "Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.
14467 See \`config.log' for more details" "$LINENO" 5; }
14468
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext
14472 ;; #(
14473 *) :
14474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14476 as_fn_error $? "Unknown FFT $FFT specified for --with-fft
14477 See \`config.log' for more details" "$LINENO" 5; }
14478 ;;
14479 esac
14480 if test "$FFT" = "kiss"; then
14481 BUILD_KISS_FFT_TRUE=
14482 BUILD_KISS_FFT_FALSE='#'
14483 else
14484 BUILD_KISS_FFT_TRUE='#'
14485 BUILD_KISS_FFT_FALSE=
14486 fi
14487
14488 if test "$FFT" = "smallft"; then
14489 BUILD_SMALLFT_TRUE=
14490 BUILD_SMALLFT_FALSE='#'
14491 else
14492 BUILD_SMALLFT_TRUE='#'
14493 BUILD_SMALLFT_FALSE=
14494 fi
14495
14496
14497
14498 if test "x$vorbis_psy" = "xyes"; then
14499 BUILD_VORBIS_PSY_TRUE=
14500 BUILD_VORBIS_PSY_FALSE='#'
14501 else
14502 BUILD_VORBIS_PSY_TRUE='#'
14503 BUILD_VORBIS_PSY_FALSE=
14504 fi
14505
14506
14507
14508 pkg_failed=no
14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SPEEXDSP" >&5
14510 printf %s "checking for SPEEXDSP... " >&6; }
14511
14512 if test -n "$SPEEXDSP_CFLAGS"; then
14513 pkg_cv_SPEEXDSP_CFLAGS="$SPEEXDSP_CFLAGS"
14514 elif test -n "$PKG_CONFIG"; then
14515 if test -n "$PKG_CONFIG" && \
14516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp\""; } >&5
14517 ($PKG_CONFIG --exists --print-errors "speexdsp") 2>&5
14518 ac_status=$?
14519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14520 test $ac_status = 0; }; then
14521 pkg_cv_SPEEXDSP_CFLAGS=`$PKG_CONFIG --cflags "speexdsp" 2>/dev/null`
14522 test "x$?" != "x0" && pkg_failed=yes
14523 else
14524 pkg_failed=yes
14525 fi
14526 else
14527 pkg_failed=untried
14528 fi
14529 if test -n "$SPEEXDSP_LIBS"; then
14530 pkg_cv_SPEEXDSP_LIBS="$SPEEXDSP_LIBS"
14531 elif test -n "$PKG_CONFIG"; then
14532 if test -n "$PKG_CONFIG" && \
14533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp\""; } >&5
14534 ($PKG_CONFIG --exists --print-errors "speexdsp") 2>&5
14535 ac_status=$?
14536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14537 test $ac_status = 0; }; then
14538 pkg_cv_SPEEXDSP_LIBS=`$PKG_CONFIG --libs "speexdsp" 2>/dev/null`
14539 test "x$?" != "x0" && pkg_failed=yes
14540 else
14541 pkg_failed=yes
14542 fi
14543 else
14544 pkg_failed=untried
14545 fi
14546
14547
14548
14549 if test $pkg_failed = yes; then
14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 printf "%s\n" "no" >&6; }
14552
14553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14554 _pkg_short_errors_supported=yes
14555 else
14556 _pkg_short_errors_supported=no
14557 fi
14558 if test $_pkg_short_errors_supported = yes; then
14559 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "speexdsp" 2>&1`
14560 else
14561 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "speexdsp" 2>&1`
14562 fi
14563 # Put the nasty error message in config.log where it belongs
14564 echo "$SPEEXDSP_PKG_ERRORS" >&5
14565
14566 speexdsp_failed=yes
14567 elif test $pkg_failed = untried; then
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 printf "%s\n" "no" >&6; }
14570 speexdsp_failed=yes
14571 else
14572 SPEEXDSP_CFLAGS=$pkg_cv_SPEEXDSP_CFLAGS
14573 SPEEXDSP_LIBS=$pkg_cv_SPEEXDSP_LIBS
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14575 printf "%s\n" "yes" >&6; }
14576
14577 printf "%s\n" "#define USE_SPEEXDSP /**/" >>confdefs.h
14578
14579 fi
14580
14581
14582 # The cast to long int works around a bug in the HP C Compiler
14583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14585 # This bug is HP SR number 8606223364.
14586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
14587 printf %s "checking size of int16_t... " >&6; }
14588 if test ${ac_cv_sizeof_int16_t+y}
14589 then :
14590 printf %s "(cached) " >&6
14591 else $as_nop
14592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"
14593 then :
14594
14595 else $as_nop
14596 if test "$ac_cv_type_int16_t" = yes; then
14597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14598 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14599 as_fn_error 77 "cannot compute sizeof (int16_t)
14600 See \`config.log' for more details" "$LINENO" 5; }
14601 else
14602 ac_cv_sizeof_int16_t=0
14603 fi
14604 fi
14605
14606 fi
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
14608 printf "%s\n" "$ac_cv_sizeof_int16_t" >&6; }
14609
14610
14611
14612 printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h
14613
14614
14615 # The cast to long int works around a bug in the HP C Compiler
14616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14618 # This bug is HP SR number 8606223364.
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
14620 printf %s "checking size of uint16_t... " >&6; }
14621 if test ${ac_cv_sizeof_uint16_t+y}
14622 then :
14623 printf %s "(cached) " >&6
14624 else $as_nop
14625 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"
14626 then :
14627
14628 else $as_nop
14629 if test "$ac_cv_type_uint16_t" = yes; then
14630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14632 as_fn_error 77 "cannot compute sizeof (uint16_t)
14633 See \`config.log' for more details" "$LINENO" 5; }
14634 else
14635 ac_cv_sizeof_uint16_t=0
14636 fi
14637 fi
14638
14639 fi
14640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
14641 printf "%s\n" "$ac_cv_sizeof_uint16_t" >&6; }
14642
14643
14644
14645 printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h
14646
14647
14648 # The cast to long int works around a bug in the HP C Compiler
14649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14651 # This bug is HP SR number 8606223364.
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
14653 printf %s "checking size of u_int16_t... " >&6; }
14654 if test ${ac_cv_sizeof_u_int16_t+y}
14655 then :
14656 printf %s "(cached) " >&6
14657 else $as_nop
14658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"
14659 then :
14660
14661 else $as_nop
14662 if test "$ac_cv_type_u_int16_t" = yes; then
14663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14665 as_fn_error 77 "cannot compute sizeof (u_int16_t)
14666 See \`config.log' for more details" "$LINENO" 5; }
14667 else
14668 ac_cv_sizeof_u_int16_t=0
14669 fi
14670 fi
14671
14672 fi
14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
14674 printf "%s\n" "$ac_cv_sizeof_u_int16_t" >&6; }
14675
14676
14677
14678 printf "%s\n" "#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t" >>confdefs.h
14679
14680
14681 # The cast to long int works around a bug in the HP C Compiler
14682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14684 # This bug is HP SR number 8606223364.
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
14686 printf %s "checking size of int32_t... " >&6; }
14687 if test ${ac_cv_sizeof_int32_t+y}
14688 then :
14689 printf %s "(cached) " >&6
14690 else $as_nop
14691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"
14692 then :
14693
14694 else $as_nop
14695 if test "$ac_cv_type_int32_t" = yes; then
14696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14697 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14698 as_fn_error 77 "cannot compute sizeof (int32_t)
14699 See \`config.log' for more details" "$LINENO" 5; }
14700 else
14701 ac_cv_sizeof_int32_t=0
14702 fi
14703 fi
14704
14705 fi
14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
14707 printf "%s\n" "$ac_cv_sizeof_int32_t" >&6; }
14708
14709
14710
14711 printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h
14712
14713
14714 # The cast to long int works around a bug in the HP C Compiler
14715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14717 # This bug is HP SR number 8606223364.
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
14719 printf %s "checking size of uint32_t... " >&6; }
14720 if test ${ac_cv_sizeof_uint32_t+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else $as_nop
14724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"
14725 then :
14726
14727 else $as_nop
14728 if test "$ac_cv_type_uint32_t" = yes; then
14729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14730 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14731 as_fn_error 77 "cannot compute sizeof (uint32_t)
14732 See \`config.log' for more details" "$LINENO" 5; }
14733 else
14734 ac_cv_sizeof_uint32_t=0
14735 fi
14736 fi
14737
14738 fi
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
14740 printf "%s\n" "$ac_cv_sizeof_uint32_t" >&6; }
14741
14742
14743
14744 printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h
14745
14746
14747 # The cast to long int works around a bug in the HP C Compiler
14748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14750 # This bug is HP SR number 8606223364.
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
14752 printf %s "checking size of u_int32_t... " >&6; }
14753 if test ${ac_cv_sizeof_u_int32_t+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else $as_nop
14757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"
14758 then :
14759
14760 else $as_nop
14761 if test "$ac_cv_type_u_int32_t" = yes; then
14762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14763 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14764 as_fn_error 77 "cannot compute sizeof (u_int32_t)
14765 See \`config.log' for more details" "$LINENO" 5; }
14766 else
14767 ac_cv_sizeof_u_int32_t=0
14768 fi
14769 fi
14770
14771 fi
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
14773 printf "%s\n" "$ac_cv_sizeof_u_int32_t" >&6; }
14774
14775
14776
14777 printf "%s\n" "#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t" >>confdefs.h
14778
14779
14780 # The cast to long int works around a bug in the HP C Compiler
14781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14783 # This bug is HP SR number 8606223364.
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14785 printf %s "checking size of short... " >&6; }
14786 if test ${ac_cv_sizeof_short+y}
14787 then :
14788 printf %s "(cached) " >&6
14789 else $as_nop
14790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
14791 then :
14792
14793 else $as_nop
14794 if test "$ac_cv_type_short" = yes; then
14795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14796 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14797 as_fn_error 77 "cannot compute sizeof (short)
14798 See \`config.log' for more details" "$LINENO" 5; }
14799 else
14800 ac_cv_sizeof_short=0
14801 fi
14802 fi
14803
14804 fi
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14806 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
14807
14808
14809
14810 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
14811
14812
14813 # The cast to long int works around a bug in the HP C Compiler
14814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14816 # This bug is HP SR number 8606223364.
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14818 printf %s "checking size of int... " >&6; }
14819 if test ${ac_cv_sizeof_int+y}
14820 then :
14821 printf %s "(cached) " >&6
14822 else $as_nop
14823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
14824 then :
14825
14826 else $as_nop
14827 if test "$ac_cv_type_int" = yes; then
14828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14830 as_fn_error 77 "cannot compute sizeof (int)
14831 See \`config.log' for more details" "$LINENO" 5; }
14832 else
14833 ac_cv_sizeof_int=0
14834 fi
14835 fi
14836
14837 fi
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14839 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
14840
14841
14842
14843 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
14844
14845
14846 # The cast to long int works around a bug in the HP C Compiler
14847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14849 # This bug is HP SR number 8606223364.
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14851 printf %s "checking size of long... " >&6; }
14852 if test ${ac_cv_sizeof_long+y}
14853 then :
14854 printf %s "(cached) " >&6
14855 else $as_nop
14856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
14857 then :
14858
14859 else $as_nop
14860 if test "$ac_cv_type_long" = yes; then
14861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14863 as_fn_error 77 "cannot compute sizeof (long)
14864 See \`config.log' for more details" "$LINENO" 5; }
14865 else
14866 ac_cv_sizeof_long=0
14867 fi
14868 fi
14869
14870 fi
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14872 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
14873
14874
14875
14876 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
14877
14878
14879
14880 if test "$has_char16" = "yes"
14881 then :
14882
14883 SIZEOF16=1
14884 SIZEOF32=2
14885
14886 else $as_nop
14887
14888 SIZEOF16=2
14889 SIZEOF32=4
14890
14891 fi
14892
14893 case $SIZEOF16 in
14894 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
14895 $ac_cv_sizeof_short) SIZE16="short";;
14896 $ac_cv_sizeof_int) SIZE16="int";;
14897 esac
14898
14899 case $SIZEOF16 in
14900 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
14901 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
14902 $ac_cv_sizeof_short) USIZE16="unsigned short";;
14903 $ac_cv_sizeof_int) USIZE16="unsigned int";;
14904 esac
14905
14906 case $SIZEOF32 in
14907 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
14908 $ac_cv_sizeof_int) SIZE32="int";;
14909 $ac_cv_sizeof_long) SIZE32="long";;
14910 $ac_cv_sizeof_short) SIZE32="short";;
14911 esac
14912
14913 case $SIZEOF32 in
14914 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
14915 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
14916 $ac_cv_sizeof_short) USIZE32="unsigned short";;
14917 $ac_cv_sizeof_int) USIZE32="unsigned int";;
14918 $ac_cv_sizeof_long) USIZE32="unsigned long";;
14919 esac
14920
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wall" >&5
14922 printf %s "checking if $CC accepts -Wall... " >&6; }
14923 ac_add_cflags__old_cflags="$CFLAGS"
14924 CFLAGS="-Wall"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927
14928 #include <stdio.h>
14929
14930 int
14931 main (void)
14932 {
14933 puts("Hello, World!"); return 0;
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_link "$LINENO"
14939 then :
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14941 printf "%s\n" "yes" >&6; }
14942 CFLAGS="$ac_add_cflags__old_cflags -Wall"
14943 else $as_nop
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945 printf "%s\n" "no" >&6; }
14946 CFLAGS="$ac_add_cflags__old_cflags"
14947
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14950 conftest$ac_exeext conftest.$ac_ext
14951
14952
14953 if test -z "$SIZE16"
14954 then :
14955 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
14956 fi
14957 if test -z "$SIZE32"
14958 then :
14959 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
14960 fi
14961 if test -z "$USIZE16"
14962 then :
14963 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
14964 fi
14965 if test -z "$USIZE32"
14966 then :
14967 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
14968 fi
14969
14970
14971
14972
14973
14974
14975 if test "$ac_cv_header_stdint_h" = "yes"
14976 then :
14977 INCLUDE_STDINT="#include <stdint.h>"
14978 elif test "$ac_cv_header_inttypes_h" = "yes"
14979 then :
14980 INCLUDE_STDINT="#include <inttypes.h>"
14981 elif test "$ac_cv_header_sys_types_h" = "yes"
14982 then :
14983 INCLUDE_STDINT="#include <sys/types.h>"
14984 fi
14985
14986
14987
14988
14989 ac_config_files="$ac_config_files Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec include/Makefile include/speex/Makefile speex.pc win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile win32/speexdec/Makefile symbian/Makefile win32/VS2003/Makefile win32/VS2003/tests/Makefile win32/VS2003/libspeex/Makefile win32/VS2003/speexdec/Makefile win32/VS2003/speexenc/Makefile win32/VS2005/Makefile win32/VS2005/libspeex/Makefile win32/VS2005/speexdec/Makefile win32/VS2005/speexenc/Makefile win32/VS2005/tests/Makefile win32/VS2008/Makefile win32/VS2008/speexdec/Makefile win32/VS2008/tests/Makefile win32/VS2008/libspeex/Makefile win32/VS2008/speexenc/Makefile include/speex/speex_config_types.h ti/Makefile ti/speex_C54_test/Makefile ti/speex_C55_test/Makefile ti/speex_C64_test/Makefile"
14990
14991
14992 ac_config_headers="$ac_config_headers config.h"
14993
14994
14995 cat >confcache <<\_ACEOF
14996 # This file is a shell script that caches the results of configure
14997 # tests run on this system so they can be shared between configure
14998 # scripts and configure runs, see configure's option --config-cache.
14999 # It is not useful on other systems. If it contains results you don't
15000 # want to keep, you may remove or edit it.
15001 #
15002 # config.status only pays attention to the cache file if you give it
15003 # the --recheck option to rerun configure.
15004 #
15005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15007 # following values.
15008
15009 _ACEOF
15010
15011 # The following way of writing the cache mishandles newlines in values,
15012 # but we know of no workaround that is simple, portable, and efficient.
15013 # So, we kill variables containing newlines.
15014 # Ultrix sh set writes to stderr and can't be redirected directly,
15015 # and sets the high bit in the cache file unless we assign to the vars.
15016 (
15017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15018 eval ac_val=\$$ac_var
15019 case $ac_val in #(
15020 *${as_nl}*)
15021 case $ac_var in #(
15022 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15023 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15024 esac
15025 case $ac_var in #(
15026 _ | IFS | as_nl) ;; #(
15027 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15028 *) { eval $ac_var=; unset $ac_var;} ;;
15029 esac ;;
15030 esac
15031 done
15032
15033 (set) 2>&1 |
15034 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15035 *${as_nl}ac_space=\ *)
15036 # `set' does not quote correctly, so add quotes: double-quote
15037 # substitution turns \\\\ into \\, and sed turns \\ into \.
15038 sed -n \
15039 "s/'/'\\\\''/g;
15040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15041 ;; #(
15042 *)
15043 # `set' quotes correctly as required by POSIX, so do not add quotes.
15044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15045 ;;
15046 esac |
15047 sort
15048 ) |
15049 sed '
15050 /^ac_cv_env_/b end
15051 t clear
15052 :clear
15053 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15054 t end
15055 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15056 :end' >>confcache
15057 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15058 if test -w "$cache_file"; then
15059 if test "x$cache_file" != "x/dev/null"; then
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15061 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15062 if test ! -f "$cache_file" || test -h "$cache_file"; then
15063 cat confcache >"$cache_file"
15064 else
15065 case $cache_file in #(
15066 */* | ?:*)
15067 mv -f confcache "$cache_file"$$ &&
15068 mv -f "$cache_file"$$ "$cache_file" ;; #(
15069 *)
15070 mv -f confcache "$cache_file" ;;
15071 esac
15072 fi
15073 fi
15074 else
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15076 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15077 fi
15078 fi
15079 rm -f confcache
15080
15081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15082 # Let make expand exec_prefix.
15083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15084
15085 DEFS=-DHAVE_CONFIG_H
15086
15087 ac_libobjs=
15088 ac_ltlibobjs=
15089 U=
15090 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15091 # 1. Remove the extension, and $U if already installed.
15092 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15093 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15094 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15095 # will be set to the directory where LIBOBJS objects are built.
15096 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15097 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15098 done
15099 LIBOBJS=$ac_libobjs
15100
15101 LTLIBOBJS=$ac_ltlibobjs
15102
15103
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15105 printf %s "checking that generated files are newer than configure... " >&6; }
15106 if test -n "$am_sleep_pid"; then
15107 # Hide warnings about reused PIDs.
15108 wait $am_sleep_pid 2>/dev/null
15109 fi
15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15111 printf "%s\n" "done" >&6; }
15112 if test -n "$EXEEXT"; then
15113 am__EXEEXT_TRUE=
15114 am__EXEEXT_FALSE='#'
15115 else
15116 am__EXEEXT_TRUE='#'
15117 am__EXEEXT_FALSE=
15118 fi
15119
15120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15121 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 fi
15124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15125 as_fn_error $? "conditional \"AMDEP\" was never defined.
15126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 fi
15128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15129 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131 fi
15132
15133 if test -z "${BUILD_BINARIES_TRUE}" && test -z "${BUILD_BINARIES_FALSE}"; then
15134 as_fn_error $? "conditional \"BUILD_BINARIES\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137 if test -z "${BUILD_BINARIES_TRUE}" && test -z "${BUILD_BINARIES_FALSE}"; then
15138 as_fn_error $? "conditional \"BUILD_BINARIES\" was never defined.
15139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140 fi
15141 if test -z "${BUILD_BINARIES_TRUE}" && test -z "${BUILD_BINARIES_FALSE}"; then
15142 as_fn_error $? "conditional \"BUILD_BINARIES\" was never defined.
15143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144 fi
15145 if test -z "${BUILD_BINARIES_TRUE}" && test -z "${BUILD_BINARIES_FALSE}"; then
15146 as_fn_error $? "conditional \"BUILD_BINARIES\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 if test -z "${BUILD_KISS_FFT_TRUE}" && test -z "${BUILD_KISS_FFT_FALSE}"; then
15150 as_fn_error $? "conditional \"BUILD_KISS_FFT\" was never defined.
15151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 fi
15153 if test -z "${BUILD_SMALLFT_TRUE}" && test -z "${BUILD_SMALLFT_FALSE}"; then
15154 as_fn_error $? "conditional \"BUILD_SMALLFT\" was never defined.
15155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156 fi
15157 if test -z "${BUILD_VORBIS_PSY_TRUE}" && test -z "${BUILD_VORBIS_PSY_FALSE}"; then
15158 as_fn_error $? "conditional \"BUILD_VORBIS_PSY\" was never defined.
15159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160 fi
15161
15162 : "${CONFIG_STATUS=./config.status}"
15163 ac_write_fail=0
15164 ac_clean_files_save=$ac_clean_files
15165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15167 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15168 as_write_fail=0
15169 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15170 #! $SHELL
15171 # Generated by $as_me.
15172 # Run this file to recreate the current configuration.
15173 # Compiler output produced by configure, useful for debugging
15174 # configure, is in config.log if it exists.
15175
15176 debug=false
15177 ac_cs_recheck=false
15178 ac_cs_silent=false
15179
15180 SHELL=\${CONFIG_SHELL-$SHELL}
15181 export SHELL
15182 _ASEOF
15183 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15184 ## -------------------- ##
15185 ## M4sh Initialization. ##
15186 ## -------------------- ##
15187
15188 # Be more Bourne compatible
15189 DUALCASE=1; export DUALCASE # for MKS sh
15190 as_nop=:
15191 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15192 then :
15193 emulate sh
15194 NULLCMD=:
15195 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15196 # is contrary to our usage. Disable this feature.
15197 alias -g '${1+"$@"}'='"$@"'
15198 setopt NO_GLOB_SUBST
15199 else $as_nop
15200 case `(set -o) 2>/dev/null` in #(
15201 *posix*) :
15202 set -o posix ;; #(
15203 *) :
15204 ;;
15205 esac
15206 fi
15207
15208
15209
15210 # Reset variables that may have inherited troublesome values from
15211 # the environment.
15212
15213 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15214 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15215 # side effect of setting IFS to empty, thus disabling word splitting.)
15216 # Quoting is to prevent editors from complaining about space-tab.
15217 as_nl='
15218 '
15219 export as_nl
15220 IFS=" "" $as_nl"
15221
15222 PS1='$ '
15223 PS2='> '
15224 PS4='+ '
15225
15226 # Ensure predictable behavior from utilities with locale-dependent output.
15227 LC_ALL=C
15228 export LC_ALL
15229 LANGUAGE=C
15230 export LANGUAGE
15231
15232 # We cannot yet rely on "unset" to work, but we need these variables
15233 # to be unset--not just set to an empty or harmless value--now, to
15234 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15235 # also avoids known problems related to "unset" and subshell syntax
15236 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15237 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15238 do eval test \${$as_var+y} \
15239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15240 done
15241
15242 # Ensure that fds 0, 1, and 2 are open.
15243 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15244 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15245 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15246
15247 # The user is always right.
15248 if ${PATH_SEPARATOR+false} :; then
15249 PATH_SEPARATOR=:
15250 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15251 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15252 PATH_SEPARATOR=';'
15253 }
15254 fi
15255
15256
15257 # Find who we are. Look in the path if we contain no directory separator.
15258 as_myself=
15259 case $0 in #((
15260 *[\\/]* ) as_myself=$0 ;;
15261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262 for as_dir in $PATH
15263 do
15264 IFS=$as_save_IFS
15265 case $as_dir in #(((
15266 '') as_dir=./ ;;
15267 */) ;;
15268 *) as_dir=$as_dir/ ;;
15269 esac
15270 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15271 done
15272 IFS=$as_save_IFS
15273
15274 ;;
15275 esac
15276 # We did not find ourselves, most probably we were run as `sh COMMAND'
15277 # in which case we are not to be found in the path.
15278 if test "x$as_myself" = x; then
15279 as_myself=$0
15280 fi
15281 if test ! -f "$as_myself"; then
15282 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15283 exit 1
15284 fi
15285
15286
15287
15288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15289 # ----------------------------------------
15290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15292 # script with STATUS, using 1 if that was 0.
15293 as_fn_error ()
15294 {
15295 as_status=$1; test $as_status -eq 0 && as_status=1
15296 if test "$4"; then
15297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15299 fi
15300 printf "%s\n" "$as_me: error: $2" >&2
15301 as_fn_exit $as_status
15302 } # as_fn_error
15303
15304
15305
15306 # as_fn_set_status STATUS
15307 # -----------------------
15308 # Set $? to STATUS, without forking.
15309 as_fn_set_status ()
15310 {
15311 return $1
15312 } # as_fn_set_status
15313
15314 # as_fn_exit STATUS
15315 # -----------------
15316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15317 as_fn_exit ()
15318 {
15319 set +e
15320 as_fn_set_status $1
15321 exit $1
15322 } # as_fn_exit
15323
15324 # as_fn_unset VAR
15325 # ---------------
15326 # Portably unset VAR.
15327 as_fn_unset ()
15328 {
15329 { eval $1=; unset $1;}
15330 }
15331 as_unset=as_fn_unset
15332
15333 # as_fn_append VAR VALUE
15334 # ----------------------
15335 # Append the text in VALUE to the end of the definition contained in VAR. Take
15336 # advantage of any shell optimizations that allow amortized linear growth over
15337 # repeated appends, instead of the typical quadratic growth present in naive
15338 # implementations.
15339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15340 then :
15341 eval 'as_fn_append ()
15342 {
15343 eval $1+=\$2
15344 }'
15345 else $as_nop
15346 as_fn_append ()
15347 {
15348 eval $1=\$$1\$2
15349 }
15350 fi # as_fn_append
15351
15352 # as_fn_arith ARG...
15353 # ------------------
15354 # Perform arithmetic evaluation on the ARGs, and store the result in the
15355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15356 # must be portable across $(()) and expr.
15357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15358 then :
15359 eval 'as_fn_arith ()
15360 {
15361 as_val=$(( $* ))
15362 }'
15363 else $as_nop
15364 as_fn_arith ()
15365 {
15366 as_val=`expr "$@" || test $? -eq 1`
15367 }
15368 fi # as_fn_arith
15369
15370
15371 if expr a : '\(a\)' >/dev/null 2>&1 &&
15372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15373 as_expr=expr
15374 else
15375 as_expr=false
15376 fi
15377
15378 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15379 as_basename=basename
15380 else
15381 as_basename=false
15382 fi
15383
15384 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15385 as_dirname=dirname
15386 else
15387 as_dirname=false
15388 fi
15389
15390 as_me=`$as_basename -- "$0" ||
15391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15392 X"$0" : 'X\(//\)$' \| \
15393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15394 printf "%s\n" X/"$0" |
15395 sed '/^.*\/\([^/][^/]*\)\/*$/{
15396 s//\1/
15397 q
15398 }
15399 /^X\/\(\/\/\)$/{
15400 s//\1/
15401 q
15402 }
15403 /^X\/\(\/\).*/{
15404 s//\1/
15405 q
15406 }
15407 s/.*/./; q'`
15408
15409 # Avoid depending upon Character Ranges.
15410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15413 as_cr_digits='0123456789'
15414 as_cr_alnum=$as_cr_Letters$as_cr_digits
15415
15416
15417 # Determine whether it's possible to make 'echo' print without a newline.
15418 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15419 # for compatibility with existing Makefiles.
15420 ECHO_C= ECHO_N= ECHO_T=
15421 case `echo -n x` in #(((((
15422 -n*)
15423 case `echo 'xy\c'` in
15424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15425 xy) ECHO_C='\c';;
15426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15427 ECHO_T=' ';;
15428 esac;;
15429 *)
15430 ECHO_N='-n';;
15431 esac
15432
15433 # For backward compatibility with old third-party macros, we provide
15434 # the shell variables $as_echo and $as_echo_n. New code should use
15435 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15436 as_echo='printf %s\n'
15437 as_echo_n='printf %s'
15438
15439 rm -f conf$$ conf$$.exe conf$$.file
15440 if test -d conf$$.dir; then
15441 rm -f conf$$.dir/conf$$.file
15442 else
15443 rm -f conf$$.dir
15444 mkdir conf$$.dir 2>/dev/null
15445 fi
15446 if (echo >conf$$.file) 2>/dev/null; then
15447 if ln -s conf$$.file conf$$ 2>/dev/null; then
15448 as_ln_s='ln -s'
15449 # ... but there are two gotchas:
15450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15452 # In both cases, we have to default to `cp -pR'.
15453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15454 as_ln_s='cp -pR'
15455 elif ln conf$$.file conf$$ 2>/dev/null; then
15456 as_ln_s=ln
15457 else
15458 as_ln_s='cp -pR'
15459 fi
15460 else
15461 as_ln_s='cp -pR'
15462 fi
15463 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15464 rmdir conf$$.dir 2>/dev/null
15465
15466
15467 # as_fn_mkdir_p
15468 # -------------
15469 # Create "$as_dir" as a directory, including parents if necessary.
15470 as_fn_mkdir_p ()
15471 {
15472
15473 case $as_dir in #(
15474 -*) as_dir=./$as_dir;;
15475 esac
15476 test -d "$as_dir" || eval $as_mkdir_p || {
15477 as_dirs=
15478 while :; do
15479 case $as_dir in #(
15480 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15481 *) as_qdir=$as_dir;;
15482 esac
15483 as_dirs="'$as_qdir' $as_dirs"
15484 as_dir=`$as_dirname -- "$as_dir" ||
15485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15486 X"$as_dir" : 'X\(//\)[^/]' \| \
15487 X"$as_dir" : 'X\(//\)$' \| \
15488 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15489 printf "%s\n" X"$as_dir" |
15490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491 s//\1/
15492 q
15493 }
15494 /^X\(\/\/\)[^/].*/{
15495 s//\1/
15496 q
15497 }
15498 /^X\(\/\/\)$/{
15499 s//\1/
15500 q
15501 }
15502 /^X\(\/\).*/{
15503 s//\1/
15504 q
15505 }
15506 s/.*/./; q'`
15507 test -d "$as_dir" && break
15508 done
15509 test -z "$as_dirs" || eval "mkdir $as_dirs"
15510 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15511
15512
15513 } # as_fn_mkdir_p
15514 if mkdir -p . 2>/dev/null; then
15515 as_mkdir_p='mkdir -p "$as_dir"'
15516 else
15517 test -d ./-p && rmdir ./-p
15518 as_mkdir_p=false
15519 fi
15520
15521
15522 # as_fn_executable_p FILE
15523 # -----------------------
15524 # Test if FILE is an executable regular file.
15525 as_fn_executable_p ()
15526 {
15527 test -f "$1" && test -x "$1"
15528 } # as_fn_executable_p
15529 as_test_x='test -x'
15530 as_executable_p=as_fn_executable_p
15531
15532 # Sed expression to map a string onto a valid CPP name.
15533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15534
15535 # Sed expression to map a string onto a valid variable name.
15536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15537
15538
15539 exec 6>&1
15540 ## ----------------------------------- ##
15541 ## Main body of $CONFIG_STATUS script. ##
15542 ## ----------------------------------- ##
15543 _ASEOF
15544 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15545
15546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547 # Save the log message, to keep $0 and so on meaningful, and to
15548 # report actual input values of CONFIG_FILES etc. instead of their
15549 # values after options handling.
15550 ac_log="
15551 This file was extended by speex $as_me 1.2.1, which was
15552 generated by GNU Autoconf 2.71. Invocation command line was
15553
15554 CONFIG_FILES = $CONFIG_FILES
15555 CONFIG_HEADERS = $CONFIG_HEADERS
15556 CONFIG_LINKS = $CONFIG_LINKS
15557 CONFIG_COMMANDS = $CONFIG_COMMANDS
15558 $ $0 $@
15559
15560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15561 "
15562
15563 _ACEOF
15564
15565 case $ac_config_files in *"
15566 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15567 esac
15568
15569 case $ac_config_headers in *"
15570 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15571 esac
15572
15573
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 # Files that config.status was made for.
15576 config_files="$ac_config_files"
15577 config_headers="$ac_config_headers"
15578 config_commands="$ac_config_commands"
15579
15580 _ACEOF
15581
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583 ac_cs_usage="\
15584 \`$as_me' instantiates files and other configuration actions
15585 from templates according to the current configuration. Unless the files
15586 and actions are specified as TAGs, all are instantiated by default.
15587
15588 Usage: $0 [OPTION]... [TAG]...
15589
15590 -h, --help print this help, then exit
15591 -V, --version print version number and configuration settings, then exit
15592 --config print configuration, then exit
15593 -q, --quiet, --silent
15594 do not print progress messages
15595 -d, --debug don't remove temporary files
15596 --recheck update $as_me by reconfiguring in the same conditions
15597 --file=FILE[:TEMPLATE]
15598 instantiate the configuration file FILE
15599 --header=FILE[:TEMPLATE]
15600 instantiate the configuration header FILE
15601
15602 Configuration files:
15603 $config_files
15604
15605 Configuration headers:
15606 $config_headers
15607
15608 Configuration commands:
15609 $config_commands
15610
15611 Report bugs to <[email protected]>."
15612
15613 _ACEOF
15614 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15615 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_cs_config='$ac_cs_config_escaped'
15618 ac_cs_version="\\
15619 speex config.status 1.2.1
15620 configured by $0, generated by GNU Autoconf 2.71,
15621 with options \\"\$ac_cs_config\\"
15622
15623 Copyright (C) 2021 Free Software Foundation, Inc.
15624 This config.status script is free software; the Free Software Foundation
15625 gives unlimited permission to copy, distribute and modify it."
15626
15627 ac_pwd='$ac_pwd'
15628 srcdir='$srcdir'
15629 INSTALL='$INSTALL'
15630 MKDIR_P='$MKDIR_P'
15631 AWK='$AWK'
15632 test -n "\$AWK" || AWK=awk
15633 _ACEOF
15634
15635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636 # The default lists apply if the user does not specify any file.
15637 ac_need_defaults=:
15638 while test $# != 0
15639 do
15640 case $1 in
15641 --*=?*)
15642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15644 ac_shift=:
15645 ;;
15646 --*=)
15647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15648 ac_optarg=
15649 ac_shift=:
15650 ;;
15651 *)
15652 ac_option=$1
15653 ac_optarg=$2
15654 ac_shift=shift
15655 ;;
15656 esac
15657
15658 case $ac_option in
15659 # Handling of the options.
15660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15661 ac_cs_recheck=: ;;
15662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15663 printf "%s\n" "$ac_cs_version"; exit ;;
15664 --config | --confi | --conf | --con | --co | --c )
15665 printf "%s\n" "$ac_cs_config"; exit ;;
15666 --debug | --debu | --deb | --de | --d | -d )
15667 debug=: ;;
15668 --file | --fil | --fi | --f )
15669 $ac_shift
15670 case $ac_optarg in
15671 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15672 '') as_fn_error $? "missing file argument" ;;
15673 esac
15674 as_fn_append CONFIG_FILES " '$ac_optarg'"
15675 ac_need_defaults=false;;
15676 --header | --heade | --head | --hea )
15677 $ac_shift
15678 case $ac_optarg in
15679 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15680 esac
15681 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15682 ac_need_defaults=false;;
15683 --he | --h)
15684 # Conflict between --help and --header
15685 as_fn_error $? "ambiguous option: \`$1'
15686 Try \`$0 --help' for more information.";;
15687 --help | --hel | -h )
15688 printf "%s\n" "$ac_cs_usage"; exit ;;
15689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15691 ac_cs_silent=: ;;
15692
15693 # This is an error.
15694 -*) as_fn_error $? "unrecognized option: \`$1'
15695 Try \`$0 --help' for more information." ;;
15696
15697 *) as_fn_append ac_config_targets " $1"
15698 ac_need_defaults=false ;;
15699
15700 esac
15701 shift
15702 done
15703
15704 ac_configure_extra_args=
15705
15706 if $ac_cs_silent; then
15707 exec 6>/dev/null
15708 ac_configure_extra_args="$ac_configure_extra_args --silent"
15709 fi
15710
15711 _ACEOF
15712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713 if \$ac_cs_recheck; then
15714 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15715 shift
15716 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15717 CONFIG_SHELL='$SHELL'
15718 export CONFIG_SHELL
15719 exec "\$@"
15720 fi
15721
15722 _ACEOF
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 exec 5>>config.log
15725 {
15726 echo
15727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15728 ## Running $as_me. ##
15729 _ASBOX
15730 printf "%s\n" "$ac_log"
15731 } >&5
15732
15733 _ACEOF
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735 #
15736 # INIT-COMMANDS
15737 #
15738 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15739
15740
15741 # The HP-UX ksh and POSIX shell print the target directory to stdout
15742 # if CDPATH is set.
15743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15744
15745 sed_quote_subst='$sed_quote_subst'
15746 double_quote_subst='$double_quote_subst'
15747 delay_variable_subst='$delay_variable_subst'
15748 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15749 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15750 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15751 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15752 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15753 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15754 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15755 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15756 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15757 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15758 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15759 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15760 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15761 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15762 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15763 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15764 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15765 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15766 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15767 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15768 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15769 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15770 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15771 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15772 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15773 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15774 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15775 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15776 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15777 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15778 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15779 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15780 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15781 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15782 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15783 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15784 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15785 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15786 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15787 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15788 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15789 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15790 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15791 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15792 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15793 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15794 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15795 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15796 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15797 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15798 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15799 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15800 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15801 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15802 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15803 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15804 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15805 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15806 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15807 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"`'
15808 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15809 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15810 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15811 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15815 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15820 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15844 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15845 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15846 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15847 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15848 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15849 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15850 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15851 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15852 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15853 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15854 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15855 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15856 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15857 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15858 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15859 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15860 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15861 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15862 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15863 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15864 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15865 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15866 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15867 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15868 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15869 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15870 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15871 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15872 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15873 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15874 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15875 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15876 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15877 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15884
15885 LTCC='$LTCC'
15886 LTCFLAGS='$LTCFLAGS'
15887 compiler='$compiler_DEFAULT'
15888
15889 # A function that is used when there is no print builtin or printf.
15890 func_fallback_echo ()
15891 {
15892 eval 'cat <<_LTECHO_EOF
15893 \$1
15894 _LTECHO_EOF'
15895 }
15896
15897 # Quote evaled strings.
15898 for var in AS \
15899 DLLTOOL \
15900 OBJDUMP \
15901 SHELL \
15902 ECHO \
15903 PATH_SEPARATOR \
15904 SED \
15905 GREP \
15906 EGREP \
15907 FGREP \
15908 LD \
15909 NM \
15910 LN_S \
15911 lt_SP2NL \
15912 lt_NL2SP \
15913 reload_flag \
15914 deplibs_check_method \
15915 file_magic_cmd \
15916 file_magic_glob \
15917 want_nocaseglob \
15918 sharedlib_from_linklib_cmd \
15919 AR \
15920 AR_FLAGS \
15921 archiver_list_spec \
15922 STRIP \
15923 RANLIB \
15924 CC \
15925 CFLAGS \
15926 compiler \
15927 lt_cv_sys_global_symbol_pipe \
15928 lt_cv_sys_global_symbol_to_cdecl \
15929 lt_cv_sys_global_symbol_to_import \
15930 lt_cv_sys_global_symbol_to_c_name_address \
15931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15932 lt_cv_nm_interface \
15933 nm_file_list_spec \
15934 lt_cv_truncate_bin \
15935 lt_prog_compiler_no_builtin_flag \
15936 lt_prog_compiler_pic \
15937 lt_prog_compiler_wl \
15938 lt_prog_compiler_static \
15939 lt_cv_prog_compiler_c_o \
15940 need_locks \
15941 MANIFEST_TOOL \
15942 DSYMUTIL \
15943 NMEDIT \
15944 LIPO \
15945 OTOOL \
15946 OTOOL64 \
15947 shrext_cmds \
15948 export_dynamic_flag_spec \
15949 whole_archive_flag_spec \
15950 compiler_needs_object \
15951 with_gnu_ld \
15952 allow_undefined_flag \
15953 no_undefined_flag \
15954 hardcode_libdir_flag_spec \
15955 hardcode_libdir_separator \
15956 exclude_expsyms \
15957 include_expsyms \
15958 file_list_spec \
15959 variables_saved_for_relink \
15960 libname_spec \
15961 library_names_spec \
15962 soname_spec \
15963 install_override_mode \
15964 finish_eval \
15965 old_striplib \
15966 striplib; do
15967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15968 *[\\\\\\\`\\"\\\$]*)
15969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15970 ;;
15971 *)
15972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15973 ;;
15974 esac
15975 done
15976
15977 # Double-quote double-evaled strings.
15978 for var in reload_cmds \
15979 old_postinstall_cmds \
15980 old_postuninstall_cmds \
15981 old_archive_cmds \
15982 extract_expsyms_cmds \
15983 old_archive_from_new_cmds \
15984 old_archive_from_expsyms_cmds \
15985 archive_cmds \
15986 archive_expsym_cmds \
15987 module_cmds \
15988 module_expsym_cmds \
15989 export_symbols_cmds \
15990 prelink_cmds \
15991 postlink_cmds \
15992 postinstall_cmds \
15993 postuninstall_cmds \
15994 finish_cmds \
15995 sys_lib_search_path_spec \
15996 configure_time_dlsearch_path \
15997 configure_time_lt_sys_library_path; do
15998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15999 *[\\\\\\\`\\"\\\$]*)
16000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16001 ;;
16002 *)
16003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16004 ;;
16005 esac
16006 done
16007
16008 ac_aux_dir='$ac_aux_dir'
16009
16010 # See if we are running on zsh, and set the options that allow our
16011 # commands through without removal of \ escapes INIT.
16012 if test -n "\${ZSH_VERSION+set}"; then
16013 setopt NO_GLOB_SUBST
16014 fi
16015
16016
16017 PACKAGE='$PACKAGE'
16018 VERSION='$VERSION'
16019 RM='$RM'
16020 ofile='$ofile'
16021
16022
16023
16024
16025 _ACEOF
16026
16027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16028
16029 # Handling of arguments.
16030 for ac_config_target in $ac_config_targets
16031 do
16032 case $ac_config_target in
16033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16036 "libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES libspeex/Makefile" ;;
16037 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16038 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16039 "Speex.spec") CONFIG_FILES="$CONFIG_FILES Speex.spec" ;;
16040 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16041 "include/speex/Makefile") CONFIG_FILES="$CONFIG_FILES include/speex/Makefile" ;;
16042 "speex.pc") CONFIG_FILES="$CONFIG_FILES speex.pc" ;;
16043 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
16044 "win32/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/libspeex/Makefile" ;;
16045 "win32/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/speexenc/Makefile" ;;
16046 "win32/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/speexdec/Makefile" ;;
16047 "symbian/Makefile") CONFIG_FILES="$CONFIG_FILES symbian/Makefile" ;;
16048 "win32/VS2003/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/Makefile" ;;
16049 "win32/VS2003/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/tests/Makefile" ;;
16050 "win32/VS2003/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/libspeex/Makefile" ;;
16051 "win32/VS2003/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/speexdec/Makefile" ;;
16052 "win32/VS2003/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/speexenc/Makefile" ;;
16053 "win32/VS2005/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/Makefile" ;;
16054 "win32/VS2005/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/libspeex/Makefile" ;;
16055 "win32/VS2005/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/speexdec/Makefile" ;;
16056 "win32/VS2005/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/speexenc/Makefile" ;;
16057 "win32/VS2005/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/tests/Makefile" ;;
16058 "win32/VS2008/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/Makefile" ;;
16059 "win32/VS2008/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/speexdec/Makefile" ;;
16060 "win32/VS2008/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/tests/Makefile" ;;
16061 "win32/VS2008/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/libspeex/Makefile" ;;
16062 "win32/VS2008/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/speexenc/Makefile" ;;
16063 "include/speex/speex_config_types.h") CONFIG_FILES="$CONFIG_FILES include/speex/speex_config_types.h" ;;
16064 "ti/Makefile") CONFIG_FILES="$CONFIG_FILES ti/Makefile" ;;
16065 "ti/speex_C54_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C54_test/Makefile" ;;
16066 "ti/speex_C55_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C55_test/Makefile" ;;
16067 "ti/speex_C64_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C64_test/Makefile" ;;
16068 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16069
16070 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16071 esac
16072 done
16073
16074
16075 # If the user did not use the arguments to specify the items to instantiate,
16076 # then the envvar interface is used. Set only those that are not.
16077 # We use the long form for the default assignment because of an extremely
16078 # bizarre bug on SunOS 4.1.3.
16079 if $ac_need_defaults; then
16080 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16081 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16082 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16083 fi
16084
16085 # Have a temporary directory for convenience. Make it in the build tree
16086 # simply because there is no reason against having it here, and in addition,
16087 # creating and moving files from /tmp can sometimes cause problems.
16088 # Hook for its removal unless debugging.
16089 # Note that there is a small window in which the directory will not be cleaned:
16090 # after its creation but before its name has been assigned to `$tmp'.
16091 $debug ||
16092 {
16093 tmp= ac_tmp=
16094 trap 'exit_status=$?
16095 : "${ac_tmp:=$tmp}"
16096 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16097 ' 0
16098 trap 'as_fn_exit 1' 1 2 13 15
16099 }
16100 # Create a (secure) tmp directory for tmp files.
16101
16102 {
16103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16104 test -d "$tmp"
16105 } ||
16106 {
16107 tmp=./conf$$-$RANDOM
16108 (umask 077 && mkdir "$tmp")
16109 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16110 ac_tmp=$tmp
16111
16112 # Set up the scripts for CONFIG_FILES section.
16113 # No need to generate them if there are no CONFIG_FILES.
16114 # This happens for instance with `./config.status config.h'.
16115 if test -n "$CONFIG_FILES"; then
16116
16117
16118 ac_cr=`echo X | tr X '\015'`
16119 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16120 # But we know of no other shell where ac_cr would be empty at this
16121 # point, so we can use a bashism as a fallback.
16122 if test "x$ac_cr" = x; then
16123 eval ac_cr=\$\'\\r\'
16124 fi
16125 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16126 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16127 ac_cs_awk_cr='\\r'
16128 else
16129 ac_cs_awk_cr=$ac_cr
16130 fi
16131
16132 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16133 _ACEOF
16134
16135
16136 {
16137 echo "cat >conf$$subs.awk <<_ACEOF" &&
16138 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16139 echo "_ACEOF"
16140 } >conf$$subs.sh ||
16141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16143 ac_delim='%!_!# '
16144 for ac_last_try in false false false false false :; do
16145 . ./conf$$subs.sh ||
16146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16147
16148 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16149 if test $ac_delim_n = $ac_delim_num; then
16150 break
16151 elif $ac_last_try; then
16152 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16153 else
16154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16155 fi
16156 done
16157 rm -f conf$$subs.sh
16158
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16161 _ACEOF
16162 sed -n '
16163 h
16164 s/^/S["/; s/!.*/"]=/
16165 p
16166 g
16167 s/^[^!]*!//
16168 :repl
16169 t repl
16170 s/'"$ac_delim"'$//
16171 t delim
16172 :nl
16173 h
16174 s/\(.\{148\}\)..*/\1/
16175 t more1
16176 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16177 p
16178 n
16179 b repl
16180 :more1
16181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16182 p
16183 g
16184 s/.\{148\}//
16185 t nl
16186 :delim
16187 h
16188 s/\(.\{148\}\)..*/\1/
16189 t more2
16190 s/["\\]/\\&/g; s/^/"/; s/$/"/
16191 p
16192 b
16193 :more2
16194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16195 p
16196 g
16197 s/.\{148\}//
16198 t delim
16199 ' <conf$$subs.awk | sed '
16200 /^[^""]/{
16201 N
16202 s/\n//
16203 }
16204 ' >>$CONFIG_STATUS || ac_write_fail=1
16205 rm -f conf$$subs.awk
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16207 _ACAWK
16208 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16209 for (key in S) S_is_set[key] = 1
16210 FS = ""
16211
16212 }
16213 {
16214 line = $ 0
16215 nfields = split(line, field, "@")
16216 substed = 0
16217 len = length(field[1])
16218 for (i = 2; i < nfields; i++) {
16219 key = field[i]
16220 keylen = length(key)
16221 if (S_is_set[key]) {
16222 value = S[key]
16223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16224 len += length(value) + length(field[++i])
16225 substed = 1
16226 } else
16227 len += 1 + keylen
16228 }
16229
16230 print line
16231 }
16232
16233 _ACAWK
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16237 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16238 else
16239 cat
16240 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16241 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16242 _ACEOF
16243
16244 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16245 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16246 # trailing colons and then remove the whole line if VPATH becomes empty
16247 # (actually we leave an empty line to preserve line numbers).
16248 if test "x$srcdir" = x.; then
16249 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16250 h
16251 s///
16252 s/^/:/
16253 s/[ ]*$/:/
16254 s/:\$(srcdir):/:/g
16255 s/:\${srcdir}:/:/g
16256 s/:@srcdir@:/:/g
16257 s/^:*//
16258 s/:*$//
16259 x
16260 s/\(=[ ]*\).*/\1/
16261 G
16262 s/\n//
16263 s/^[^=]*=[ ]*$//
16264 }'
16265 fi
16266
16267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 fi # test -n "$CONFIG_FILES"
16269
16270 # Set up the scripts for CONFIG_HEADERS section.
16271 # No need to generate them if there are no CONFIG_HEADERS.
16272 # This happens for instance with `./config.status Makefile'.
16273 if test -n "$CONFIG_HEADERS"; then
16274 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16275 BEGIN {
16276 _ACEOF
16277
16278 # Transform confdefs.h into an awk script `defines.awk', embedded as
16279 # here-document in config.status, that substitutes the proper values into
16280 # config.h.in to produce config.h.
16281
16282 # Create a delimiter string that does not exist in confdefs.h, to ease
16283 # handling of long lines.
16284 ac_delim='%!_!# '
16285 for ac_last_try in false false :; do
16286 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16287 if test -z "$ac_tt"; then
16288 break
16289 elif $ac_last_try; then
16290 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16291 else
16292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293 fi
16294 done
16295
16296 # For the awk script, D is an array of macro values keyed by name,
16297 # likewise P contains macro parameters if any. Preserve backslash
16298 # newline sequences.
16299
16300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16301 sed -n '
16302 s/.\{148\}/&'"$ac_delim"'/g
16303 t rset
16304 :rset
16305 s/^[ ]*#[ ]*define[ ][ ]*/ /
16306 t def
16307 d
16308 :def
16309 s/\\$//
16310 t bsnl
16311 s/["\\]/\\&/g
16312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16313 D["\1"]=" \3"/p
16314 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16315 d
16316 :bsnl
16317 s/["\\]/\\&/g
16318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16319 D["\1"]=" \3\\\\\\n"\\/p
16320 t cont
16321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16322 t cont
16323 d
16324 :cont
16325 n
16326 s/.\{148\}/&'"$ac_delim"'/g
16327 t clear
16328 :clear
16329 s/\\$//
16330 t bsnlc
16331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16332 d
16333 :bsnlc
16334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16335 b cont
16336 ' <confdefs.h | sed '
16337 s/'"$ac_delim"'/"\\\
16338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16339
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 for (key in D) D_is_set[key] = 1
16342 FS = ""
16343 }
16344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16345 line = \$ 0
16346 split(line, arg, " ")
16347 if (arg[1] == "#") {
16348 defundef = arg[2]
16349 mac1 = arg[3]
16350 } else {
16351 defundef = substr(arg[1], 2)
16352 mac1 = arg[2]
16353 }
16354 split(mac1, mac2, "(") #)
16355 macro = mac2[1]
16356 prefix = substr(line, 1, index(line, defundef) - 1)
16357 if (D_is_set[macro]) {
16358 # Preserve the white space surrounding the "#".
16359 print prefix "define", macro P[macro] D[macro]
16360 next
16361 } else {
16362 # Replace #undef with comments. This is necessary, for example,
16363 # in the case of _POSIX_SOURCE, which is predefined and required
16364 # on some systems where configure will not decide to define it.
16365 if (defundef == "undef") {
16366 print "/*", prefix defundef, macro, "*/"
16367 next
16368 }
16369 }
16370 }
16371 { print }
16372 _ACAWK
16373 _ACEOF
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16376 fi # test -n "$CONFIG_HEADERS"
16377
16378
16379 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16380 shift
16381 for ac_tag
16382 do
16383 case $ac_tag in
16384 :[FHLC]) ac_mode=$ac_tag; continue;;
16385 esac
16386 case $ac_mode$ac_tag in
16387 :[FHL]*:*);;
16388 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16389 :[FH]-) ac_tag=-:-;;
16390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16391 esac
16392 ac_save_IFS=$IFS
16393 IFS=:
16394 set x $ac_tag
16395 IFS=$ac_save_IFS
16396 shift
16397 ac_file=$1
16398 shift
16399
16400 case $ac_mode in
16401 :L) ac_source=$1;;
16402 :[FH])
16403 ac_file_inputs=
16404 for ac_f
16405 do
16406 case $ac_f in
16407 -) ac_f="$ac_tmp/stdin";;
16408 *) # Look for the file first in the build tree, then in the source tree
16409 # (if the path is not absolute). The absolute path cannot be DOS-style,
16410 # because $ac_f cannot contain `:'.
16411 test -f "$ac_f" ||
16412 case $ac_f in
16413 [\\/$]*) false;;
16414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16415 esac ||
16416 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16417 esac
16418 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16419 as_fn_append ac_file_inputs " '$ac_f'"
16420 done
16421
16422 # Let's still pretend it is `configure' which instantiates (i.e., don't
16423 # use $as_me), people would be surprised to read:
16424 # /* config.h. Generated by config.status. */
16425 configure_input='Generated from '`
16426 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16427 `' by configure.'
16428 if test x"$ac_file" != x-; then
16429 configure_input="$ac_file. $configure_input"
16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16431 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16432 fi
16433 # Neutralize special characters interpreted by sed in replacement strings.
16434 case $configure_input in #(
16435 *\&* | *\|* | *\\* )
16436 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16437 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16438 *) ac_sed_conf_input=$configure_input;;
16439 esac
16440
16441 case $ac_tag in
16442 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16444 esac
16445 ;;
16446 esac
16447
16448 ac_dir=`$as_dirname -- "$ac_file" ||
16449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16450 X"$ac_file" : 'X\(//\)[^/]' \| \
16451 X"$ac_file" : 'X\(//\)$' \| \
16452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16453 printf "%s\n" X"$ac_file" |
16454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\/\)[^/].*/{
16459 s//\1/
16460 q
16461 }
16462 /^X\(\/\/\)$/{
16463 s//\1/
16464 q
16465 }
16466 /^X\(\/\).*/{
16467 s//\1/
16468 q
16469 }
16470 s/.*/./; q'`
16471 as_dir="$ac_dir"; as_fn_mkdir_p
16472 ac_builddir=.
16473
16474 case "$ac_dir" in
16475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16476 *)
16477 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16478 # A ".." for each directory in $ac_dir_suffix.
16479 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16480 case $ac_top_builddir_sub in
16481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16483 esac ;;
16484 esac
16485 ac_abs_top_builddir=$ac_pwd
16486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16487 # for backward compatibility:
16488 ac_top_builddir=$ac_top_build_prefix
16489
16490 case $srcdir in
16491 .) # We are building in place.
16492 ac_srcdir=.
16493 ac_top_srcdir=$ac_top_builddir_sub
16494 ac_abs_top_srcdir=$ac_pwd ;;
16495 [\\/]* | ?:[\\/]* ) # Absolute name.
16496 ac_srcdir=$srcdir$ac_dir_suffix;
16497 ac_top_srcdir=$srcdir
16498 ac_abs_top_srcdir=$srcdir ;;
16499 *) # Relative name.
16500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16501 ac_top_srcdir=$ac_top_build_prefix$srcdir
16502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16503 esac
16504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16505
16506
16507 case $ac_mode in
16508 :F)
16509 #
16510 # CONFIG_FILE
16511 #
16512
16513 case $INSTALL in
16514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16516 esac
16517 ac_MKDIR_P=$MKDIR_P
16518 case $MKDIR_P in
16519 [\\/$]* | ?:[\\/]* ) ;;
16520 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16521 esac
16522 _ACEOF
16523
16524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16525 # If the template does not know about datarootdir, expand it.
16526 # FIXME: This hack should be removed a few years after 2.60.
16527 ac_datarootdir_hack=; ac_datarootdir_seen=
16528 ac_sed_dataroot='
16529 /datarootdir/ {
16530 p
16531 q
16532 }
16533 /@datadir@/p
16534 /@docdir@/p
16535 /@infodir@/p
16536 /@localedir@/p
16537 /@mandir@/p'
16538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16539 *datarootdir*) ac_datarootdir_seen=yes;;
16540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16542 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 ac_datarootdir_hack='
16546 s&@datadir@&$datadir&g
16547 s&@docdir@&$docdir&g
16548 s&@infodir@&$infodir&g
16549 s&@localedir@&$localedir&g
16550 s&@mandir@&$mandir&g
16551 s&\\\${datarootdir}&$datarootdir&g' ;;
16552 esac
16553 _ACEOF
16554
16555 # Neutralize VPATH when `$srcdir' = `.'.
16556 # Shell code in configure.ac might set extrasub.
16557 # FIXME: do we really want to maintain this feature?
16558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16559 ac_sed_extra="$ac_vpsub
16560 $extrasub
16561 _ACEOF
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 :t
16564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16565 s|@configure_input@|$ac_sed_conf_input|;t t
16566 s&@top_builddir@&$ac_top_builddir_sub&;t t
16567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16568 s&@srcdir@&$ac_srcdir&;t t
16569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16570 s&@top_srcdir@&$ac_top_srcdir&;t t
16571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16572 s&@builddir@&$ac_builddir&;t t
16573 s&@abs_builddir@&$ac_abs_builddir&;t t
16574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16575 s&@INSTALL@&$ac_INSTALL&;t t
16576 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16577 $ac_datarootdir_hack
16578 "
16579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16580 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16581
16582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16583 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16585 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16587 which seems to be undefined. Please make sure it is defined" >&5
16588 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16589 which seems to be undefined. Please make sure it is defined" >&2;}
16590
16591 rm -f "$ac_tmp/stdin"
16592 case $ac_file in
16593 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16594 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16595 esac \
16596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16597 ;;
16598 :H)
16599 #
16600 # CONFIG_HEADER
16601 #
16602 if test x"$ac_file" != x-; then
16603 {
16604 printf "%s\n" "/* $configure_input */" >&1 \
16605 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16606 } >"$ac_tmp/config.h" \
16607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16608 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16610 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16611 else
16612 rm -f "$ac_file"
16613 mv "$ac_tmp/config.h" "$ac_file" \
16614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16615 fi
16616 else
16617 printf "%s\n" "/* $configure_input */" >&1 \
16618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16619 || as_fn_error $? "could not create -" "$LINENO" 5
16620 fi
16621 # Compute "$ac_file"'s index in $config_headers.
16622 _am_arg="$ac_file"
16623 _am_stamp_count=1
16624 for _am_header in $config_headers :; do
16625 case $_am_header in
16626 $_am_arg | $_am_arg:* )
16627 break ;;
16628 * )
16629 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16630 esac
16631 done
16632 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16633 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$_am_arg" : 'X\(//\)[^/]' \| \
16635 X"$_am_arg" : 'X\(//\)$' \| \
16636 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16637 printf "%s\n" X"$_am_arg" |
16638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\(\/\/\)[^/].*/{
16643 s//\1/
16644 q
16645 }
16646 /^X\(\/\/\)$/{
16647 s//\1/
16648 q
16649 }
16650 /^X\(\/\).*/{
16651 s//\1/
16652 q
16653 }
16654 s/.*/./; q'`/stamp-h$_am_stamp_count
16655 ;;
16656
16657 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16658 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16659 ;;
16660 esac
16661
16662
16663 case $ac_file$ac_mode in
16664 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16665 # Older Autoconf quotes --file arguments for eval, but not when files
16666 # are listed without --file. Let's play safe and only enable the eval
16667 # if we detect the quoting.
16668 # TODO: see whether this extra hack can be removed once we start
16669 # requiring Autoconf 2.70 or later.
16670 case $CONFIG_FILES in #(
16671 *\'*) :
16672 eval set x "$CONFIG_FILES" ;; #(
16673 *) :
16674 set x $CONFIG_FILES ;; #(
16675 *) :
16676 ;;
16677 esac
16678 shift
16679 # Used to flag and report bootstrapping failures.
16680 am_rc=0
16681 for am_mf
16682 do
16683 # Strip MF so we end up with the name of the file.
16684 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16685 # Check whether this is an Automake generated Makefile which includes
16686 # dependency-tracking related rules and includes.
16687 # Grep'ing the whole file directly is not great: AIX grep has a line
16688 # limit of 2048, but all sed's we know have understand at least 4000.
16689 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16690 || continue
16691 am_dirpart=`$as_dirname -- "$am_mf" ||
16692 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693 X"$am_mf" : 'X\(//\)[^/]' \| \
16694 X"$am_mf" : 'X\(//\)$' \| \
16695 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16696 printf "%s\n" X"$am_mf" |
16697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16698 s//\1/
16699 q
16700 }
16701 /^X\(\/\/\)[^/].*/{
16702 s//\1/
16703 q
16704 }
16705 /^X\(\/\/\)$/{
16706 s//\1/
16707 q
16708 }
16709 /^X\(\/\).*/{
16710 s//\1/
16711 q
16712 }
16713 s/.*/./; q'`
16714 am_filepart=`$as_basename -- "$am_mf" ||
16715 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16716 X"$am_mf" : 'X\(//\)$' \| \
16717 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16718 printf "%s\n" X/"$am_mf" |
16719 sed '/^.*\/\([^/][^/]*\)\/*$/{
16720 s//\1/
16721 q
16722 }
16723 /^X\/\(\/\/\)$/{
16724 s//\1/
16725 q
16726 }
16727 /^X\/\(\/\).*/{
16728 s//\1/
16729 q
16730 }
16731 s/.*/./; q'`
16732 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16733 && sed -e '/# am--include-marker/d' "$am_filepart" \
16734 | $MAKE -f - am--depfiles" >&5
16735 (cd "$am_dirpart" \
16736 && sed -e '/# am--include-marker/d' "$am_filepart" \
16737 | $MAKE -f - am--depfiles) >&5 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } || am_rc=$?
16741 done
16742 if test $am_rc -ne 0; then
16743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16744 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16745 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16746 for automatic dependency tracking. If GNU make was not used, consider
16747 re-running the configure script with MAKE=\"gmake\" (or whatever is
16748 necessary). You can also try re-running configure with the
16749 '--disable-dependency-tracking' option to at least be able to build
16750 the package (albeit without support for automatic dependency tracking).
16751 See \`config.log' for more details" "$LINENO" 5; }
16752 fi
16753 { am_dirpart=; unset am_dirpart;}
16754 { am_filepart=; unset am_filepart;}
16755 { am_mf=; unset am_mf;}
16756 { am_rc=; unset am_rc;}
16757 rm -f conftest-deps.mk
16758 }
16759 ;;
16760 "libtool":C)
16761
16762 # See if we are running on zsh, and set the options that allow our
16763 # commands through without removal of \ escapes.
16764 if test -n "${ZSH_VERSION+set}"; then
16765 setopt NO_GLOB_SUBST
16766 fi
16767
16768 cfgfile=${ofile}T
16769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16770 $RM "$cfgfile"
16771
16772 cat <<_LT_EOF >> "$cfgfile"
16773 #! $SHELL
16774 # Generated automatically by $as_me ($PACKAGE) $VERSION
16775 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16776
16777 # Provide generalized library-building support services.
16778 # Written by Gordon Matzigkeit, 1996
16779
16780 # Copyright (C) 2014 Free Software Foundation, Inc.
16781 # This is free software; see the source for copying conditions. There is NO
16782 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16783
16784 # GNU Libtool is free software; you can redistribute it and/or modify
16785 # it under the terms of the GNU General Public License as published by
16786 # the Free Software Foundation; either version 2 of of the License, or
16787 # (at your option) any later version.
16788 #
16789 # As a special exception to the GNU General Public License, if you
16790 # distribute this file as part of a program or library that is built
16791 # using GNU Libtool, you may include this file under the same
16792 # distribution terms that you use for the rest of that program.
16793 #
16794 # GNU Libtool is distributed in the hope that it will be useful, but
16795 # WITHOUT ANY WARRANTY; without even the implied warranty of
16796 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16797 # GNU General Public License for more details.
16798 #
16799 # You should have received a copy of the GNU General Public License
16800 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16801
16802
16803 # The names of the tagged configurations supported by this script.
16804 available_tags=''
16805
16806 # Configured defaults for sys_lib_dlsearch_path munging.
16807 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16808
16809 # ### BEGIN LIBTOOL CONFIG
16810
16811 # Assembler program.
16812 AS=$lt_AS
16813
16814 # DLL creation program.
16815 DLLTOOL=$lt_DLLTOOL
16816
16817 # Object dumper program.
16818 OBJDUMP=$lt_OBJDUMP
16819
16820 # Which release of libtool.m4 was used?
16821 macro_version=$macro_version
16822 macro_revision=$macro_revision
16823
16824 # Whether or not to build shared libraries.
16825 build_libtool_libs=$enable_shared
16826
16827 # Whether or not to build static libraries.
16828 build_old_libs=$enable_static
16829
16830 # What type of objects to build.
16831 pic_mode=$pic_mode
16832
16833 # Whether or not to optimize for fast installation.
16834 fast_install=$enable_fast_install
16835
16836 # Shared archive member basename,for filename based shared library versioning on AIX.
16837 shared_archive_member_spec=$shared_archive_member_spec
16838
16839 # Shell to use when invoking shell scripts.
16840 SHELL=$lt_SHELL
16841
16842 # An echo program that protects backslashes.
16843 ECHO=$lt_ECHO
16844
16845 # The PATH separator for the build system.
16846 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16847
16848 # The host system.
16849 host_alias=$host_alias
16850 host=$host
16851 host_os=$host_os
16852
16853 # The build system.
16854 build_alias=$build_alias
16855 build=$build
16856 build_os=$build_os
16857
16858 # A sed program that does not truncate output.
16859 SED=$lt_SED
16860
16861 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16862 Xsed="\$SED -e 1s/^X//"
16863
16864 # A grep program that handles long lines.
16865 GREP=$lt_GREP
16866
16867 # An ERE matcher.
16868 EGREP=$lt_EGREP
16869
16870 # A literal string matcher.
16871 FGREP=$lt_FGREP
16872
16873 # A BSD- or MS-compatible name lister.
16874 NM=$lt_NM
16875
16876 # Whether we need soft or hard links.
16877 LN_S=$lt_LN_S
16878
16879 # What is the maximum length of a command?
16880 max_cmd_len=$max_cmd_len
16881
16882 # Object file suffix (normally "o").
16883 objext=$ac_objext
16884
16885 # Executable file suffix (normally "").
16886 exeext=$exeext
16887
16888 # whether the shell understands "unset".
16889 lt_unset=$lt_unset
16890
16891 # turn spaces into newlines.
16892 SP2NL=$lt_lt_SP2NL
16893
16894 # turn newlines into spaces.
16895 NL2SP=$lt_lt_NL2SP
16896
16897 # convert \$build file names to \$host format.
16898 to_host_file_cmd=$lt_cv_to_host_file_cmd
16899
16900 # convert \$build files to toolchain format.
16901 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16902
16903 # Method to check whether dependent libraries are shared objects.
16904 deplibs_check_method=$lt_deplibs_check_method
16905
16906 # Command to use when deplibs_check_method = "file_magic".
16907 file_magic_cmd=$lt_file_magic_cmd
16908
16909 # How to find potential files when deplibs_check_method = "file_magic".
16910 file_magic_glob=$lt_file_magic_glob
16911
16912 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16913 want_nocaseglob=$lt_want_nocaseglob
16914
16915 # Command to associate shared and link libraries.
16916 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16917
16918 # The archiver.
16919 AR=$lt_AR
16920
16921 # Flags to create an archive.
16922 AR_FLAGS=$lt_AR_FLAGS
16923
16924 # How to feed a file listing to the archiver.
16925 archiver_list_spec=$lt_archiver_list_spec
16926
16927 # A symbol stripping program.
16928 STRIP=$lt_STRIP
16929
16930 # Commands used to install an old-style archive.
16931 RANLIB=$lt_RANLIB
16932 old_postinstall_cmds=$lt_old_postinstall_cmds
16933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16934
16935 # Whether to use a lock for old archive extraction.
16936 lock_old_archive_extraction=$lock_old_archive_extraction
16937
16938 # A C compiler.
16939 LTCC=$lt_CC
16940
16941 # LTCC compiler flags.
16942 LTCFLAGS=$lt_CFLAGS
16943
16944 # Take the output of nm and produce a listing of raw symbols and C names.
16945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16946
16947 # Transform the output of nm in a proper C declaration.
16948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16949
16950 # Transform the output of nm into a list of symbols to manually relocate.
16951 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16952
16953 # Transform the output of nm in a C name address pair.
16954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16955
16956 # Transform the output of nm in a C name address pair when lib prefix is needed.
16957 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16958
16959 # The name lister interface.
16960 nm_interface=$lt_lt_cv_nm_interface
16961
16962 # Specify filename containing input files for \$NM.
16963 nm_file_list_spec=$lt_nm_file_list_spec
16964
16965 # The root where to search for dependent libraries,and where our libraries should be installed.
16966 lt_sysroot=$lt_sysroot
16967
16968 # Command to truncate a binary pipe.
16969 lt_truncate_bin=$lt_lt_cv_truncate_bin
16970
16971 # The name of the directory that contains temporary libtool files.
16972 objdir=$objdir
16973
16974 # Used to examine libraries when file_magic_cmd begins with "file".
16975 MAGIC_CMD=$MAGIC_CMD
16976
16977 # Must we lock files when doing compilation?
16978 need_locks=$lt_need_locks
16979
16980 # Manifest tool.
16981 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16982
16983 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16984 DSYMUTIL=$lt_DSYMUTIL
16985
16986 # Tool to change global to local symbols on Mac OS X.
16987 NMEDIT=$lt_NMEDIT
16988
16989 # Tool to manipulate fat objects and archives on Mac OS X.
16990 LIPO=$lt_LIPO
16991
16992 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16993 OTOOL=$lt_OTOOL
16994
16995 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16996 OTOOL64=$lt_OTOOL64
16997
16998 # Old archive suffix (normally "a").
16999 libext=$libext
17000
17001 # Shared library suffix (normally ".so").
17002 shrext_cmds=$lt_shrext_cmds
17003
17004 # The commands to extract the exported symbol list from a shared archive.
17005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17006
17007 # Variables whose values should be saved in libtool wrapper scripts and
17008 # restored at link time.
17009 variables_saved_for_relink=$lt_variables_saved_for_relink
17010
17011 # Do we need the "lib" prefix for modules?
17012 need_lib_prefix=$need_lib_prefix
17013
17014 # Do we need a version for libraries?
17015 need_version=$need_version
17016
17017 # Library versioning type.
17018 version_type=$version_type
17019
17020 # Shared library runtime path variable.
17021 runpath_var=$runpath_var
17022
17023 # Shared library path variable.
17024 shlibpath_var=$shlibpath_var
17025
17026 # Is shlibpath searched before the hard-coded library search path?
17027 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17028
17029 # Format of library name prefix.
17030 libname_spec=$lt_libname_spec
17031
17032 # List of archive names. First name is the real one, the rest are links.
17033 # The last name is the one that the linker finds with -lNAME
17034 library_names_spec=$lt_library_names_spec
17035
17036 # The coded name of the library, if different from the real name.
17037 soname_spec=$lt_soname_spec
17038
17039 # Permission mode override for installation of shared libraries.
17040 install_override_mode=$lt_install_override_mode
17041
17042 # Command to use after installation of a shared archive.
17043 postinstall_cmds=$lt_postinstall_cmds
17044
17045 # Command to use after uninstallation of a shared archive.
17046 postuninstall_cmds=$lt_postuninstall_cmds
17047
17048 # Commands used to finish a libtool library installation in a directory.
17049 finish_cmds=$lt_finish_cmds
17050
17051 # As "finish_cmds", except a single script fragment to be evaled but
17052 # not shown.
17053 finish_eval=$lt_finish_eval
17054
17055 # Whether we should hardcode library paths into libraries.
17056 hardcode_into_libs=$hardcode_into_libs
17057
17058 # Compile-time system search path for libraries.
17059 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17060
17061 # Detected run-time system search path for libraries.
17062 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17063
17064 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17065 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17066
17067 # Whether dlopen is supported.
17068 dlopen_support=$enable_dlopen
17069
17070 # Whether dlopen of programs is supported.
17071 dlopen_self=$enable_dlopen_self
17072
17073 # Whether dlopen of statically linked programs is supported.
17074 dlopen_self_static=$enable_dlopen_self_static
17075
17076 # Commands to strip libraries.
17077 old_striplib=$lt_old_striplib
17078 striplib=$lt_striplib
17079
17080
17081 # The linker used to build libraries.
17082 LD=$lt_LD
17083
17084 # How to create reloadable object files.
17085 reload_flag=$lt_reload_flag
17086 reload_cmds=$lt_reload_cmds
17087
17088 # Commands used to build an old-style archive.
17089 old_archive_cmds=$lt_old_archive_cmds
17090
17091 # A language specific compiler.
17092 CC=$lt_compiler
17093
17094 # Is the compiler the GNU compiler?
17095 with_gcc=$GCC
17096
17097 # Compiler flag to turn off builtin functions.
17098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17099
17100 # Additional compiler flags for building library objects.
17101 pic_flag=$lt_lt_prog_compiler_pic
17102
17103 # How to pass a linker flag through the compiler.
17104 wl=$lt_lt_prog_compiler_wl
17105
17106 # Compiler flag to prevent dynamic linking.
17107 link_static_flag=$lt_lt_prog_compiler_static
17108
17109 # Does compiler simultaneously support -c and -o options?
17110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17111
17112 # Whether or not to add -lc for building shared libraries.
17113 build_libtool_need_lc=$archive_cmds_need_lc
17114
17115 # Whether or not to disallow shared libs when runtime libs are static.
17116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17117
17118 # Compiler flag to allow reflexive dlopens.
17119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17120
17121 # Compiler flag to generate shared objects directly from archives.
17122 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17123
17124 # Whether the compiler copes with passing no objects directly.
17125 compiler_needs_object=$lt_compiler_needs_object
17126
17127 # Create an old-style archive from a shared archive.
17128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17129
17130 # Create a temporary old-style archive to link instead of a shared archive.
17131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17132
17133 # Commands used to build a shared archive.
17134 archive_cmds=$lt_archive_cmds
17135 archive_expsym_cmds=$lt_archive_expsym_cmds
17136
17137 # Commands used to build a loadable module if different from building
17138 # a shared archive.
17139 module_cmds=$lt_module_cmds
17140 module_expsym_cmds=$lt_module_expsym_cmds
17141
17142 # Whether we are building with GNU ld or not.
17143 with_gnu_ld=$lt_with_gnu_ld
17144
17145 # Flag that allows shared libraries with undefined symbols to be built.
17146 allow_undefined_flag=$lt_allow_undefined_flag
17147
17148 # Flag that enforces no undefined symbols.
17149 no_undefined_flag=$lt_no_undefined_flag
17150
17151 # Flag to hardcode \$libdir into a binary during linking.
17152 # This must work even if \$libdir does not exist
17153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17154
17155 # Whether we need a single "-rpath" flag with a separated argument.
17156 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17157
17158 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17159 # DIR into the resulting binary.
17160 hardcode_direct=$hardcode_direct
17161
17162 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17163 # DIR into the resulting binary and the resulting library dependency is
17164 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17165 # library is relocated.
17166 hardcode_direct_absolute=$hardcode_direct_absolute
17167
17168 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17169 # into the resulting binary.
17170 hardcode_minus_L=$hardcode_minus_L
17171
17172 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17173 # into the resulting binary.
17174 hardcode_shlibpath_var=$hardcode_shlibpath_var
17175
17176 # Set to "yes" if building a shared library automatically hardcodes DIR
17177 # into the library and all subsequent libraries and executables linked
17178 # against it.
17179 hardcode_automatic=$hardcode_automatic
17180
17181 # Set to yes if linker adds runtime paths of dependent libraries
17182 # to runtime path list.
17183 inherit_rpath=$inherit_rpath
17184
17185 # Whether libtool must link a program against all its dependency libraries.
17186 link_all_deplibs=$link_all_deplibs
17187
17188 # Set to "yes" if exported symbols are required.
17189 always_export_symbols=$always_export_symbols
17190
17191 # The commands to list exported symbols.
17192 export_symbols_cmds=$lt_export_symbols_cmds
17193
17194 # Symbols that should not be listed in the preloaded symbols.
17195 exclude_expsyms=$lt_exclude_expsyms
17196
17197 # Symbols that must always be exported.
17198 include_expsyms=$lt_include_expsyms
17199
17200 # Commands necessary for linking programs (against libraries) with templates.
17201 prelink_cmds=$lt_prelink_cmds
17202
17203 # Commands necessary for finishing linking programs.
17204 postlink_cmds=$lt_postlink_cmds
17205
17206 # Specify filename containing input files.
17207 file_list_spec=$lt_file_list_spec
17208
17209 # How to hardcode a shared library path into an executable.
17210 hardcode_action=$hardcode_action
17211
17212 # ### END LIBTOOL CONFIG
17213
17214 _LT_EOF
17215
17216 cat <<'_LT_EOF' >> "$cfgfile"
17217
17218 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17219
17220 # func_munge_path_list VARIABLE PATH
17221 # -----------------------------------
17222 # VARIABLE is name of variable containing _space_ separated list of
17223 # directories to be munged by the contents of PATH, which is string
17224 # having a format:
17225 # "DIR[:DIR]:"
17226 # string "DIR[ DIR]" will be prepended to VARIABLE
17227 # ":DIR[:DIR]"
17228 # string "DIR[ DIR]" will be appended to VARIABLE
17229 # "DIRP[:DIRP]::[DIRA:]DIRA"
17230 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17231 # "DIRA[ DIRA]" will be appended to VARIABLE
17232 # "DIR[:DIR]"
17233 # VARIABLE will be replaced by "DIR[ DIR]"
17234 func_munge_path_list ()
17235 {
17236 case x$2 in
17237 x)
17238 ;;
17239 *:)
17240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17241 ;;
17242 x:*)
17243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17244 ;;
17245 *::*)
17246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17248 ;;
17249 *)
17250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17251 ;;
17252 esac
17253 }
17254
17255
17256 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17257 func_cc_basename ()
17258 {
17259 for cc_temp in $*""; do
17260 case $cc_temp in
17261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17263 \-*) ;;
17264 *) break;;
17265 esac
17266 done
17267 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17268 }
17269
17270
17271 # ### END FUNCTIONS SHARED WITH CONFIGURE
17272
17273 _LT_EOF
17274
17275 case $host_os in
17276 aix3*)
17277 cat <<\_LT_EOF >> "$cfgfile"
17278 # AIX sometimes has problems with the GCC collect2 program. For some
17279 # reason, if we set the COLLECT_NAMES environment variable, the problems
17280 # vanish in a puff of smoke.
17281 if test set != "${COLLECT_NAMES+set}"; then
17282 COLLECT_NAMES=
17283 export COLLECT_NAMES
17284 fi
17285 _LT_EOF
17286 ;;
17287 esac
17288
17289
17290
17291 ltmain=$ac_aux_dir/ltmain.sh
17292
17293
17294 # We use sed instead of cat because bash on DJGPP gets confused if
17295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17296 # text mode, it properly converts lines to CR/LF. This bash problem
17297 # is reportedly fixed, but why not run on old versions too?
17298 sed '$q' "$ltmain" >> "$cfgfile" \
17299 || (rm -f "$cfgfile"; exit 1)
17300
17301 mv -f "$cfgfile" "$ofile" ||
17302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17303 chmod +x "$ofile"
17304
17305 ;;
17306
17307 esac
17308 done # for ac_tag
17309
17310
17311 as_fn_exit 0
17312 _ACEOF
17313 ac_clean_files=$ac_clean_files_save
17314
17315 test $ac_write_fail = 0 ||
17316 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17317
17318
17319 # configure is writing to config.log, and then calls config.status.
17320 # config.status does its own redirection, appending to config.log.
17321 # Unfortunately, on DOS this fails, as config.log is still kept open
17322 # by configure, so config.status won't be able to write to it; its
17323 # output is simply discarded. So we exec the FD to /dev/null,
17324 # effectively closing config.log, so it can be properly (re)opened and
17325 # appended to by config.status. When coming back to configure, we
17326 # need to make the FD available again.
17327 if test "$no_create" != yes; then
17328 ac_cs_success=:
17329 ac_config_status_args=
17330 test "$silent" = yes &&
17331 ac_config_status_args="$ac_config_status_args --quiet"
17332 exec 5>/dev/null
17333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17334 exec 5>>config.log
17335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17336 # would make configure fail if this is the last instruction.
17337 $ac_cs_success || as_fn_exit 1
17338 fi
17339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17341 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17342 fi
17343
17344
17345 echo "Type \"make; make install\" to compile and install Speex";
17346