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 mpg123 1.33.6.
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 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do 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='mpg123'
623 PACKAGE_TARNAME='mpg123'
624 PACKAGE_VERSION='1.33.6'
625 PACKAGE_STRING='mpg123 1.33.6'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/mpg123.c"
630 ac_unique_file="doc"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 LIBOUT123_LIBS
668 LIBSYN123_LIBS
669 LIBMPG123_LIBS
670 PROG_LIBS
671 TERM_WIN32_FALSE
672 TERM_WIN32_TRUE
673 TERM_NONE_FALSE
674 TERM_NONE_TRUE
675 TERM_POSIX_FALSE
676 TERM_POSIX_TRUE
677 NET123_WININET_FALSE
678 NET123_WININET_TRUE
679 NET123_WINHTTP_FALSE
680 NET123_WINHTTP_TRUE
681 NET123_EXEC_FALSE
682 NET123_EXEC_TRUE
683 NET123_FALSE
684 NET123_TRUE
685 NETWORK_WINSOCK_FALSE
686 NETWORK_WINSOCK_TRUE
687 WIN32_CODES_FALSE
688 WIN32_CODES_TRUE
689 BUILD_BUFFER_FALSE
690 BUILD_BUFFER_TRUE
691 BUILD_OPENAL_FALSE
692 BUILD_OPENAL_TRUE
693 BUILD_MINT_FALSE
694 BUILD_MINT_TRUE
695 BUILD_SGI_FALSE
696 BUILD_SGI_TRUE
697 BUILD_OS2_FALSE
698 BUILD_OS2_TRUE
699 BUILD_HP_FALSE
700 BUILD_HP_TRUE
701 BUILD_ARTS_FALSE
702 BUILD_ARTS_TRUE
703 BUILD_ALIB_FALSE
704 BUILD_ALIB_TRUE
705 BUILD_AIX_FALSE
706 BUILD_AIX_TRUE
707 BUILD_WIN32_WASAPI_FALSE
708 BUILD_WIN32_WASAPI_TRUE
709 BUILD_WIN32_FALSE
710 BUILD_WIN32_TRUE
711 BUILD_SUN_FALSE
712 BUILD_SUN_TRUE
713 BUILD_SNDIO_FALSE
714 BUILD_SNDIO_TRUE
715 BUILD_SDL_FALSE
716 BUILD_SDL_TRUE
717 BUILD_PULSE_FALSE
718 BUILD_PULSE_TRUE
719 BUILD_PORTAUDIO_FALSE
720 BUILD_PORTAUDIO_TRUE
721 BUILD_OSS_FALSE
722 BUILD_OSS_TRUE
723 BUILD_NAS_FALSE
724 BUILD_NAS_TRUE
725 BUILD_JACK_FALSE
726 BUILD_JACK_TRUE
727 BUILD_ESD_FALSE
728 BUILD_ESD_TRUE
729 BUILD_COREAUDIO_FALSE
730 BUILD_COREAUDIO_TRUE
731 BUILD_QSA_FALSE
732 BUILD_QSA_TRUE
733 BUILD_ALSA_FALSE
734 BUILD_ALSA_TRUE
735 BUILD_TINYALSA_FALSE
736 BUILD_TINYALSA_TRUE
737 BUILD_DUMMY_FALSE
738 BUILD_DUMMY_TRUE
739 output_modules_la
740 output_modules
741 HAVE_DUMMY_FALSE
742 HAVE_DUMMY_TRUE
743 DUMMY_CFLAGS
744 DUMMY_LDFLAGS
745 DUMMY_LIBS
746 HAVE_OPENAL_FALSE
747 HAVE_OPENAL_TRUE
748 OPENAL_CFLAGS
749 OPENAL_LDFLAGS
750 OPENAL_LIBS
751 HAVE_MINT_FALSE
752 HAVE_MINT_TRUE
753 MINT_CFLAGS
754 MINT_LDFLAGS
755 MINT_LIBS
756 HAVE_SGI_FALSE
757 HAVE_SGI_TRUE
758 SGI_CFLAGS
759 SGI_LDFLAGS
760 SGI_LIBS
761 HAVE_OS2_FALSE
762 HAVE_OS2_TRUE
763 OS2_CFLAGS
764 OS2_LDFLAGS
765 OS2_LIBS
766 HAVE_HP_FALSE
767 HAVE_HP_TRUE
768 HP_CFLAGS
769 HP_LDFLAGS
770 HP_LIBS
771 HAVE_ARTS_FALSE
772 HAVE_ARTS_TRUE
773 ARTS_CFLAGS
774 ARTS_LDFLAGS
775 ARTS_LIBS
776 HAVE_ALIB_FALSE
777 HAVE_ALIB_TRUE
778 ALIB_CFLAGS
779 ALIB_LDFLAGS
780 ALIB_LIBS
781 HAVE_AIX_FALSE
782 HAVE_AIX_TRUE
783 AIX_CFLAGS
784 AIX_LDFLAGS
785 AIX_LIBS
786 HAVE_NAS_FALSE
787 HAVE_NAS_TRUE
788 NAS_CFLAGS
789 NAS_LDFLAGS
790 NAS_LIBS
791 HAVE_SDL_FALSE
792 HAVE_SDL_TRUE
793 SDL_LDFLAGS
794 HAVE_PULSE_FALSE
795 HAVE_PULSE_TRUE
796 PULSE_LDFLAGS
797 HAVE_PORTAUDIO_FALSE
798 HAVE_PORTAUDIO_TRUE
799 PORTAUDIO_CFLAGS
800 PORTAUDIO_LDFLAGS
801 PORTAUDIO_LIBS
802 HAVE_JACK_FALSE
803 HAVE_JACK_TRUE
804 JACK_LDFLAGS
805 HAVE_ESD_FALSE
806 HAVE_ESD_TRUE
807 ESD_LDFLAGS
808 HAVE_WIN32_WASAPI_FALSE
809 HAVE_WIN32_WASAPI_TRUE
810 WIN32_WASAPI_CFLAGS
811 WIN32_WASAPI_LDFLAGS
812 WIN32_WASAPI_LIBS
813 HAVE_WIN32_FALSE
814 HAVE_WIN32_TRUE
815 WIN32_CFLAGS
816 WIN32_LDFLAGS
817 WIN32_LIBS
818 HAVE_SUN_FALSE
819 HAVE_SUN_TRUE
820 SUN_CFLAGS
821 SUN_LDFLAGS
822 SUN_LIBS
823 HAVE_SNDIO_FALSE
824 HAVE_SNDIO_TRUE
825 SNDIO_LDFLAGS
826 HAVE_COREAUDIO_FALSE
827 HAVE_COREAUDIO_TRUE
828 COREAUDIO_CFLAGS
829 COREAUDIO_LDFLAGS
830 COREAUDIO_LIBS
831 HAVE_OSS_FALSE
832 HAVE_OSS_TRUE
833 OSS_CFLAGS
834 OSS_LDFLAGS
835 OSS_LIBS
836 HAVE_QSA_FALSE
837 HAVE_QSA_TRUE
838 QSA_CFLAGS
839 QSA_LDFLAGS
840 QSA_LIBS
841 HAVE_ALSA_FALSE
842 HAVE_ALSA_TRUE
843 ALSA_CFLAGS
844 ALSA_LDFLAGS
845 ALSA_LIBS
846 HAVE_TINYALSA_FALSE
847 HAVE_TINYALSA_TRUE
848 TINYALSA_CFLAGS
849 TINYALSA_LDFLAGS
850 TINYALSA_LIBS
851 SNDIO_LIBS
852 SNDIO_CFLAGS
853 SDL_LIBS
854 SDL_CFLAGS
855 ESD_LIBS
856 ESD_CFLAGS
857 PULSE_LIBS
858 PULSE_CFLAGS
859 JACK_LIBS
860 JACK_CFLAGS
861 HAVE_ARM_FALSE
862 HAVE_ARM_TRUE
863 HAVE_GETCPUFLAGS_ARM_FALSE
864 HAVE_GETCPUFLAGS_ARM_TRUE
865 HAVE_NEON64_FALSE
866 HAVE_NEON64_TRUE
867 HAVE_NEON_FALSE
868 HAVE_NEON_TRUE
869 HAVE_DITHER_FALSE
870 HAVE_DITHER_TRUE
871 HAVE_GETCPUFLAGS_X86_64_FALSE
872 HAVE_GETCPUFLAGS_X86_64_TRUE
873 HAVE_GETCPUFLAGS_FALSE
874 HAVE_GETCPUFLAGS_TRUE
875 HAVE_AVX_FALSE
876 HAVE_AVX_TRUE
877 HAVE_X86_64_MONO_FALSE
878 HAVE_X86_64_MONO_TRUE
879 HAVE_X86_64_FALSE
880 HAVE_X86_64_TRUE
881 HAVE_SSE_FALSE
882 HAVE_SSE_TRUE
883 HAVE_SSE_VINTAGE_FALSE
884 HAVE_SSE_VINTAGE_TRUE
885 HAVE_MMX_FALSE
886 HAVE_MMX_TRUE
887 HAVE_3DNOWEXT_VINTAGE_FALSE
888 HAVE_3DNOWEXT_VINTAGE_TRUE
889 HAVE_3DNOW_VINTAGE_FALSE
890 HAVE_3DNOW_VINTAGE_TRUE
891 HAVE_MMXTAB_FALSE
892 HAVE_MMXTAB_TRUE
893 HAVE_3DNOWEXT_FALSE
894 HAVE_3DNOWEXT_TRUE
895 HAVE_3DNOW_FALSE
896 HAVE_3DNOW_TRUE
897 HAVE_I586_DITHER_FALSE
898 HAVE_I586_DITHER_TRUE
899 HAVE_I586_FALSE
900 HAVE_I586_TRUE
901 HAVE_I486_FALSE
902 HAVE_I486_TRUE
903 HAVE_I386_FALSE
904 HAVE_I386_TRUE
905 HAVE_ALTIVEC_FALSE
906 HAVE_ALTIVEC_TRUE
907 HAVE_FEATURE_FALSE
908 HAVE_FEATURE_TRUE
909 YASM_FORMAT
910 USE_YASM_FOR_AVX_FALSE
911 USE_YASM_FOR_AVX_TRUE
912 HAVE_FLOATDCT_FALSE
913 HAVE_FLOATDCT_TRUE
914 HAVE_LFS_WRAP_FALSE
915 HAVE_LFS_WRAP_TRUE
916 YASMFLAGS
917 YASM
918 HAVE_LAYER3_FALSE
919 HAVE_LAYER3_TRUE
920 HAVE_LAYER2_FALSE
921 HAVE_LAYER2_TRUE
922 HAVE_LAYER1_FALSE
923 HAVE_LAYER1_TRUE
924 HAVE_EQUALIZER_FALSE
925 HAVE_EQUALIZER_TRUE
926 HAVE_SYNTHREAL_FALSE
927 HAVE_SYNTHREAL_TRUE
928 HAVE_SYNTH32_FALSE
929 HAVE_SYNTH32_TRUE
930 HAVE_SYNTH8_FALSE
931 HAVE_SYNTH8_TRUE
932 HAVE_SYNTH16_FALSE
933 HAVE_SYNTH16_TRUE
934 HAVE_ACCURATE_FALSE
935 HAVE_ACCURATE_TRUE
936 HAVE_RUNTIME_TABLES_FALSE
937 HAVE_RUNTIME_TABLES_TRUE
938 HAVE_NTOM_FALSE
939 HAVE_NTOM_TRUE
940 HAVE_ICY_FALSE
941 HAVE_ICY_TRUE
942 HAVE_STRING_FALSE
943 HAVE_STRING_TRUE
944 NEED_MAINLIB_FALSE
945 NEED_MAINLIB_TRUE
946 NEED_LIB_FALSE
947 NEED_LIB_TRUE
948 BUILD_LIBSYN123_FALSE
949 BUILD_LIBSYN123_TRUE
950 BUILD_LIBOUT123_OR_MODULES_FALSE
951 BUILD_LIBOUT123_OR_MODULES_TRUE
952 BUILD_LIBOUT123_MODULES_FALSE
953 BUILD_LIBOUT123_MODULES_TRUE
954 BUILD_LIBOUT123_FALSE
955 BUILD_LIBOUT123_TRUE
956 BUILD_LIBMPG123_FALSE
957 BUILD_LIBMPG123_TRUE
958 BUILD_PROGRAMS_FALSE
959 BUILD_PROGRAMS_TRUE
960 EXEC_LT_LDFLAGS
961 LT_LDFLAGS
962 LIB_CFLAGS
963 HAVE_MODULES_FALSE
964 HAVE_MODULES_TRUE
965 LT_SYS_LIBRARY_PATH
966 OTOOL64
967 OTOOL
968 LIPO
969 NMEDIT
970 DSYMUTIL
971 MANIFEST_TOOL
972 RANLIB
973 ac_ct_AR
974 AR
975 LN_S
976 NM
977 ac_ct_DUMPBIN
978 DUMPBIN
979 LD
980 FGREP
981 SED
982 LIBTOOL
983 OBJDUMP
984 DLLTOOL
985 AS
986 LIBDL
987 EGREP
988 GREP
989 LIBM
990 CPP
991 am__fastdepCCAS_FALSE
992 am__fastdepCCAS_TRUE
993 CCASDEPMODE
994 CCASFLAGS
995 CCAS
996 am__fastdepCC_FALSE
997 am__fastdepCC_TRUE
998 CCDEPMODE
999 am__nodep
1000 AMDEPBACKSLASH
1001 AMDEP_FALSE
1002 AMDEP_TRUE
1003 am__include
1004 DEPDIR
1005 OBJEXT
1006 EXEEXT
1007 ac_ct_CC
1008 CPPFLAGS
1009 LDFLAGS
1010 CFLAGS
1011 CC
1012 PKG_CONFIG_LIBDIR
1013 PKG_CONFIG_PATH
1014 PKG_CONFIG
1015 AM_BACKSLASH
1016 AM_DEFAULT_VERBOSITY
1017 AM_DEFAULT_V
1018 AM_V
1019 CSCOPE
1020 ETAGS
1021 CTAGS
1022 am__untar
1023 am__tar
1024 AMTAR
1025 am__leading_dot
1026 SET_MAKE
1027 AWK
1028 mkdir_p
1029 MKDIR_P
1030 INSTALL_STRIP_PROGRAM
1031 STRIP
1032 install_sh
1033 MAKEINFO
1034 AUTOHEADER
1035 AUTOMAKE
1036 AUTOCONF
1037 ACLOCAL
1038 VERSION
1039 PACKAGE
1040 CYGPATH_W
1041 am__isrc
1042 INSTALL_DATA
1043 INSTALL_SCRIPT
1044 INSTALL_PROGRAM
1045 host_os
1046 host_vendor
1047 host_cpu
1048 host
1049 build_os
1050 build_vendor
1051 build_cpu
1052 build
1053 LIBSYN123_VERSION
1054 LIBOUT123_VERSION
1055 LIBMPG123_VERSION
1056 target_alias
1057 host_alias
1058 build_alias
1059 LIBS
1060 ECHO_T
1061 ECHO_N
1062 ECHO_C
1063 DEFS
1064 mandir
1065 localedir
1066 libdir
1067 psdir
1068 pdfdir
1069 dvidir
1070 htmldir
1071 infodir
1072 docdir
1073 oldincludedir
1074 includedir
1075 runstatedir
1076 localstatedir
1077 sharedstatedir
1078 sysconfdir
1079 datadir
1080 datarootdir
1081 libexecdir
1082 sbindir
1083 bindir
1084 program_transform_name
1085 prefix
1086 exec_prefix
1087 PACKAGE_URL
1088 PACKAGE_BUGREPORT
1089 PACKAGE_STRING
1090 PACKAGE_VERSION
1091 PACKAGE_TARNAME
1092 PACKAGE_NAME
1093 PATH_SEPARATOR
1094 SHELL
1095 am__quote'
1096 ac_subst_files=''
1097 ac_user_opts='
1098 enable_option_checking
1099 enable_silent_rules
1100 enable_dependency_tracking
1101 enable_modules
1102 enable_static
1103 enable_shared
1104 with_pic
1105 enable_fast_install
1106 with_aix_soname
1107 with_gnu_ld
1108 with_sysroot
1109 enable_libtool_lock
1110 enable_components
1111 enable_programs
1112 enable_libmpg123
1113 enable_libout123
1114 enable_libout123_modules
1115 enable_libsyn123
1116 enable_debug
1117 enable_xdebug
1118 enable_nagging
1119 enable_gapless
1120 enable_fifo
1121 enable_id3v2
1122 enable_string
1123 enable_icy
1124 enable_ntom
1125 enable_downsample
1126 enable_feeder
1127 enable_moreinfo
1128 enable_messages
1129 enable_runtime_tables
1130 enable_new_huffman
1131 enable_int_quality
1132 enable_16bit
1133 enable_8bit
1134 enable_32bit
1135 enable_real
1136 enable_equalizer
1137 with_cpu
1138 enable_yasm
1139 enable_ieeefloat
1140 enable_cases
1141 enable_buffer
1142 enable_newoldwritesample
1143 enable_layer1
1144 enable_layer2
1145 enable_layer3
1146 with_audio
1147 with_default_audio
1148 with_optimization
1149 with_seektable
1150 enable_portable
1151 enable_largefile
1152 enable_feature_report
1153 enable_ipv6
1154 enable_network
1155 with_network
1156 '
1157 ac_precious_vars='build_alias
1158 host_alias
1159 target_alias
1160 PKG_CONFIG
1161 PKG_CONFIG_PATH
1162 PKG_CONFIG_LIBDIR
1163 CC
1164 CFLAGS
1165 LDFLAGS
1166 LIBS
1167 CPPFLAGS
1168 CCAS
1169 CCASFLAGS
1170 CPP
1171 LT_SYS_LIBRARY_PATH
1172 JACK_CFLAGS
1173 JACK_LIBS
1174 PULSE_CFLAGS
1175 PULSE_LIBS
1176 ESD_CFLAGS
1177 ESD_LIBS
1178 SDL_CFLAGS
1179 SDL_LIBS
1180 SNDIO_CFLAGS
1181 SNDIO_LIBS'
1182
1183
1184 # Initialize some variables set by options.
1185 ac_init_help=
1186 ac_init_version=false
1187 ac_unrecognized_opts=
1188 ac_unrecognized_sep=
1189 # The variables have the same names as the options, with
1190 # dashes changed to underlines.
1191 cache_file=/dev/null
1192 exec_prefix=NONE
1193 no_create=
1194 no_recursion=
1195 prefix=NONE
1196 program_prefix=NONE
1197 program_suffix=NONE
1198 program_transform_name=s,x,x,
1199 silent=
1200 site=
1201 srcdir=
1202 verbose=
1203 x_includes=NONE
1204 x_libraries=NONE
1205
1206 # Installation directory options.
1207 # These are left unexpanded so users can "make install exec_prefix=/foo"
1208 # and all the variables that are supposed to be based on exec_prefix
1209 # by default will actually change.
1210 # Use braces instead of parens because sh, perl, etc. also accept them.
1211 # (The list follows the same order as the GNU Coding Standards.)
1212 bindir='${exec_prefix}/bin'
1213 sbindir='${exec_prefix}/sbin'
1214 libexecdir='${exec_prefix}/libexec'
1215 datarootdir='${prefix}/share'
1216 datadir='${datarootdir}'
1217 sysconfdir='${prefix}/etc'
1218 sharedstatedir='${prefix}/com'
1219 localstatedir='${prefix}/var'
1220 runstatedir='${localstatedir}/run'
1221 includedir='${prefix}/include'
1222 oldincludedir='/usr/include'
1223 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1224 infodir='${datarootdir}/info'
1225 htmldir='${docdir}'
1226 dvidir='${docdir}'
1227 pdfdir='${docdir}'
1228 psdir='${docdir}'
1229 libdir='${exec_prefix}/lib'
1230 localedir='${datarootdir}/locale'
1231 mandir='${datarootdir}/man'
1232
1233 ac_prev=
1234 ac_dashdash=
1235 for ac_option
1236 do
1237 # If the previous option needs an argument, assign it.
1238 if test -n "$ac_prev"; then
1239 eval $ac_prev=\$ac_option
1240 ac_prev=
1241 continue
1242 fi
1243
1244 case $ac_option in
1245 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246 *=) ac_optarg= ;;
1247 *) ac_optarg=yes ;;
1248 esac
1249
1250 case $ac_dashdash$ac_option in
1251 --)
1252 ac_dashdash=yes ;;
1253
1254 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1255 ac_prev=bindir ;;
1256 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1257 bindir=$ac_optarg ;;
1258
1259 -build | --build | --buil | --bui | --bu)
1260 ac_prev=build_alias ;;
1261 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1262 build_alias=$ac_optarg ;;
1263
1264 -cache-file | --cache-file | --cache-fil | --cache-fi \
1265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1266 ac_prev=cache_file ;;
1267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1269 cache_file=$ac_optarg ;;
1270
1271 --config-cache | -C)
1272 cache_file=config.cache ;;
1273
1274 -datadir | --datadir | --datadi | --datad)
1275 ac_prev=datadir ;;
1276 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1277 datadir=$ac_optarg ;;
1278
1279 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1280 | --dataroo | --dataro | --datar)
1281 ac_prev=datarootdir ;;
1282 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1283 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1284 datarootdir=$ac_optarg ;;
1285
1286 -disable-* | --disable-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "enable_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval enable_$ac_useropt=no ;;
1301
1302 -docdir | --docdir | --docdi | --doc | --do)
1303 ac_prev=docdir ;;
1304 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1305 docdir=$ac_optarg ;;
1306
1307 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1308 ac_prev=dvidir ;;
1309 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1310 dvidir=$ac_optarg ;;
1311
1312 -enable-* | --enable-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1320 *"
1321 "enable_$ac_useropt"
1322 "*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval enable_$ac_useropt=\$ac_optarg ;;
1327
1328 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1329 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1330 | --exec | --exe | --ex)
1331 ac_prev=exec_prefix ;;
1332 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1333 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1334 | --exec=* | --exe=* | --ex=*)
1335 exec_prefix=$ac_optarg ;;
1336
1337 -gas | --gas | --ga | --g)
1338 # Obsolete; use --with-gas.
1339 with_gas=yes ;;
1340
1341 -help | --help | --hel | --he | -h)
1342 ac_init_help=long ;;
1343 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1344 ac_init_help=recursive ;;
1345 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1346 ac_init_help=short ;;
1347
1348 -host | --host | --hos | --ho)
1349 ac_prev=host_alias ;;
1350 -host=* | --host=* | --hos=* | --ho=*)
1351 host_alias=$ac_optarg ;;
1352
1353 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1354 ac_prev=htmldir ;;
1355 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1356 | --ht=*)
1357 htmldir=$ac_optarg ;;
1358
1359 -includedir | --includedir | --includedi | --included | --include \
1360 | --includ | --inclu | --incl | --inc)
1361 ac_prev=includedir ;;
1362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1363 | --includ=* | --inclu=* | --incl=* | --inc=*)
1364 includedir=$ac_optarg ;;
1365
1366 -infodir | --infodir | --infodi | --infod | --info | --inf)
1367 ac_prev=infodir ;;
1368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1369 infodir=$ac_optarg ;;
1370
1371 -libdir | --libdir | --libdi | --libd)
1372 ac_prev=libdir ;;
1373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1374 libdir=$ac_optarg ;;
1375
1376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1377 | --libexe | --libex | --libe)
1378 ac_prev=libexecdir ;;
1379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1380 | --libexe=* | --libex=* | --libe=*)
1381 libexecdir=$ac_optarg ;;
1382
1383 -localedir | --localedir | --localedi | --localed | --locale)
1384 ac_prev=localedir ;;
1385 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1386 localedir=$ac_optarg ;;
1387
1388 -localstatedir | --localstatedir | --localstatedi | --localstated \
1389 | --localstate | --localstat | --localsta | --localst | --locals)
1390 ac_prev=localstatedir ;;
1391 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1392 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1393 localstatedir=$ac_optarg ;;
1394
1395 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1396 ac_prev=mandir ;;
1397 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1398 mandir=$ac_optarg ;;
1399
1400 -nfp | --nfp | --nf)
1401 # Obsolete; use --without-fp.
1402 with_fp=no ;;
1403
1404 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1405 | --no-cr | --no-c | -n)
1406 no_create=yes ;;
1407
1408 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1409 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1410 no_recursion=yes ;;
1411
1412 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1413 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1414 | --oldin | --oldi | --old | --ol | --o)
1415 ac_prev=oldincludedir ;;
1416 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1417 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1418 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1419 oldincludedir=$ac_optarg ;;
1420
1421 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1422 ac_prev=prefix ;;
1423 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1424 prefix=$ac_optarg ;;
1425
1426 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1427 | --program-pre | --program-pr | --program-p)
1428 ac_prev=program_prefix ;;
1429 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1430 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1431 program_prefix=$ac_optarg ;;
1432
1433 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1434 | --program-suf | --program-su | --program-s)
1435 ac_prev=program_suffix ;;
1436 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1437 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1438 program_suffix=$ac_optarg ;;
1439
1440 -program-transform-name | --program-transform-name \
1441 | --program-transform-nam | --program-transform-na \
1442 | --program-transform-n | --program-transform- \
1443 | --program-transform | --program-transfor \
1444 | --program-transfo | --program-transf \
1445 | --program-trans | --program-tran \
1446 | --progr-tra | --program-tr | --program-t)
1447 ac_prev=program_transform_name ;;
1448 -program-transform-name=* | --program-transform-name=* \
1449 | --program-transform-nam=* | --program-transform-na=* \
1450 | --program-transform-n=* | --program-transform-=* \
1451 | --program-transform=* | --program-transfor=* \
1452 | --program-transfo=* | --program-transf=* \
1453 | --program-trans=* | --program-tran=* \
1454 | --progr-tra=* | --program-tr=* | --program-t=*)
1455 program_transform_name=$ac_optarg ;;
1456
1457 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1458 ac_prev=pdfdir ;;
1459 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1460 pdfdir=$ac_optarg ;;
1461
1462 -psdir | --psdir | --psdi | --psd | --ps)
1463 ac_prev=psdir ;;
1464 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1465 psdir=$ac_optarg ;;
1466
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1469 silent=yes ;;
1470
1471 -runstatedir | --runstatedir | --runstatedi | --runstated \
1472 | --runstate | --runstat | --runsta | --runst | --runs \
1473 | --run | --ru | --r)
1474 ac_prev=runstatedir ;;
1475 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1476 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1477 | --run=* | --ru=* | --r=*)
1478 runstatedir=$ac_optarg ;;
1479
1480 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1481 ac_prev=sbindir ;;
1482 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1483 | --sbi=* | --sb=*)
1484 sbindir=$ac_optarg ;;
1485
1486 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1487 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1488 | --sharedst | --shareds | --shared | --share | --shar \
1489 | --sha | --sh)
1490 ac_prev=sharedstatedir ;;
1491 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1492 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1493 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1494 | --sha=* | --sh=*)
1495 sharedstatedir=$ac_optarg ;;
1496
1497 -site | --site | --sit)
1498 ac_prev=site ;;
1499 -site=* | --site=* | --sit=*)
1500 site=$ac_optarg ;;
1501
1502 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1503 ac_prev=srcdir ;;
1504 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1505 srcdir=$ac_optarg ;;
1506
1507 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1508 | --syscon | --sysco | --sysc | --sys | --sy)
1509 ac_prev=sysconfdir ;;
1510 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1511 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1512 sysconfdir=$ac_optarg ;;
1513
1514 -target | --target | --targe | --targ | --tar | --ta | --t)
1515 ac_prev=target_alias ;;
1516 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1517 target_alias=$ac_optarg ;;
1518
1519 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1520 verbose=yes ;;
1521
1522 -version | --version | --versio | --versi | --vers | -V)
1523 ac_init_version=: ;;
1524
1525 -with-* | --with-*)
1526 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1527 # Reject names that are not valid shell variable names.
1528 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1529 as_fn_error $? "invalid package name: \`$ac_useropt'"
1530 ac_useropt_orig=$ac_useropt
1531 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1532 case $ac_user_opts in
1533 *"
1534 "with_$ac_useropt"
1535 "*) ;;
1536 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1537 ac_unrecognized_sep=', ';;
1538 esac
1539 eval with_$ac_useropt=\$ac_optarg ;;
1540
1541 -without-* | --without-*)
1542 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1543 # Reject names that are not valid shell variable names.
1544 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545 as_fn_error $? "invalid package name: \`$ac_useropt'"
1546 ac_useropt_orig=$ac_useropt
1547 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1548 case $ac_user_opts in
1549 *"
1550 "with_$ac_useropt"
1551 "*) ;;
1552 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1553 ac_unrecognized_sep=', ';;
1554 esac
1555 eval with_$ac_useropt=no ;;
1556
1557 --x)
1558 # Obsolete; use --with-x.
1559 with_x=yes ;;
1560
1561 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1562 | --x-incl | --x-inc | --x-in | --x-i)
1563 ac_prev=x_includes ;;
1564 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1565 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1566 x_includes=$ac_optarg ;;
1567
1568 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1569 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1570 ac_prev=x_libraries ;;
1571 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1572 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1573 x_libraries=$ac_optarg ;;
1574
1575 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1576 Try \`$0 --help' for more information"
1577 ;;
1578
1579 *=*)
1580 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1581 # Reject names that are not valid shell variable names.
1582 case $ac_envvar in #(
1583 '' | [0-9]* | *[!_$as_cr_alnum]* )
1584 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1585 esac
1586 eval $ac_envvar=\$ac_optarg
1587 export $ac_envvar ;;
1588
1589 *)
1590 # FIXME: should be removed in autoconf 3.0.
1591 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1592 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1593 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1594 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1595 ;;
1596
1597 esac
1598 done
1599
1600 if test -n "$ac_prev"; then
1601 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1602 as_fn_error $? "missing argument to $ac_option"
1603 fi
1604
1605 if test -n "$ac_unrecognized_opts"; then
1606 case $enable_option_checking in
1607 no) ;;
1608 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1609 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1610 esac
1611 fi
1612
1613 # Check all directory arguments for consistency.
1614 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1615 datadir sysconfdir sharedstatedir localstatedir includedir \
1616 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1617 libdir localedir mandir runstatedir
1618 do
1619 eval ac_val=\$$ac_var
1620 # Remove trailing slashes.
1621 case $ac_val in
1622 */ )
1623 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1624 eval $ac_var=\$ac_val;;
1625 esac
1626 # Be sure to have absolute directory names.
1627 case $ac_val in
1628 [\\/$]* | ?:[\\/]* ) continue;;
1629 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1630 esac
1631 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1632 done
1633
1634 # There might be people who depend on the old broken behavior: `$host'
1635 # used to hold the argument of --host etc.
1636 # FIXME: To remove some day.
1637 build=$build_alias
1638 host=$host_alias
1639 target=$target_alias
1640
1641 # FIXME: To remove some day.
1642 if test "x$host_alias" != x; then
1643 if test "x$build_alias" = x; then
1644 cross_compiling=maybe
1645 elif test "x$build_alias" != "x$host_alias"; then
1646 cross_compiling=yes
1647 fi
1648 fi
1649
1650 ac_tool_prefix=
1651 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1652
1653 test "$silent" = yes && exec 6>/dev/null
1654
1655
1656 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657 ac_ls_di=`ls -di .` &&
1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1659 as_fn_error $? "working directory cannot be determined"
1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1661 as_fn_error $? "pwd does not report name of working directory"
1662
1663
1664 # Find the source files, if location was not specified.
1665 if test -z "$srcdir"; then
1666 ac_srcdir_defaulted=yes
1667 # Try the directory containing this script, then the parent directory.
1668 ac_confdir=`$as_dirname -- "$as_myself" ||
1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670 X"$as_myself" : 'X\(//\)[^/]' \| \
1671 X"$as_myself" : 'X\(//\)$' \| \
1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673 printf "%s\n" X"$as_myself" |
1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675 s//\1/
1676 q
1677 }
1678 /^X\(\/\/\)[^/].*/{
1679 s//\1/
1680 q
1681 }
1682 /^X\(\/\/\)$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\).*/{
1687 s//\1/
1688 q
1689 }
1690 s/.*/./; q'`
1691 srcdir=$ac_confdir
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693 srcdir=..
1694 fi
1695 else
1696 ac_srcdir_defaulted=no
1697 fi
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1700 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1701 fi
1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1703 ac_abs_confdir=`(
1704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1705 pwd)`
1706 # When building in place, set srcdir=.
1707 if test "$ac_abs_confdir" = "$ac_pwd"; then
1708 srcdir=.
1709 fi
1710 # Remove unnecessary trailing slashes from srcdir.
1711 # Double slashes in file names in object file debugging info
1712 # mess up M-x gdb in Emacs.
1713 case $srcdir in
1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1715 esac
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_env_${ac_var}_value=\$${ac_var}
1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1721 done
1722
1723 #
1724 # Report the --help message.
1725 #
1726 if test "$ac_init_help" = "long"; then
1727 # Omit some internal or obsolete options to make the list less imposing.
1728 # This message is too long to be a string in the A/UX 3.1 sh.
1729 cat <<_ACEOF
1730 \`configure' configures mpg123 1.33.6 to adapt to many kinds of systems.
1731
1732 Usage: $0 [OPTION]... [VAR=VALUE]...
1733
1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735 VAR=VALUE. See below for descriptions of some of the useful variables.
1736
1737 Defaults for the options are specified in brackets.
1738
1739 Configuration:
1740 -h, --help display this help and exit
1741 --help=short display options specific to this package
1742 --help=recursive display the short help of all the included packages
1743 -V, --version display version information and exit
1744 -q, --quiet, --silent do not print \`checking ...' messages
1745 --cache-file=FILE cache test results in FILE [disabled]
1746 -C, --config-cache alias for \`--cache-file=config.cache'
1747 -n, --no-create do not create output files
1748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1749
1750 Installation directories:
1751 --prefix=PREFIX install architecture-independent files in PREFIX
1752 [$ac_default_prefix]
1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1754 [PREFIX]
1755
1756 By default, \`make install' will install all the files in
1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759 for instance \`--prefix=\$HOME'.
1760
1761 For better control, use the options below.
1762
1763 Fine tuning of the installation directories:
1764 --bindir=DIR user executables [EPREFIX/bin]
1765 --sbindir=DIR system admin executables [EPREFIX/sbin]
1766 --libexecdir=DIR program executables [EPREFIX/libexec]
1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1770 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1771 --libdir=DIR object code libraries [EPREFIX/lib]
1772 --includedir=DIR C header files [PREFIX/include]
1773 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1774 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1775 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1776 --infodir=DIR info documentation [DATAROOTDIR/info]
1777 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1778 --mandir=DIR man documentation [DATAROOTDIR/man]
1779 --docdir=DIR documentation root [DATAROOTDIR/doc/mpg123]
1780 --htmldir=DIR html documentation [DOCDIR]
1781 --dvidir=DIR dvi documentation [DOCDIR]
1782 --pdfdir=DIR pdf documentation [DOCDIR]
1783 --psdir=DIR ps documentation [DOCDIR]
1784 _ACEOF
1785
1786 cat <<\_ACEOF
1787
1788 Program names:
1789 --program-prefix=PREFIX prepend PREFIX to installed program names
1790 --program-suffix=SUFFIX append SUFFIX to installed program names
1791 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1792
1793 System types:
1794 --build=BUILD configure for building on BUILD [guessed]
1795 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1796 _ACEOF
1797 fi
1798
1799 if test -n "$ac_init_help"; then
1800 case $ac_init_help in
1801 short | recursive ) echo "Configuration of mpg123 1.33.6:";;
1802 esac
1803 cat <<\_ACEOF
1804
1805 Optional Features:
1806 --disable-option-checking ignore unrecognized --enable/--with options
1807 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1808 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1809 --enable-silent-rules less verbose build output (undo: "make V=1")
1810 --disable-silent-rules verbose build output (undo: "make V=0")
1811 --enable-dependency-tracking
1812 do not reject slow dependency extractors
1813 --disable-dependency-tracking
1814 speeds up one-time build
1815 --disable-modules dynamically loadable output module support (default
1816 enabled in shared library builds)
1817 --enable-static[=PKGS] build static libraries [default=no]
1818 --enable-shared[=PKGS] build shared libraries [default=yes]
1819 --enable-fast-install[=PKGS]
1820 optimize for fast installation [default=yes]
1821 --disable-libtool-lock avoid locking (might break parallel builds)
1822 --disable-components (not) build end-user programs with default
1823 components, select individual components via
1824 --enable-libmpg123 etc.
1825 --enable-programs build (only) programs (with --disable-components)
1826 --enable-libmpg123 build (only) libmpg123 (with --disable-components)
1827 --enable-libout123 build (only) libout123 (with --disable-components)
1828 --enable-libout123-modules
1829 build (only) libout123 modules (with
1830 --disable-components)
1831 --enable-libsyn123 build (only) libsyn123 (with --disable-components)
1832 --enable-debug turn on (lots of) debugging printouts
1833 --enable-xdebug turn on (yet more) extreme debugging printouts
1834 --enable-nagging turn on GCC's pedantic nagging with error on
1835 warnings
1836 --disable-gapless turn off gapless decoding (please don't)
1837 --enable-fifo FIFO support for control interface (auto-enabled on
1838 linux)
1839 --disable-id3v2 no ID3v2 parsing
1840 --disable-string no string API (this will disable ID3v2; main mpg123
1841 won't build anymore)
1842 --disable-icy no ICY metainfo parsing/conversion (main mpg123
1843 won't build!)
1844 --disable-ntom no flexible resampling
1845 --disable-downsample no downsampled decoding
1846 --disable-feeder no feeder decoding, no buffered readers
1847 --disable-moreinfo no extra information for frame analyzers
1848 --disable-messages no error/warning messages on the console
1849 --enable-runtime-tables calculate tables at runtime saving size at the
1850 expense of additional computation at load time
1851 --disable-new-huffman new huffman decoding scheme by Taihei (faster on
1852 modern CPUs at least, so on by default)
1853 --disable-int-quality use rounding instead of fast truncation for integer
1854 output, where possible
1855 --disable-16bit no 16 bit integer output
1856 --disable-8bit no 8 bit integer output
1857 --disable-32bit no 32 bit integer output (also 24 bit)
1858 --disable-real no real (floating point) output
1859 --disable-equalizer no equalizer support
1860 --enable-yasm enforce yasm instad of default assembler for some
1861 optimizations (AVX, currently)
1862 --disable-ieeefloat use special hackery relying on IEEE 754 floating
1863 point storage format (to accurately round to 16 bit
1864 integer at bit more efficiently in generic decoder,
1865 enabled by default, disable in case you have a very
1866 special computer)
1867 --disable-cases include special cases for likely parameter values
1868 (channel count, encoding sizes in libsyn123
1869 routines) in the hope of better optimization at the
1870 expense of some code bloat
1871 --disable-buffer disable audio buffer code (default enabled by some
1872 heuristics)
1873 --enable-newoldwritesample
1874 new/old WRITE_SAMPLE macro for non-accurate 16 bit
1875 output, faster on certain CPUs (default on on 32 bit
1876 x86)
1877 --disable-layer1 no layer I decoding
1878 --disable-layer2 no layer II decoding
1879 --disable-layer3 no layer III decoding
1880 --enable-portable only build portable API (no off_t, no internal I/O
1881 -- and no end-user programs)
1882 --disable-largefile to not attempt to use 64 bit file offsets internally
1883 --disable-feature_report
1884 Disable feature report function
1885 --enable-ipv6 IPv6 support in internal network stack
1886 --enable-network network support (http streams / webradio), if
1887 available (overruled by --with-network!)
1888
1889 Optional Packages:
1890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1892 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1893 both]
1894 --with-aix-soname=aix|svr4|both
1895 shared library versioning (aka "SONAME") variant to
1896 provide on AIX, [default=aix].
1897 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1898 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1899 compiler's sysroot if not specified).
1900 --with-cpu=<type> select CPU optimization. Choices are:
1901
1902 generic[_fpu] Use generic processor code with floating point arithmetic
1903 generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
1904 generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM)
1905 generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
1906 i386[_fpu] Use code optimized for i386 processors with floating point arithmetic
1907 i386_nofpu Use code optimized for i386 processors with fixed point arithmetic
1908 i486 Use code optimized for i486 processors (only usable alone!)
1909 i586 Use code optimized for i586 processors
1910 i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
1911 3dnow Use code optimized for 3DNow processors
1912 3dnow_vintage Use code optimized for older 3DNow processors (K6 family)
1913 3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
1914 3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
1915 3dnow_vintage Use code optimized for older extended 3DNow processors (like K6-III+)
1916 mmx Use code optimized for MMX processors
1917 mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
1918 sse Use code optimized for SSE processors
1919 sse_vintage Use code optimized for older SSE processors (plain C DCT36)
1920 sse_alone Really only SSE decoder, without i586 fallback for flexible rate
1921 avx Use code optimized for x86-64 with AVX processors
1922 x86 Pack all x86 opts into one binary (excluding i486, including dither)
1923 x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64, including AVX and dithered generic)
1924 altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
1925 ppc_nofpu Use code optimized for PowerPC processors with fixed point arithmetic
1926 neon Use code optimized for ARM NEON SIMD engine (Cortex-A series)
1927 arm_fpu Pack neon and generic[_dither] decoders, for ARM processors with FPU and/or NEON
1928 arm_nofpu Use code optimized for ARM processors with fixed point arithmetic
1929 neon64 Use code optimized for AArch64 NEON SIMD engine
1930 aarch64 Pack neon64 and generic[_dither] decoders, for 64bit ARM processors
1931
1932
1933 --with-audio=<list of modules>
1934 Select a list (or only one) of audio output modules
1935 (comma or space separated list). Choices are:
1936
1937 aix Use AIX as default audio output sub-system
1938 alib Use Alib as default audio output sub-system (for HPUX)
1939 alsa Use ALSA as default audio output sub-system (libasound)
1940 tinyalsa Use ALSA as default audio output sub-system (tinyalsa)
1941 arts Use aRts as default audio output sub-system (KDE sound server)
1942 dummy Use dummy as default audio (when no sound card is available)
1943 esd Use ESoundD as default audio output sub-system
1944 hp Use HP as default audio output sub-system
1945 jack Use JACK as default low-latency audio server
1946 coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
1947 mint Use MinT as default audio output sub-system (Atari)
1948 nas Use NAS as default audio output (Network Audio System)
1949 os2 Use OS2 as default audio output sub-system
1950 oss Use OSS as default audio output sub-system (/dev/dsp)
1951 portaudio Use PortAudio as default audio output sub-system
1952 pulse Use Pulse audio server as default audio output sub-system
1953 qsa Use QSA as default audio output sub-system
1954 sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
1955 sgi Use SGI as default audio output sub-system (IRIX)
1956 sndio Use OpenBSD's sndio as default audio output sub-system
1957 sun Use Sun as default audio output sub-system (/dev/audio)
1958 win32 Use Win32 audio as default audio output sub-system
1959 win32_wasapi Use Win32 wasapi audio as default audio output sub-system
1960
1961
1962 --with-default-audio=<list of modules> Select a list of audio output modules to try at runtime, even if not built right now (comma or space separated). See --with-audio for options.
1963
1964
1965 --with-optimization=0 No Optimization
1966 --with-optimization=1 Limited Optimization (-O) (for gcc)
1967 --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
1968 --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
1969 --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
1970
1971
1972 --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
1973
1974 --with-network=<type> Available options, depending on platform, are auto,
1975 none, internal, winhttp, wininet (or wininethttp for
1976 both), and exec (wget or curl binaries). The
1977 internal code is always built in addition to
1978 external options for plain HTTP (esp. Shoutcast v1)
1979 support. The external option is for HTTPS by
1980 default, but can be used for HTTP, too.
1981
1982 Some influential environment variables:
1983 PKG_CONFIG path to pkg-config utility
1984 PKG_CONFIG_PATH
1985 directories to add to pkg-config's search path
1986 PKG_CONFIG_LIBDIR
1987 path overriding pkg-config's built-in search path
1988 CC C compiler command
1989 CFLAGS C compiler flags
1990 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1991 nonstandard directory <lib dir>
1992 LIBS libraries to pass to the linker, e.g. -l<library>
1993 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1994 you have headers in a nonstandard directory <include dir>
1995 CCAS assembler compiler command (defaults to CC)
1996 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1997 CPP C preprocessor
1998 LT_SYS_LIBRARY_PATH
1999 User-defined run-time library search path.
2000 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
2001 JACK_LIBS linker flags for JACK, overriding pkg-config
2002 PULSE_CFLAGS
2003 C compiler flags for PULSE, overriding pkg-config
2004 PULSE_LIBS linker flags for PULSE, overriding pkg-config
2005 ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
2006 ESD_LIBS linker flags for ESD, overriding pkg-config
2007 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
2008 SDL_LIBS linker flags for SDL, overriding pkg-config
2009 SNDIO_CFLAGS
2010 C compiler flags for SNDIO, overriding pkg-config
2011 SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
2012
2013 Use these variables to override the choices made by `configure' or to help
2014 it to find libraries and programs with nonstandard names/locations.
2015
2016 Report bugs to <[email protected]>.
2017 _ACEOF
2018 ac_status=$?
2019 fi
2020
2021 if test "$ac_init_help" = "recursive"; then
2022 # If there are subdirs, report their specific --help.
2023 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2024 test -d "$ac_dir" ||
2025 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2026 continue
2027 ac_builddir=.
2028
2029 case "$ac_dir" in
2030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2031 *)
2032 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2033 # A ".." for each directory in $ac_dir_suffix.
2034 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2035 case $ac_top_builddir_sub in
2036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2038 esac ;;
2039 esac
2040 ac_abs_top_builddir=$ac_pwd
2041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2042 # for backward compatibility:
2043 ac_top_builddir=$ac_top_build_prefix
2044
2045 case $srcdir in
2046 .) # We are building in place.
2047 ac_srcdir=.
2048 ac_top_srcdir=$ac_top_builddir_sub
2049 ac_abs_top_srcdir=$ac_pwd ;;
2050 [\\/]* | ?:[\\/]* ) # Absolute name.
2051 ac_srcdir=$srcdir$ac_dir_suffix;
2052 ac_top_srcdir=$srcdir
2053 ac_abs_top_srcdir=$srcdir ;;
2054 *) # Relative name.
2055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2056 ac_top_srcdir=$ac_top_build_prefix$srcdir
2057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2058 esac
2059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2060
2061 cd "$ac_dir" || { ac_status=$?; continue; }
2062 # Check for configure.gnu first; this name is used for a wrapper for
2063 # Metaconfig's "Configure" on case-insensitive file systems.
2064 if test -f "$ac_srcdir/configure.gnu"; then
2065 echo &&
2066 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2067 elif test -f "$ac_srcdir/configure"; then
2068 echo &&
2069 $SHELL "$ac_srcdir/configure" --help=recursive
2070 else
2071 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2072 fi || ac_status=$?
2073 cd "$ac_pwd" || { ac_status=$?; break; }
2074 done
2075 fi
2076
2077 test -n "$ac_init_help" && exit $ac_status
2078 if $ac_init_version; then
2079 cat <<\_ACEOF
2080 mpg123 configure 1.33.6
2081 generated by GNU Autoconf 2.71
2082
2083 Copyright (C) 2021 Free Software Foundation, Inc.
2084 This configure script is free software; the Free Software Foundation
2085 gives unlimited permission to copy, distribute and modify it.
2086 _ACEOF
2087 exit
2088 fi
2089
2090 ## ------------------------ ##
2091 ## Autoconf initialization. ##
2092 ## ------------------------ ##
2093
2094 # ac_fn_c_try_compile LINENO
2095 # --------------------------
2096 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_c_try_compile ()
2098 {
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 rm -f conftest.$ac_objext conftest.beam
2101 if { { ac_try="$ac_compile"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 printf "%s\n" "$ac_try_echo"; } >&5
2108 (eval "$ac_compile") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2114 fi
2115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } && {
2117 test -z "$ac_c_werror_flag" ||
2118 test ! -s conftest.err
2119 } && test -s conftest.$ac_objext
2120 then :
2121 ac_retval=0
2122 else $as_nop
2123 printf "%s\n" "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 printf "%s\n" "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } > conftest.i && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }
2158 then :
2159 ac_retval=0
2160 else $as_nop
2161 printf "%s\n" "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_retval=1
2165 fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168
2169 } # ac_fn_c_try_cpp
2170
2171 # ac_fn_c_try_link LINENO
2172 # -----------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_link ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2179 case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 printf "%s\n" "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2186 ac_status=$?
2187 if test -s conftest.err; then
2188 grep -v '^ *+' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 mv -f conftest.er1 conftest.err
2191 fi
2192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 test -x conftest$ac_exeext
2199 }
2200 then :
2201 ac_retval=0
2202 else $as_nop
2203 printf "%s\n" "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 as_fn_set_status $ac_retval
2215
2216 } # ac_fn_c_try_link
2217
2218 # ac_fn_c_check_func LINENO FUNC VAR
2219 # ----------------------------------
2220 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2221 ac_fn_c_check_func ()
2222 {
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 printf %s "checking for $2... " >&6; }
2226 if eval test \${$3+y}
2227 then :
2228 printf %s "(cached) " >&6
2229 else $as_nop
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2234 #define $2 innocuous_$2
2235
2236 /* System header to define __stub macros and hopefully few prototypes,
2237 which can conflict with char $2 (); below. */
2238
2239 #include <limits.h>
2240 #undef $2
2241
2242 /* Override any GCC internal prototype to avoid an error.
2243 Use char because int might match the return type of a GCC
2244 builtin and then its argument prototype would still apply. */
2245 #ifdef __cplusplus
2246 extern "C"
2247 #endif
2248 char $2 ();
2249 /* The GNU C library defines this for functions which it implements
2250 to always fail with ENOSYS. Some functions are actually named
2251 something starting with __ and the normal name is an alias. */
2252 #if defined __stub_$2 || defined __stub___$2
2253 choke me
2254 #endif
2255
2256 int
2257 main (void)
2258 {
2259 return $2 ();
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_link "$LINENO"
2265 then :
2266 eval "$3=yes"
2267 else $as_nop
2268 eval "$3=no"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2271 conftest$ac_exeext conftest.$ac_ext
2272 fi
2273 eval ac_res=\$$3
2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 printf "%s\n" "$ac_res" >&6; }
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277
2278 } # ac_fn_c_check_func
2279
2280 # ac_fn_c_try_run LINENO
2281 # ----------------------
2282 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2283 # executables *can* be run.
2284 ac_fn_c_try_run ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if { { ac_try="$ac_link"
2288 case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291 esac
2292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2293 printf "%s\n" "$ac_try_echo"; } >&5
2294 (eval "$ac_link") 2>&5
2295 ac_status=$?
2296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2298 { { case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301 esac
2302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303 printf "%s\n" "$ac_try_echo"; } >&5
2304 (eval "$ac_try") 2>&5
2305 ac_status=$?
2306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; }; }
2308 then :
2309 ac_retval=0
2310 else $as_nop
2311 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2312 printf "%s\n" "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 ac_retval=$ac_status
2316 fi
2317 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2320
2321 } # ac_fn_c_try_run
2322
2323 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2324 # -------------------------------------------------------
2325 # Tests whether HEADER exists and can be compiled using the include files in
2326 # INCLUDES, setting the cache variable VAR accordingly.
2327 ac_fn_c_check_header_compile ()
2328 {
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 printf %s "checking for $2... " >&6; }
2332 if eval test \${$3+y}
2333 then :
2334 printf %s "(cached) " >&6
2335 else $as_nop
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 #include <$2>
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"
2342 then :
2343 eval "$3=yes"
2344 else $as_nop
2345 eval "$3=no"
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 printf "%s\n" "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_header_compile
2355
2356 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2357 # --------------------------------------------
2358 # Tries to find the compile-time value of EXPR in a program that includes
2359 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2360 # computed
2361 ac_fn_c_compute_int ()
2362 {
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 if test "$cross_compiling" = yes; then
2365 # Depending upon the size, compute the lo and hi bounds.
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2368 $4
2369 int
2370 main (void)
2371 {
2372 static int test_array [1 - 2 * !(($2) >= 0)];
2373 test_array [0] = 0;
2374 return test_array [0];
2375
2376 ;
2377 return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"
2381 then :
2382 ac_lo=0 ac_mid=0
2383 while :; do
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 $4
2387 int
2388 main (void)
2389 {
2390 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2391 test_array [0] = 0;
2392 return test_array [0];
2393
2394 ;
2395 return 0;
2396 }
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"
2399 then :
2400 ac_hi=$ac_mid; break
2401 else $as_nop
2402 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2403 if test $ac_lo -le $ac_mid; then
2404 ac_lo= ac_hi=
2405 break
2406 fi
2407 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2408 fi
2409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2410 done
2411 else $as_nop
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $4
2415 int
2416 main (void)
2417 {
2418 static int test_array [1 - 2 * !(($2) < 0)];
2419 test_array [0] = 0;
2420 return test_array [0];
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"
2427 then :
2428 ac_hi=-1 ac_mid=-1
2429 while :; do
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $4
2433 int
2434 main (void)
2435 {
2436 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2437 test_array [0] = 0;
2438 return test_array [0];
2439
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"
2445 then :
2446 ac_lo=$ac_mid; break
2447 else $as_nop
2448 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2449 if test $ac_mid -le $ac_hi; then
2450 ac_lo= ac_hi=
2451 break
2452 fi
2453 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2456 done
2457 else $as_nop
2458 ac_lo= ac_hi=
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 # Binary search between lo and hi bounds.
2464 while test "x$ac_lo" != "x$ac_hi"; do
2465 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $4
2469 int
2470 main (void)
2471 {
2472 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476 ;
2477 return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"
2481 then :
2482 ac_hi=$ac_mid
2483 else $as_nop
2484 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2485 fi
2486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2487 done
2488 case $ac_lo in #((
2489 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2490 '') ac_retval=1 ;;
2491 esac
2492 else
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2495 $4
2496 static long int longval (void) { return $2; }
2497 static unsigned long int ulongval (void) { return $2; }
2498 #include <stdio.h>
2499 #include <stdlib.h>
2500 int
2501 main (void)
2502 {
2503
2504 FILE *f = fopen ("conftest.val", "w");
2505 if (! f)
2506 return 1;
2507 if (($2) < 0)
2508 {
2509 long int i = longval ();
2510 if (i != ($2))
2511 return 1;
2512 fprintf (f, "%ld", i);
2513 }
2514 else
2515 {
2516 unsigned long int i = ulongval ();
2517 if (i != ($2))
2518 return 1;
2519 fprintf (f, "%lu", i);
2520 }
2521 /* Do not output a trailing newline, as this causes \r\n confusion
2522 on some platforms. */
2523 return ferror (f) || fclose (f) != 0;
2524
2525 ;
2526 return 0;
2527 }
2528 _ACEOF
2529 if ac_fn_c_try_run "$LINENO"
2530 then :
2531 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532 else $as_nop
2533 ac_retval=1
2534 fi
2535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2536 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537 rm -f conftest.val
2538
2539 fi
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541 as_fn_set_status $ac_retval
2542
2543 } # ac_fn_c_compute_int
2544
2545 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546 # -------------------------------------------
2547 # Tests whether TYPE exists after having included INCLUDES, setting cache
2548 # variable VAR accordingly.
2549 ac_fn_c_check_type ()
2550 {
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 printf %s "checking for $2... " >&6; }
2554 if eval test \${$3+y}
2555 then :
2556 printf %s "(cached) " >&6
2557 else $as_nop
2558 eval "$3=no"
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2561 $4
2562 int
2563 main (void)
2564 {
2565 if (sizeof ($2))
2566 return 0;
2567 ;
2568 return 0;
2569 }
2570 _ACEOF
2571 if ac_fn_c_try_compile "$LINENO"
2572 then :
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 $4
2576 int
2577 main (void)
2578 {
2579 if (sizeof (($2)))
2580 return 0;
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"
2586 then :
2587
2588 else $as_nop
2589 eval "$3=yes"
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2594 fi
2595 eval ac_res=\$$3
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2597 printf "%s\n" "$ac_res" >&6; }
2598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599
2600 } # ac_fn_c_check_type
2601 ac_configure_args_raw=
2602 for ac_arg
2603 do
2604 case $ac_arg in
2605 *\'*)
2606 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 esac
2608 as_fn_append ac_configure_args_raw " '$ac_arg'"
2609 done
2610
2611 case $ac_configure_args_raw in
2612 *$as_nl*)
2613 ac_safe_unquote= ;;
2614 *)
2615 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2616 ac_unsafe_a="$ac_unsafe_z#~"
2617 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2618 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2619 esac
2620
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2624
2625 It was created by mpg123 $as_me 1.33.6, which was
2626 generated by GNU Autoconf 2.71. Invocation command line was
2627
2628 $ $0$ac_configure_args_raw
2629
2630 _ACEOF
2631 exec 5>>config.log
2632 {
2633 cat <<_ASUNAME
2634 ## --------- ##
2635 ## Platform. ##
2636 ## --------- ##
2637
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2643
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2646
2647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2654
2655 _ASUNAME
2656
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 case $as_dir in #(((
2662 '') as_dir=./ ;;
2663 */) ;;
2664 *) as_dir=$as_dir/ ;;
2665 esac
2666 printf "%s\n" "PATH: $as_dir"
2667 done
2668 IFS=$as_save_IFS
2669
2670 } >&5
2671
2672 cat >&5 <<_ACEOF
2673
2674
2675 ## ----------- ##
2676 ## Core tests. ##
2677 ## ----------- ##
2678
2679 _ACEOF
2680
2681
2682 # Keep a trace of the command line.
2683 # Strip out --no-create and --no-recursion so they do not pile up.
2684 # Strip out --silent because we don't want to record it for future runs.
2685 # Also quote any args containing shell meta-characters.
2686 # Make two passes to allow for proper duplicate-argument suppression.
2687 ac_configure_args=
2688 ac_configure_args0=
2689 ac_configure_args1=
2690 ac_must_keep_next=false
2691 for ac_pass in 1 2
2692 do
2693 for ac_arg
2694 do
2695 case $ac_arg in
2696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2698 | -silent | --silent | --silen | --sile | --sil)
2699 continue ;;
2700 *\'*)
2701 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 esac
2703 case $ac_pass in
2704 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2705 2)
2706 as_fn_append ac_configure_args1 " '$ac_arg'"
2707 if test $ac_must_keep_next = true; then
2708 ac_must_keep_next=false # Got value, back to normal.
2709 else
2710 case $ac_arg in
2711 *=* | --config-cache | -C | -disable-* | --disable-* \
2712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2714 | -with-* | --with-* | -without-* | --without-* | --x)
2715 case "$ac_configure_args0 " in
2716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2717 esac
2718 ;;
2719 -* ) ac_must_keep_next=true ;;
2720 esac
2721 fi
2722 as_fn_append ac_configure_args " '$ac_arg'"
2723 ;;
2724 esac
2725 done
2726 done
2727 { ac_configure_args0=; unset ac_configure_args0;}
2728 { ac_configure_args1=; unset ac_configure_args1;}
2729
2730 # When interrupted or exit'd, cleanup temporary files, and complete
2731 # config.log. We remove comments because anyway the quotes in there
2732 # would cause problems or look ugly.
2733 # WARNING: Use '\'' to represent an apostrophe within the trap.
2734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2735 trap 'exit_status=$?
2736 # Sanitize IFS.
2737 IFS=" "" $as_nl"
2738 # Save into config.log some information that might help in debugging.
2739 {
2740 echo
2741
2742 printf "%s\n" "## ---------------- ##
2743 ## Cache variables. ##
2744 ## ---------------- ##"
2745 echo
2746 # The following way of writing the cache mishandles newlines in values,
2747 (
2748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2749 eval ac_val=\$$ac_var
2750 case $ac_val in #(
2751 *${as_nl}*)
2752 case $ac_var in #(
2753 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2754 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2755 esac
2756 case $ac_var in #(
2757 _ | IFS | as_nl) ;; #(
2758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2759 *) { eval $ac_var=; unset $ac_var;} ;;
2760 esac ;;
2761 esac
2762 done
2763 (set) 2>&1 |
2764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2765 *${as_nl}ac_space=\ *)
2766 sed -n \
2767 "s/'\''/'\''\\\\'\'''\''/g;
2768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2769 ;; #(
2770 *)
2771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2772 ;;
2773 esac |
2774 sort
2775 )
2776 echo
2777
2778 printf "%s\n" "## ----------------- ##
2779 ## Output variables. ##
2780 ## ----------------- ##"
2781 echo
2782 for ac_var in $ac_subst_vars
2783 do
2784 eval ac_val=\$$ac_var
2785 case $ac_val in
2786 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2787 esac
2788 printf "%s\n" "$ac_var='\''$ac_val'\''"
2789 done | sort
2790 echo
2791
2792 if test -n "$ac_subst_files"; then
2793 printf "%s\n" "## ------------------- ##
2794 ## File substitutions. ##
2795 ## ------------------- ##"
2796 echo
2797 for ac_var in $ac_subst_files
2798 do
2799 eval ac_val=\$$ac_var
2800 case $ac_val in
2801 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2802 esac
2803 printf "%s\n" "$ac_var='\''$ac_val'\''"
2804 done | sort
2805 echo
2806 fi
2807
2808 if test -s confdefs.h; then
2809 printf "%s\n" "## ----------- ##
2810 ## confdefs.h. ##
2811 ## ----------- ##"
2812 echo
2813 cat confdefs.h
2814 echo
2815 fi
2816 test "$ac_signal" != 0 &&
2817 printf "%s\n" "$as_me: caught signal $ac_signal"
2818 printf "%s\n" "$as_me: exit $exit_status"
2819 } >&5
2820 rm -f core *.core core.conftest.* &&
2821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2822 exit $exit_status
2823 ' 0
2824 for ac_signal in 1 2 13 15; do
2825 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2826 done
2827 ac_signal=0
2828
2829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2830 rm -f -r conftest* confdefs.h
2831
2832 printf "%s\n" "/* confdefs.h */" > confdefs.h
2833
2834 # Predefined preprocessor variables.
2835
2836 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2837
2838 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2839
2840 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2841
2842 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2843
2844 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2845
2846 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2847
2848
2849 # Let the site file select an alternate cache file if it wants to.
2850 # Prefer an explicitly selected file to automatically selected ones.
2851 if test -n "$CONFIG_SITE"; then
2852 ac_site_files="$CONFIG_SITE"
2853 elif test "x$prefix" != xNONE; then
2854 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2855 else
2856 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2857 fi
2858
2859 for ac_site_file in $ac_site_files
2860 do
2861 case $ac_site_file in #(
2862 */*) :
2863 ;; #(
2864 *) :
2865 ac_site_file=./$ac_site_file ;;
2866 esac
2867 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2870 sed 's/^/| /' "$ac_site_file" >&5
2871 . "$ac_site_file" \
2872 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "failed to load site script $ac_site_file
2875 See \`config.log' for more details" "$LINENO" 5; }
2876 fi
2877 done
2878
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special files
2881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2885 case $cache_file in
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2888 esac
2889 fi
2890 else
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2893 >$cache_file
2894 fi
2895
2896 # Test code for whether the C compiler supports C89 (global declarations)
2897 ac_c_conftest_c89_globals='
2898 /* Does the compiler advertise C89 conformance?
2899 Do not test the value of __STDC__, because some compilers set it to 0
2900 while being otherwise adequately conformant. */
2901 #if !defined __STDC__
2902 # error "Compiler does not advertise C89 conformance"
2903 #endif
2904
2905 #include <stddef.h>
2906 #include <stdarg.h>
2907 struct stat;
2908 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2909 struct buf { int x; };
2910 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2911 static char *e (p, i)
2912 char **p;
2913 int i;
2914 {
2915 return p[i];
2916 }
2917 static char *f (char * (*g) (char **, int), char **p, ...)
2918 {
2919 char *s;
2920 va_list v;
2921 va_start (v,p);
2922 s = g (p, va_arg (v,int));
2923 va_end (v);
2924 return s;
2925 }
2926
2927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2928 function prototypes and stuff, but not \xHH hex character constants.
2929 These do not provoke an error unfortunately, instead are silently treated
2930 as an "x". The following induces an error, until -std is added to get
2931 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2932 array size at least. It is necessary to write \x00 == 0 to get something
2933 that is true only with -std. */
2934 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2935
2936 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2937 inside strings and character constants. */
2938 #define FOO(x) '\''x'\''
2939 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2940
2941 int test (int i, double x);
2942 struct s1 {int (*f) (int a);};
2943 struct s2 {int (*f) (double a);};
2944 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2945 int, int);'
2946
2947 # Test code for whether the C compiler supports C89 (body of main).
2948 ac_c_conftest_c89_main='
2949 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2950 '
2951
2952 # Test code for whether the C compiler supports C99 (global declarations)
2953 ac_c_conftest_c99_globals='
2954 // Does the compiler advertise C99 conformance?
2955 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2956 # error "Compiler does not advertise C99 conformance"
2957 #endif
2958
2959 #include <stdbool.h>
2960 extern int puts (const char *);
2961 extern int printf (const char *, ...);
2962 extern int dprintf (int, const char *, ...);
2963 extern void *malloc (size_t);
2964
2965 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2966 // dprintf is used instead of fprintf to avoid needing to declare
2967 // FILE and stderr.
2968 #define debug(...) dprintf (2, __VA_ARGS__)
2969 #define showlist(...) puts (#__VA_ARGS__)
2970 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2971 static void
2972 test_varargs_macros (void)
2973 {
2974 int x = 1234;
2975 int y = 5678;
2976 debug ("Flag");
2977 debug ("X = %d\n", x);
2978 showlist (The first, second, and third items.);
2979 report (x>y, "x is %d but y is %d", x, y);
2980 }
2981
2982 // Check long long types.
2983 #define BIG64 18446744073709551615ull
2984 #define BIG32 4294967295ul
2985 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2986 #if !BIG_OK
2987 #error "your preprocessor is broken"
2988 #endif
2989 #if BIG_OK
2990 #else
2991 #error "your preprocessor is broken"
2992 #endif
2993 static long long int bignum = -9223372036854775807LL;
2994 static unsigned long long int ubignum = BIG64;
2995
2996 struct incomplete_array
2997 {
2998 int datasize;
2999 double data[];
3000 };
3001
3002 struct named_init {
3003 int number;
3004 const wchar_t *name;
3005 double average;
3006 };
3007
3008 typedef const char *ccp;
3009
3010 static inline int
3011 test_restrict (ccp restrict text)
3012 {
3013 // See if C++-style comments work.
3014 // Iterate through items via the restricted pointer.
3015 // Also check for declarations in for loops.
3016 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3017 continue;
3018 return 0;
3019 }
3020
3021 // Check varargs and va_copy.
3022 static bool
3023 test_varargs (const char *format, ...)
3024 {
3025 va_list args;
3026 va_start (args, format);
3027 va_list args_copy;
3028 va_copy (args_copy, args);
3029
3030 const char *str = "";
3031 int number = 0;
3032 float fnumber = 0;
3033
3034 while (*format)
3035 {
3036 switch (*format++)
3037 {
3038 case '\''s'\'': // string
3039 str = va_arg (args_copy, const char *);
3040 break;
3041 case '\''d'\'': // int
3042 number = va_arg (args_copy, int);
3043 break;
3044 case '\''f'\'': // float
3045 fnumber = va_arg (args_copy, double);
3046 break;
3047 default:
3048 break;
3049 }
3050 }
3051 va_end (args_copy);
3052 va_end (args);
3053
3054 return *str && number && fnumber;
3055 }
3056 '
3057
3058 # Test code for whether the C compiler supports C99 (body of main).
3059 ac_c_conftest_c99_main='
3060 // Check bool.
3061 _Bool success = false;
3062 success |= (argc != 0);
3063
3064 // Check restrict.
3065 if (test_restrict ("String literal") == 0)
3066 success = true;
3067 char *restrict newvar = "Another string";
3068
3069 // Check varargs.
3070 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3071 test_varargs_macros ();
3072
3073 // Check flexible array members.
3074 struct incomplete_array *ia =
3075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3076 ia->datasize = 10;
3077 for (int i = 0; i < ia->datasize; ++i)
3078 ia->data[i] = i * 1.234;
3079
3080 // Check named initializers.
3081 struct named_init ni = {
3082 .number = 34,
3083 .name = L"Test wide string",
3084 .average = 543.34343,
3085 };
3086
3087 ni.number = 58;
3088
3089 int dynamic_array[ni.number];
3090 dynamic_array[0] = argv[0][0];
3091 dynamic_array[ni.number - 1] = 543;
3092
3093 // work around unused variable warnings
3094 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3095 || dynamic_array[ni.number - 1] != 543);
3096 '
3097
3098 # Test code for whether the C compiler supports C11 (global declarations)
3099 ac_c_conftest_c11_globals='
3100 // Does the compiler advertise C11 conformance?
3101 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3102 # error "Compiler does not advertise C11 conformance"
3103 #endif
3104
3105 // Check _Alignas.
3106 char _Alignas (double) aligned_as_double;
3107 char _Alignas (0) no_special_alignment;
3108 extern char aligned_as_int;
3109 char _Alignas (0) _Alignas (int) aligned_as_int;
3110
3111 // Check _Alignof.
3112 enum
3113 {
3114 int_alignment = _Alignof (int),
3115 int_array_alignment = _Alignof (int[100]),
3116 char_alignment = _Alignof (char)
3117 };
3118 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3119
3120 // Check _Noreturn.
3121 int _Noreturn does_not_return (void) { for (;;) continue; }
3122
3123 // Check _Static_assert.
3124 struct test_static_assert
3125 {
3126 int x;
3127 _Static_assert (sizeof (int) <= sizeof (long int),
3128 "_Static_assert does not work in struct");
3129 long int y;
3130 };
3131
3132 // Check UTF-8 literals.
3133 #define u8 syntax error!
3134 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3135
3136 // Check duplicate typedefs.
3137 typedef long *long_ptr;
3138 typedef long int *long_ptr;
3139 typedef long_ptr long_ptr;
3140
3141 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3142 struct anonymous
3143 {
3144 union {
3145 struct { int i; int j; };
3146 struct { int k; long int l; } w;
3147 };
3148 int m;
3149 } v1;
3150 '
3151
3152 # Test code for whether the C compiler supports C11 (body of main).
3153 ac_c_conftest_c11_main='
3154 _Static_assert ((offsetof (struct anonymous, i)
3155 == offsetof (struct anonymous, w.k)),
3156 "Anonymous union alignment botch");
3157 v1.i = 2;
3158 v1.w.k = 5;
3159 ok |= v1.i != 5;
3160 '
3161
3162 # Test code for whether the C compiler supports C11 (complete).
3163 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3164 ${ac_c_conftest_c99_globals}
3165 ${ac_c_conftest_c11_globals}
3166
3167 int
3168 main (int argc, char **argv)
3169 {
3170 int ok = 0;
3171 ${ac_c_conftest_c89_main}
3172 ${ac_c_conftest_c99_main}
3173 ${ac_c_conftest_c11_main}
3174 return ok;
3175 }
3176 "
3177
3178 # Test code for whether the C compiler supports C99 (complete).
3179 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3180 ${ac_c_conftest_c99_globals}
3181
3182 int
3183 main (int argc, char **argv)
3184 {
3185 int ok = 0;
3186 ${ac_c_conftest_c89_main}
3187 ${ac_c_conftest_c99_main}
3188 return ok;
3189 }
3190 "
3191
3192 # Test code for whether the C compiler supports C89 (complete).
3193 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3194
3195 int
3196 main (int argc, char **argv)
3197 {
3198 int ok = 0;
3199 ${ac_c_conftest_c89_main}
3200 return ok;
3201 }
3202 "
3203
3204 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3205 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3206 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3207 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3208 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3209 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3210 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3211 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3212 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3213
3214 # Auxiliary files required by this configure script.
3215 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
3216
3217 # Locations in which to look for auxiliary files.
3218 ac_aux_dir_candidates="${srcdir}/build"
3219
3220 # Search for a directory containing all of the required auxiliary files,
3221 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3222 # If we don't find one directory that contains all the files we need,
3223 # we report the set of missing files from the *first* directory in
3224 # $ac_aux_dir_candidates and give up.
3225 ac_missing_aux_files=""
3226 ac_first_candidate=:
3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 as_found=false
3230 for as_dir in $ac_aux_dir_candidates
3231 do
3232 IFS=$as_save_IFS
3233 case $as_dir in #(((
3234 '') as_dir=./ ;;
3235 */) ;;
3236 *) as_dir=$as_dir/ ;;
3237 esac
3238 as_found=:
3239
3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3241 ac_aux_dir_found=yes
3242 ac_install_sh=
3243 for ac_aux in $ac_aux_files
3244 do
3245 # As a special case, if "install-sh" is required, that requirement
3246 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3247 # and $ac_install_sh is set appropriately for whichever one is found.
3248 if test x"$ac_aux" = x"install-sh"
3249 then
3250 if test -f "${as_dir}install-sh"; then
3251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3252 ac_install_sh="${as_dir}install-sh -c"
3253 elif test -f "${as_dir}install.sh"; then
3254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3255 ac_install_sh="${as_dir}install.sh -c"
3256 elif test -f "${as_dir}shtool"; then
3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3258 ac_install_sh="${as_dir}shtool install -c"
3259 else
3260 ac_aux_dir_found=no
3261 if $ac_first_candidate; then
3262 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3263 else
3264 break
3265 fi
3266 fi
3267 else
3268 if test -f "${as_dir}${ac_aux}"; then
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3270 else
3271 ac_aux_dir_found=no
3272 if $ac_first_candidate; then
3273 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3274 else
3275 break
3276 fi
3277 fi
3278 fi
3279 done
3280 if test "$ac_aux_dir_found" = yes; then
3281 ac_aux_dir="$as_dir"
3282 break
3283 fi
3284 ac_first_candidate=false
3285
3286 as_found=false
3287 done
3288 IFS=$as_save_IFS
3289 if $as_found
3290 then :
3291
3292 else $as_nop
3293 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3294 fi
3295
3296
3297 # These three variables are undocumented and unsupported,
3298 # and are intended to be withdrawn in a future Autoconf release.
3299 # They can cause serious problems if a builder's source tree is in a directory
3300 # whose full name contains unusual characters.
3301 if test -f "${ac_aux_dir}config.guess"; then
3302 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3303 fi
3304 if test -f "${ac_aux_dir}config.sub"; then
3305 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3306 fi
3307 if test -f "$ac_aux_dir/configure"; then
3308 ac_configure="$SHELL ${ac_aux_dir}configure"
3309 fi
3310
3311 # Check that the precious variables saved in the cache have kept the same
3312 # value.
3313 ac_cache_corrupted=false
3314 for ac_var in $ac_precious_vars; do
3315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3316 eval ac_new_set=\$ac_env_${ac_var}_set
3317 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3318 eval ac_new_val=\$ac_env_${ac_var}_value
3319 case $ac_old_set,$ac_new_set in
3320 set,)
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3322 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3323 ac_cache_corrupted=: ;;
3324 ,set)
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3326 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3327 ac_cache_corrupted=: ;;
3328 ,);;
3329 *)
3330 if test "x$ac_old_val" != "x$ac_new_val"; then
3331 # differences in whitespace do not lead to failure.
3332 ac_old_val_w=`echo x $ac_old_val`
3333 ac_new_val_w=`echo x $ac_new_val`
3334 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3336 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3337 ac_cache_corrupted=:
3338 else
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3340 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3341 eval $ac_var=\$ac_old_val
3342 fi
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3344 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3346 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3347 fi;;
3348 esac
3349 # Pass precious variables to config.status.
3350 if test "$ac_new_set" = set; then
3351 case $ac_new_val in
3352 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3353 *) ac_arg=$ac_var=$ac_new_val ;;
3354 esac
3355 case " $ac_configure_args " in
3356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3357 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3358 esac
3359 fi
3360 done
3361 if $ac_cache_corrupted; then
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3365 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3366 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3367 and start over" "$LINENO" 5
3368 fi
3369 ## -------------------- ##
3370 ## Main body of script. ##
3371 ## -------------------- ##
3372
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394 LIBMPG123_VERSION=49:4:49
3395 LIBOUT123_VERSION=5:2:5
3396 LIBSYN123_VERSION=2:3:2
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408 # Make sure we can run config.sub.
3409 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3410 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3411
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3413 printf %s "checking build system type... " >&6; }
3414 if test ${ac_cv_build+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else $as_nop
3418 ac_build_alias=$build_alias
3419 test "x$ac_build_alias" = x &&
3420 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3421 test "x$ac_build_alias" = x &&
3422 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3423 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3424 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3425
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3428 printf "%s\n" "$ac_cv_build" >&6; }
3429 case $ac_cv_build in
3430 *-*-*) ;;
3431 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3432 esac
3433 build=$ac_cv_build
3434 ac_save_IFS=$IFS; IFS='-'
3435 set x $ac_cv_build
3436 shift
3437 build_cpu=$1
3438 build_vendor=$2
3439 shift; shift
3440 # Remember, the first character of IFS is used to create $*,
3441 # except with old shells:
3442 build_os=$*
3443 IFS=$ac_save_IFS
3444 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3445
3446
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3448 printf %s "checking host system type... " >&6; }
3449 if test ${ac_cv_host+y}
3450 then :
3451 printf %s "(cached) " >&6
3452 else $as_nop
3453 if test "x$host_alias" = x; then
3454 ac_cv_host=$ac_cv_build
3455 else
3456 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3457 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3458 fi
3459
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3462 printf "%s\n" "$ac_cv_host" >&6; }
3463 case $ac_cv_host in
3464 *-*-*) ;;
3465 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3466 esac
3467 host=$ac_cv_host
3468 ac_save_IFS=$IFS; IFS='-'
3469 set x $ac_cv_host
3470 shift
3471 host_cpu=$1
3472 host_vendor=$2
3473 shift; shift
3474 # Remember, the first character of IFS is used to create $*,
3475 # except with old shells:
3476 host_os=$*
3477 IFS=$ac_save_IFS
3478 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3479
3480
3481
3482 am__api_version='1.16'
3483
3484
3485 # Find a good install program. We prefer a C program (faster),
3486 # so one script is as good as another. But avoid the broken or
3487 # incompatible versions:
3488 # SysV /etc/install, /usr/sbin/install
3489 # SunOS /usr/etc/install
3490 # IRIX /sbin/install
3491 # AIX /bin/install
3492 # AmigaOS /C/install, which installs bootblocks on floppy discs
3493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3496 # OS/2's system install, which has a completely different semantic
3497 # ./install, which can be erroneously created by make from ./install.sh.
3498 # Reject install programs that cannot install multiple files.
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3500 printf %s "checking for a BSD-compatible install... " >&6; }
3501 if test -z "$INSTALL"; then
3502 if test ${ac_cv_path_install+y}
3503 then :
3504 printf %s "(cached) " >&6
3505 else $as_nop
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 case $as_dir in #(((
3511 '') as_dir=./ ;;
3512 */) ;;
3513 *) as_dir=$as_dir/ ;;
3514 esac
3515 # Account for fact that we put trailing slashes in our PATH walk.
3516 case $as_dir in #((
3517 ./ | /[cC]/* | \
3518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3519 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3520 /usr/ucb/* ) ;;
3521 *)
3522 # OSF1 and SCO ODT 3.0 have their own names for install.
3523 # Don't use installbsd from OSF since it installs stuff as root
3524 # by default.
3525 for ac_prog in ginstall scoinst install; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3528 if test $ac_prog = install &&
3529 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # AIX install. It has an incompatible calling convention.
3531 :
3532 elif test $ac_prog = install &&
3533 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3534 # program-specific install script used by HP pwplus--don't use.
3535 :
3536 else
3537 rm -rf conftest.one conftest.two conftest.dir
3538 echo one > conftest.one
3539 echo two > conftest.two
3540 mkdir conftest.dir
3541 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3542 test -s conftest.one && test -s conftest.two &&
3543 test -s conftest.dir/conftest.one &&
3544 test -s conftest.dir/conftest.two
3545 then
3546 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3547 break 3
3548 fi
3549 fi
3550 fi
3551 done
3552 done
3553 ;;
3554 esac
3555
3556 done
3557 IFS=$as_save_IFS
3558
3559 rm -rf conftest.one conftest.two conftest.dir
3560
3561 fi
3562 if test ${ac_cv_path_install+y}; then
3563 INSTALL=$ac_cv_path_install
3564 else
3565 # As a last resort, use the slow shell script. Don't cache a
3566 # value for INSTALL within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the value is a relative name.
3569 INSTALL=$ac_install_sh
3570 fi
3571 fi
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3573 printf "%s\n" "$INSTALL" >&6; }
3574
3575 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3576 # It thinks the first close brace ends the variable substitution.
3577 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3578
3579 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3580
3581 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3582
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3584 printf %s "checking whether build environment is sane... " >&6; }
3585 # Reject unsafe characters in $srcdir or the absolute working directory
3586 # name. Accept space and tab only in the latter.
3587 am_lf='
3588 '
3589 case `pwd` in
3590 *[\\\"\#\$\&\'\`$am_lf]*)
3591 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3592 esac
3593 case $srcdir in
3594 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3595 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3596 esac
3597
3598 # Do 'set' in a subshell so we don't clobber the current shell's
3599 # arguments. Must try -L first in case configure is actually a
3600 # symlink; some systems play weird games with the mod time of symlinks
3601 # (eg FreeBSD returns the mod time of the symlink's containing
3602 # directory).
3603 if (
3604 am_has_slept=no
3605 for am_try in 1 2; do
3606 echo "timestamp, slept: $am_has_slept" > conftest.file
3607 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3608 if test "$*" = "X"; then
3609 # -L didn't work.
3610 set X `ls -t "$srcdir/configure" conftest.file`
3611 fi
3612 if test "$*" != "X $srcdir/configure conftest.file" \
3613 && test "$*" != "X conftest.file $srcdir/configure"; then
3614
3615 # If neither matched, then we have a broken ls. This can happen
3616 # if, for instance, CONFIG_SHELL is bash and it inherits a
3617 # broken ls alias from the environment. This has actually
3618 # happened. Such a system could not be considered "sane".
3619 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3620 alias in your environment" "$LINENO" 5
3621 fi
3622 if test "$2" = conftest.file || test $am_try -eq 2; then
3623 break
3624 fi
3625 # Just in case.
3626 sleep 1
3627 am_has_slept=yes
3628 done
3629 test "$2" = conftest.file
3630 )
3631 then
3632 # Ok.
3633 :
3634 else
3635 as_fn_error $? "newly created file is older than distributed files!
3636 Check your system clock" "$LINENO" 5
3637 fi
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 printf "%s\n" "yes" >&6; }
3640 # If we didn't sleep, we still need to ensure time stamps of config.status and
3641 # generated files are strictly newer.
3642 am_sleep_pid=
3643 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3644 ( sleep 1 ) &
3645 am_sleep_pid=$!
3646 fi
3647
3648 rm -f conftest.file
3649
3650 test "$program_prefix" != NONE &&
3651 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3652 # Use a double $ so make ignores it.
3653 test "$program_suffix" != NONE &&
3654 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3655 # Double any \ or $.
3656 # By default was `s,x,x', remove it if useless.
3657 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3658 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3659
3660
3661 # Expand $ac_aux_dir to an absolute path.
3662 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3663
3664
3665 if test x"${MISSING+set}" != xset; then
3666 MISSING="\${SHELL} '$am_aux_dir/missing'"
3667 fi
3668 # Use eval to expand $SHELL
3669 if eval "$MISSING --is-lightweight"; then
3670 am_missing_run="$MISSING "
3671 else
3672 am_missing_run=
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3674 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3675 fi
3676
3677 if test x"${install_sh+set}" != xset; then
3678 case $am_aux_dir in
3679 *\ * | *\ *)
3680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3681 *)
3682 install_sh="\${SHELL} $am_aux_dir/install-sh"
3683 esac
3684 fi
3685
3686 # Installed binaries are usually stripped using 'strip' when the user
3687 # run "make install-strip". However 'strip' might not be the right
3688 # tool to use in cross-compilation environments, therefore Automake
3689 # will honor the 'STRIP' environment variable to overrule this program.
3690 if test "$cross_compiling" != no; then
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3693 set dummy ${ac_tool_prefix}strip; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_STRIP+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else $as_nop
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 STRIP=$ac_cv_prog_STRIP
3725 if test -n "$STRIP"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3727 printf "%s\n" "$STRIP" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_STRIP"; then
3736 ac_ct_STRIP=$STRIP
3737 # Extract the first word of "strip", so it can be a program name with args.
3738 set dummy strip; ac_word=$2
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 printf %s "checking for $ac_word... " >&6; }
3741 if test ${ac_cv_prog_ac_ct_STRIP+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else $as_nop
3745 if test -n "$ac_ct_STRIP"; then
3746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751 IFS=$as_save_IFS
3752 case $as_dir in #(((
3753 '') as_dir=./ ;;
3754 */) ;;
3755 *) as_dir=$as_dir/ ;;
3756 esac
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_STRIP="strip"
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3770 if test -n "$ac_ct_STRIP"; then
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3772 printf "%s\n" "$ac_ct_STRIP" >&6; }
3773 else
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3776 fi
3777
3778 if test "x$ac_ct_STRIP" = x; then
3779 STRIP=":"
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782 yes:)
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3786 esac
3787 STRIP=$ac_ct_STRIP
3788 fi
3789 else
3790 STRIP="$ac_cv_prog_STRIP"
3791 fi
3792
3793 fi
3794 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3795
3796
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3798 printf %s "checking for a race-free mkdir -p... " >&6; }
3799 if test -z "$MKDIR_P"; then
3800 if test ${ac_cv_path_mkdir+y}
3801 then :
3802 printf %s "(cached) " >&6
3803 else $as_nop
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3806 do
3807 IFS=$as_save_IFS
3808 case $as_dir in #(((
3809 '') as_dir=./ ;;
3810 */) ;;
3811 *) as_dir=$as_dir/ ;;
3812 esac
3813 for ac_prog in mkdir gmkdir; do
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3816 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3817 'mkdir ('*'coreutils) '* | \
3818 'BusyBox '* | \
3819 'mkdir (fileutils) '4.1*)
3820 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3821 break 3;;
3822 esac
3823 done
3824 done
3825 done
3826 IFS=$as_save_IFS
3827
3828 fi
3829
3830 test -d ./--version && rmdir ./--version
3831 if test ${ac_cv_path_mkdir+y}; then
3832 MKDIR_P="$ac_cv_path_mkdir -p"
3833 else
3834 # As a last resort, use the slow shell script. Don't cache a
3835 # value for MKDIR_P within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the value is a relative name.
3838 MKDIR_P="$ac_install_sh -d"
3839 fi
3840 fi
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3842 printf "%s\n" "$MKDIR_P" >&6; }
3843
3844 for ac_prog in gawk mawk nawk awk
3845 do
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_prog_AWK+y}
3851 then :
3852 printf %s "(cached) " >&6
3853 else $as_nop
3854 if test -n "$AWK"; then
3855 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 case $as_dir in #(((
3862 '') as_dir=./ ;;
3863 */) ;;
3864 *) as_dir=$as_dir/ ;;
3865 esac
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_AWK="$ac_prog"
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872 done
3873 done
3874 IFS=$as_save_IFS
3875
3876 fi
3877 fi
3878 AWK=$ac_cv_prog_AWK
3879 if test -n "$AWK"; then
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3881 printf "%s\n" "$AWK" >&6; }
3882 else
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 printf "%s\n" "no" >&6; }
3885 fi
3886
3887
3888 test -n "$AWK" && break
3889 done
3890
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3892 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3893 set x ${MAKE-make}
3894 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3895 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3896 then :
3897 printf %s "(cached) " >&6
3898 else $as_nop
3899 cat >conftest.make <<\_ACEOF
3900 SHELL = /bin/sh
3901 all:
3902 @echo '@@@%%%=$(MAKE)=@@@%%%'
3903 _ACEOF
3904 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3905 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3906 *@@@%%%=?*=@@@%%%*)
3907 eval ac_cv_prog_make_${ac_make}_set=yes;;
3908 *)
3909 eval ac_cv_prog_make_${ac_make}_set=no;;
3910 esac
3911 rm -f conftest.make
3912 fi
3913 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3915 printf "%s\n" "yes" >&6; }
3916 SET_MAKE=
3917 else
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 printf "%s\n" "no" >&6; }
3920 SET_MAKE="MAKE=${MAKE-make}"
3921 fi
3922
3923 rm -rf .tst 2>/dev/null
3924 mkdir .tst 2>/dev/null
3925 if test -d .tst; then
3926 am__leading_dot=.
3927 else
3928 am__leading_dot=_
3929 fi
3930 rmdir .tst 2>/dev/null
3931
3932 # Check whether --enable-silent-rules was given.
3933 if test ${enable_silent_rules+y}
3934 then :
3935 enableval=$enable_silent_rules;
3936 fi
3937
3938 case $enable_silent_rules in # (((
3939 yes) AM_DEFAULT_VERBOSITY=0;;
3940 no) AM_DEFAULT_VERBOSITY=1;;
3941 *) AM_DEFAULT_VERBOSITY=1;;
3942 esac
3943 am_make=${MAKE-make}
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3945 printf %s "checking whether $am_make supports nested variables... " >&6; }
3946 if test ${am_cv_make_support_nested_variables+y}
3947 then :
3948 printf %s "(cached) " >&6
3949 else $as_nop
3950 if printf "%s\n" 'TRUE=$(BAR$(V))
3951 BAR0=false
3952 BAR1=true
3953 V=1
3954 am__doit:
3955 @$(TRUE)
3956 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3957 am_cv_make_support_nested_variables=yes
3958 else
3959 am_cv_make_support_nested_variables=no
3960 fi
3961 fi
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3963 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3964 if test $am_cv_make_support_nested_variables = yes; then
3965 AM_V='$(V)'
3966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3967 else
3968 AM_V=$AM_DEFAULT_VERBOSITY
3969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3970 fi
3971 AM_BACKSLASH='\'
3972
3973 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3975 # is not polluted with repeated "-I."
3976 am__isrc=' -I$(srcdir)'
3977 # test to see if srcdir already configured
3978 if test -f $srcdir/config.status; then
3979 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3980 fi
3981 fi
3982
3983 # test whether we have cygpath
3984 if test -z "$CYGPATH_W"; then
3985 if (cygpath --version) >/dev/null 2>/dev/null; then
3986 CYGPATH_W='cygpath -w'
3987 else
3988 CYGPATH_W=echo
3989 fi
3990 fi
3991
3992
3993 # Define the identity of the package.
3994 PACKAGE='mpg123'
3995 VERSION='1.33.6'
3996
3997
3998 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3999
4000
4001 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4002
4003 # Some tools Automake needs.
4004
4005 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4006
4007
4008 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4009
4010
4011 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4012
4013
4014 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4015
4016
4017 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4018
4019 # For better backward compatibility. To be removed once Automake 1.9.x
4020 # dies out for good. For more background, see:
4021 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4022 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4023 mkdir_p='$(MKDIR_P)'
4024
4025 # We need awk for the "check" target (and possibly the TAP driver). The
4026 # system "awk" is bad on some platforms.
4027 # Always define AMTAR for backward compatibility. Yes, it's still used
4028 # in the wild :-( We should find a proper way to deprecate it ...
4029 AMTAR='$${TAR-tar}'
4030
4031
4032 # We'll loop over all known methods to create a tar archive until one works.
4033 _am_tools='gnutar pax cpio none'
4034
4035 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4036
4037
4038
4039
4040
4041 # Variables for tags utilities; see am/tags.am
4042 if test -z "$CTAGS"; then
4043 CTAGS=ctags
4044 fi
4045
4046 if test -z "$ETAGS"; then
4047 ETAGS=etags
4048 fi
4049
4050 if test -z "$CSCOPE"; then
4051 CSCOPE=cscope
4052 fi
4053
4054
4055
4056 # POSIX will say in a future version that running "rm -f" with no argument
4057 # is OK; and we want to be able to make that assumption in our Makefile
4058 # recipes. So use an aggressive probe to check that the usage we want is
4059 # actually supported "in the wild" to an acceptable degree.
4060 # See automake bug#10828.
4061 # To make any issue more visible, cause the running configure to be aborted
4062 # by default if the 'rm' program in use doesn't match our expectations; the
4063 # user can still override this though.
4064 if rm -f && rm -fr && rm -rf; then : OK; else
4065 cat >&2 <<'END'
4066 Oops!
4067
4068 Your 'rm' program seems unable to run without file operands specified
4069 on the command line, even when the '-f' option is present. This is contrary
4070 to the behaviour of most rm programs out there, and not conforming with
4071 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4072
4073 Please tell [email protected] about your system, including the value
4074 of your $PATH and any error possibly output before this message. This
4075 can help us improve future automake versions.
4076
4077 END
4078 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4079 echo 'Configuration will proceed anyway, since you have set the' >&2
4080 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4081 echo >&2
4082 else
4083 cat >&2 <<'END'
4084 Aborting the configuration process, to ensure you take notice of the issue.
4085
4086 You can download and install GNU coreutils to get an 'rm' implementation
4087 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4088
4089 If you want to complete the configuration process using your problematic
4090 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4091 to "yes", and re-run configure.
4092
4093 END
4094 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4095 fi
4096 fi
4097
4098 ac_config_headers="$ac_config_headers src/config.h"
4099
4100
4101 if test 2 -lt "$(grep "PKG_"CHECK_MODULES "$0"|wc -l)"; then
4102 as_fn_error $? "Pkg-config was absent when generating this configure script.
4103 Re-run autoreconf with pkg-config installed top get a working one." "$LINENO" 5
4104 fi
4105
4106
4107
4108
4109
4110
4111
4112 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 printf %s "checking for $ac_word... " >&6; }
4118 if test ${ac_cv_path_PKG_CONFIG+y}
4119 then :
4120 printf %s "(cached) " >&6
4121 else $as_nop
4122 case $PKG_CONFIG in
4123 [\\/]* | ?:[\\/]*)
4124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4125 ;;
4126 *)
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 case $as_dir in #(((
4132 '') as_dir=./ ;;
4133 */) ;;
4134 *) as_dir=$as_dir/ ;;
4135 esac
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4138 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142 done
4143 done
4144 IFS=$as_save_IFS
4145
4146 ;;
4147 esac
4148 fi
4149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4150 if test -n "$PKG_CONFIG"; then
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4152 printf "%s\n" "$PKG_CONFIG" >&6; }
4153 else
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 printf "%s\n" "no" >&6; }
4156 fi
4157
4158
4159 fi
4160 if test -z "$ac_cv_path_PKG_CONFIG"; then
4161 ac_pt_PKG_CONFIG=$PKG_CONFIG
4162 # Extract the first word of "pkg-config", so it can be a program name with args.
4163 set dummy pkg-config; ac_word=$2
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 printf %s "checking for $ac_word... " >&6; }
4166 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else $as_nop
4170 case $ac_pt_PKG_CONFIG in
4171 [\\/]* | ?:[\\/]*)
4172 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173 ;;
4174 *)
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 case $as_dir in #(((
4180 '') as_dir=./ ;;
4181 */) ;;
4182 *) as_dir=$as_dir/ ;;
4183 esac
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 ;;
4195 esac
4196 fi
4197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4198 if test -n "$ac_pt_PKG_CONFIG"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4200 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4201 else
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4204 fi
4205
4206 if test "x$ac_pt_PKG_CONFIG" = x; then
4207 PKG_CONFIG=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 PKG_CONFIG=$ac_pt_PKG_CONFIG
4216 fi
4217 else
4218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4219 fi
4220
4221 fi
4222 if test -n "$PKG_CONFIG"; then
4223 _pkg_min_version=0.9.0
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4225 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 printf "%s\n" "yes" >&6; }
4229 else
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 printf "%s\n" "no" >&6; }
4232 PKG_CONFIG=""
4233 fi
4234 fi
4235
4236 # You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
4237 # In that case, the test failed because -Werror, not because no const there...
4238 # After looking again, there are possibly more tests being obscured by false failures.
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Werror in CFLAGS (It breaks tests)" >&5
4240 printf %s "checking for -Werror in CFLAGS (It breaks tests)... " >&6; }
4241 if echo "$CFLAGS" | grep Werror; then
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 printf "%s\n" "yes" >&6; }
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
4245 If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
4246 Also note that you shall not run make distcheck after configuring with --enable-nagging.
4247 distcheck uses the generated CFLAGS...
4248 Anyhow, continuing at your own risk." >&5
4249 printf "%s\n" "$as_me: WARNING: You have -Werror in CFLAGS. That may break some tests and make this configure bogus.
4250 If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
4251 Also note that you shall not run make distcheck after configuring with --enable-nagging.
4252 distcheck uses the generated CFLAGS...
4253 Anyhow, continuing at your own risk." >&2;}
4254 else
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 printf "%s\n" "no" >&6; }
4257 fi
4258
4259 buffer=enabled # try to build with buffer by default
4260
4261
4262 LT_LDFLAGS=-export-dynamic
4263 EXEC_LT_LDFLAGS=
4264 be_static=no
4265 all_static=no
4266 lib_static=no
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
4268 printf %s "checking if you are up to something totally static with LDFLAGS/CFLAGS... " >&6; }
4269 for f in $LDFLAGS $CFLAGS
4270 do
4271 case "$f" in
4272 -all-static)
4273 be_static=yes
4274 all_static=yes
4275 lib_static=yes
4276 ;;
4277 -static)
4278 be_static=yes
4279 lib_static=yes
4280 ;;
4281 -static-libgcc)
4282 lib_static=yes
4283 ;;
4284 esac
4285 done
4286 if test "x$be_static" = xyes; then
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288 printf "%s\n" "yes" >&6; }
4289 LT_LDFLAGS=-all-static
4290 EXEC_LT_LDFLAGS="$LT_LDFLAGS"
4291 else
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 printf "%s\n" "no" >&6; }
4294 fi
4295 if test "x$all_static" = xyes; then
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&5
4297 printf "%s\n" "$as_me: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&2;}
4298 fi
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309 DEPDIR="${am__leading_dot}deps"
4310
4311 ac_config_commands="$ac_config_commands depfiles"
4312
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4314 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4315 cat > confinc.mk << 'END'
4316 am__doit:
4317 @echo this is the am__doit target >confinc.out
4318 .PHONY: am__doit
4319 END
4320 am__include="#"
4321 am__quote=
4322 # BSD make does it like this.
4323 echo '.include "confinc.mk" # ignored' > confmf.BSD
4324 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4325 echo 'include confinc.mk # ignored' > confmf.GNU
4326 _am_result=no
4327 for s in GNU BSD; do
4328 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4329 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }
4333 case $?:`cat confinc.out 2>/dev/null` in #(
4334 '0:this is the am__doit target') :
4335 case $s in #(
4336 BSD) :
4337 am__include='.include' am__quote='"' ;; #(
4338 *) :
4339 am__include='include' am__quote='' ;;
4340 esac ;; #(
4341 *) :
4342 ;;
4343 esac
4344 if test "$am__include" != "#"; then
4345 _am_result="yes ($s style)"
4346 break
4347 fi
4348 done
4349 rm -f confinc.* confmf.*
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4351 printf "%s\n" "${_am_result}" >&6; }
4352
4353 # Check whether --enable-dependency-tracking was given.
4354 if test ${enable_dependency_tracking+y}
4355 then :
4356 enableval=$enable_dependency_tracking;
4357 fi
4358
4359 if test "x$enable_dependency_tracking" != xno; then
4360 am_depcomp="$ac_aux_dir/depcomp"
4361 AMDEPBACKSLASH='\'
4362 am__nodep='_no'
4363 fi
4364 if test "x$enable_dependency_tracking" != xno; then
4365 AMDEP_TRUE=
4366 AMDEP_FALSE='#'
4367 else
4368 AMDEP_TRUE='#'
4369 AMDEP_FALSE=
4370 fi
4371
4372
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 if test -n "$ac_tool_prefix"; then
4379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 printf %s "checking for $ac_word... " >&6; }
4383 if test ${ac_cv_prog_CC+y}
4384 then :
4385 printf %s "(cached) " >&6
4386 else $as_nop
4387 if test -n "$CC"; then
4388 ac_cv_prog_CC="$CC" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 case $as_dir in #(((
4395 '') as_dir=./ ;;
4396 */) ;;
4397 *) as_dir=$as_dir/ ;;
4398 esac
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 printf "%s\n" "$CC" >&6; }
4415 else
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 printf "%s\n" "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_prog_CC"; then
4423 ac_ct_CC=$CC
4424 # Extract the first word of "gcc", so it can be a program name with args.
4425 set dummy gcc; ac_word=$2
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 printf %s "checking for $ac_word... " >&6; }
4428 if test ${ac_cv_prog_ac_ct_CC+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else $as_nop
4432 if test -n "$ac_ct_CC"; then
4433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 case $as_dir in #(((
4440 '') as_dir=./ ;;
4441 */) ;;
4442 *) as_dir=$as_dir/ ;;
4443 esac
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_ac_ct_CC="gcc"
4447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4457 if test -n "$ac_ct_CC"; then
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4459 printf "%s\n" "$ac_ct_CC" >&6; }
4460 else
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 printf "%s\n" "no" >&6; }
4463 fi
4464
4465 if test "x$ac_ct_CC" = x; then
4466 CC=""
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 CC=$ac_ct_CC
4475 fi
4476 else
4477 CC="$ac_cv_prog_CC"
4478 fi
4479
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 printf %s "checking for $ac_word... " >&6; }
4486 if test ${ac_cv_prog_CC+y}
4487 then :
4488 printf %s "(cached) " >&6
4489 else $as_nop
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496 IFS=$as_save_IFS
4497 case $as_dir in #(((
4498 '') as_dir=./ ;;
4499 */) ;;
4500 *) as_dir=$as_dir/ ;;
4501 esac
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_CC="${ac_tool_prefix}cc"
4505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 CC=$ac_cv_prog_CC
4515 if test -n "$CC"; then
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517 printf "%s\n" "$CC" >&6; }
4518 else
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 printf "%s\n" "no" >&6; }
4521 fi
4522
4523
4524 fi
4525 fi
4526 if test -z "$CC"; then
4527 # Extract the first word of "cc", so it can be a program name with args.
4528 set dummy cc; ac_word=$2
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 printf %s "checking for $ac_word... " >&6; }
4531 if test ${ac_cv_prog_CC+y}
4532 then :
4533 printf %s "(cached) " >&6
4534 else $as_nop
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 else
4538 ac_prog_rejected=no
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 case $as_dir in #(((
4544 '') as_dir=./ ;;
4545 */) ;;
4546 *) as_dir=$as_dir/ ;;
4547 esac
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4550 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4551 ac_prog_rejected=yes
4552 continue
4553 fi
4554 ac_cv_prog_CC="cc"
4555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558 done
4559 done
4560 IFS=$as_save_IFS
4561
4562 if test $ac_prog_rejected = yes; then
4563 # We found a bogon in the path, so make sure we never use it.
4564 set dummy $ac_cv_prog_CC
4565 shift
4566 if test $# != 0; then
4567 # We chose a different compiler from the bogus one.
4568 # However, it has the same basename, so the bogon will be chosen
4569 # first if we set CC to just the basename; use the full file name.
4570 shift
4571 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4572 fi
4573 fi
4574 fi
4575 fi
4576 CC=$ac_cv_prog_CC
4577 if test -n "$CC"; then
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579 printf "%s\n" "$CC" >&6; }
4580 else
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 printf "%s\n" "no" >&6; }
4583 fi
4584
4585
4586 fi
4587 if test -z "$CC"; then
4588 if test -n "$ac_tool_prefix"; then
4589 for ac_prog in cl.exe
4590 do
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 printf %s "checking for $ac_word... " >&6; }
4595 if test ${ac_cv_prog_CC+y}
4596 then :
4597 printf %s "(cached) " >&6
4598 else $as_nop
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 case $as_dir in #(((
4607 '') as_dir=./ ;;
4608 */) ;;
4609 *) as_dir=$as_dir/ ;;
4610 esac
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 CC=$ac_cv_prog_CC
4624 if test -n "$CC"; then
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4626 printf "%s\n" "$CC" >&6; }
4627 else
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 printf "%s\n" "no" >&6; }
4630 fi
4631
4632
4633 test -n "$CC" && break
4634 done
4635 fi
4636 if test -z "$CC"; then
4637 ac_ct_CC=$CC
4638 for ac_prog in cl.exe
4639 do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 printf %s "checking for $ac_word... " >&6; }
4644 if test ${ac_cv_prog_ac_ct_CC+y}
4645 then :
4646 printf %s "(cached) " >&6
4647 else $as_nop
4648 if test -n "$ac_ct_CC"; then
4649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654 IFS=$as_save_IFS
4655 case $as_dir in #(((
4656 '') as_dir=./ ;;
4657 */) ;;
4658 *) as_dir=$as_dir/ ;;
4659 esac
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_CC="$ac_prog"
4663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673 if test -n "$ac_ct_CC"; then
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4675 printf "%s\n" "$ac_ct_CC" >&6; }
4676 else
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 printf "%s\n" "no" >&6; }
4679 fi
4680
4681
4682 test -n "$ac_ct_CC" && break
4683 done
4684
4685 if test "x$ac_ct_CC" = x; then
4686 CC=""
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 CC=$ac_ct_CC
4695 fi
4696 fi
4697
4698 fi
4699 if test -z "$CC"; then
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}clang; ac_word=$2
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 printf %s "checking for $ac_word... " >&6; }
4705 if test ${ac_cv_prog_CC+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else $as_nop
4709 if test -n "$CC"; then
4710 ac_cv_prog_CC="$CC" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715 IFS=$as_save_IFS
4716 case $as_dir in #(((
4717 '') as_dir=./ ;;
4718 */) ;;
4719 *) as_dir=$as_dir/ ;;
4720 esac
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_CC="${ac_tool_prefix}clang"
4724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 CC=$ac_cv_prog_CC
4734 if test -n "$CC"; then
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4736 printf "%s\n" "$CC" >&6; }
4737 else
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 printf "%s\n" "no" >&6; }
4740 fi
4741
4742
4743 fi
4744 if test -z "$ac_cv_prog_CC"; then
4745 ac_ct_CC=$CC
4746 # Extract the first word of "clang", so it can be a program name with args.
4747 set dummy clang; ac_word=$2
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 printf %s "checking for $ac_word... " >&6; }
4750 if test ${ac_cv_prog_ac_ct_CC+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 if test -n "$ac_ct_CC"; then
4755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 case $as_dir in #(((
4762 '') as_dir=./ ;;
4763 */) ;;
4764 *) as_dir=$as_dir/ ;;
4765 esac
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_CC="clang"
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4779 if test -n "$ac_ct_CC"; then
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4781 printf "%s\n" "$ac_ct_CC" >&6; }
4782 else
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 printf "%s\n" "no" >&6; }
4785 fi
4786
4787 if test "x$ac_ct_CC" = x; then
4788 CC=""
4789 else
4790 case $cross_compiling:$ac_tool_warned in
4791 yes:)
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796 CC=$ac_ct_CC
4797 fi
4798 else
4799 CC="$ac_cv_prog_CC"
4800 fi
4801
4802 fi
4803
4804
4805 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4806 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4807 as_fn_error $? "no acceptable C compiler found in \$PATH
4808 See \`config.log' for more details" "$LINENO" 5; }
4809
4810 # Provide some information about the compiler.
4811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4812 set X $ac_compile
4813 ac_compiler=$2
4814 for ac_option in --version -v -V -qversion -version; do
4815 { { ac_try="$ac_compiler $ac_option >&5"
4816 case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819 esac
4820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4821 printf "%s\n" "$ac_try_echo"; } >&5
4822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4823 ac_status=$?
4824 if test -s conftest.err; then
4825 sed '10a\
4826 ... rest of stderr output deleted ...
4827 10q' conftest.err >conftest.er1
4828 cat conftest.er1 >&5
4829 fi
4830 rm -f conftest.er1 conftest.err
4831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4832 test $ac_status = 0; }
4833 done
4834
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837
4838 int
4839 main (void)
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 ac_clean_files_save=$ac_clean_files
4847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4848 # Try to create an executable without -o first, disregard a.out.
4849 # It will help us diagnose broken compilers, and finding out an intuition
4850 # of exeext.
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4852 printf %s "checking whether the C compiler works... " >&6; }
4853 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4854
4855 # The possible output files:
4856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4857
4858 ac_rmfiles=
4859 for ac_file in $ac_files
4860 do
4861 case $ac_file in
4862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4864 esac
4865 done
4866 rm -f $ac_rmfiles
4867
4868 if { { ac_try="$ac_link_default"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874 printf "%s\n" "$ac_try_echo"; } >&5
4875 (eval "$ac_link_default") 2>&5
4876 ac_status=$?
4877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }
4879 then :
4880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4883 # so that the user can short-circuit this test for compilers unknown to
4884 # Autoconf.
4885 for ac_file in $ac_files ''
4886 do
4887 test -f "$ac_file" || continue
4888 case $ac_file in
4889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4890 ;;
4891 [ab].out )
4892 # We found the default executable, but exeext='' is most
4893 # certainly right.
4894 break;;
4895 *.* )
4896 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4897 then :; else
4898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4899 fi
4900 # We set ac_cv_exeext here because the later test for it is not
4901 # safe: cross compilers may not add the suffix if given an `-o'
4902 # argument, so we may need to know it at that point already.
4903 # Even if this section looks crufty: it has the advantage of
4904 # actually working.
4905 break;;
4906 * )
4907 break;;
4908 esac
4909 done
4910 test "$ac_cv_exeext" = no && ac_cv_exeext=
4911
4912 else $as_nop
4913 ac_file=''
4914 fi
4915 if test -z "$ac_file"
4916 then :
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 printf "%s\n" "no" >&6; }
4919 printf "%s\n" "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4924 as_fn_error 77 "C compiler cannot create executables
4925 See \`config.log' for more details" "$LINENO" 5; }
4926 else $as_nop
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 printf "%s\n" "yes" >&6; }
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4931 printf %s "checking for C compiler default output file name... " >&6; }
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4933 printf "%s\n" "$ac_file" >&6; }
4934 ac_exeext=$ac_cv_exeext
4935
4936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4937 ac_clean_files=$ac_clean_files_save
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4939 printf %s "checking for suffix of executables... " >&6; }
4940 if { { ac_try="$ac_link"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4946 printf "%s\n" "$ac_try_echo"; } >&5
4947 (eval "$ac_link") 2>&5
4948 ac_status=$?
4949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }
4951 then :
4952 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4953 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4954 # work properly (i.e., refer to `conftest.exe'), while it won't with
4955 # `rm'.
4956 for ac_file in conftest.exe conftest conftest.*; do
4957 test -f "$ac_file" || continue
4958 case $ac_file in
4959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4961 break;;
4962 * ) break;;
4963 esac
4964 done
4965 else $as_nop
4966 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4969 See \`config.log' for more details" "$LINENO" 5; }
4970 fi
4971 rm -f conftest conftest$ac_cv_exeext
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4973 printf "%s\n" "$ac_cv_exeext" >&6; }
4974
4975 rm -f conftest.$ac_ext
4976 EXEEXT=$ac_cv_exeext
4977 ac_exeext=$EXEEXT
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <stdio.h>
4981 int
4982 main (void)
4983 {
4984 FILE *f = fopen ("conftest.out", "w");
4985 return ferror (f) || fclose (f) != 0;
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 ac_clean_files="$ac_clean_files conftest.out"
4992 # Check that the compiler produces executables we can run. If not, either
4993 # the compiler is broken, or we cross compile.
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4995 printf %s "checking whether we are cross compiling... " >&6; }
4996 if test "$cross_compiling" != yes; then
4997 { { ac_try="$ac_link"
4998 case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001 esac
5002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5003 printf "%s\n" "$ac_try_echo"; } >&5
5004 (eval "$ac_link") 2>&5
5005 ac_status=$?
5006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5007 test $ac_status = 0; }
5008 if { ac_try='./conftest$ac_cv_exeext'
5009 { { case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5014 printf "%s\n" "$ac_try_echo"; } >&5
5015 (eval "$ac_try") 2>&5
5016 ac_status=$?
5017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5018 test $ac_status = 0; }; }; then
5019 cross_compiling=no
5020 else
5021 if test "$cross_compiling" = maybe; then
5022 cross_compiling=yes
5023 else
5024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5026 as_fn_error 77 "cannot run C compiled programs.
5027 If you meant to cross compile, use \`--host'.
5028 See \`config.log' for more details" "$LINENO" 5; }
5029 fi
5030 fi
5031 fi
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5033 printf "%s\n" "$cross_compiling" >&6; }
5034
5035 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5036 ac_clean_files=$ac_clean_files_save
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5038 printf %s "checking for suffix of object files... " >&6; }
5039 if test ${ac_cv_objext+y}
5040 then :
5041 printf %s "(cached) " >&6
5042 else $as_nop
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045
5046 int
5047 main (void)
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.o conftest.obj
5055 if { { ac_try="$ac_compile"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 printf "%s\n" "$ac_try_echo"; } >&5
5062 (eval "$ac_compile") 2>&5
5063 ac_status=$?
5064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5065 test $ac_status = 0; }
5066 then :
5067 for ac_file in conftest.o conftest.obj conftest.*; do
5068 test -f "$ac_file" || continue;
5069 case $ac_file in
5070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5072 break;;
5073 esac
5074 done
5075 else $as_nop
5076 printf "%s\n" "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error $? "cannot compute suffix of object files: cannot compile
5082 See \`config.log' for more details" "$LINENO" 5; }
5083 fi
5084 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5085 fi
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5087 printf "%s\n" "$ac_cv_objext" >&6; }
5088 OBJEXT=$ac_cv_objext
5089 ac_objext=$OBJEXT
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5091 printf %s "checking whether the compiler supports GNU C... " >&6; }
5092 if test ${ac_cv_c_compiler_gnu+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 int
5100 main (void)
5101 {
5102 #ifndef __GNUC__
5103 choke me
5104 #endif
5105
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"
5111 then :
5112 ac_compiler_gnu=yes
5113 else $as_nop
5114 ac_compiler_gnu=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5117 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5118
5119 fi
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5121 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124 if test $ac_compiler_gnu = yes; then
5125 GCC=yes
5126 else
5127 GCC=
5128 fi
5129 ac_test_CFLAGS=${CFLAGS+y}
5130 ac_save_CFLAGS=$CFLAGS
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5132 printf %s "checking whether $CC accepts -g... " >&6; }
5133 if test ${ac_cv_prog_cc_g+y}
5134 then :
5135 printf %s "(cached) " >&6
5136 else $as_nop
5137 ac_save_c_werror_flag=$ac_c_werror_flag
5138 ac_c_werror_flag=yes
5139 ac_cv_prog_cc_g=no
5140 CFLAGS="-g"
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143
5144 int
5145 main (void)
5146 {
5147
5148 ;
5149 return 0;
5150 }
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"
5153 then :
5154 ac_cv_prog_cc_g=yes
5155 else $as_nop
5156 CFLAGS=""
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159
5160 int
5161 main (void)
5162 {
5163
5164 ;
5165 return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"
5169 then :
5170
5171 else $as_nop
5172 ac_c_werror_flag=$ac_save_c_werror_flag
5173 CFLAGS="-g"
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176
5177 int
5178 main (void)
5179 {
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"
5186 then :
5187 ac_cv_prog_cc_g=yes
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5194 ac_c_werror_flag=$ac_save_c_werror_flag
5195 fi
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5197 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5198 if test $ac_test_CFLAGS; then
5199 CFLAGS=$ac_save_CFLAGS
5200 elif test $ac_cv_prog_cc_g = yes; then
5201 if test "$GCC" = yes; then
5202 CFLAGS="-g -O2"
5203 else
5204 CFLAGS="-g"
5205 fi
5206 else
5207 if test "$GCC" = yes; then
5208 CFLAGS="-O2"
5209 else
5210 CFLAGS=
5211 fi
5212 fi
5213 ac_prog_cc_stdc=no
5214 if test x$ac_prog_cc_stdc = xno
5215 then :
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5217 printf %s "checking for $CC option to enable C11 features... " >&6; }
5218 if test ${ac_cv_prog_cc_c11+y}
5219 then :
5220 printf %s "(cached) " >&6
5221 else $as_nop
5222 ac_cv_prog_cc_c11=no
5223 ac_save_CC=$CC
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 $ac_c_conftest_c11_program
5227 _ACEOF
5228 for ac_arg in '' -std=gnu11
5229 do
5230 CC="$ac_save_CC $ac_arg"
5231 if ac_fn_c_try_compile "$LINENO"
5232 then :
5233 ac_cv_prog_cc_c11=$ac_arg
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam
5236 test "x$ac_cv_prog_cc_c11" != "xno" && break
5237 done
5238 rm -f conftest.$ac_ext
5239 CC=$ac_save_CC
5240 fi
5241
5242 if test "x$ac_cv_prog_cc_c11" = xno
5243 then :
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5245 printf "%s\n" "unsupported" >&6; }
5246 else $as_nop
5247 if test "x$ac_cv_prog_cc_c11" = x
5248 then :
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5250 printf "%s\n" "none needed" >&6; }
5251 else $as_nop
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5253 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5254 CC="$CC $ac_cv_prog_cc_c11"
5255 fi
5256 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5257 ac_prog_cc_stdc=c11
5258 fi
5259 fi
5260 if test x$ac_prog_cc_stdc = xno
5261 then :
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5263 printf %s "checking for $CC option to enable C99 features... " >&6; }
5264 if test ${ac_cv_prog_cc_c99+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 ac_cv_prog_cc_c99=no
5269 ac_save_CC=$CC
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 $ac_c_conftest_c99_program
5273 _ACEOF
5274 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5275 do
5276 CC="$ac_save_CC $ac_arg"
5277 if ac_fn_c_try_compile "$LINENO"
5278 then :
5279 ac_cv_prog_cc_c99=$ac_arg
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam
5282 test "x$ac_cv_prog_cc_c99" != "xno" && break
5283 done
5284 rm -f conftest.$ac_ext
5285 CC=$ac_save_CC
5286 fi
5287
5288 if test "x$ac_cv_prog_cc_c99" = xno
5289 then :
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5291 printf "%s\n" "unsupported" >&6; }
5292 else $as_nop
5293 if test "x$ac_cv_prog_cc_c99" = x
5294 then :
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5296 printf "%s\n" "none needed" >&6; }
5297 else $as_nop
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5299 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5300 CC="$CC $ac_cv_prog_cc_c99"
5301 fi
5302 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5303 ac_prog_cc_stdc=c99
5304 fi
5305 fi
5306 if test x$ac_prog_cc_stdc = xno
5307 then :
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5309 printf %s "checking for $CC option to enable C89 features... " >&6; }
5310 if test ${ac_cv_prog_cc_c89+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 ac_cv_prog_cc_c89=no
5315 ac_save_CC=$CC
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 $ac_c_conftest_c89_program
5319 _ACEOF
5320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5321 do
5322 CC="$ac_save_CC $ac_arg"
5323 if ac_fn_c_try_compile "$LINENO"
5324 then :
5325 ac_cv_prog_cc_c89=$ac_arg
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.beam
5328 test "x$ac_cv_prog_cc_c89" != "xno" && break
5329 done
5330 rm -f conftest.$ac_ext
5331 CC=$ac_save_CC
5332 fi
5333
5334 if test "x$ac_cv_prog_cc_c89" = xno
5335 then :
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5337 printf "%s\n" "unsupported" >&6; }
5338 else $as_nop
5339 if test "x$ac_cv_prog_cc_c89" = x
5340 then :
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5342 printf "%s\n" "none needed" >&6; }
5343 else $as_nop
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5345 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5346 CC="$CC $ac_cv_prog_cc_c89"
5347 fi
5348 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5349 ac_prog_cc_stdc=c89
5350 fi
5351 fi
5352
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 ac_ext=c
5361 ac_cpp='$CPP $CPPFLAGS'
5362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5366 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5367 if test ${am_cv_prog_cc_c_o+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373
5374 int
5375 main (void)
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 # Make sure it works both with $CC and with simple cc.
5383 # Following AC_PROG_CC_C_O, we do the test twice because some
5384 # compilers refuse to overwrite an existing .o file with -o,
5385 # though they will create one.
5386 am_cv_prog_cc_c_o=yes
5387 for am_i in 1 2; do
5388 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5389 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } \
5393 && test -f conftest2.$ac_objext; then
5394 : OK
5395 else
5396 am_cv_prog_cc_c_o=no
5397 break
5398 fi
5399 done
5400 rm -f core conftest*
5401 unset am_i
5402 fi
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5404 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5405 if test "$am_cv_prog_cc_c_o" != yes; then
5406 # Losing compiler, so override with the script.
5407 # FIXME: It is wrong to rewrite CC.
5408 # But if we don't then we get into trouble of one sort or another.
5409 # A longer-term fix would be to have automake use am__CC in this case,
5410 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5411 CC="$am_aux_dir/compile $CC"
5412 fi
5413 ac_ext=c
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420 depcc="$CC" am_compiler_list=
5421
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5423 printf %s "checking dependency style of $depcc... " >&6; }
5424 if test ${am_cv_CC_dependencies_compiler_type+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else $as_nop
5428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5429 # We make a subdir and do the tests there. Otherwise we can end up
5430 # making bogus files that we don't know about and never remove. For
5431 # instance it was reported that on HP-UX the gcc test will end up
5432 # making a dummy file named 'D' -- because '-MD' means "put the output
5433 # in D".
5434 rm -rf conftest.dir
5435 mkdir conftest.dir
5436 # Copy depcomp to subdir because otherwise we won't find it if we're
5437 # using a relative directory.
5438 cp "$am_depcomp" conftest.dir
5439 cd conftest.dir
5440 # We will build objects and dependencies in a subdirectory because
5441 # it helps to detect inapplicable dependency modes. For instance
5442 # both Tru64's cc and ICC support -MD to output dependencies as a
5443 # side effect of compilation, but ICC will put the dependencies in
5444 # the current directory while Tru64 will put them in the object
5445 # directory.
5446 mkdir sub
5447
5448 am_cv_CC_dependencies_compiler_type=none
5449 if test "$am_compiler_list" = ""; then
5450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5451 fi
5452 am__universal=false
5453 case " $depcc " in #(
5454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5455 esac
5456
5457 for depmode in $am_compiler_list; do
5458 # Setup a source with many dependencies, because some compilers
5459 # like to wrap large dependency lists on column 80 (with \), and
5460 # we should not choose a depcomp mode which is confused by this.
5461 #
5462 # We need to recreate these files for each test, as the compiler may
5463 # overwrite some of them when testing with obscure command lines.
5464 # This happens at least with the AIX C compiler.
5465 : > sub/conftest.c
5466 for i in 1 2 3 4 5 6; do
5467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5469 # Solaris 10 /bin/sh.
5470 echo '/* dummy */' > sub/conftst$i.h
5471 done
5472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473
5474 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5475 # mode. It turns out that the SunPro C++ compiler does not properly
5476 # handle '-M -o', and we need to detect this. Also, some Intel
5477 # versions had trouble with output in subdirs.
5478 am__obj=sub/conftest.${OBJEXT-o}
5479 am__minus_obj="-o $am__obj"
5480 case $depmode in
5481 gcc)
5482 # This depmode causes a compiler race in universal mode.
5483 test "$am__universal" = false || continue
5484 ;;
5485 nosideeffect)
5486 # After this tag, mechanisms are not by side-effect, so they'll
5487 # only be used when explicitly requested.
5488 if test "x$enable_dependency_tracking" = xyes; then
5489 continue
5490 else
5491 break
5492 fi
5493 ;;
5494 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5495 # This compiler won't grok '-c -o', but also, the minuso test has
5496 # not run yet. These depmodes are late enough in the game, and
5497 # so weak that their functioning should not be impacted.
5498 am__obj=conftest.${OBJEXT-o}
5499 am__minus_obj=
5500 ;;
5501 none) break ;;
5502 esac
5503 if depmode=$depmode \
5504 source=sub/conftest.c object=$am__obj \
5505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5507 >/dev/null 2>conftest.err &&
5508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512 # icc doesn't choke on unknown options, it will just issue warnings
5513 # or remarks (even with -Werror). So we grep stderr for any message
5514 # that says an option was ignored or not supported.
5515 # When given -MP, icc 7.0 and 7.1 complain thusly:
5516 # icc: Command line warning: ignoring option '-M'; no argument required
5517 # The diagnosis changed in icc 8.0:
5518 # icc: Command line remark: option '-MP' not supported
5519 if (grep 'ignoring option' conftest.err ||
5520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521 am_cv_CC_dependencies_compiler_type=$depmode
5522 break
5523 fi
5524 fi
5525 done
5526
5527 cd ..
5528 rm -rf conftest.dir
5529 else
5530 am_cv_CC_dependencies_compiler_type=none
5531 fi
5532
5533 fi
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5535 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5537
5538 if
5539 test "x$enable_dependency_tracking" != xno \
5540 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5541 am__fastdepCC_TRUE=
5542 am__fastdepCC_FALSE='#'
5543 else
5544 am__fastdepCC_TRUE='#'
5545 am__fastdepCC_FALSE=
5546 fi
5547
5548
5549 # By default we simply use the C compiler to build assembly code.
5550
5551 test "${CCAS+set}" = set || CCAS=$CC
5552 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5553
5554
5555
5556 depcc="$CCAS" am_compiler_list=
5557
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5559 printf %s "checking dependency style of $depcc... " >&6; }
5560 if test ${am_cv_CCAS_dependencies_compiler_type+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else $as_nop
5564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5565 # We make a subdir and do the tests there. Otherwise we can end up
5566 # making bogus files that we don't know about and never remove. For
5567 # instance it was reported that on HP-UX the gcc test will end up
5568 # making a dummy file named 'D' -- because '-MD' means "put the output
5569 # in D".
5570 rm -rf conftest.dir
5571 mkdir conftest.dir
5572 # Copy depcomp to subdir because otherwise we won't find it if we're
5573 # using a relative directory.
5574 cp "$am_depcomp" conftest.dir
5575 cd conftest.dir
5576 # We will build objects and dependencies in a subdirectory because
5577 # it helps to detect inapplicable dependency modes. For instance
5578 # both Tru64's cc and ICC support -MD to output dependencies as a
5579 # side effect of compilation, but ICC will put the dependencies in
5580 # the current directory while Tru64 will put them in the object
5581 # directory.
5582 mkdir sub
5583
5584 am_cv_CCAS_dependencies_compiler_type=none
5585 if test "$am_compiler_list" = ""; then
5586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5587 fi
5588 am__universal=false
5589
5590
5591 for depmode in $am_compiler_list; do
5592 # Setup a source with many dependencies, because some compilers
5593 # like to wrap large dependency lists on column 80 (with \), and
5594 # we should not choose a depcomp mode which is confused by this.
5595 #
5596 # We need to recreate these files for each test, as the compiler may
5597 # overwrite some of them when testing with obscure command lines.
5598 # This happens at least with the AIX C compiler.
5599 : > sub/conftest.c
5600 for i in 1 2 3 4 5 6; do
5601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5603 # Solaris 10 /bin/sh.
5604 echo '/* dummy */' > sub/conftst$i.h
5605 done
5606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5607
5608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5609 # mode. It turns out that the SunPro C++ compiler does not properly
5610 # handle '-M -o', and we need to detect this. Also, some Intel
5611 # versions had trouble with output in subdirs.
5612 am__obj=sub/conftest.${OBJEXT-o}
5613 am__minus_obj="-o $am__obj"
5614 case $depmode in
5615 gcc)
5616 # This depmode causes a compiler race in universal mode.
5617 test "$am__universal" = false || continue
5618 ;;
5619 nosideeffect)
5620 # After this tag, mechanisms are not by side-effect, so they'll
5621 # only be used when explicitly requested.
5622 if test "x$enable_dependency_tracking" = xyes; then
5623 continue
5624 else
5625 break
5626 fi
5627 ;;
5628 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5629 # This compiler won't grok '-c -o', but also, the minuso test has
5630 # not run yet. These depmodes are late enough in the game, and
5631 # so weak that their functioning should not be impacted.
5632 am__obj=conftest.${OBJEXT-o}
5633 am__minus_obj=
5634 ;;
5635 none) break ;;
5636 esac
5637 if depmode=$depmode \
5638 source=sub/conftest.c object=$am__obj \
5639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5641 >/dev/null 2>conftest.err &&
5642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5646 # icc doesn't choke on unknown options, it will just issue warnings
5647 # or remarks (even with -Werror). So we grep stderr for any message
5648 # that says an option was ignored or not supported.
5649 # When given -MP, icc 7.0 and 7.1 complain thusly:
5650 # icc: Command line warning: ignoring option '-M'; no argument required
5651 # The diagnosis changed in icc 8.0:
5652 # icc: Command line remark: option '-MP' not supported
5653 if (grep 'ignoring option' conftest.err ||
5654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5655 am_cv_CCAS_dependencies_compiler_type=$depmode
5656 break
5657 fi
5658 fi
5659 done
5660
5661 cd ..
5662 rm -rf conftest.dir
5663 else
5664 am_cv_CCAS_dependencies_compiler_type=none
5665 fi
5666
5667 fi
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5669 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5670 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5671
5672 if
5673 test "x$enable_dependency_tracking" != xno \
5674 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5675 am__fastdepCCAS_TRUE=
5676 am__fastdepCCAS_FALSE='#'
5677 else
5678 am__fastdepCCAS_TRUE='#'
5679 am__fastdepCCAS_FALSE=
5680 fi
5681
5682
5683 ac_ext=c
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688 if test -n "$ac_tool_prefix"; then
5689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 printf %s "checking for $ac_word... " >&6; }
5693 if test ${ac_cv_prog_CC+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else $as_nop
5697 if test -n "$CC"; then
5698 ac_cv_prog_CC="$CC" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703 IFS=$as_save_IFS
5704 case $as_dir in #(((
5705 '') as_dir=./ ;;
5706 */) ;;
5707 *) as_dir=$as_dir/ ;;
5708 esac
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 CC=$ac_cv_prog_CC
5722 if test -n "$CC"; then
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5724 printf "%s\n" "$CC" >&6; }
5725 else
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 printf "%s\n" "no" >&6; }
5728 fi
5729
5730
5731 fi
5732 if test -z "$ac_cv_prog_CC"; then
5733 ac_ct_CC=$CC
5734 # Extract the first word of "gcc", so it can be a program name with args.
5735 set dummy gcc; ac_word=$2
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 printf %s "checking for $ac_word... " >&6; }
5738 if test ${ac_cv_prog_ac_ct_CC+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 if test -n "$ac_ct_CC"; then
5743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 case $as_dir in #(((
5750 '') as_dir=./ ;;
5751 */) ;;
5752 *) as_dir=$as_dir/ ;;
5753 esac
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_CC="gcc"
5757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5767 if test -n "$ac_ct_CC"; then
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5769 printf "%s\n" "$ac_ct_CC" >&6; }
5770 else
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 printf "%s\n" "no" >&6; }
5773 fi
5774
5775 if test "x$ac_ct_CC" = x; then
5776 CC=""
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784 CC=$ac_ct_CC
5785 fi
5786 else
5787 CC="$ac_cv_prog_CC"
5788 fi
5789
5790 if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}cc; ac_word=$2
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 printf %s "checking for $ac_word... " >&6; }
5796 if test ${ac_cv_prog_CC+y}
5797 then :
5798 printf %s "(cached) " >&6
5799 else $as_nop
5800 if test -n "$CC"; then
5801 ac_cv_prog_CC="$CC" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 case $as_dir in #(((
5808 '') as_dir=./ ;;
5809 */) ;;
5810 *) as_dir=$as_dir/ ;;
5811 esac
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_CC="${ac_tool_prefix}cc"
5815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 CC=$ac_cv_prog_CC
5825 if test -n "$CC"; then
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5827 printf "%s\n" "$CC" >&6; }
5828 else
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 printf "%s\n" "no" >&6; }
5831 fi
5832
5833
5834 fi
5835 fi
5836 if test -z "$CC"; then
5837 # Extract the first word of "cc", so it can be a program name with args.
5838 set dummy cc; ac_word=$2
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 printf %s "checking for $ac_word... " >&6; }
5841 if test ${ac_cv_prog_CC+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
5845 if test -n "$CC"; then
5846 ac_cv_prog_CC="$CC" # Let the user override the test.
5847 else
5848 ac_prog_rejected=no
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 case $as_dir in #(((
5854 '') as_dir=./ ;;
5855 */) ;;
5856 *) as_dir=$as_dir/ ;;
5857 esac
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5860 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5861 ac_prog_rejected=yes
5862 continue
5863 fi
5864 ac_cv_prog_CC="cc"
5865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 if test $ac_prog_rejected = yes; then
5873 # We found a bogon in the path, so make sure we never use it.
5874 set dummy $ac_cv_prog_CC
5875 shift
5876 if test $# != 0; then
5877 # We chose a different compiler from the bogus one.
5878 # However, it has the same basename, so the bogon will be chosen
5879 # first if we set CC to just the basename; use the full file name.
5880 shift
5881 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5882 fi
5883 fi
5884 fi
5885 fi
5886 CC=$ac_cv_prog_CC
5887 if test -n "$CC"; then
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5889 printf "%s\n" "$CC" >&6; }
5890 else
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 printf "%s\n" "no" >&6; }
5893 fi
5894
5895
5896 fi
5897 if test -z "$CC"; then
5898 if test -n "$ac_tool_prefix"; then
5899 for ac_prog in cl.exe
5900 do
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 printf %s "checking for $ac_word... " >&6; }
5905 if test ${ac_cv_prog_CC+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else $as_nop
5909 if test -n "$CC"; then
5910 ac_cv_prog_CC="$CC" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 case $as_dir in #(((
5917 '') as_dir=./ ;;
5918 */) ;;
5919 *) as_dir=$as_dir/ ;;
5920 esac
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 CC=$ac_cv_prog_CC
5934 if test -n "$CC"; then
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5936 printf "%s\n" "$CC" >&6; }
5937 else
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 printf "%s\n" "no" >&6; }
5940 fi
5941
5942
5943 test -n "$CC" && break
5944 done
5945 fi
5946 if test -z "$CC"; then
5947 ac_ct_CC=$CC
5948 for ac_prog in cl.exe
5949 do
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 printf %s "checking for $ac_word... " >&6; }
5954 if test ${ac_cv_prog_ac_ct_CC+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else $as_nop
5958 if test -n "$ac_ct_CC"; then
5959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 case $as_dir in #(((
5966 '') as_dir=./ ;;
5967 */) ;;
5968 *) as_dir=$as_dir/ ;;
5969 esac
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_CC="$ac_prog"
5973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5983 if test -n "$ac_ct_CC"; then
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5985 printf "%s\n" "$ac_ct_CC" >&6; }
5986 else
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 printf "%s\n" "no" >&6; }
5989 fi
5990
5991
5992 test -n "$ac_ct_CC" && break
5993 done
5994
5995 if test "x$ac_ct_CC" = x; then
5996 CC=""
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004 CC=$ac_ct_CC
6005 fi
6006 fi
6007
6008 fi
6009 if test -z "$CC"; then
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}clang; ac_word=$2
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 printf %s "checking for $ac_word... " >&6; }
6015 if test ${ac_cv_prog_CC+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else $as_nop
6019 if test -n "$CC"; then
6020 ac_cv_prog_CC="$CC" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 case $as_dir in #(((
6027 '') as_dir=./ ;;
6028 */) ;;
6029 *) as_dir=$as_dir/ ;;
6030 esac
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_CC="${ac_tool_prefix}clang"
6034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 CC=$ac_cv_prog_CC
6044 if test -n "$CC"; then
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6046 printf "%s\n" "$CC" >&6; }
6047 else
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 printf "%s\n" "no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_CC"; then
6055 ac_ct_CC=$CC
6056 # Extract the first word of "clang", so it can be a program name with args.
6057 set dummy clang; ac_word=$2
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 printf %s "checking for $ac_word... " >&6; }
6060 if test ${ac_cv_prog_ac_ct_CC+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else $as_nop
6064 if test -n "$ac_ct_CC"; then
6065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 case $as_dir in #(((
6072 '') as_dir=./ ;;
6073 */) ;;
6074 *) as_dir=$as_dir/ ;;
6075 esac
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_CC="clang"
6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6089 if test -n "$ac_ct_CC"; then
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6091 printf "%s\n" "$ac_ct_CC" >&6; }
6092 else
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 printf "%s\n" "no" >&6; }
6095 fi
6096
6097 if test "x$ac_ct_CC" = x; then
6098 CC=""
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 CC=$ac_ct_CC
6107 fi
6108 else
6109 CC="$ac_cv_prog_CC"
6110 fi
6111
6112 fi
6113
6114
6115 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6117 as_fn_error $? "no acceptable C compiler found in \$PATH
6118 See \`config.log' for more details" "$LINENO" 5; }
6119
6120 # Provide some information about the compiler.
6121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6122 set X $ac_compile
6123 ac_compiler=$2
6124 for ac_option in --version -v -V -qversion -version; do
6125 { { ac_try="$ac_compiler $ac_option >&5"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6131 printf "%s\n" "$ac_try_echo"; } >&5
6132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6133 ac_status=$?
6134 if test -s conftest.err; then
6135 sed '10a\
6136 ... rest of stderr output deleted ...
6137 10q' conftest.err >conftest.er1
6138 cat conftest.er1 >&5
6139 fi
6140 rm -f conftest.er1 conftest.err
6141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; }
6143 done
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6146 printf %s "checking whether the compiler supports GNU C... " >&6; }
6147 if test ${ac_cv_c_compiler_gnu+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153
6154 int
6155 main (void)
6156 {
6157 #ifndef __GNUC__
6158 choke me
6159 #endif
6160
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"
6166 then :
6167 ac_compiler_gnu=yes
6168 else $as_nop
6169 ac_compiler_gnu=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6173
6174 fi
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179 if test $ac_compiler_gnu = yes; then
6180 GCC=yes
6181 else
6182 GCC=
6183 fi
6184 ac_test_CFLAGS=${CFLAGS+y}
6185 ac_save_CFLAGS=$CFLAGS
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6187 printf %s "checking whether $CC accepts -g... " >&6; }
6188 if test ${ac_cv_prog_cc_g+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else $as_nop
6192 ac_save_c_werror_flag=$ac_c_werror_flag
6193 ac_c_werror_flag=yes
6194 ac_cv_prog_cc_g=no
6195 CFLAGS="-g"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 int
6200 main (void)
6201 {
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"
6208 then :
6209 ac_cv_prog_cc_g=yes
6210 else $as_nop
6211 CFLAGS=""
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214
6215 int
6216 main (void)
6217 {
6218
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"
6224 then :
6225
6226 else $as_nop
6227 ac_c_werror_flag=$ac_save_c_werror_flag
6228 CFLAGS="-g"
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231
6232 int
6233 main (void)
6234 {
6235
6236 ;
6237 return 0;
6238 }
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"
6241 then :
6242 ac_cv_prog_cc_g=yes
6243 fi
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6249 ac_c_werror_flag=$ac_save_c_werror_flag
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6253 if test $ac_test_CFLAGS; then
6254 CFLAGS=$ac_save_CFLAGS
6255 elif test $ac_cv_prog_cc_g = yes; then
6256 if test "$GCC" = yes; then
6257 CFLAGS="-g -O2"
6258 else
6259 CFLAGS="-g"
6260 fi
6261 else
6262 if test "$GCC" = yes; then
6263 CFLAGS="-O2"
6264 else
6265 CFLAGS=
6266 fi
6267 fi
6268 ac_prog_cc_stdc=no
6269 if test x$ac_prog_cc_stdc = xno
6270 then :
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6272 printf %s "checking for $CC option to enable C11 features... " >&6; }
6273 if test ${ac_cv_prog_cc_c11+y}
6274 then :
6275 printf %s "(cached) " >&6
6276 else $as_nop
6277 ac_cv_prog_cc_c11=no
6278 ac_save_CC=$CC
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 $ac_c_conftest_c11_program
6282 _ACEOF
6283 for ac_arg in '' -std=gnu11
6284 do
6285 CC="$ac_save_CC $ac_arg"
6286 if ac_fn_c_try_compile "$LINENO"
6287 then :
6288 ac_cv_prog_cc_c11=$ac_arg
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam
6291 test "x$ac_cv_prog_cc_c11" != "xno" && break
6292 done
6293 rm -f conftest.$ac_ext
6294 CC=$ac_save_CC
6295 fi
6296
6297 if test "x$ac_cv_prog_cc_c11" = xno
6298 then :
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6300 printf "%s\n" "unsupported" >&6; }
6301 else $as_nop
6302 if test "x$ac_cv_prog_cc_c11" = x
6303 then :
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6305 printf "%s\n" "none needed" >&6; }
6306 else $as_nop
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6309 CC="$CC $ac_cv_prog_cc_c11"
6310 fi
6311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6312 ac_prog_cc_stdc=c11
6313 fi
6314 fi
6315 if test x$ac_prog_cc_stdc = xno
6316 then :
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6318 printf %s "checking for $CC option to enable C99 features... " >&6; }
6319 if test ${ac_cv_prog_cc_c99+y}
6320 then :
6321 printf %s "(cached) " >&6
6322 else $as_nop
6323 ac_cv_prog_cc_c99=no
6324 ac_save_CC=$CC
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 $ac_c_conftest_c99_program
6328 _ACEOF
6329 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6330 do
6331 CC="$ac_save_CC $ac_arg"
6332 if ac_fn_c_try_compile "$LINENO"
6333 then :
6334 ac_cv_prog_cc_c99=$ac_arg
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.beam
6337 test "x$ac_cv_prog_cc_c99" != "xno" && break
6338 done
6339 rm -f conftest.$ac_ext
6340 CC=$ac_save_CC
6341 fi
6342
6343 if test "x$ac_cv_prog_cc_c99" = xno
6344 then :
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6346 printf "%s\n" "unsupported" >&6; }
6347 else $as_nop
6348 if test "x$ac_cv_prog_cc_c99" = x
6349 then :
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6351 printf "%s\n" "none needed" >&6; }
6352 else $as_nop
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6355 CC="$CC $ac_cv_prog_cc_c99"
6356 fi
6357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6358 ac_prog_cc_stdc=c99
6359 fi
6360 fi
6361 if test x$ac_prog_cc_stdc = xno
6362 then :
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6364 printf %s "checking for $CC option to enable C89 features... " >&6; }
6365 if test ${ac_cv_prog_cc_c89+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else $as_nop
6369 ac_cv_prog_cc_c89=no
6370 ac_save_CC=$CC
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 $ac_c_conftest_c89_program
6374 _ACEOF
6375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6376 do
6377 CC="$ac_save_CC $ac_arg"
6378 if ac_fn_c_try_compile "$LINENO"
6379 then :
6380 ac_cv_prog_cc_c89=$ac_arg
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext conftest.beam
6383 test "x$ac_cv_prog_cc_c89" != "xno" && break
6384 done
6385 rm -f conftest.$ac_ext
6386 CC=$ac_save_CC
6387 fi
6388
6389 if test "x$ac_cv_prog_cc_c89" = xno
6390 then :
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6392 printf "%s\n" "unsupported" >&6; }
6393 else $as_nop
6394 if test "x$ac_cv_prog_cc_c89" = x
6395 then :
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6397 printf "%s\n" "none needed" >&6; }
6398 else $as_nop
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6401 CC="$CC $ac_cv_prog_cc_c89"
6402 fi
6403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6404 ac_prog_cc_stdc=c89
6405 fi
6406 fi
6407
6408 ac_ext=c
6409 ac_cpp='$CPP $CPPFLAGS'
6410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414
6415 ac_ext=c
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6421 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6422 if test ${am_cv_prog_cc_c_o+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else $as_nop
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428
6429 int
6430 main (void)
6431 {
6432
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 # Make sure it works both with $CC and with simple cc.
6438 # Following AC_PROG_CC_C_O, we do the test twice because some
6439 # compilers refuse to overwrite an existing .o file with -o,
6440 # though they will create one.
6441 am_cv_prog_cc_c_o=yes
6442 for am_i in 1 2; do
6443 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6444 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } \
6448 && test -f conftest2.$ac_objext; then
6449 : OK
6450 else
6451 am_cv_prog_cc_c_o=no
6452 break
6453 fi
6454 done
6455 rm -f core conftest*
6456 unset am_i
6457 fi
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6459 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6460 if test "$am_cv_prog_cc_c_o" != yes; then
6461 # Losing compiler, so override with the script.
6462 # FIXME: It is wrong to rewrite CC.
6463 # But if we don't then we get into trouble of one sort or another.
6464 # A longer-term fix would be to have automake use am__CC in this case,
6465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6466 CC="$am_aux_dir/compile $CC"
6467 fi
6468 ac_ext=c
6469 ac_cpp='$CPP $CPPFLAGS'
6470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473
6474
6475 depcc="$CC" am_compiler_list=
6476
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6478 printf %s "checking dependency style of $depcc... " >&6; }
6479 if test ${am_cv_CC_dependencies_compiler_type+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else $as_nop
6483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6484 # We make a subdir and do the tests there. Otherwise we can end up
6485 # making bogus files that we don't know about and never remove. For
6486 # instance it was reported that on HP-UX the gcc test will end up
6487 # making a dummy file named 'D' -- because '-MD' means "put the output
6488 # in D".
6489 rm -rf conftest.dir
6490 mkdir conftest.dir
6491 # Copy depcomp to subdir because otherwise we won't find it if we're
6492 # using a relative directory.
6493 cp "$am_depcomp" conftest.dir
6494 cd conftest.dir
6495 # We will build objects and dependencies in a subdirectory because
6496 # it helps to detect inapplicable dependency modes. For instance
6497 # both Tru64's cc and ICC support -MD to output dependencies as a
6498 # side effect of compilation, but ICC will put the dependencies in
6499 # the current directory while Tru64 will put them in the object
6500 # directory.
6501 mkdir sub
6502
6503 am_cv_CC_dependencies_compiler_type=none
6504 if test "$am_compiler_list" = ""; then
6505 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6506 fi
6507 am__universal=false
6508 case " $depcc " in #(
6509 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6510 esac
6511
6512 for depmode in $am_compiler_list; do
6513 # Setup a source with many dependencies, because some compilers
6514 # like to wrap large dependency lists on column 80 (with \), and
6515 # we should not choose a depcomp mode which is confused by this.
6516 #
6517 # We need to recreate these files for each test, as the compiler may
6518 # overwrite some of them when testing with obscure command lines.
6519 # This happens at least with the AIX C compiler.
6520 : > sub/conftest.c
6521 for i in 1 2 3 4 5 6; do
6522 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6523 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6524 # Solaris 10 /bin/sh.
6525 echo '/* dummy */' > sub/conftst$i.h
6526 done
6527 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6528
6529 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6530 # mode. It turns out that the SunPro C++ compiler does not properly
6531 # handle '-M -o', and we need to detect this. Also, some Intel
6532 # versions had trouble with output in subdirs.
6533 am__obj=sub/conftest.${OBJEXT-o}
6534 am__minus_obj="-o $am__obj"
6535 case $depmode in
6536 gcc)
6537 # This depmode causes a compiler race in universal mode.
6538 test "$am__universal" = false || continue
6539 ;;
6540 nosideeffect)
6541 # After this tag, mechanisms are not by side-effect, so they'll
6542 # only be used when explicitly requested.
6543 if test "x$enable_dependency_tracking" = xyes; then
6544 continue
6545 else
6546 break
6547 fi
6548 ;;
6549 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6550 # This compiler won't grok '-c -o', but also, the minuso test has
6551 # not run yet. These depmodes are late enough in the game, and
6552 # so weak that their functioning should not be impacted.
6553 am__obj=conftest.${OBJEXT-o}
6554 am__minus_obj=
6555 ;;
6556 none) break ;;
6557 esac
6558 if depmode=$depmode \
6559 source=sub/conftest.c object=$am__obj \
6560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6561 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6562 >/dev/null 2>conftest.err &&
6563 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6565 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6567 # icc doesn't choke on unknown options, it will just issue warnings
6568 # or remarks (even with -Werror). So we grep stderr for any message
6569 # that says an option was ignored or not supported.
6570 # When given -MP, icc 7.0 and 7.1 complain thusly:
6571 # icc: Command line warning: ignoring option '-M'; no argument required
6572 # The diagnosis changed in icc 8.0:
6573 # icc: Command line remark: option '-MP' not supported
6574 if (grep 'ignoring option' conftest.err ||
6575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6576 am_cv_CC_dependencies_compiler_type=$depmode
6577 break
6578 fi
6579 fi
6580 done
6581
6582 cd ..
6583 rm -rf conftest.dir
6584 else
6585 am_cv_CC_dependencies_compiler_type=none
6586 fi
6587
6588 fi
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6590 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6591 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6592
6593 if
6594 test "x$enable_dependency_tracking" != xno \
6595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6596 am__fastdepCC_TRUE=
6597 am__fastdepCC_FALSE='#'
6598 else
6599 am__fastdepCC_TRUE='#'
6600 am__fastdepCC_FALSE=
6601 fi
6602
6603
6604 ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6610 printf %s "checking how to run the C preprocessor... " >&6; }
6611 # On Suns, sometimes $CPP names a directory.
6612 if test -n "$CPP" && test -d "$CPP"; then
6613 CPP=
6614 fi
6615 if test -z "$CPP"; then
6616 if test ${ac_cv_prog_CPP+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else $as_nop
6620 # Double quotes because $CC needs to be expanded
6621 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6622 do
6623 ac_preproc_ok=false
6624 for ac_c_preproc_warn_flag in '' yes
6625 do
6626 # Use a header file that comes with gcc, so configuring glibc
6627 # with a fresh cross-compiler works.
6628 # On the NeXT, cc -E runs the code through the compiler's parser,
6629 # not just through cpp. "Syntax error" is here to catch this case.
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <limits.h>
6633 Syntax error
6634 _ACEOF
6635 if ac_fn_c_try_cpp "$LINENO"
6636 then :
6637
6638 else $as_nop
6639 # Broken: fails on valid input.
6640 continue
6641 fi
6642 rm -f conftest.err conftest.i conftest.$ac_ext
6643
6644 # OK, works on sane cases. Now check whether nonexistent headers
6645 # can be detected and how.
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 #include <ac_nonexistent.h>
6649 _ACEOF
6650 if ac_fn_c_try_cpp "$LINENO"
6651 then :
6652 # Broken: success on invalid input.
6653 continue
6654 else $as_nop
6655 # Passes both tests.
6656 ac_preproc_ok=:
6657 break
6658 fi
6659 rm -f conftest.err conftest.i conftest.$ac_ext
6660
6661 done
6662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6663 rm -f conftest.i conftest.err conftest.$ac_ext
6664 if $ac_preproc_ok
6665 then :
6666 break
6667 fi
6668
6669 done
6670 ac_cv_prog_CPP=$CPP
6671
6672 fi
6673 CPP=$ac_cv_prog_CPP
6674 else
6675 ac_cv_prog_CPP=$CPP
6676 fi
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6678 printf "%s\n" "$CPP" >&6; }
6679 ac_preproc_ok=false
6680 for ac_c_preproc_warn_flag in '' yes
6681 do
6682 # Use a header file that comes with gcc, so configuring glibc
6683 # with a fresh cross-compiler works.
6684 # On the NeXT, cc -E runs the code through the compiler's parser,
6685 # not just through cpp. "Syntax error" is here to catch this case.
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <limits.h>
6689 Syntax error
6690 _ACEOF
6691 if ac_fn_c_try_cpp "$LINENO"
6692 then :
6693
6694 else $as_nop
6695 # Broken: fails on valid input.
6696 continue
6697 fi
6698 rm -f conftest.err conftest.i conftest.$ac_ext
6699
6700 # OK, works on sane cases. Now check whether nonexistent headers
6701 # can be detected and how.
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <ac_nonexistent.h>
6705 _ACEOF
6706 if ac_fn_c_try_cpp "$LINENO"
6707 then :
6708 # Broken: success on invalid input.
6709 continue
6710 else $as_nop
6711 # Passes both tests.
6712 ac_preproc_ok=:
6713 break
6714 fi
6715 rm -f conftest.err conftest.i conftest.$ac_ext
6716
6717 done
6718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719 rm -f conftest.i conftest.err conftest.$ac_ext
6720 if $ac_preproc_ok
6721 then :
6722
6723 else $as_nop
6724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6726 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6727 See \`config.log' for more details" "$LINENO" 5; }
6728 fi
6729
6730 ac_ext=c
6731 ac_cpp='$CPP $CPPFLAGS'
6732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736
6737 # Just look, no touch.
6738 oldLIBS=$LIBS
6739
6740 LIBM=
6741 case $host in
6742 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
6743 # These system don't have libm, or don't need it
6744 ;;
6745 *-ncr-sysv4.3*)
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
6747 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
6748 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
6749 then :
6750 printf %s "(cached) " >&6
6751 else $as_nop
6752 ac_check_lib_save_LIBS=$LIBS
6753 LIBS="-lmw $LIBS"
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756
6757 /* Override any GCC internal prototype to avoid an error.
6758 Use char because int might match the return type of a GCC
6759 builtin and then its argument prototype would still apply. */
6760 char _mwvalidcheckl ();
6761 int
6762 main (void)
6763 {
6764 return _mwvalidcheckl ();
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"
6770 then :
6771 ac_cv_lib_mw__mwvalidcheckl=yes
6772 else $as_nop
6773 ac_cv_lib_mw__mwvalidcheckl=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6776 conftest$ac_exeext conftest.$ac_ext
6777 LIBS=$ac_check_lib_save_LIBS
6778 fi
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
6780 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
6781 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
6782 then :
6783 LIBM=-lmw
6784 fi
6785
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
6787 printf %s "checking for cos in -lm... " >&6; }
6788 if test ${ac_cv_lib_m_cos+y}
6789 then :
6790 printf %s "(cached) " >&6
6791 else $as_nop
6792 ac_check_lib_save_LIBS=$LIBS
6793 LIBS="-lm $LIBS"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796
6797 /* Override any GCC internal prototype to avoid an error.
6798 Use char because int might match the return type of a GCC
6799 builtin and then its argument prototype would still apply. */
6800 char cos ();
6801 int
6802 main (void)
6803 {
6804 return cos ();
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"
6810 then :
6811 ac_cv_lib_m_cos=yes
6812 else $as_nop
6813 ac_cv_lib_m_cos=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6816 conftest$ac_exeext conftest.$ac_ext
6817 LIBS=$ac_check_lib_save_LIBS
6818 fi
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
6820 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
6821 if test "x$ac_cv_lib_m_cos" = xyes
6822 then :
6823 LIBM="$LIBM -lm"
6824 fi
6825
6826 ;;
6827 *)
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
6829 printf %s "checking for cos in -lm... " >&6; }
6830 if test ${ac_cv_lib_m_cos+y}
6831 then :
6832 printf %s "(cached) " >&6
6833 else $as_nop
6834 ac_check_lib_save_LIBS=$LIBS
6835 LIBS="-lm $LIBS"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838
6839 /* Override any GCC internal prototype to avoid an error.
6840 Use char because int might match the return type of a GCC
6841 builtin and then its argument prototype would still apply. */
6842 char cos ();
6843 int
6844 main (void)
6845 {
6846 return cos ();
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"
6852 then :
6853 ac_cv_lib_m_cos=yes
6854 else $as_nop
6855 ac_cv_lib_m_cos=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6858 conftest$ac_exeext conftest.$ac_ext
6859 LIBS=$ac_check_lib_save_LIBS
6860 fi
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
6862 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
6863 if test "x$ac_cv_lib_m_cos" = xyes
6864 then :
6865 LIBM=-lm
6866 fi
6867
6868 ;;
6869 esac
6870
6871
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6873 printf %s "checking for library containing clock_gettime... " >&6; }
6874 if test ${ac_cv_search_clock_gettime+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else $as_nop
6878 ac_func_search_save_LIBS=$LIBS
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6885 char clock_gettime ();
6886 int
6887 main (void)
6888 {
6889 return clock_gettime ();
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 for ac_lib in '' rt
6895 do
6896 if test -z "$ac_lib"; then
6897 ac_res="none required"
6898 else
6899 ac_res=-l$ac_lib
6900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6901 fi
6902 if ac_fn_c_try_link "$LINENO"
6903 then :
6904 ac_cv_search_clock_gettime=$ac_res
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6907 conftest$ac_exeext
6908 if test ${ac_cv_search_clock_gettime+y}
6909 then :
6910 break
6911 fi
6912 done
6913 if test ${ac_cv_search_clock_gettime+y}
6914 then :
6915
6916 else $as_nop
6917 ac_cv_search_clock_gettime=no
6918 fi
6919 rm conftest.$ac_ext
6920 LIBS=$ac_func_search_save_LIBS
6921 fi
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6923 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
6924 ac_res=$ac_cv_search_clock_gettime
6925 if test "$ac_res" != no
6926 then :
6927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6928
6929 fi
6930
6931 if echo " $LIBS" | grep -q -w -- -lrt; then
6932 LIBRT=-lrt
6933 fi
6934 # Could actually be missing.
6935 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
6936 if test "x$ac_cv_func_clock_gettime" = xyes
6937 then :
6938 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6939
6940 fi
6941
6942 LIBS=$oldLIBS
6943
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6945 printf %s "checking for grep that handles long lines and -e... " >&6; }
6946 if test ${ac_cv_path_GREP+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else $as_nop
6950 if test -z "$GREP"; then
6951 ac_path_GREP_found=false
6952 # Loop through the user's path and test for each of PROGNAME-LIST
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6955 do
6956 IFS=$as_save_IFS
6957 case $as_dir in #(((
6958 '') as_dir=./ ;;
6959 */) ;;
6960 *) as_dir=$as_dir/ ;;
6961 esac
6962 for ac_prog in grep ggrep
6963 do
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6966 as_fn_executable_p "$ac_path_GREP" || continue
6967 # Check for GNU ac_path_GREP and select it if it is found.
6968 # Check for GNU $ac_path_GREP
6969 case `"$ac_path_GREP" --version 2>&1` in
6970 *GNU*)
6971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6972 *)
6973 ac_count=0
6974 printf %s 0123456789 >"conftest.in"
6975 while :
6976 do
6977 cat "conftest.in" "conftest.in" >"conftest.tmp"
6978 mv "conftest.tmp" "conftest.in"
6979 cp "conftest.in" "conftest.nl"
6980 printf "%s\n" 'GREP' >> "conftest.nl"
6981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6983 as_fn_arith $ac_count + 1 && ac_count=$as_val
6984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6985 # Best one so far, save it but keep looking for a better one
6986 ac_cv_path_GREP="$ac_path_GREP"
6987 ac_path_GREP_max=$ac_count
6988 fi
6989 # 10*(2^10) chars as input seems more than enough
6990 test $ac_count -gt 10 && break
6991 done
6992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6993 esac
6994
6995 $ac_path_GREP_found && break 3
6996 done
6997 done
6998 done
6999 IFS=$as_save_IFS
7000 if test -z "$ac_cv_path_GREP"; then
7001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7002 fi
7003 else
7004 ac_cv_path_GREP=$GREP
7005 fi
7006
7007 fi
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7009 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7010 GREP="$ac_cv_path_GREP"
7011
7012
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7014 printf %s "checking for egrep... " >&6; }
7015 if test ${ac_cv_path_EGREP+y}
7016 then :
7017 printf %s "(cached) " >&6
7018 else $as_nop
7019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7020 then ac_cv_path_EGREP="$GREP -E"
7021 else
7022 if test -z "$EGREP"; then
7023 ac_path_EGREP_found=false
7024 # Loop through the user's path and test for each of PROGNAME-LIST
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7027 do
7028 IFS=$as_save_IFS
7029 case $as_dir in #(((
7030 '') as_dir=./ ;;
7031 */) ;;
7032 *) as_dir=$as_dir/ ;;
7033 esac
7034 for ac_prog in egrep
7035 do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7038 as_fn_executable_p "$ac_path_EGREP" || continue
7039 # Check for GNU ac_path_EGREP and select it if it is found.
7040 # Check for GNU $ac_path_EGREP
7041 case `"$ac_path_EGREP" --version 2>&1` in
7042 *GNU*)
7043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7044 *)
7045 ac_count=0
7046 printf %s 0123456789 >"conftest.in"
7047 while :
7048 do
7049 cat "conftest.in" "conftest.in" >"conftest.tmp"
7050 mv "conftest.tmp" "conftest.in"
7051 cp "conftest.in" "conftest.nl"
7052 printf "%s\n" 'EGREP' >> "conftest.nl"
7053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055 as_fn_arith $ac_count + 1 && ac_count=$as_val
7056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7057 # Best one so far, save it but keep looking for a better one
7058 ac_cv_path_EGREP="$ac_path_EGREP"
7059 ac_path_EGREP_max=$ac_count
7060 fi
7061 # 10*(2^10) chars as input seems more than enough
7062 test $ac_count -gt 10 && break
7063 done
7064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7065 esac
7066
7067 $ac_path_EGREP_found && break 3
7068 done
7069 done
7070 done
7071 IFS=$as_save_IFS
7072 if test -z "$ac_cv_path_EGREP"; then
7073 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7074 fi
7075 else
7076 ac_cv_path_EGREP=$EGREP
7077 fi
7078
7079 fi
7080 fi
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7082 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7083 EGREP="$ac_cv_path_EGREP"
7084
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7087 printf %s "checking for an ANSI C-conforming const... " >&6; }
7088 if test ${ac_cv_c_const+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else $as_nop
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 int
7096 main (void)
7097 {
7098
7099 #ifndef __cplusplus
7100 /* Ultrix mips cc rejects this sort of thing. */
7101 typedef int charset[2];
7102 const charset cs = { 0, 0 };
7103 /* SunOS 4.1.1 cc rejects this. */
7104 char const *const *pcpcc;
7105 char **ppc;
7106 /* NEC SVR4.0.2 mips cc rejects this. */
7107 struct point {int x, y;};
7108 static struct point const zero = {0,0};
7109 /* IBM XL C 1.02.0.0 rejects this.
7110 It does not let you subtract one const X* pointer from another in
7111 an arm of an if-expression whose if-part is not a constant
7112 expression */
7113 const char *g = "string";
7114 pcpcc = &g + (g ? g-g : 0);
7115 /* HPUX 7.0 cc rejects these. */
7116 ++pcpcc;
7117 ppc = (char**) pcpcc;
7118 pcpcc = (char const *const *) ppc;
7119 { /* SCO 3.2v4 cc rejects this sort of thing. */
7120 char tx;
7121 char *t = &tx;
7122 char const *s = 0 ? (char *) 0 : (char const *) 0;
7123
7124 *t++ = 0;
7125 if (s) return 0;
7126 }
7127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7128 int x[] = {25, 17};
7129 const int *foo = &x[0];
7130 ++foo;
7131 }
7132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7133 typedef const int *iptr;
7134 iptr p = 0;
7135 ++p;
7136 }
7137 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7139 struct s { int j; const int *ap[3]; } bx;
7140 struct s *b = &bx; b->j = 5;
7141 }
7142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7143 const int foo = 10;
7144 if (!foo) return 0;
7145 }
7146 return !cs[0] && !zero.x;
7147 #endif
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"
7154 then :
7155 ac_cv_c_const=yes
7156 else $as_nop
7157 ac_cv_c_const=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7160 fi
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7162 printf "%s\n" "$ac_cv_c_const" >&6; }
7163 if test $ac_cv_c_const = no; then
7164
7165 printf "%s\n" "#define const /**/" >>confdefs.h
7166
7167 fi
7168
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7170 printf %s "checking for inline... " >&6; }
7171 if test ${ac_cv_c_inline+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 ac_cv_c_inline=no
7176 for ac_kw in inline __inline__ __inline; do
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 #ifndef __cplusplus
7180 typedef int foo_t;
7181 static $ac_kw foo_t static_foo (void) {return 0; }
7182 $ac_kw foo_t foo (void) {return 0; }
7183 #endif
7184
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"
7187 then :
7188 ac_cv_c_inline=$ac_kw
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7191 test "$ac_cv_c_inline" != no && break
7192 done
7193
7194 fi
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7196 printf "%s\n" "$ac_cv_c_inline" >&6; }
7197
7198 case $ac_cv_c_inline in
7199 inline | yes) ;;
7200 *)
7201 case $ac_cv_c_inline in
7202 no) ac_val=;;
7203 *) ac_val=$ac_cv_c_inline;;
7204 esac
7205 cat >>confdefs.h <<_ACEOF
7206 #ifndef __cplusplus
7207 #define inline $ac_val
7208 #endif
7209 _ACEOF
7210 ;;
7211 esac
7212
7213 ac_header= ac_cache=
7214 for ac_item in $ac_header_c_list
7215 do
7216 if test $ac_cache; then
7217 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7218 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7219 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7220 fi
7221 ac_header= ac_cache=
7222 elif test $ac_header; then
7223 ac_cache=$ac_item
7224 else
7225 ac_header=$ac_item
7226 fi
7227 done
7228
7229
7230
7231
7232
7233
7234
7235
7236 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7237 then :
7238
7239 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7240
7241 fi
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7243 printf %s "checking whether byte ordering is bigendian... " >&6; }
7244 if test ${ac_cv_c_bigendian+y}
7245 then :
7246 printf %s "(cached) " >&6
7247 else $as_nop
7248 ac_cv_c_bigendian=unknown
7249 # See if we're dealing with a universal compiler.
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 #ifndef __APPLE_CC__
7253 not a universal capable compiler
7254 #endif
7255 typedef int dummy;
7256
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"
7259 then :
7260
7261 # Check for potential -arch flags. It is not universal unless
7262 # there are at least two -arch flags with different values.
7263 ac_arch=
7264 ac_prev=
7265 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7266 if test -n "$ac_prev"; then
7267 case $ac_word in
7268 i?86 | x86_64 | ppc | ppc64)
7269 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7270 ac_arch=$ac_word
7271 else
7272 ac_cv_c_bigendian=universal
7273 break
7274 fi
7275 ;;
7276 esac
7277 ac_prev=
7278 elif test "x$ac_word" = "x-arch"; then
7279 ac_prev=arch
7280 fi
7281 done
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7284 if test $ac_cv_c_bigendian = unknown; then
7285 # See if sys/param.h defines the BYTE_ORDER macro.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <sys/types.h>
7289 #include <sys/param.h>
7290
7291 int
7292 main (void)
7293 {
7294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7295 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7296 && LITTLE_ENDIAN)
7297 bogus endian macros
7298 #endif
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_compile "$LINENO"
7305 then :
7306 # It does; now see whether it defined to BIG_ENDIAN or not.
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 #include <sys/param.h>
7311
7312 int
7313 main (void)
7314 {
7315 #if BYTE_ORDER != BIG_ENDIAN
7316 not big endian
7317 #endif
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"
7324 then :
7325 ac_cv_c_bigendian=yes
7326 else $as_nop
7327 ac_cv_c_bigendian=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7332 fi
7333 if test $ac_cv_c_bigendian = unknown; then
7334 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <limits.h>
7338
7339 int
7340 main (void)
7341 {
7342 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7343 bogus endian macros
7344 #endif
7345
7346 ;
7347 return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"
7351 then :
7352 # It does; now see whether it defined to _BIG_ENDIAN or not.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #include <limits.h>
7356
7357 int
7358 main (void)
7359 {
7360 #ifndef _BIG_ENDIAN
7361 not big endian
7362 #endif
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"
7369 then :
7370 ac_cv_c_bigendian=yes
7371 else $as_nop
7372 ac_cv_c_bigendian=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7377 fi
7378 if test $ac_cv_c_bigendian = unknown; then
7379 # Compile a test program.
7380 if test "$cross_compiling" = yes
7381 then :
7382 # Try to guess by grepping values from an object file.
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 unsigned short int ascii_mm[] =
7386 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7387 unsigned short int ascii_ii[] =
7388 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7389 int use_ascii (int i) {
7390 return ascii_mm[i] + ascii_ii[i];
7391 }
7392 unsigned short int ebcdic_ii[] =
7393 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7394 unsigned short int ebcdic_mm[] =
7395 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7396 int use_ebcdic (int i) {
7397 return ebcdic_mm[i] + ebcdic_ii[i];
7398 }
7399 extern int foo;
7400
7401 int
7402 main (void)
7403 {
7404 return use_ascii (foo) == use_ebcdic (foo);
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"
7410 then :
7411 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7412 ac_cv_c_bigendian=yes
7413 fi
7414 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7415 if test "$ac_cv_c_bigendian" = unknown; then
7416 ac_cv_c_bigendian=no
7417 else
7418 # finding both strings is unlikely to happen, but who knows?
7419 ac_cv_c_bigendian=unknown
7420 fi
7421 fi
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7424 else $as_nop
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 int
7429 main (void)
7430 {
7431
7432 /* Are we little or big endian? From Harbison&Steele. */
7433 union
7434 {
7435 long int l;
7436 char c[sizeof (long int)];
7437 } u;
7438 u.l = 1;
7439 return u.c[sizeof (long int) - 1] == 1;
7440
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_run "$LINENO"
7446 then :
7447 ac_cv_c_bigendian=no
7448 else $as_nop
7449 ac_cv_c_bigendian=yes
7450 fi
7451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 fi
7454
7455 fi
7456 fi
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7458 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7459 case $ac_cv_c_bigendian in #(
7460 yes)
7461 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
7462 ;; #(
7463 no)
7464 ;; #(
7465 universal)
7466
7467 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7468
7469 ;; #(
7470 *)
7471 as_fn_error $? "unknown endianness
7472 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7473 esac
7474
7475
7476 if test "x$lib_static" = xyes; then
7477 CC="$CC -static-libgcc"
7478 CCLD="$CC"
7479 echo "Adding -static-libgcc"
7480 fi
7481
7482
7483 modules=auto
7484 # Check whether --enable-modules was given.
7485 if test ${enable_modules+y}
7486 then :
7487 enableval=$enable_modules;
7488 if test "x$enableval" = xyes
7489 then
7490 modules=enabled
7491 else
7492 modules=disabled
7493 fi
7494
7495 else $as_nop
7496
7497 if test "x$be_static" = "xyes"; then
7498 modules=disabled
7499 else
7500 modules=auto
7501 fi
7502
7503 fi
7504
7505
7506 if test x"$enable_shared" = xno; then
7507 modules=disabled
7508 LT_LDFLAGS=
7509 else
7510
7511 printf "%s\n" "#define DYNAMIC_BUILD 1" >>confdefs.h
7512
7513 fi
7514
7515 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7516 if test "x$ac_cv_header_windows_h" = xyes
7517 then :
7518 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
7519
7520 fi
7521
7522 # enable win32 code
7523 if test "x$ac_cv_header_windows_h" = xyes -a "x$host_os" != xcygwin -a "x$host_os" != xmidipix; then
7524 win32_specific_codes=enabled
7525 fi
7526
7527 android_build=no
7528 case "$host" in
7529 *-*-mingw*)
7530 win32=yes
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this is a UWP build" >&5
7532 printf %s "checking if this is a UWP build... " >&6; }
7533
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <winapifamily.h>
7537 #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
7538 # error Win32 Desktop build
7539 #endif
7540
7541 int
7542 main (void)
7543 {
7544 ;
7545 ;
7546 return 0;
7547 }
7548
7549 _ACEOF
7550 if ac_fn_c_try_cpp "$LINENO"
7551 then :
7552
7553 uwp_build=yes
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 printf "%s\n" "yes" >&6; }
7556
7557 else $as_nop
7558
7559 uwp_build=no
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 printf "%s\n" "no" >&6; }
7562
7563 fi
7564 rm -f conftest.err conftest.i conftest.$ac_ext
7565 if test x"$uwp_build" = xyes; then
7566
7567 printf "%s\n" "#define WINDOWS_UWP 1" >>confdefs.h
7568
7569 fi
7570 ;;
7571 linux*)
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an Android system" >&5
7573 printf %s "checking for an Android system... " >&6; }
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #ifndef __ANDROID__
7577 # error Not Android
7578 #endif
7579
7580 int
7581 main (void)
7582 {
7583 ;
7584 ;
7585 return 0;
7586 }
7587
7588 _ACEOF
7589 if ac_fn_c_try_cpp "$LINENO"
7590 then :
7591
7592 android_build=yes
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594 printf "%s\n" "yes" >&6; }
7595
7596 else $as_nop
7597
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 printf "%s\n" "no" >&6; }
7600
7601 fi
7602 rm -f conftest.err conftest.i conftest.$ac_ext
7603 ;;
7604 *)
7605 win32=no
7606 ;;
7607 esac
7608
7609
7610 if test x$win32_specific_codes = xenabled; then
7611 # Check GetThreadErrorMode
7612 if test x"$modules" != xdisabled; then
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have GetThreadErrorMode" >&5
7614 printf %s "checking if we have GetThreadErrorMode... " >&6; }
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617
7618 #include <windows.h>
7619 int main(){
7620 return GetThreadErrorMode();
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_link "$LINENO"
7624 then :
7625 win32_thread_error=yes
7626 else $as_nop
7627 win32_winver_bump=yes
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7630 conftest$ac_exeext conftest.$ac_ext
7631 if test "x$win32_thread_error" != "xyes"; then
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have GetThreadErrorMode" >&5
7633 printf %s "checking if we have GetThreadErrorMode... " >&6; }
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636
7637 #define WINVER 0x600
7638 #define _WIN32_WINNT 0x600
7639 #include <windows.h>
7640 int main(){
7641 return GetThreadErrorMode();
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"
7645 then :
7646 win32_thread_error=yes
7647 else $as_nop
7648 win32_thread_error=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7651 conftest$ac_exeext conftest.$ac_ext
7652 fi
7653 if test "x$win32_thread_error" = "xyes"; then
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7655 printf "%s\n" "yes" >&6; }
7656 else
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 printf "%s\n" "no" >&6; }
7659 if test "x$modules" = xenabled; then
7660 as_fn_error $? "GetThreadErrorMode is required for modules but not found." "$LINENO" 5
7661 else
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling modules because of missing GetThreadErrorMode()" >&5
7663 printf "%s\n" "$as_me: WARNING: Disabling modules because of missing GetThreadErrorMode()" >&2;}
7664 modules=disabled
7665 fi
7666 fi
7667 fi
7668 fi
7669
7670 LIBDL=
7671
7672 if test x"$modules" = xdisabled
7673 then
7674 echo "Modules disabled, not checking for dynamic loading."
7675 else
7676 have_dl=no
7677 dl_missing=no
7678 # The dlopen() API is either in libc or in libdl.
7679 if test "x$ac_cv_header_windows_h" = xyes &&
7680 test "x$win32" = xyes; then
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LoadLibrary should be used" >&5
7682 printf %s "checking if LoadLibrary should be used... " >&6; }
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685
7686
7687 #include <windows.h>
7688
7689 int main() {
7690 LoadLibraryW(0);
7691 GetProcAddress(0, 0);
7692 FreeLibrary(0);
7693 }
7694
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"
7697 then :
7698
7699 have_dl=yes
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using LoadLibrary" >&5
7701 printf "%s\n" "Using LoadLibrary" >&6; }
7702
7703 else $as_nop
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 printf "%s\n" "no" >&6; }
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7708 conftest$ac_exeext conftest.$ac_ext
7709 else
7710 # Check for libdl functions, but only apply them for libcompat_dl.
7711 # This looks too messy. Can I avoid messing with LIBS here?
7712 oldLIBS=$LIBS
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7714 printf %s "checking for library containing dlopen... " >&6; }
7715 if test ${ac_cv_search_dlopen+y}
7716 then :
7717 printf %s "(cached) " >&6
7718 else $as_nop
7719 ac_func_search_save_LIBS=$LIBS
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722
7723 /* Override any GCC internal prototype to avoid an error.
7724 Use char because int might match the return type of a GCC
7725 builtin and then its argument prototype would still apply. */
7726 char dlopen ();
7727 int
7728 main (void)
7729 {
7730 return dlopen ();
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 for ac_lib in '' dl
7736 do
7737 if test -z "$ac_lib"; then
7738 ac_res="none required"
7739 else
7740 ac_res=-l$ac_lib
7741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7742 fi
7743 if ac_fn_c_try_link "$LINENO"
7744 then :
7745 ac_cv_search_dlopen=$ac_res
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7748 conftest$ac_exeext
7749 if test ${ac_cv_search_dlopen+y}
7750 then :
7751 break
7752 fi
7753 done
7754 if test ${ac_cv_search_dlopen+y}
7755 then :
7756
7757 else $as_nop
7758 ac_cv_search_dlopen=no
7759 fi
7760 rm conftest.$ac_ext
7761 LIBS=$ac_func_search_save_LIBS
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7764 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
7765 ac_res=$ac_cv_search_dlopen
7766 if test "$ac_res" != no
7767 then :
7768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7769
7770 fi
7771
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7773 printf %s "checking for library containing dlsym... " >&6; }
7774 if test ${ac_cv_search_dlsym+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else $as_nop
7778 ac_func_search_save_LIBS=$LIBS
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781
7782 /* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7785 char dlsym ();
7786 int
7787 main (void)
7788 {
7789 return dlsym ();
7790 ;
7791 return 0;
7792 }
7793 _ACEOF
7794 for ac_lib in '' dl
7795 do
7796 if test -z "$ac_lib"; then
7797 ac_res="none required"
7798 else
7799 ac_res=-l$ac_lib
7800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7801 fi
7802 if ac_fn_c_try_link "$LINENO"
7803 then :
7804 ac_cv_search_dlsym=$ac_res
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7807 conftest$ac_exeext
7808 if test ${ac_cv_search_dlsym+y}
7809 then :
7810 break
7811 fi
7812 done
7813 if test ${ac_cv_search_dlsym+y}
7814 then :
7815
7816 else $as_nop
7817 ac_cv_search_dlsym=no
7818 fi
7819 rm conftest.$ac_ext
7820 LIBS=$ac_func_search_save_LIBS
7821 fi
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7823 printf "%s\n" "$ac_cv_search_dlsym" >&6; }
7824 ac_res=$ac_cv_search_dlsym
7825 if test "$ac_res" != no
7826 then :
7827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7828
7829 fi
7830
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlclose" >&5
7832 printf %s "checking for library containing dlclose... " >&6; }
7833 if test ${ac_cv_search_dlclose+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else $as_nop
7837 ac_func_search_save_LIBS=$LIBS
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840
7841 /* Override any GCC internal prototype to avoid an error.
7842 Use char because int might match the return type of a GCC
7843 builtin and then its argument prototype would still apply. */
7844 char dlclose ();
7845 int
7846 main (void)
7847 {
7848 return dlclose ();
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 for ac_lib in '' dl
7854 do
7855 if test -z "$ac_lib"; then
7856 ac_res="none required"
7857 else
7858 ac_res=-l$ac_lib
7859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7860 fi
7861 if ac_fn_c_try_link "$LINENO"
7862 then :
7863 ac_cv_search_dlclose=$ac_res
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7866 conftest$ac_exeext
7867 if test ${ac_cv_search_dlclose+y}
7868 then :
7869 break
7870 fi
7871 done
7872 if test ${ac_cv_search_dlclose+y}
7873 then :
7874
7875 else $as_nop
7876 ac_cv_search_dlclose=no
7877 fi
7878 rm conftest.$ac_ext
7879 LIBS=$ac_func_search_save_LIBS
7880 fi
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlclose" >&5
7882 printf "%s\n" "$ac_cv_search_dlclose" >&6; }
7883 ac_res=$ac_cv_search_dlclose
7884 if test "$ac_res" != no
7885 then :
7886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7887
7888 fi
7889
7890 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7891 if test "x$ac_cv_header_dlfcn_h" = xyes
7892 then :
7893
7894 fi
7895
7896
7897 for ac_func in dlopen dlsym dlclose
7898 do :
7899 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7901 if eval test \"x\$"$as_ac_var"\" = x"yes"
7902 then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
7905 _ACEOF
7906 have_dl=yes
7907 else $as_nop
7908 dl_missing=yes
7909 fi
7910
7911 done
7912 LIBS=$oldLIBS
7913 # A better way to check if the library was really needed?
7914 if test "x$ac_cv_search_dlopen" = x-ldl ||
7915 test "x$ac_cv_search_dlsym" = x-ldl ||
7916 test "x$ac_cv_search_dlclose" = x-ldl
7917 then
7918 LIBDL=-ldl
7919 fi
7920 fi
7921 if test x"$dl_missing" = xyes; then
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Some dynamic loading functions missing." >&5
7923 printf "%s\n" "$as_me: WARNING: Some dynamic loading functions missing." >&2;}
7924 have_dl=no
7925 fi
7926 if test x"$modules" = xenabled -a x"$have_dl" = xno; then
7927 as_fn_error $? "Modules enabled but no runtime loader found! This will not work..." "$LINENO" 5
7928 fi
7929 if test x"$modules" = xauto; then
7930 if test x"$have_dl" = xyes; then
7931 modules=enabled
7932 echo "We found a runtime loader: Modules enabled."
7933 else
7934 echo "We did not find a runtime loader: Modules disabled."
7935 modules=disabled
7936 fi
7937 fi
7938 fi
7939
7940
7941
7942
7943 case `pwd` in
7944 *\ * | *\ *)
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7946 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7947 esac
7948
7949
7950
7951 macro_version='2.4.6'
7952 macro_revision='2.4.6'
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967 ltmain=$ac_aux_dir/ltmain.sh
7968
7969 # Backslashify metacharacters that are still active within
7970 # double-quoted strings.
7971 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7972
7973 # Same as above, but do not quote variable references.
7974 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7975
7976 # Sed substitution to delay expansion of an escaped shell variable in a
7977 # double_quote_subst'ed string.
7978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7979
7980 # Sed substitution to delay expansion of an escaped single quote.
7981 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7982
7983 # Sed substitution to avoid accidental globbing in evaled expressions
7984 no_glob_subst='s/\*/\\\*/g'
7985
7986 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7988 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7989
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7991 printf %s "checking how to print strings... " >&6; }
7992 # Test print first, because it will be a builtin if present.
7993 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7994 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7995 ECHO='print -r --'
7996 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7997 ECHO='printf %s\n'
7998 else
7999 # Use this function as a fallback that always works.
8000 func_fallback_echo ()
8001 {
8002 eval 'cat <<_LTECHO_EOF
8003 $1
8004 _LTECHO_EOF'
8005 }
8006 ECHO='func_fallback_echo'
8007 fi
8008
8009 # func_echo_all arg...
8010 # Invoke $ECHO with all args, space-separated.
8011 func_echo_all ()
8012 {
8013 $ECHO ""
8014 }
8015
8016 case $ECHO in
8017 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8018 printf "%s\n" "printf" >&6; } ;;
8019 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8020 printf "%s\n" "print -r" >&6; } ;;
8021 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8022 printf "%s\n" "cat" >&6; } ;;
8023 esac
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8039 printf %s "checking for a sed that does not truncate output... " >&6; }
8040 if test ${ac_cv_path_SED+y}
8041 then :
8042 printf %s "(cached) " >&6
8043 else $as_nop
8044 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8045 for ac_i in 1 2 3 4 5 6 7; do
8046 ac_script="$ac_script$as_nl$ac_script"
8047 done
8048 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8049 { ac_script=; unset ac_script;}
8050 if test -z "$SED"; then
8051 ac_path_SED_found=false
8052 # Loop through the user's path and test for each of PROGNAME-LIST
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056 IFS=$as_save_IFS
8057 case $as_dir in #(((
8058 '') as_dir=./ ;;
8059 */) ;;
8060 *) as_dir=$as_dir/ ;;
8061 esac
8062 for ac_prog in sed gsed
8063 do
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8066 as_fn_executable_p "$ac_path_SED" || continue
8067 # Check for GNU ac_path_SED and select it if it is found.
8068 # Check for GNU $ac_path_SED
8069 case `"$ac_path_SED" --version 2>&1` in
8070 *GNU*)
8071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8072 *)
8073 ac_count=0
8074 printf %s 0123456789 >"conftest.in"
8075 while :
8076 do
8077 cat "conftest.in" "conftest.in" >"conftest.tmp"
8078 mv "conftest.tmp" "conftest.in"
8079 cp "conftest.in" "conftest.nl"
8080 printf "%s\n" '' >> "conftest.nl"
8081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8083 as_fn_arith $ac_count + 1 && ac_count=$as_val
8084 if test $ac_count -gt ${ac_path_SED_max-0}; then
8085 # Best one so far, save it but keep looking for a better one
8086 ac_cv_path_SED="$ac_path_SED"
8087 ac_path_SED_max=$ac_count
8088 fi
8089 # 10*(2^10) chars as input seems more than enough
8090 test $ac_count -gt 10 && break
8091 done
8092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8093 esac
8094
8095 $ac_path_SED_found && break 3
8096 done
8097 done
8098 done
8099 IFS=$as_save_IFS
8100 if test -z "$ac_cv_path_SED"; then
8101 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8102 fi
8103 else
8104 ac_cv_path_SED=$SED
8105 fi
8106
8107 fi
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8109 printf "%s\n" "$ac_cv_path_SED" >&6; }
8110 SED="$ac_cv_path_SED"
8111 rm -f conftest.sed
8112
8113 test -z "$SED" && SED=sed
8114 Xsed="$SED -e 1s/^X//"
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8127 printf %s "checking for fgrep... " >&6; }
8128 if test ${ac_cv_path_FGREP+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else $as_nop
8132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8133 then ac_cv_path_FGREP="$GREP -F"
8134 else
8135 if test -z "$FGREP"; then
8136 ac_path_FGREP_found=false
8137 # Loop through the user's path and test for each of PROGNAME-LIST
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8140 do
8141 IFS=$as_save_IFS
8142 case $as_dir in #(((
8143 '') as_dir=./ ;;
8144 */) ;;
8145 *) as_dir=$as_dir/ ;;
8146 esac
8147 for ac_prog in fgrep
8148 do
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8151 as_fn_executable_p "$ac_path_FGREP" || continue
8152 # Check for GNU ac_path_FGREP and select it if it is found.
8153 # Check for GNU $ac_path_FGREP
8154 case `"$ac_path_FGREP" --version 2>&1` in
8155 *GNU*)
8156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8157 *)
8158 ac_count=0
8159 printf %s 0123456789 >"conftest.in"
8160 while :
8161 do
8162 cat "conftest.in" "conftest.in" >"conftest.tmp"
8163 mv "conftest.tmp" "conftest.in"
8164 cp "conftest.in" "conftest.nl"
8165 printf "%s\n" 'FGREP' >> "conftest.nl"
8166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8168 as_fn_arith $ac_count + 1 && ac_count=$as_val
8169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8170 # Best one so far, save it but keep looking for a better one
8171 ac_cv_path_FGREP="$ac_path_FGREP"
8172 ac_path_FGREP_max=$ac_count
8173 fi
8174 # 10*(2^10) chars as input seems more than enough
8175 test $ac_count -gt 10 && break
8176 done
8177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8178 esac
8179
8180 $ac_path_FGREP_found && break 3
8181 done
8182 done
8183 done
8184 IFS=$as_save_IFS
8185 if test -z "$ac_cv_path_FGREP"; then
8186 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8187 fi
8188 else
8189 ac_cv_path_FGREP=$FGREP
8190 fi
8191
8192 fi
8193 fi
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8195 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8196 FGREP="$ac_cv_path_FGREP"
8197
8198
8199 test -z "$GREP" && GREP=grep
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 # Check whether --with-gnu-ld was given.
8220 if test ${with_gnu_ld+y}
8221 then :
8222 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8223 else $as_nop
8224 with_gnu_ld=no
8225 fi
8226
8227 ac_prog=ld
8228 if test yes = "$GCC"; then
8229 # Check if gcc -print-prog-name=ld gives a path.
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8231 printf %s "checking for ld used by $CC... " >&6; }
8232 case $host in
8233 *-*-mingw*)
8234 # gcc leaves a trailing carriage return, which upsets mingw
8235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8236 *)
8237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8238 esac
8239 case $ac_prog in
8240 # Accept absolute paths.
8241 [\\/]* | ?:[\\/]*)
8242 re_direlt='/[^/][^/]*/\.\./'
8243 # Canonicalize the pathname of ld
8244 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8245 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8246 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8247 done
8248 test -z "$LD" && LD=$ac_prog
8249 ;;
8250 "")
8251 # If it fails, then pretend we aren't using GCC.
8252 ac_prog=ld
8253 ;;
8254 *)
8255 # If it is relative, then search for the first ld in PATH.
8256 with_gnu_ld=unknown
8257 ;;
8258 esac
8259 elif test yes = "$with_gnu_ld"; then
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8261 printf %s "checking for GNU ld... " >&6; }
8262 else
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8264 printf %s "checking for non-GNU ld... " >&6; }
8265 fi
8266 if test ${lt_cv_path_LD+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else $as_nop
8270 if test -z "$LD"; then
8271 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8272 for ac_dir in $PATH; do
8273 IFS=$lt_save_ifs
8274 test -z "$ac_dir" && ac_dir=.
8275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8276 lt_cv_path_LD=$ac_dir/$ac_prog
8277 # Check to see if the program is GNU ld. I'd rather use --version,
8278 # but apparently some variants of GNU ld only accept -v.
8279 # Break only if it was the GNU/non-GNU ld that we prefer.
8280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8281 *GNU* | *'with BFD'*)
8282 test no != "$with_gnu_ld" && break
8283 ;;
8284 *)
8285 test yes != "$with_gnu_ld" && break
8286 ;;
8287 esac
8288 fi
8289 done
8290 IFS=$lt_save_ifs
8291 else
8292 lt_cv_path_LD=$LD # Let the user override the test with a path.
8293 fi
8294 fi
8295
8296 LD=$lt_cv_path_LD
8297 if test -n "$LD"; then
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8299 printf "%s\n" "$LD" >&6; }
8300 else
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 printf "%s\n" "no" >&6; }
8303 fi
8304 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8306 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8307 if test ${lt_cv_prog_gnu_ld+y}
8308 then :
8309 printf %s "(cached) " >&6
8310 else $as_nop
8311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8312 case `$LD -v 2>&1 </dev/null` in
8313 *GNU* | *'with BFD'*)
8314 lt_cv_prog_gnu_ld=yes
8315 ;;
8316 *)
8317 lt_cv_prog_gnu_ld=no
8318 ;;
8319 esac
8320 fi
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8322 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8323 with_gnu_ld=$lt_cv_prog_gnu_ld
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8334 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8335 if test ${lt_cv_path_NM+y}
8336 then :
8337 printf %s "(cached) " >&6
8338 else $as_nop
8339 if test -n "$NM"; then
8340 # Let the user override the test.
8341 lt_cv_path_NM=$NM
8342 else
8343 lt_nm_to_check=${ac_tool_prefix}nm
8344 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8345 lt_nm_to_check="$lt_nm_to_check nm"
8346 fi
8347 for lt_tmp_nm in $lt_nm_to_check; do
8348 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8349 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8350 IFS=$lt_save_ifs
8351 test -z "$ac_dir" && ac_dir=.
8352 tmp_nm=$ac_dir/$lt_tmp_nm
8353 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8354 # Check to see if the nm accepts a BSD-compat flag.
8355 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8356 # nm: unknown option "B" ignored
8357 # Tru64's nm complains that /dev/null is an invalid object file
8358 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8359 case $build_os in
8360 mingw*) lt_bad_file=conftest.nm/nofile ;;
8361 *) lt_bad_file=/dev/null ;;
8362 esac
8363 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8364 *$lt_bad_file* | *'Invalid file or object type'*)
8365 lt_cv_path_NM="$tmp_nm -B"
8366 break 2
8367 ;;
8368 *)
8369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8370 */dev/null*)
8371 lt_cv_path_NM="$tmp_nm -p"
8372 break 2
8373 ;;
8374 *)
8375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8376 continue # so that we can try to find one that supports BSD flags
8377 ;;
8378 esac
8379 ;;
8380 esac
8381 fi
8382 done
8383 IFS=$lt_save_ifs
8384 done
8385 : ${lt_cv_path_NM=no}
8386 fi
8387 fi
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8389 printf "%s\n" "$lt_cv_path_NM" >&6; }
8390 if test no != "$lt_cv_path_NM"; then
8391 NM=$lt_cv_path_NM
8392 else
8393 # Didn't find any BSD compatible name lister, look for dumpbin.
8394 if test -n "$DUMPBIN"; then :
8395 # Let the user override the test.
8396 else
8397 if test -n "$ac_tool_prefix"; then
8398 for ac_prog in dumpbin "link -dump"
8399 do
8400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 printf %s "checking for $ac_word... " >&6; }
8404 if test ${ac_cv_prog_DUMPBIN+y}
8405 then :
8406 printf %s "(cached) " >&6
8407 else $as_nop
8408 if test -n "$DUMPBIN"; then
8409 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414 IFS=$as_save_IFS
8415 case $as_dir in #(((
8416 '') as_dir=./ ;;
8417 */) ;;
8418 *) as_dir=$as_dir/ ;;
8419 esac
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 DUMPBIN=$ac_cv_prog_DUMPBIN
8433 if test -n "$DUMPBIN"; then
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8435 printf "%s\n" "$DUMPBIN" >&6; }
8436 else
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 printf "%s\n" "no" >&6; }
8439 fi
8440
8441
8442 test -n "$DUMPBIN" && break
8443 done
8444 fi
8445 if test -z "$DUMPBIN"; then
8446 ac_ct_DUMPBIN=$DUMPBIN
8447 for ac_prog in dumpbin "link -dump"
8448 do
8449 # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 printf %s "checking for $ac_word... " >&6; }
8453 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8454 then :
8455 printf %s "(cached) " >&6
8456 else $as_nop
8457 if test -n "$ac_ct_DUMPBIN"; then
8458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463 IFS=$as_save_IFS
8464 case $as_dir in #(((
8465 '') as_dir=./ ;;
8466 */) ;;
8467 *) as_dir=$as_dir/ ;;
8468 esac
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8473 break 2
8474 fi
8475 done
8476 done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8482 if test -n "$ac_ct_DUMPBIN"; then
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8484 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8485 else
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 printf "%s\n" "no" >&6; }
8488 fi
8489
8490
8491 test -n "$ac_ct_DUMPBIN" && break
8492 done
8493
8494 if test "x$ac_ct_DUMPBIN" = x; then
8495 DUMPBIN=":"
8496 else
8497 case $cross_compiling:$ac_tool_warned in
8498 yes:)
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501 ac_tool_warned=yes ;;
8502 esac
8503 DUMPBIN=$ac_ct_DUMPBIN
8504 fi
8505 fi
8506
8507 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8508 *COFF*)
8509 DUMPBIN="$DUMPBIN -symbols -headers"
8510 ;;
8511 *)
8512 DUMPBIN=:
8513 ;;
8514 esac
8515 fi
8516
8517 if test : != "$DUMPBIN"; then
8518 NM=$DUMPBIN
8519 fi
8520 fi
8521 test -z "$NM" && NM=nm
8522
8523
8524
8525
8526
8527
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8529 printf %s "checking the name lister ($NM) interface... " >&6; }
8530 if test ${lt_cv_nm_interface+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else $as_nop
8534 lt_cv_nm_interface="BSD nm"
8535 echo "int some_variable = 0;" > conftest.$ac_ext
8536 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8537 (eval "$ac_compile" 2>conftest.err)
8538 cat conftest.err >&5
8539 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8541 cat conftest.err >&5
8542 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8543 cat conftest.out >&5
8544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8545 lt_cv_nm_interface="MS dumpbin"
8546 fi
8547 rm -f conftest*
8548 fi
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8550 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8551
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8553 printf %s "checking whether ln -s works... " >&6; }
8554 LN_S=$as_ln_s
8555 if test "$LN_S" = "ln -s"; then
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557 printf "%s\n" "yes" >&6; }
8558 else
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8560 printf "%s\n" "no, using $LN_S" >&6; }
8561 fi
8562
8563 # find the maximum length of command line arguments
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8565 printf %s "checking the maximum length of command line arguments... " >&6; }
8566 if test ${lt_cv_sys_max_cmd_len+y}
8567 then :
8568 printf %s "(cached) " >&6
8569 else $as_nop
8570 i=0
8571 teststring=ABCD
8572
8573 case $build_os in
8574 msdosdjgpp*)
8575 # On DJGPP, this test can blow up pretty badly due to problems in libc
8576 # (any single argument exceeding 2000 bytes causes a buffer overrun
8577 # during glob expansion). Even if it were fixed, the result of this
8578 # check would be larger than it should be.
8579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8580 ;;
8581
8582 gnu*)
8583 # Under GNU Hurd, this test is not required because there is
8584 # no limit to the length of command line arguments.
8585 # Libtool will interpret -1 as no limit whatsoever
8586 lt_cv_sys_max_cmd_len=-1;
8587 ;;
8588
8589 cygwin* | mingw* | cegcc*)
8590 # On Win9x/ME, this test blows up -- it succeeds, but takes
8591 # about 5 minutes as the teststring grows exponentially.
8592 # Worse, since 9x/ME are not pre-emptively multitasking,
8593 # you end up with a "frozen" computer, even though with patience
8594 # the test eventually succeeds (with a max line length of 256k).
8595 # Instead, let's just punt: use the minimum linelength reported by
8596 # all of the supported platforms: 8192 (on NT/2K/XP).
8597 lt_cv_sys_max_cmd_len=8192;
8598 ;;
8599
8600 mint*)
8601 # On MiNT this can take a long time and run out of memory.
8602 lt_cv_sys_max_cmd_len=8192;
8603 ;;
8604
8605 amigaos*)
8606 # On AmigaOS with pdksh, this test takes hours, literally.
8607 # So we just punt and use a minimum line length of 8192.
8608 lt_cv_sys_max_cmd_len=8192;
8609 ;;
8610
8611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8612 # This has been around since 386BSD, at least. Likely further.
8613 if test -x /sbin/sysctl; then
8614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8615 elif test -x /usr/sbin/sysctl; then
8616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8617 else
8618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8619 fi
8620 # And add a safety zone
8621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8623 ;;
8624
8625 interix*)
8626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8627 lt_cv_sys_max_cmd_len=196608
8628 ;;
8629
8630 os2*)
8631 # The test takes a long time on OS/2.
8632 lt_cv_sys_max_cmd_len=8192
8633 ;;
8634
8635 osf*)
8636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8638 # nice to cause kernel panics so lets avoid the loop below.
8639 # First set a reasonable default.
8640 lt_cv_sys_max_cmd_len=16384
8641 #
8642 if test -x /sbin/sysconfig; then
8643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8644 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8645 esac
8646 fi
8647 ;;
8648 sco3.2v5*)
8649 lt_cv_sys_max_cmd_len=102400
8650 ;;
8651 sysv5* | sco5v6* | sysv4.2uw2*)
8652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8653 if test -n "$kargmax"; then
8654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8655 else
8656 lt_cv_sys_max_cmd_len=32768
8657 fi
8658 ;;
8659 *)
8660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8661 if test -n "$lt_cv_sys_max_cmd_len" && \
8662 test undefined != "$lt_cv_sys_max_cmd_len"; then
8663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8665 else
8666 # Make teststring a little bigger before we do anything with it.
8667 # a 1K string should be a reasonable start.
8668 for i in 1 2 3 4 5 6 7 8; do
8669 teststring=$teststring$teststring
8670 done
8671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8672 # If test is not a shell built-in, we'll probably end up computing a
8673 # maximum length that is only half of the actual maximum length, but
8674 # we can't tell.
8675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8677 test 17 != "$i" # 1/2 MB should be enough
8678 do
8679 i=`expr $i + 1`
8680 teststring=$teststring$teststring
8681 done
8682 # Only check the string length outside the loop.
8683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8684 teststring=
8685 # Add a significant safety factor because C++ compilers can tack on
8686 # massive amounts of additional arguments before passing them to the
8687 # linker. It appears as though 1/2 is a usable value.
8688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8689 fi
8690 ;;
8691 esac
8692
8693 fi
8694
8695 if test -n "$lt_cv_sys_max_cmd_len"; then
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8697 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8698 else
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8700 printf "%s\n" "none" >&6; }
8701 fi
8702 max_cmd_len=$lt_cv_sys_max_cmd_len
8703
8704
8705
8706
8707
8708
8709 : ${CP="cp -f"}
8710 : ${MV="mv -f"}
8711 : ${RM="rm -f"}
8712
8713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8714 lt_unset=unset
8715 else
8716 lt_unset=false
8717 fi
8718
8719
8720
8721
8722
8723 # test EBCDIC or ASCII
8724 case `echo X|tr X '\101'` in
8725 A) # ASCII based system
8726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8727 lt_SP2NL='tr \040 \012'
8728 lt_NL2SP='tr \015\012 \040\040'
8729 ;;
8730 *) # EBCDIC based system
8731 lt_SP2NL='tr \100 \n'
8732 lt_NL2SP='tr \r\n \100\100'
8733 ;;
8734 esac
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8745 printf %s "checking how to convert $build file names to $host format... " >&6; }
8746 if test ${lt_cv_to_host_file_cmd+y}
8747 then :
8748 printf %s "(cached) " >&6
8749 else $as_nop
8750 case $host in
8751 *-*-mingw* )
8752 case $build in
8753 *-*-mingw* ) # actually msys
8754 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8755 ;;
8756 *-*-cygwin* )
8757 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8758 ;;
8759 * ) # otherwise, assume *nix
8760 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8761 ;;
8762 esac
8763 ;;
8764 *-*-cygwin* )
8765 case $build in
8766 *-*-mingw* ) # actually msys
8767 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8768 ;;
8769 *-*-cygwin* )
8770 lt_cv_to_host_file_cmd=func_convert_file_noop
8771 ;;
8772 * ) # otherwise, assume *nix
8773 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8774 ;;
8775 esac
8776 ;;
8777 * ) # unhandled hosts (and "normal" native builds)
8778 lt_cv_to_host_file_cmd=func_convert_file_noop
8779 ;;
8780 esac
8781
8782 fi
8783
8784 to_host_file_cmd=$lt_cv_to_host_file_cmd
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8786 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8787
8788
8789
8790
8791
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8793 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8794 if test ${lt_cv_to_tool_file_cmd+y}
8795 then :
8796 printf %s "(cached) " >&6
8797 else $as_nop
8798 #assume ordinary cross tools, or native build.
8799 lt_cv_to_tool_file_cmd=func_convert_file_noop
8800 case $host in
8801 *-*-mingw* )
8802 case $build in
8803 *-*-mingw* ) # actually msys
8804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8805 ;;
8806 esac
8807 ;;
8808 esac
8809
8810 fi
8811
8812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8814 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8815
8816
8817
8818
8819
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8821 printf %s "checking for $LD option to reload object files... " >&6; }
8822 if test ${lt_cv_ld_reload_flag+y}
8823 then :
8824 printf %s "(cached) " >&6
8825 else $as_nop
8826 lt_cv_ld_reload_flag='-r'
8827 fi
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8829 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8830 reload_flag=$lt_cv_ld_reload_flag
8831 case $reload_flag in
8832 "" | " "*) ;;
8833 *) reload_flag=" $reload_flag" ;;
8834 esac
8835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8836 case $host_os in
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 if test yes != "$GCC"; then
8839 reload_cmds=false
8840 fi
8841 ;;
8842 darwin*)
8843 if test yes = "$GCC"; then
8844 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8845 else
8846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8847 fi
8848 ;;
8849 esac
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 printf %s "checking for $ac_word... " >&6; }
8864 if test ${ac_cv_prog_OBJDUMP+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 if test -n "$OBJDUMP"; then
8869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874 IFS=$as_save_IFS
8875 case $as_dir in #(((
8876 '') as_dir=./ ;;
8877 */) ;;
8878 *) as_dir=$as_dir/ ;;
8879 esac
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8884 break 2
8885 fi
8886 done
8887 done
8888 IFS=$as_save_IFS
8889
8890 fi
8891 fi
8892 OBJDUMP=$ac_cv_prog_OBJDUMP
8893 if test -n "$OBJDUMP"; then
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8895 printf "%s\n" "$OBJDUMP" >&6; }
8896 else
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 printf "%s\n" "no" >&6; }
8899 fi
8900
8901
8902 fi
8903 if test -z "$ac_cv_prog_OBJDUMP"; then
8904 ac_ct_OBJDUMP=$OBJDUMP
8905 # Extract the first word of "objdump", so it can be a program name with args.
8906 set dummy objdump; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else $as_nop
8913 if test -n "$ac_ct_OBJDUMP"; then
8914 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919 IFS=$as_save_IFS
8920 case $as_dir in #(((
8921 '') as_dir=./ ;;
8922 */) ;;
8923 *) as_dir=$as_dir/ ;;
8924 esac
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8929 break 2
8930 fi
8931 done
8932 done
8933 IFS=$as_save_IFS
8934
8935 fi
8936 fi
8937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8938 if test -n "$ac_ct_OBJDUMP"; then
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8940 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8941 else
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 printf "%s\n" "no" >&6; }
8944 fi
8945
8946 if test "x$ac_ct_OBJDUMP" = x; then
8947 OBJDUMP="false"
8948 else
8949 case $cross_compiling:$ac_tool_warned in
8950 yes:)
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955 OBJDUMP=$ac_ct_OBJDUMP
8956 fi
8957 else
8958 OBJDUMP="$ac_cv_prog_OBJDUMP"
8959 fi
8960
8961 test -z "$OBJDUMP" && OBJDUMP=objdump
8962
8963
8964
8965
8966
8967
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8969 printf %s "checking how to recognize dependent libraries... " >&6; }
8970 if test ${lt_cv_deplibs_check_method+y}
8971 then :
8972 printf %s "(cached) " >&6
8973 else $as_nop
8974 lt_cv_file_magic_cmd='$MAGIC_CMD'
8975 lt_cv_file_magic_test_file=
8976 lt_cv_deplibs_check_method='unknown'
8977 # Need to set the preceding variable on all platforms that support
8978 # interlibrary dependencies.
8979 # 'none' -- dependencies not supported.
8980 # 'unknown' -- same as none, but documents that we really don't know.
8981 # 'pass_all' -- all dependencies passed with no checks.
8982 # 'test_compile' -- check by making test program.
8983 # 'file_magic [[regex]]' -- check by looking for files in library path
8984 # that responds to the $file_magic_cmd with a given extended regex.
8985 # If you have 'file' or equivalent on your system and you're not sure
8986 # whether 'pass_all' will *always* work, you probably want this one.
8987
8988 case $host_os in
8989 aix[4-9]*)
8990 lt_cv_deplibs_check_method=pass_all
8991 ;;
8992
8993 beos*)
8994 lt_cv_deplibs_check_method=pass_all
8995 ;;
8996
8997 bsdi[45]*)
8998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8999 lt_cv_file_magic_cmd='/usr/bin/file -L'
9000 lt_cv_file_magic_test_file=/shlib/libc.so
9001 ;;
9002
9003 cygwin*)
9004 # func_win32_libid is a shell function defined in ltmain.sh
9005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9006 lt_cv_file_magic_cmd='func_win32_libid'
9007 ;;
9008
9009 mingw* | pw32*)
9010 # Base MSYS/MinGW do not provide the 'file' command needed by
9011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9012 # unless we find 'file', for example because we are cross-compiling.
9013 if ( file / ) >/dev/null 2>&1; then
9014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9015 lt_cv_file_magic_cmd='func_win32_libid'
9016 else
9017 # Keep this pattern in sync with the one in func_win32_libid.
9018 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9019 lt_cv_file_magic_cmd='$OBJDUMP -f'
9020 fi
9021 ;;
9022
9023 cegcc*)
9024 # use the weaker test based on 'objdump'. See mingw*.
9025 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9026 lt_cv_file_magic_cmd='$OBJDUMP -f'
9027 ;;
9028
9029 darwin* | rhapsody*)
9030 lt_cv_deplibs_check_method=pass_all
9031 ;;
9032
9033 freebsd* | dragonfly*)
9034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9035 case $host_cpu in
9036 i*86 )
9037 # Not sure whether the presence of OpenBSD here was a mistake.
9038 # Let's accept both of them until this is cleared up.
9039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9040 lt_cv_file_magic_cmd=/usr/bin/file
9041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9042 ;;
9043 esac
9044 else
9045 lt_cv_deplibs_check_method=pass_all
9046 fi
9047 ;;
9048
9049 haiku*)
9050 lt_cv_deplibs_check_method=pass_all
9051 ;;
9052
9053 hpux10.20* | hpux11*)
9054 lt_cv_file_magic_cmd=/usr/bin/file
9055 case $host_cpu in
9056 ia64*)
9057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9059 ;;
9060 hppa*64*)
9061 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]'
9062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9063 ;;
9064 *)
9065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9067 ;;
9068 esac
9069 ;;
9070
9071 interix[3-9]*)
9072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9074 ;;
9075
9076 irix5* | irix6* | nonstopux*)
9077 case $LD in
9078 *-32|*"-32 ") libmagic=32-bit;;
9079 *-n32|*"-n32 ") libmagic=N32;;
9080 *-64|*"-64 ") libmagic=64-bit;;
9081 *) libmagic=never-match;;
9082 esac
9083 lt_cv_deplibs_check_method=pass_all
9084 ;;
9085
9086 # This must be glibc/ELF.
9087 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9088 lt_cv_deplibs_check_method=pass_all
9089 ;;
9090
9091 netbsd* | netbsdelf*-gnu)
9092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9094 else
9095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9096 fi
9097 ;;
9098
9099 newos6*)
9100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9101 lt_cv_file_magic_cmd=/usr/bin/file
9102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9103 ;;
9104
9105 *nto* | *qnx*)
9106 lt_cv_deplibs_check_method=pass_all
9107 ;;
9108
9109 openbsd* | bitrig*)
9110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9112 else
9113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9114 fi
9115 ;;
9116
9117 osf3* | osf4* | osf5*)
9118 lt_cv_deplibs_check_method=pass_all
9119 ;;
9120
9121 rdos*)
9122 lt_cv_deplibs_check_method=pass_all
9123 ;;
9124
9125 solaris*)
9126 lt_cv_deplibs_check_method=pass_all
9127 ;;
9128
9129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9130 lt_cv_deplibs_check_method=pass_all
9131 ;;
9132
9133 sysv4 | sysv4.3*)
9134 case $host_vendor in
9135 motorola)
9136 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]'
9137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9138 ;;
9139 ncr)
9140 lt_cv_deplibs_check_method=pass_all
9141 ;;
9142 sequent)
9143 lt_cv_file_magic_cmd='/bin/file'
9144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9145 ;;
9146 sni)
9147 lt_cv_file_magic_cmd='/bin/file'
9148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9149 lt_cv_file_magic_test_file=/lib/libc.so
9150 ;;
9151 siemens)
9152 lt_cv_deplibs_check_method=pass_all
9153 ;;
9154 pc)
9155 lt_cv_deplibs_check_method=pass_all
9156 ;;
9157 esac
9158 ;;
9159
9160 tpf*)
9161 lt_cv_deplibs_check_method=pass_all
9162 ;;
9163 os2*)
9164 lt_cv_deplibs_check_method=pass_all
9165 ;;
9166 esac
9167
9168 fi
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9170 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9171
9172 file_magic_glob=
9173 want_nocaseglob=no
9174 if test "$build" = "$host"; then
9175 case $host_os in
9176 mingw* | pw32*)
9177 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9178 want_nocaseglob=yes
9179 else
9180 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9181 fi
9182 ;;
9183 esac
9184 fi
9185
9186 file_magic_cmd=$lt_cv_file_magic_cmd
9187 deplibs_check_method=$lt_cv_deplibs_check_method
9188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 if test -n "$ac_tool_prefix"; then
9212 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9213 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215 printf %s "checking for $ac_word... " >&6; }
9216 if test ${ac_cv_prog_DLLTOOL+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else $as_nop
9220 if test -n "$DLLTOOL"; then
9221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9225 do
9226 IFS=$as_save_IFS
9227 case $as_dir in #(((
9228 '') as_dir=./ ;;
9229 */) ;;
9230 *) as_dir=$as_dir/ ;;
9231 esac
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9234 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9236 break 2
9237 fi
9238 done
9239 done
9240 IFS=$as_save_IFS
9241
9242 fi
9243 fi
9244 DLLTOOL=$ac_cv_prog_DLLTOOL
9245 if test -n "$DLLTOOL"; then
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9247 printf "%s\n" "$DLLTOOL" >&6; }
9248 else
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 printf "%s\n" "no" >&6; }
9251 fi
9252
9253
9254 fi
9255 if test -z "$ac_cv_prog_DLLTOOL"; then
9256 ac_ct_DLLTOOL=$DLLTOOL
9257 # Extract the first word of "dlltool", so it can be a program name with args.
9258 set dummy dlltool; ac_word=$2
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 printf %s "checking for $ac_word... " >&6; }
9261 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9262 then :
9263 printf %s "(cached) " >&6
9264 else $as_nop
9265 if test -n "$ac_ct_DLLTOOL"; then
9266 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271 IFS=$as_save_IFS
9272 case $as_dir in #(((
9273 '') as_dir=./ ;;
9274 */) ;;
9275 *) as_dir=$as_dir/ ;;
9276 esac
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9279 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9281 break 2
9282 fi
9283 done
9284 done
9285 IFS=$as_save_IFS
9286
9287 fi
9288 fi
9289 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9290 if test -n "$ac_ct_DLLTOOL"; then
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9292 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9293 else
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 printf "%s\n" "no" >&6; }
9296 fi
9297
9298 if test "x$ac_ct_DLLTOOL" = x; then
9299 DLLTOOL="false"
9300 else
9301 case $cross_compiling:$ac_tool_warned in
9302 yes:)
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9305 ac_tool_warned=yes ;;
9306 esac
9307 DLLTOOL=$ac_ct_DLLTOOL
9308 fi
9309 else
9310 DLLTOOL="$ac_cv_prog_DLLTOOL"
9311 fi
9312
9313 test -z "$DLLTOOL" && DLLTOOL=dlltool
9314
9315
9316
9317
9318
9319
9320
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9322 printf %s "checking how to associate runtime and link libraries... " >&6; }
9323 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9324 then :
9325 printf %s "(cached) " >&6
9326 else $as_nop
9327 lt_cv_sharedlib_from_linklib_cmd='unknown'
9328
9329 case $host_os in
9330 cygwin* | mingw* | pw32* | cegcc*)
9331 # two different shell functions defined in ltmain.sh;
9332 # decide which one to use based on capabilities of $DLLTOOL
9333 case `$DLLTOOL --help 2>&1` in
9334 *--identify-strict*)
9335 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9336 ;;
9337 *)
9338 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9339 ;;
9340 esac
9341 ;;
9342 *)
9343 # fallback: assume linklib IS sharedlib
9344 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9345 ;;
9346 esac
9347
9348 fi
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9350 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9351 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9352 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9353
9354
9355
9356
9357
9358
9359
9360 if test -n "$ac_tool_prefix"; then
9361 for ac_prog in ar
9362 do
9363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 printf %s "checking for $ac_word... " >&6; }
9367 if test ${ac_cv_prog_AR+y}
9368 then :
9369 printf %s "(cached) " >&6
9370 else $as_nop
9371 if test -n "$AR"; then
9372 ac_cv_prog_AR="$AR" # Let the user override the test.
9373 else
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9376 do
9377 IFS=$as_save_IFS
9378 case $as_dir in #(((
9379 '') as_dir=./ ;;
9380 */) ;;
9381 *) as_dir=$as_dir/ ;;
9382 esac
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9385 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9387 break 2
9388 fi
9389 done
9390 done
9391 IFS=$as_save_IFS
9392
9393 fi
9394 fi
9395 AR=$ac_cv_prog_AR
9396 if test -n "$AR"; then
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9398 printf "%s\n" "$AR" >&6; }
9399 else
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 printf "%s\n" "no" >&6; }
9402 fi
9403
9404
9405 test -n "$AR" && break
9406 done
9407 fi
9408 if test -z "$AR"; then
9409 ac_ct_AR=$AR
9410 for ac_prog in ar
9411 do
9412 # Extract the first word of "$ac_prog", so it can be a program name with args.
9413 set dummy $ac_prog; ac_word=$2
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 printf %s "checking for $ac_word... " >&6; }
9416 if test ${ac_cv_prog_ac_ct_AR+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else $as_nop
9420 if test -n "$ac_ct_AR"; then
9421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9422 else
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9425 do
9426 IFS=$as_save_IFS
9427 case $as_dir in #(((
9428 '') as_dir=./ ;;
9429 */) ;;
9430 *) as_dir=$as_dir/ ;;
9431 esac
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9434 ac_cv_prog_ac_ct_AR="$ac_prog"
9435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438 done
9439 done
9440 IFS=$as_save_IFS
9441
9442 fi
9443 fi
9444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9445 if test -n "$ac_ct_AR"; then
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9447 printf "%s\n" "$ac_ct_AR" >&6; }
9448 else
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 printf "%s\n" "no" >&6; }
9451 fi
9452
9453
9454 test -n "$ac_ct_AR" && break
9455 done
9456
9457 if test "x$ac_ct_AR" = x; then
9458 AR="false"
9459 else
9460 case $cross_compiling:$ac_tool_warned in
9461 yes:)
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9463 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9464 ac_tool_warned=yes ;;
9465 esac
9466 AR=$ac_ct_AR
9467 fi
9468 fi
9469
9470 : ${AR=ar}
9471 : ${AR_FLAGS=cr}
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9484 printf %s "checking for archiver @FILE support... " >&6; }
9485 if test ${lt_cv_ar_at_file+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else $as_nop
9489 lt_cv_ar_at_file=no
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492
9493 int
9494 main (void)
9495 {
9496
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"
9502 then :
9503 echo conftest.$ac_objext > conftest.lst
9504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9506 (eval $lt_ar_try) 2>&5
9507 ac_status=$?
9508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9509 test $ac_status = 0; }
9510 if test 0 -eq "$ac_status"; then
9511 # Ensure the archiver fails upon bogus file names.
9512 rm -f conftest.$ac_objext libconftest.a
9513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9514 (eval $lt_ar_try) 2>&5
9515 ac_status=$?
9516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; }
9518 if test 0 -ne "$ac_status"; then
9519 lt_cv_ar_at_file=@
9520 fi
9521 fi
9522 rm -f conftest.* libconftest.a
9523
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9526
9527 fi
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9529 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9530
9531 if test no = "$lt_cv_ar_at_file"; then
9532 archiver_list_spec=
9533 else
9534 archiver_list_spec=$lt_cv_ar_at_file
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543 if test -n "$ac_tool_prefix"; then
9544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9545 set dummy ${ac_tool_prefix}strip; ac_word=$2
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 printf %s "checking for $ac_word... " >&6; }
9548 if test ${ac_cv_prog_STRIP+y}
9549 then :
9550 printf %s "(cached) " >&6
9551 else $as_nop
9552 if test -n "$STRIP"; then
9553 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9557 do
9558 IFS=$as_save_IFS
9559 case $as_dir in #(((
9560 '') as_dir=./ ;;
9561 */) ;;
9562 *) as_dir=$as_dir/ ;;
9563 esac
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9566 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 fi
9575 fi
9576 STRIP=$ac_cv_prog_STRIP
9577 if test -n "$STRIP"; then
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9579 printf "%s\n" "$STRIP" >&6; }
9580 else
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 printf "%s\n" "no" >&6; }
9583 fi
9584
9585
9586 fi
9587 if test -z "$ac_cv_prog_STRIP"; then
9588 ac_ct_STRIP=$STRIP
9589 # Extract the first word of "strip", so it can be a program name with args.
9590 set dummy strip; ac_word=$2
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 printf %s "checking for $ac_word... " >&6; }
9593 if test ${ac_cv_prog_ac_ct_STRIP+y}
9594 then :
9595 printf %s "(cached) " >&6
9596 else $as_nop
9597 if test -n "$ac_ct_STRIP"; then
9598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9599 else
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in $PATH
9602 do
9603 IFS=$as_save_IFS
9604 case $as_dir in #(((
9605 '') as_dir=./ ;;
9606 */) ;;
9607 *) as_dir=$as_dir/ ;;
9608 esac
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_ac_ct_STRIP="strip"
9612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615 done
9616 done
9617 IFS=$as_save_IFS
9618
9619 fi
9620 fi
9621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9622 if test -n "$ac_ct_STRIP"; then
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9624 printf "%s\n" "$ac_ct_STRIP" >&6; }
9625 else
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 printf "%s\n" "no" >&6; }
9628 fi
9629
9630 if test "x$ac_ct_STRIP" = x; then
9631 STRIP=":"
9632 else
9633 case $cross_compiling:$ac_tool_warned in
9634 yes:)
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9637 ac_tool_warned=yes ;;
9638 esac
9639 STRIP=$ac_ct_STRIP
9640 fi
9641 else
9642 STRIP="$ac_cv_prog_STRIP"
9643 fi
9644
9645 test -z "$STRIP" && STRIP=:
9646
9647
9648
9649
9650
9651
9652 if test -n "$ac_tool_prefix"; then
9653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 printf %s "checking for $ac_word... " >&6; }
9657 if test ${ac_cv_prog_RANLIB+y}
9658 then :
9659 printf %s "(cached) " >&6
9660 else $as_nop
9661 if test -n "$RANLIB"; then
9662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667 IFS=$as_save_IFS
9668 case $as_dir in #(((
9669 '') as_dir=./ ;;
9670 */) ;;
9671 *) as_dir=$as_dir/ ;;
9672 esac
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9677 break 2
9678 fi
9679 done
9680 done
9681 IFS=$as_save_IFS
9682
9683 fi
9684 fi
9685 RANLIB=$ac_cv_prog_RANLIB
9686 if test -n "$RANLIB"; then
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9688 printf "%s\n" "$RANLIB" >&6; }
9689 else
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 printf "%s\n" "no" >&6; }
9692 fi
9693
9694
9695 fi
9696 if test -z "$ac_cv_prog_RANLIB"; then
9697 ac_ct_RANLIB=$RANLIB
9698 # Extract the first word of "ranlib", so it can be a program name with args.
9699 set dummy ranlib; ac_word=$2
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 printf %s "checking for $ac_word... " >&6; }
9702 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else $as_nop
9706 if test -n "$ac_ct_RANLIB"; then
9707 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712 IFS=$as_save_IFS
9713 case $as_dir in #(((
9714 '') as_dir=./ ;;
9715 */) ;;
9716 *) as_dir=$as_dir/ ;;
9717 esac
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_ac_ct_RANLIB="ranlib"
9721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724 done
9725 done
9726 IFS=$as_save_IFS
9727
9728 fi
9729 fi
9730 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9731 if test -n "$ac_ct_RANLIB"; then
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9733 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9734 else
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 printf "%s\n" "no" >&6; }
9737 fi
9738
9739 if test "x$ac_ct_RANLIB" = x; then
9740 RANLIB=":"
9741 else
9742 case $cross_compiling:$ac_tool_warned in
9743 yes:)
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9746 ac_tool_warned=yes ;;
9747 esac
9748 RANLIB=$ac_ct_RANLIB
9749 fi
9750 else
9751 RANLIB="$ac_cv_prog_RANLIB"
9752 fi
9753
9754 test -z "$RANLIB" && RANLIB=:
9755
9756
9757
9758
9759
9760
9761 # Determine commands to create old-style static archives.
9762 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9763 old_postinstall_cmds='chmod 644 $oldlib'
9764 old_postuninstall_cmds=
9765
9766 if test -n "$RANLIB"; then
9767 case $host_os in
9768 bitrig* | openbsd*)
9769 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9770 ;;
9771 *)
9772 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9773 ;;
9774 esac
9775 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9776 fi
9777
9778 case $host_os in
9779 darwin*)
9780 lock_old_archive_extraction=yes ;;
9781 *)
9782 lock_old_archive_extraction=no ;;
9783 esac
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823 # If no C compiler was specified, use CC.
9824 LTCC=${LTCC-"$CC"}
9825
9826 # If no C compiler flags were specified, use CFLAGS.
9827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9828
9829 # Allow CC to be a program name with arguments.
9830 compiler=$CC
9831
9832
9833 # Check for command to grab the raw symbol name followed by C symbol from nm.
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9835 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9836 if test ${lt_cv_sys_global_symbol_pipe+y}
9837 then :
9838 printf %s "(cached) " >&6
9839 else $as_nop
9840
9841 # These are sane defaults that work on at least a few old systems.
9842 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9843
9844 # Character class describing NM global symbol codes.
9845 symcode='[BCDEGRST]'
9846
9847 # Regexp to match symbols that can be accessed directly from C.
9848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9849
9850 # Define system-specific variables.
9851 case $host_os in
9852 aix*)
9853 symcode='[BCDT]'
9854 ;;
9855 cygwin* | mingw* | pw32* | cegcc*)
9856 symcode='[ABCDGISTW]'
9857 ;;
9858 hpux*)
9859 if test ia64 = "$host_cpu"; then
9860 symcode='[ABCDEGRST]'
9861 fi
9862 ;;
9863 irix* | nonstopux*)
9864 symcode='[BCDEGRST]'
9865 ;;
9866 osf*)
9867 symcode='[BCDEGQRST]'
9868 ;;
9869 solaris*)
9870 symcode='[BDRT]'
9871 ;;
9872 sco3.2v5*)
9873 symcode='[DT]'
9874 ;;
9875 sysv4.2uw2*)
9876 symcode='[DT]'
9877 ;;
9878 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9879 symcode='[ABDT]'
9880 ;;
9881 sysv4)
9882 symcode='[DFNSTU]'
9883 ;;
9884 esac
9885
9886 # If we're using GNU nm, then use its standard symbol codes.
9887 case `$NM -V 2>&1` in
9888 *GNU* | *'with BFD'*)
9889 symcode='[ABCDGIRSTW]' ;;
9890 esac
9891
9892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9893 # Gets list of data symbols to import.
9894 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9895 # Adjust the below global symbol transforms to fixup imported variables.
9896 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9897 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9898 lt_c_name_lib_hook="\
9899 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9900 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9901 else
9902 # Disable hooks by default.
9903 lt_cv_sys_global_symbol_to_import=
9904 lt_cdecl_hook=
9905 lt_c_name_hook=
9906 lt_c_name_lib_hook=
9907 fi
9908
9909 # Transform an extracted symbol line into a proper C declaration.
9910 # Some systems (esp. on ia64) link data and code symbols differently,
9911 # so use this general approach.
9912 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9913 $lt_cdecl_hook\
9914 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9915 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9916
9917 # Transform an extracted symbol line into symbol name and symbol address
9918 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9919 $lt_c_name_hook\
9920 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9921 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9922
9923 # Transform an extracted symbol line into symbol name with lib prefix and
9924 # symbol address.
9925 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9926 $lt_c_name_lib_hook\
9927 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9928 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9929 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9930
9931 # Handle CRLF in mingw tool chain
9932 opt_cr=
9933 case $build_os in
9934 mingw*)
9935 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9936 ;;
9937 esac
9938
9939 # Try without a prefix underscore, then with it.
9940 for ac_symprfx in "" "_"; do
9941
9942 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9943 symxfrm="\\1 $ac_symprfx\\2 \\2"
9944
9945 # Write the raw and C identifiers.
9946 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9947 # Fake it for dumpbin and say T for any non-static function,
9948 # D for any global variable and I for any imported variable.
9949 # Also find C++ and __fastcall symbols from MSVC++,
9950 # which start with @ or ?.
9951 lt_cv_sys_global_symbol_pipe="$AWK '"\
9952 " {last_section=section; section=\$ 3};"\
9953 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9954 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9955 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9956 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9957 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9958 " \$ 0!~/External *\|/{next};"\
9959 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9960 " {if(hide[section]) next};"\
9961 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9962 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9963 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9964 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9965 " ' prfx=^$ac_symprfx"
9966 else
9967 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9968 fi
9969 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9970
9971 # Check to see that the pipe works correctly.
9972 pipe_works=no
9973
9974 rm -f conftest*
9975 cat > conftest.$ac_ext <<_LT_EOF
9976 #ifdef __cplusplus
9977 extern "C" {
9978 #endif
9979 char nm_test_var;
9980 void nm_test_func(void);
9981 void nm_test_func(void){}
9982 #ifdef __cplusplus
9983 }
9984 #endif
9985 int main(){nm_test_var='a';nm_test_func();return(0);}
9986 _LT_EOF
9987
9988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9989 (eval $ac_compile) 2>&5
9990 ac_status=$?
9991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9992 test $ac_status = 0; }; then
9993 # Now try to grab the symbols.
9994 nlist=conftest.nm
9995 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9996 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9997 # Try sorting and uniquifying the output.
9998 if sort "$nlist" | uniq > "$nlist"T; then
9999 mv -f "$nlist"T "$nlist"
10000 else
10001 rm -f "$nlist"T
10002 fi
10003
10004 # Make sure that we snagged all the symbols we need.
10005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10007 cat <<_LT_EOF > conftest.$ac_ext
10008 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10009 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10010 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10011 relocations are performed -- see ld's documentation on pseudo-relocs. */
10012 # define LT_DLSYM_CONST
10013 #elif defined __osf__
10014 /* This system does not cope well with relocations in const data. */
10015 # define LT_DLSYM_CONST
10016 #else
10017 # define LT_DLSYM_CONST const
10018 #endif
10019
10020 #ifdef __cplusplus
10021 extern "C" {
10022 #endif
10023
10024 _LT_EOF
10025 # Now generate the symbol file.
10026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10027
10028 cat <<_LT_EOF >> conftest.$ac_ext
10029
10030 /* The mapping between symbol names and symbols. */
10031 LT_DLSYM_CONST struct {
10032 const char *name;
10033 void *address;
10034 }
10035 lt__PROGRAM__LTX_preloaded_symbols[] =
10036 {
10037 { "@PROGRAM@", (void *) 0 },
10038 _LT_EOF
10039 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10040 cat <<\_LT_EOF >> conftest.$ac_ext
10041 {0, (void *) 0}
10042 };
10043
10044 /* This works around a problem in FreeBSD linker */
10045 #ifdef FREEBSD_WORKAROUND
10046 static const void *lt_preloaded_setup() {
10047 return lt__PROGRAM__LTX_preloaded_symbols;
10048 }
10049 #endif
10050
10051 #ifdef __cplusplus
10052 }
10053 #endif
10054 _LT_EOF
10055 # Now try linking the two files.
10056 mv conftest.$ac_objext conftstm.$ac_objext
10057 lt_globsym_save_LIBS=$LIBS
10058 lt_globsym_save_CFLAGS=$CFLAGS
10059 LIBS=conftstm.$ac_objext
10060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10062 (eval $ac_link) 2>&5
10063 ac_status=$?
10064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10065 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10066 pipe_works=yes
10067 fi
10068 LIBS=$lt_globsym_save_LIBS
10069 CFLAGS=$lt_globsym_save_CFLAGS
10070 else
10071 echo "cannot find nm_test_func in $nlist" >&5
10072 fi
10073 else
10074 echo "cannot find nm_test_var in $nlist" >&5
10075 fi
10076 else
10077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10078 fi
10079 else
10080 echo "$progname: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10082 fi
10083 rm -rf conftest* conftst*
10084
10085 # Do not use the global_symbol_pipe unless it works.
10086 if test yes = "$pipe_works"; then
10087 break
10088 else
10089 lt_cv_sys_global_symbol_pipe=
10090 fi
10091 done
10092
10093 fi
10094
10095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10096 lt_cv_sys_global_symbol_to_cdecl=
10097 fi
10098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10100 printf "%s\n" "failed" >&6; }
10101 else
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10103 printf "%s\n" "ok" >&6; }
10104 fi
10105
10106 # Response file support.
10107 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10108 nm_file_list_spec='@'
10109 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10110 nm_file_list_spec='@'
10111 fi
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10150 printf %s "checking for sysroot... " >&6; }
10151
10152 # Check whether --with-sysroot was given.
10153 if test ${with_sysroot+y}
10154 then :
10155 withval=$with_sysroot;
10156 else $as_nop
10157 with_sysroot=no
10158 fi
10159
10160
10161 lt_sysroot=
10162 case $with_sysroot in #(
10163 yes)
10164 if test yes = "$GCC"; then
10165 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10166 fi
10167 ;; #(
10168 /*)
10169 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10170 ;; #(
10171 no|'')
10172 ;; #(
10173 *)
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10175 printf "%s\n" "$with_sysroot" >&6; }
10176 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10177 ;;
10178 esac
10179
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10181 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10182
10183
10184
10185
10186
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10188 printf %s "checking for a working dd... " >&6; }
10189 if test ${ac_cv_path_lt_DD+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else $as_nop
10193 printf 0123456789abcdef0123456789abcdef >conftest.i
10194 cat conftest.i conftest.i >conftest2.i
10195 : ${lt_DD:=$DD}
10196 if test -z "$lt_DD"; then
10197 ac_path_lt_DD_found=false
10198 # Loop through the user's path and test for each of PROGNAME-LIST
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 case $as_dir in #(((
10204 '') as_dir=./ ;;
10205 */) ;;
10206 *) as_dir=$as_dir/ ;;
10207 esac
10208 for ac_prog in dd
10209 do
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10212 as_fn_executable_p "$ac_path_lt_DD" || continue
10213 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10214 cmp -s conftest.i conftest.out \
10215 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10216 fi
10217 $ac_path_lt_DD_found && break 3
10218 done
10219 done
10220 done
10221 IFS=$as_save_IFS
10222 if test -z "$ac_cv_path_lt_DD"; then
10223 :
10224 fi
10225 else
10226 ac_cv_path_lt_DD=$lt_DD
10227 fi
10228
10229 rm -f conftest.i conftest2.i conftest.out
10230 fi
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10232 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10233
10234
10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10236 printf %s "checking how to truncate binary pipes... " >&6; }
10237 if test ${lt_cv_truncate_bin+y}
10238 then :
10239 printf %s "(cached) " >&6
10240 else $as_nop
10241 printf 0123456789abcdef0123456789abcdef >conftest.i
10242 cat conftest.i conftest.i >conftest2.i
10243 lt_cv_truncate_bin=
10244 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10245 cmp -s conftest.i conftest.out \
10246 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10247 fi
10248 rm -f conftest.i conftest2.i conftest.out
10249 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10250 fi
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10252 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10253
10254
10255
10256
10257
10258
10259
10260 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10261 func_cc_basename ()
10262 {
10263 for cc_temp in $*""; do
10264 case $cc_temp in
10265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10267 \-*) ;;
10268 *) break;;
10269 esac
10270 done
10271 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10272 }
10273
10274 # Check whether --enable-libtool-lock was given.
10275 if test ${enable_libtool_lock+y}
10276 then :
10277 enableval=$enable_libtool_lock;
10278 fi
10279
10280 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10281
10282 # Some flags need to be propagated to the compiler or linker for good
10283 # libtool support.
10284 case $host in
10285 ia64-*-hpux*)
10286 # Find out what ABI is being produced by ac_compile, and set mode
10287 # options accordingly.
10288 echo 'int i;' > conftest.$ac_ext
10289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10290 (eval $ac_compile) 2>&5
10291 ac_status=$?
10292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10293 test $ac_status = 0; }; then
10294 case `/usr/bin/file conftest.$ac_objext` in
10295 *ELF-32*)
10296 HPUX_IA64_MODE=32
10297 ;;
10298 *ELF-64*)
10299 HPUX_IA64_MODE=64
10300 ;;
10301 esac
10302 fi
10303 rm -rf conftest*
10304 ;;
10305 *-*-irix6*)
10306 # Find out what ABI is being produced by ac_compile, and set linker
10307 # options accordingly.
10308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310 (eval $ac_compile) 2>&5
10311 ac_status=$?
10312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; }; then
10314 if test yes = "$lt_cv_prog_gnu_ld"; then
10315 case `/usr/bin/file conftest.$ac_objext` in
10316 *32-bit*)
10317 LD="${LD-ld} -melf32bsmip"
10318 ;;
10319 *N32*)
10320 LD="${LD-ld} -melf32bmipn32"
10321 ;;
10322 *64-bit*)
10323 LD="${LD-ld} -melf64bmip"
10324 ;;
10325 esac
10326 else
10327 case `/usr/bin/file conftest.$ac_objext` in
10328 *32-bit*)
10329 LD="${LD-ld} -32"
10330 ;;
10331 *N32*)
10332 LD="${LD-ld} -n32"
10333 ;;
10334 *64-bit*)
10335 LD="${LD-ld} -64"
10336 ;;
10337 esac
10338 fi
10339 fi
10340 rm -rf conftest*
10341 ;;
10342
10343 mips64*-*linux*)
10344 # Find out what ABI is being produced by ac_compile, and set linker
10345 # options accordingly.
10346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10348 (eval $ac_compile) 2>&5
10349 ac_status=$?
10350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10351 test $ac_status = 0; }; then
10352 emul=elf
10353 case `/usr/bin/file conftest.$ac_objext` in
10354 *32-bit*)
10355 emul="${emul}32"
10356 ;;
10357 *64-bit*)
10358 emul="${emul}64"
10359 ;;
10360 esac
10361 case `/usr/bin/file conftest.$ac_objext` in
10362 *MSB*)
10363 emul="${emul}btsmip"
10364 ;;
10365 *LSB*)
10366 emul="${emul}ltsmip"
10367 ;;
10368 esac
10369 case `/usr/bin/file conftest.$ac_objext` in
10370 *N32*)
10371 emul="${emul}n32"
10372 ;;
10373 esac
10374 LD="${LD-ld} -m $emul"
10375 fi
10376 rm -rf conftest*
10377 ;;
10378
10379 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10380 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10381 # Find out what ABI is being produced by ac_compile, and set linker
10382 # options accordingly. Note that the listed cases only cover the
10383 # situations where additional linker options are needed (such as when
10384 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10385 # vice versa); the common cases where no linker options are needed do
10386 # not appear in the list.
10387 echo 'int i;' > conftest.$ac_ext
10388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10389 (eval $ac_compile) 2>&5
10390 ac_status=$?
10391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10392 test $ac_status = 0; }; then
10393 case `/usr/bin/file conftest.o` in
10394 *32-bit*)
10395 case $host in
10396 x86_64-*kfreebsd*-gnu)
10397 LD="${LD-ld} -m elf_i386_fbsd"
10398 ;;
10399 x86_64-*linux*)
10400 case `/usr/bin/file conftest.o` in
10401 *x86-64*)
10402 LD="${LD-ld} -m elf32_x86_64"
10403 ;;
10404 *)
10405 LD="${LD-ld} -m elf_i386"
10406 ;;
10407 esac
10408 ;;
10409 powerpc64le-*linux*)
10410 LD="${LD-ld} -m elf32lppclinux"
10411 ;;
10412 powerpc64-*linux*)
10413 LD="${LD-ld} -m elf32ppclinux"
10414 ;;
10415 s390x-*linux*)
10416 LD="${LD-ld} -m elf_s390"
10417 ;;
10418 sparc64-*linux*)
10419 LD="${LD-ld} -m elf32_sparc"
10420 ;;
10421 esac
10422 ;;
10423 *64-bit*)
10424 case $host in
10425 x86_64-*kfreebsd*-gnu)
10426 LD="${LD-ld} -m elf_x86_64_fbsd"
10427 ;;
10428 x86_64-*linux*)
10429 LD="${LD-ld} -m elf_x86_64"
10430 ;;
10431 powerpcle-*linux*)
10432 LD="${LD-ld} -m elf64lppc"
10433 ;;
10434 powerpc-*linux*)
10435 LD="${LD-ld} -m elf64ppc"
10436 ;;
10437 s390*-*linux*|s390*-*tpf*)
10438 LD="${LD-ld} -m elf64_s390"
10439 ;;
10440 sparc*-*linux*)
10441 LD="${LD-ld} -m elf64_sparc"
10442 ;;
10443 esac
10444 ;;
10445 esac
10446 fi
10447 rm -rf conftest*
10448 ;;
10449
10450 *-*-sco3.2v5*)
10451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10452 SAVE_CFLAGS=$CFLAGS
10453 CFLAGS="$CFLAGS -belf"
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10455 printf %s "checking whether the C compiler needs -belf... " >&6; }
10456 if test ${lt_cv_cc_needs_belf+y}
10457 then :
10458 printf %s "(cached) " >&6
10459 else $as_nop
10460 ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468
10469 int
10470 main (void)
10471 {
10472
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"
10478 then :
10479 lt_cv_cc_needs_belf=yes
10480 else $as_nop
10481 lt_cv_cc_needs_belf=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10484 conftest$ac_exeext conftest.$ac_ext
10485 ac_ext=c
10486 ac_cpp='$CPP $CPPFLAGS'
10487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10490
10491 fi
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10493 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10494 if test yes != "$lt_cv_cc_needs_belf"; then
10495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10496 CFLAGS=$SAVE_CFLAGS
10497 fi
10498 ;;
10499 *-*solaris*)
10500 # Find out what ABI is being produced by ac_compile, and set linker
10501 # options accordingly.
10502 echo 'int i;' > conftest.$ac_ext
10503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10504 (eval $ac_compile) 2>&5
10505 ac_status=$?
10506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10507 test $ac_status = 0; }; then
10508 case `/usr/bin/file conftest.o` in
10509 *64-bit*)
10510 case $lt_cv_prog_gnu_ld in
10511 yes*)
10512 case $host in
10513 i?86-*-solaris*|x86_64-*-solaris*)
10514 LD="${LD-ld} -m elf_x86_64"
10515 ;;
10516 sparc*-*-solaris*)
10517 LD="${LD-ld} -m elf64_sparc"
10518 ;;
10519 esac
10520 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10521 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10522 LD=${LD-ld}_sol2
10523 fi
10524 ;;
10525 *)
10526 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10527 LD="${LD-ld} -64"
10528 fi
10529 ;;
10530 esac
10531 ;;
10532 esac
10533 fi
10534 rm -rf conftest*
10535 ;;
10536 esac
10537
10538 need_locks=$enable_libtool_lock
10539
10540 if test -n "$ac_tool_prefix"; then
10541 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10542 set dummy ${ac_tool_prefix}mt; ac_word=$2
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 printf %s "checking for $ac_word... " >&6; }
10545 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10546 then :
10547 printf %s "(cached) " >&6
10548 else $as_nop
10549 if test -n "$MANIFEST_TOOL"; then
10550 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10551 else
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10554 do
10555 IFS=$as_save_IFS
10556 case $as_dir in #(((
10557 '') as_dir=./ ;;
10558 */) ;;
10559 *) as_dir=$as_dir/ ;;
10560 esac
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567 done
10568 done
10569 IFS=$as_save_IFS
10570
10571 fi
10572 fi
10573 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10574 if test -n "$MANIFEST_TOOL"; then
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10576 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10577 else
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 printf "%s\n" "no" >&6; }
10580 fi
10581
10582
10583 fi
10584 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10585 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10586 # Extract the first word of "mt", so it can be a program name with args.
10587 set dummy mt; ac_word=$2
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 printf %s "checking for $ac_word... " >&6; }
10590 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else $as_nop
10594 if test -n "$ac_ct_MANIFEST_TOOL"; then
10595 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600 IFS=$as_save_IFS
10601 case $as_dir in #(((
10602 '') as_dir=./ ;;
10603 */) ;;
10604 *) as_dir=$as_dir/ ;;
10605 esac
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10608 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612 done
10613 done
10614 IFS=$as_save_IFS
10615
10616 fi
10617 fi
10618 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10619 if test -n "$ac_ct_MANIFEST_TOOL"; then
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10621 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10622 else
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 printf "%s\n" "no" >&6; }
10625 fi
10626
10627 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10628 MANIFEST_TOOL=":"
10629 else
10630 case $cross_compiling:$ac_tool_warned in
10631 yes:)
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10634 ac_tool_warned=yes ;;
10635 esac
10636 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10637 fi
10638 else
10639 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10640 fi
10641
10642 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10644 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10645 if test ${lt_cv_path_mainfest_tool+y}
10646 then :
10647 printf %s "(cached) " >&6
10648 else $as_nop
10649 lt_cv_path_mainfest_tool=no
10650 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10651 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10652 cat conftest.err >&5
10653 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10654 lt_cv_path_mainfest_tool=yes
10655 fi
10656 rm -f conftest*
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10659 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10660 if test yes != "$lt_cv_path_mainfest_tool"; then
10661 MANIFEST_TOOL=:
10662 fi
10663
10664
10665
10666
10667
10668
10669 case $host_os in
10670 rhapsody* | darwin*)
10671 if test -n "$ac_tool_prefix"; then
10672 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10673 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 printf %s "checking for $ac_word... " >&6; }
10676 if test ${ac_cv_prog_DSYMUTIL+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else $as_nop
10680 if test -n "$DSYMUTIL"; then
10681 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 case $as_dir in #(((
10688 '') as_dir=./ ;;
10689 */) ;;
10690 *) as_dir=$as_dir/ ;;
10691 esac
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698 done
10699 done
10700 IFS=$as_save_IFS
10701
10702 fi
10703 fi
10704 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10705 if test -n "$DSYMUTIL"; then
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10707 printf "%s\n" "$DSYMUTIL" >&6; }
10708 else
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 printf "%s\n" "no" >&6; }
10711 fi
10712
10713
10714 fi
10715 if test -z "$ac_cv_prog_DSYMUTIL"; then
10716 ac_ct_DSYMUTIL=$DSYMUTIL
10717 # Extract the first word of "dsymutil", so it can be a program name with args.
10718 set dummy dsymutil; ac_word=$2
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 printf %s "checking for $ac_word... " >&6; }
10721 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10722 then :
10723 printf %s "(cached) " >&6
10724 else $as_nop
10725 if test -n "$ac_ct_DSYMUTIL"; then
10726 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10727 else
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10730 do
10731 IFS=$as_save_IFS
10732 case $as_dir in #(((
10733 '') as_dir=./ ;;
10734 */) ;;
10735 *) as_dir=$as_dir/ ;;
10736 esac
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10739 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743 done
10744 done
10745 IFS=$as_save_IFS
10746
10747 fi
10748 fi
10749 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10750 if test -n "$ac_ct_DSYMUTIL"; then
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10752 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10753 else
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 printf "%s\n" "no" >&6; }
10756 fi
10757
10758 if test "x$ac_ct_DSYMUTIL" = x; then
10759 DSYMUTIL=":"
10760 else
10761 case $cross_compiling:$ac_tool_warned in
10762 yes:)
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10765 ac_tool_warned=yes ;;
10766 esac
10767 DSYMUTIL=$ac_ct_DSYMUTIL
10768 fi
10769 else
10770 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10771 fi
10772
10773 if test -n "$ac_tool_prefix"; then
10774 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10775 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 printf %s "checking for $ac_word... " >&6; }
10778 if test ${ac_cv_prog_NMEDIT+y}
10779 then :
10780 printf %s "(cached) " >&6
10781 else $as_nop
10782 if test -n "$NMEDIT"; then
10783 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10784 else
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788 IFS=$as_save_IFS
10789 case $as_dir in #(((
10790 '') as_dir=./ ;;
10791 */) ;;
10792 *) as_dir=$as_dir/ ;;
10793 esac
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10796 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10798 break 2
10799 fi
10800 done
10801 done
10802 IFS=$as_save_IFS
10803
10804 fi
10805 fi
10806 NMEDIT=$ac_cv_prog_NMEDIT
10807 if test -n "$NMEDIT"; then
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10809 printf "%s\n" "$NMEDIT" >&6; }
10810 else
10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 printf "%s\n" "no" >&6; }
10813 fi
10814
10815
10816 fi
10817 if test -z "$ac_cv_prog_NMEDIT"; then
10818 ac_ct_NMEDIT=$NMEDIT
10819 # Extract the first word of "nmedit", so it can be a program name with args.
10820 set dummy nmedit; ac_word=$2
10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 printf %s "checking for $ac_word... " >&6; }
10823 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10824 then :
10825 printf %s "(cached) " >&6
10826 else $as_nop
10827 if test -n "$ac_ct_NMEDIT"; then
10828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10829 else
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833 IFS=$as_save_IFS
10834 case $as_dir in #(((
10835 '') as_dir=./ ;;
10836 */) ;;
10837 *) as_dir=$as_dir/ ;;
10838 esac
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10843 break 2
10844 fi
10845 done
10846 done
10847 IFS=$as_save_IFS
10848
10849 fi
10850 fi
10851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10852 if test -n "$ac_ct_NMEDIT"; then
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10854 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10855 else
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 printf "%s\n" "no" >&6; }
10858 fi
10859
10860 if test "x$ac_ct_NMEDIT" = x; then
10861 NMEDIT=":"
10862 else
10863 case $cross_compiling:$ac_tool_warned in
10864 yes:)
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10867 ac_tool_warned=yes ;;
10868 esac
10869 NMEDIT=$ac_ct_NMEDIT
10870 fi
10871 else
10872 NMEDIT="$ac_cv_prog_NMEDIT"
10873 fi
10874
10875 if test -n "$ac_tool_prefix"; then
10876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 printf %s "checking for $ac_word... " >&6; }
10880 if test ${ac_cv_prog_LIPO+y}
10881 then :
10882 printf %s "(cached) " >&6
10883 else $as_nop
10884 if test -n "$LIPO"; then
10885 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10886 else
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10889 do
10890 IFS=$as_save_IFS
10891 case $as_dir in #(((
10892 '') as_dir=./ ;;
10893 */) ;;
10894 *) as_dir=$as_dir/ ;;
10895 esac
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902 done
10903 done
10904 IFS=$as_save_IFS
10905
10906 fi
10907 fi
10908 LIPO=$ac_cv_prog_LIPO
10909 if test -n "$LIPO"; then
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10911 printf "%s\n" "$LIPO" >&6; }
10912 else
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 printf "%s\n" "no" >&6; }
10915 fi
10916
10917
10918 fi
10919 if test -z "$ac_cv_prog_LIPO"; then
10920 ac_ct_LIPO=$LIPO
10921 # Extract the first word of "lipo", so it can be a program name with args.
10922 set dummy lipo; ac_word=$2
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 printf %s "checking for $ac_word... " >&6; }
10925 if test ${ac_cv_prog_ac_ct_LIPO+y}
10926 then :
10927 printf %s "(cached) " >&6
10928 else $as_nop
10929 if test -n "$ac_ct_LIPO"; then
10930 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935 IFS=$as_save_IFS
10936 case $as_dir in #(((
10937 '') as_dir=./ ;;
10938 */) ;;
10939 *) as_dir=$as_dir/ ;;
10940 esac
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_ac_ct_LIPO="lipo"
10944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947 done
10948 done
10949 IFS=$as_save_IFS
10950
10951 fi
10952 fi
10953 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10954 if test -n "$ac_ct_LIPO"; then
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10956 printf "%s\n" "$ac_ct_LIPO" >&6; }
10957 else
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 printf "%s\n" "no" >&6; }
10960 fi
10961
10962 if test "x$ac_ct_LIPO" = x; then
10963 LIPO=":"
10964 else
10965 case $cross_compiling:$ac_tool_warned in
10966 yes:)
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10969 ac_tool_warned=yes ;;
10970 esac
10971 LIPO=$ac_ct_LIPO
10972 fi
10973 else
10974 LIPO="$ac_cv_prog_LIPO"
10975 fi
10976
10977 if test -n "$ac_tool_prefix"; then
10978 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10979 set dummy ${ac_tool_prefix}otool; ac_word=$2
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981 printf %s "checking for $ac_word... " >&6; }
10982 if test ${ac_cv_prog_OTOOL+y}
10983 then :
10984 printf %s "(cached) " >&6
10985 else $as_nop
10986 if test -n "$OTOOL"; then
10987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10988 else
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10991 do
10992 IFS=$as_save_IFS
10993 case $as_dir in #(((
10994 '') as_dir=./ ;;
10995 */) ;;
10996 *) as_dir=$as_dir/ ;;
10997 esac
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11000 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004 done
11005 done
11006 IFS=$as_save_IFS
11007
11008 fi
11009 fi
11010 OTOOL=$ac_cv_prog_OTOOL
11011 if test -n "$OTOOL"; then
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11013 printf "%s\n" "$OTOOL" >&6; }
11014 else
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 printf "%s\n" "no" >&6; }
11017 fi
11018
11019
11020 fi
11021 if test -z "$ac_cv_prog_OTOOL"; then
11022 ac_ct_OTOOL=$OTOOL
11023 # Extract the first word of "otool", so it can be a program name with args.
11024 set dummy otool; ac_word=$2
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026 printf %s "checking for $ac_word... " >&6; }
11027 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11028 then :
11029 printf %s "(cached) " >&6
11030 else $as_nop
11031 if test -n "$ac_ct_OTOOL"; then
11032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11033 else
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11036 do
11037 IFS=$as_save_IFS
11038 case $as_dir in #(((
11039 '') as_dir=./ ;;
11040 */) ;;
11041 *) as_dir=$as_dir/ ;;
11042 esac
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11045 ac_cv_prog_ac_ct_OTOOL="otool"
11046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049 done
11050 done
11051 IFS=$as_save_IFS
11052
11053 fi
11054 fi
11055 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11056 if test -n "$ac_ct_OTOOL"; then
11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11058 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11059 else
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 printf "%s\n" "no" >&6; }
11062 fi
11063
11064 if test "x$ac_ct_OTOOL" = x; then
11065 OTOOL=":"
11066 else
11067 case $cross_compiling:$ac_tool_warned in
11068 yes:)
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11071 ac_tool_warned=yes ;;
11072 esac
11073 OTOOL=$ac_ct_OTOOL
11074 fi
11075 else
11076 OTOOL="$ac_cv_prog_OTOOL"
11077 fi
11078
11079 if test -n "$ac_tool_prefix"; then
11080 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11081 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 printf %s "checking for $ac_word... " >&6; }
11084 if test ${ac_cv_prog_OTOOL64+y}
11085 then :
11086 printf %s "(cached) " >&6
11087 else $as_nop
11088 if test -n "$OTOOL64"; then
11089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11090 else
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094 IFS=$as_save_IFS
11095 case $as_dir in #(((
11096 '') as_dir=./ ;;
11097 */) ;;
11098 *) as_dir=$as_dir/ ;;
11099 esac
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106 done
11107 done
11108 IFS=$as_save_IFS
11109
11110 fi
11111 fi
11112 OTOOL64=$ac_cv_prog_OTOOL64
11113 if test -n "$OTOOL64"; then
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11115 printf "%s\n" "$OTOOL64" >&6; }
11116 else
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 printf "%s\n" "no" >&6; }
11119 fi
11120
11121
11122 fi
11123 if test -z "$ac_cv_prog_OTOOL64"; then
11124 ac_ct_OTOOL64=$OTOOL64
11125 # Extract the first word of "otool64", so it can be a program name with args.
11126 set dummy otool64; ac_word=$2
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 printf %s "checking for $ac_word... " >&6; }
11129 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11130 then :
11131 printf %s "(cached) " >&6
11132 else $as_nop
11133 if test -n "$ac_ct_OTOOL64"; then
11134 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11135 else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11138 do
11139 IFS=$as_save_IFS
11140 case $as_dir in #(((
11141 '') as_dir=./ ;;
11142 */) ;;
11143 *) as_dir=$as_dir/ ;;
11144 esac
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_ac_ct_OTOOL64="otool64"
11148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151 done
11152 done
11153 IFS=$as_save_IFS
11154
11155 fi
11156 fi
11157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11158 if test -n "$ac_ct_OTOOL64"; then
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11160 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11161 else
11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 printf "%s\n" "no" >&6; }
11164 fi
11165
11166 if test "x$ac_ct_OTOOL64" = x; then
11167 OTOOL64=":"
11168 else
11169 case $cross_compiling:$ac_tool_warned in
11170 yes:)
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11173 ac_tool_warned=yes ;;
11174 esac
11175 OTOOL64=$ac_ct_OTOOL64
11176 fi
11177 else
11178 OTOOL64="$ac_cv_prog_OTOOL64"
11179 fi
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11208 printf %s "checking for -single_module linker flag... " >&6; }
11209 if test ${lt_cv_apple_cc_single_mod+y}
11210 then :
11211 printf %s "(cached) " >&6
11212 else $as_nop
11213 lt_cv_apple_cc_single_mod=no
11214 if test -z "$LT_MULTI_MODULE"; then
11215 # By default we will add the -single_module flag. You can override
11216 # by either setting the environment variable LT_MULTI_MODULE
11217 # non-empty at configure time, or by adding -multi_module to the
11218 # link flags.
11219 rm -rf libconftest.dylib*
11220 echo "int foo(void){return 1;}" > conftest.c
11221 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11222 -dynamiclib -Wl,-single_module conftest.c" >&5
11223 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11224 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11225 _lt_result=$?
11226 # If there is a non-empty error log, and "single_module"
11227 # appears in it, assume the flag caused a linker warning
11228 if test -s conftest.err && $GREP single_module conftest.err; then
11229 cat conftest.err >&5
11230 # Otherwise, if the output was created with a 0 exit code from
11231 # the compiler, it worked.
11232 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11233 lt_cv_apple_cc_single_mod=yes
11234 else
11235 cat conftest.err >&5
11236 fi
11237 rm -rf libconftest.dylib*
11238 rm -f conftest.*
11239 fi
11240 fi
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11242 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11243
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11245 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11246 if test ${lt_cv_ld_exported_symbols_list+y}
11247 then :
11248 printf %s "(cached) " >&6
11249 else $as_nop
11250 lt_cv_ld_exported_symbols_list=no
11251 save_LDFLAGS=$LDFLAGS
11252 echo "_main" > conftest.sym
11253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256
11257 int
11258 main (void)
11259 {
11260
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_link "$LINENO"
11266 then :
11267 lt_cv_ld_exported_symbols_list=yes
11268 else $as_nop
11269 lt_cv_ld_exported_symbols_list=no
11270 fi
11271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LDFLAGS=$save_LDFLAGS
11274
11275 fi
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11277 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11278
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11280 printf %s "checking for -force_load linker flag... " >&6; }
11281 if test ${lt_cv_ld_force_load+y}
11282 then :
11283 printf %s "(cached) " >&6
11284 else $as_nop
11285 lt_cv_ld_force_load=no
11286 cat > conftest.c << _LT_EOF
11287 int forced_loaded() { return 2;}
11288 _LT_EOF
11289 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11290 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11291 echo "$AR cr libconftest.a conftest.o" >&5
11292 $AR cr libconftest.a conftest.o 2>&5
11293 echo "$RANLIB libconftest.a" >&5
11294 $RANLIB libconftest.a 2>&5
11295 cat > conftest.c << _LT_EOF
11296 int main() { return 0;}
11297 _LT_EOF
11298 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11299 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11300 _lt_result=$?
11301 if test -s conftest.err && $GREP force_load conftest.err; then
11302 cat conftest.err >&5
11303 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11304 lt_cv_ld_force_load=yes
11305 else
11306 cat conftest.err >&5
11307 fi
11308 rm -f conftest.err libconftest.a conftest conftest.c
11309 rm -rf conftest.dSYM
11310
11311 fi
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11313 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11314 case $host_os in
11315 rhapsody* | darwin1.[012])
11316 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11317 darwin1.*)
11318 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11319 darwin*) # darwin 5.x on
11320 # if running on 10.5 or later, the deployment target defaults
11321 # to the OS version, if on x86, and 10.4, the deployment
11322 # target defaults to 10.4. Don't you love it?
11323 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11324 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11325 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11326 10.[012][,.]*)
11327 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11328 10.*|11.*)
11329 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11330 esac
11331 ;;
11332 esac
11333 if test yes = "$lt_cv_apple_cc_single_mod"; then
11334 _lt_dar_single_mod='$single_module'
11335 fi
11336 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11337 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11338 else
11339 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11340 fi
11341 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11342 _lt_dsymutil='~$DSYMUTIL $lib || :'
11343 else
11344 _lt_dsymutil=
11345 fi
11346 ;;
11347 esac
11348
11349 # func_munge_path_list VARIABLE PATH
11350 # -----------------------------------
11351 # VARIABLE is name of variable containing _space_ separated list of
11352 # directories to be munged by the contents of PATH, which is string
11353 # having a format:
11354 # "DIR[:DIR]:"
11355 # string "DIR[ DIR]" will be prepended to VARIABLE
11356 # ":DIR[:DIR]"
11357 # string "DIR[ DIR]" will be appended to VARIABLE
11358 # "DIRP[:DIRP]::[DIRA:]DIRA"
11359 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11360 # "DIRA[ DIRA]" will be appended to VARIABLE
11361 # "DIR[:DIR]"
11362 # VARIABLE will be replaced by "DIR[ DIR]"
11363 func_munge_path_list ()
11364 {
11365 case x$2 in
11366 x)
11367 ;;
11368 *:)
11369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11370 ;;
11371 x:*)
11372 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11373 ;;
11374 *::*)
11375 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11376 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11377 ;;
11378 *)
11379 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11380 ;;
11381 esac
11382 }
11383
11384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11385 "
11386 if test "x$ac_cv_header_dlfcn_h" = xyes
11387 then :
11388 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11389
11390 fi
11391
11392
11393
11394
11395
11396 # Set options
11397 enable_win32_dll=yes
11398
11399 case $host in
11400 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11401 if test -n "$ac_tool_prefix"; then
11402 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11403 set dummy ${ac_tool_prefix}as; ac_word=$2
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405 printf %s "checking for $ac_word... " >&6; }
11406 if test ${ac_cv_prog_AS+y}
11407 then :
11408 printf %s "(cached) " >&6
11409 else $as_nop
11410 if test -n "$AS"; then
11411 ac_cv_prog_AS="$AS" # Let the user override the test.
11412 else
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11415 do
11416 IFS=$as_save_IFS
11417 case $as_dir in #(((
11418 '') as_dir=./ ;;
11419 */) ;;
11420 *) as_dir=$as_dir/ ;;
11421 esac
11422 for ac_exec_ext in '' $ac_executable_extensions; do
11423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11424 ac_cv_prog_AS="${ac_tool_prefix}as"
11425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11426 break 2
11427 fi
11428 done
11429 done
11430 IFS=$as_save_IFS
11431
11432 fi
11433 fi
11434 AS=$ac_cv_prog_AS
11435 if test -n "$AS"; then
11436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11437 printf "%s\n" "$AS" >&6; }
11438 else
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 printf "%s\n" "no" >&6; }
11441 fi
11442
11443
11444 fi
11445 if test -z "$ac_cv_prog_AS"; then
11446 ac_ct_AS=$AS
11447 # Extract the first word of "as", so it can be a program name with args.
11448 set dummy as; ac_word=$2
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 printf %s "checking for $ac_word... " >&6; }
11451 if test ${ac_cv_prog_ac_ct_AS+y}
11452 then :
11453 printf %s "(cached) " >&6
11454 else $as_nop
11455 if test -n "$ac_ct_AS"; then
11456 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11457 else
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11460 do
11461 IFS=$as_save_IFS
11462 case $as_dir in #(((
11463 '') as_dir=./ ;;
11464 */) ;;
11465 *) as_dir=$as_dir/ ;;
11466 esac
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11469 ac_cv_prog_ac_ct_AS="as"
11470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11471 break 2
11472 fi
11473 done
11474 done
11475 IFS=$as_save_IFS
11476
11477 fi
11478 fi
11479 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11480 if test -n "$ac_ct_AS"; then
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11482 printf "%s\n" "$ac_ct_AS" >&6; }
11483 else
11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 printf "%s\n" "no" >&6; }
11486 fi
11487
11488 if test "x$ac_ct_AS" = x; then
11489 AS="false"
11490 else
11491 case $cross_compiling:$ac_tool_warned in
11492 yes:)
11493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11494 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11495 ac_tool_warned=yes ;;
11496 esac
11497 AS=$ac_ct_AS
11498 fi
11499 else
11500 AS="$ac_cv_prog_AS"
11501 fi
11502
11503 if test -n "$ac_tool_prefix"; then
11504 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11505 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 printf %s "checking for $ac_word... " >&6; }
11508 if test ${ac_cv_prog_DLLTOOL+y}
11509 then :
11510 printf %s "(cached) " >&6
11511 else $as_nop
11512 if test -n "$DLLTOOL"; then
11513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11514 else
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518 IFS=$as_save_IFS
11519 case $as_dir in #(((
11520 '') as_dir=./ ;;
11521 */) ;;
11522 *) as_dir=$as_dir/ ;;
11523 esac
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11528 break 2
11529 fi
11530 done
11531 done
11532 IFS=$as_save_IFS
11533
11534 fi
11535 fi
11536 DLLTOOL=$ac_cv_prog_DLLTOOL
11537 if test -n "$DLLTOOL"; then
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11539 printf "%s\n" "$DLLTOOL" >&6; }
11540 else
11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 printf "%s\n" "no" >&6; }
11543 fi
11544
11545
11546 fi
11547 if test -z "$ac_cv_prog_DLLTOOL"; then
11548 ac_ct_DLLTOOL=$DLLTOOL
11549 # Extract the first word of "dlltool", so it can be a program name with args.
11550 set dummy dlltool; ac_word=$2
11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11552 printf %s "checking for $ac_word... " >&6; }
11553 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11554 then :
11555 printf %s "(cached) " >&6
11556 else $as_nop
11557 if test -n "$ac_ct_DLLTOOL"; then
11558 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563 IFS=$as_save_IFS
11564 case $as_dir in #(((
11565 '') as_dir=./ ;;
11566 */) ;;
11567 *) as_dir=$as_dir/ ;;
11568 esac
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11582 if test -n "$ac_ct_DLLTOOL"; then
11583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11584 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11585 else
11586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 printf "%s\n" "no" >&6; }
11588 fi
11589
11590 if test "x$ac_ct_DLLTOOL" = x; then
11591 DLLTOOL="false"
11592 else
11593 case $cross_compiling:$ac_tool_warned in
11594 yes:)
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11596 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11597 ac_tool_warned=yes ;;
11598 esac
11599 DLLTOOL=$ac_ct_DLLTOOL
11600 fi
11601 else
11602 DLLTOOL="$ac_cv_prog_DLLTOOL"
11603 fi
11604
11605 if test -n "$ac_tool_prefix"; then
11606 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11607 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 printf %s "checking for $ac_word... " >&6; }
11610 if test ${ac_cv_prog_OBJDUMP+y}
11611 then :
11612 printf %s "(cached) " >&6
11613 else $as_nop
11614 if test -n "$OBJDUMP"; then
11615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620 IFS=$as_save_IFS
11621 case $as_dir in #(((
11622 '') as_dir=./ ;;
11623 */) ;;
11624 *) as_dir=$as_dir/ ;;
11625 esac
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632 done
11633 done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 OBJDUMP=$ac_cv_prog_OBJDUMP
11639 if test -n "$OBJDUMP"; then
11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11641 printf "%s\n" "$OBJDUMP" >&6; }
11642 else
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 printf "%s\n" "no" >&6; }
11645 fi
11646
11647
11648 fi
11649 if test -z "$ac_cv_prog_OBJDUMP"; then
11650 ac_ct_OBJDUMP=$OBJDUMP
11651 # Extract the first word of "objdump", so it can be a program name with args.
11652 set dummy objdump; ac_word=$2
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 printf %s "checking for $ac_word... " >&6; }
11655 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11656 then :
11657 printf %s "(cached) " >&6
11658 else $as_nop
11659 if test -n "$ac_ct_OBJDUMP"; then
11660 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665 IFS=$as_save_IFS
11666 case $as_dir in #(((
11667 '') as_dir=./ ;;
11668 */) ;;
11669 *) as_dir=$as_dir/ ;;
11670 esac
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11673 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11675 break 2
11676 fi
11677 done
11678 done
11679 IFS=$as_save_IFS
11680
11681 fi
11682 fi
11683 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11684 if test -n "$ac_ct_OBJDUMP"; then
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11686 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11687 else
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 printf "%s\n" "no" >&6; }
11690 fi
11691
11692 if test "x$ac_ct_OBJDUMP" = x; then
11693 OBJDUMP="false"
11694 else
11695 case $cross_compiling:$ac_tool_warned in
11696 yes:)
11697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11699 ac_tool_warned=yes ;;
11700 esac
11701 OBJDUMP=$ac_ct_OBJDUMP
11702 fi
11703 else
11704 OBJDUMP="$ac_cv_prog_OBJDUMP"
11705 fi
11706
11707 ;;
11708 esac
11709
11710 test -z "$AS" && AS=as
11711
11712
11713
11714
11715
11716 test -z "$DLLTOOL" && DLLTOOL=dlltool
11717
11718
11719
11720
11721
11722 test -z "$OBJDUMP" && OBJDUMP=objdump
11723
11724
11725
11726
11727 # Check whether --enable-static was given.
11728 if test ${enable_static+y}
11729 then :
11730 enableval=$enable_static; p=${PACKAGE-default}
11731 case $enableval in
11732 yes) enable_static=yes ;;
11733 no) enable_static=no ;;
11734 *)
11735 enable_static=no
11736 # Look at the argument we got. We use all the common list separators.
11737 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11738 for pkg in $enableval; do
11739 IFS=$lt_save_ifs
11740 if test "X$pkg" = "X$p"; then
11741 enable_static=yes
11742 fi
11743 done
11744 IFS=$lt_save_ifs
11745 ;;
11746 esac
11747 else $as_nop
11748 enable_static=no
11749 fi
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 enable_dlopen=no
11761
11762
11763
11764 # Check whether --enable-shared was given.
11765 if test ${enable_shared+y}
11766 then :
11767 enableval=$enable_shared; p=${PACKAGE-default}
11768 case $enableval in
11769 yes) enable_shared=yes ;;
11770 no) enable_shared=no ;;
11771 *)
11772 enable_shared=no
11773 # Look at the argument we got. We use all the common list separators.
11774 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11775 for pkg in $enableval; do
11776 IFS=$lt_save_ifs
11777 if test "X$pkg" = "X$p"; then
11778 enable_shared=yes
11779 fi
11780 done
11781 IFS=$lt_save_ifs
11782 ;;
11783 esac
11784 else $as_nop
11785 enable_shared=yes
11786 fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798 # Check whether --with-pic was given.
11799 if test ${with_pic+y}
11800 then :
11801 withval=$with_pic; lt_p=${PACKAGE-default}
11802 case $withval in
11803 yes|no) pic_mode=$withval ;;
11804 *)
11805 pic_mode=default
11806 # Look at the argument we got. We use all the common list separators.
11807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11808 for lt_pkg in $withval; do
11809 IFS=$lt_save_ifs
11810 if test "X$lt_pkg" = "X$lt_p"; then
11811 pic_mode=yes
11812 fi
11813 done
11814 IFS=$lt_save_ifs
11815 ;;
11816 esac
11817 else $as_nop
11818 pic_mode=default
11819 fi
11820
11821
11822
11823
11824
11825
11826
11827
11828 # Check whether --enable-fast-install was given.
11829 if test ${enable_fast_install+y}
11830 then :
11831 enableval=$enable_fast_install; p=${PACKAGE-default}
11832 case $enableval in
11833 yes) enable_fast_install=yes ;;
11834 no) enable_fast_install=no ;;
11835 *)
11836 enable_fast_install=no
11837 # Look at the argument we got. We use all the common list separators.
11838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11839 for pkg in $enableval; do
11840 IFS=$lt_save_ifs
11841 if test "X$pkg" = "X$p"; then
11842 enable_fast_install=yes
11843 fi
11844 done
11845 IFS=$lt_save_ifs
11846 ;;
11847 esac
11848 else $as_nop
11849 enable_fast_install=yes
11850 fi
11851
11852
11853
11854
11855
11856
11857
11858
11859 shared_archive_member_spec=
11860 case $host,$enable_shared in
11861 power*-*-aix[5-9]*,yes)
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11863 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11864
11865 # Check whether --with-aix-soname was given.
11866 if test ${with_aix_soname+y}
11867 then :
11868 withval=$with_aix_soname; case $withval in
11869 aix|svr4|both)
11870 ;;
11871 *)
11872 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11873 ;;
11874 esac
11875 lt_cv_with_aix_soname=$with_aix_soname
11876 else $as_nop
11877 if test ${lt_cv_with_aix_soname+y}
11878 then :
11879 printf %s "(cached) " >&6
11880 else $as_nop
11881 lt_cv_with_aix_soname=aix
11882 fi
11883
11884 with_aix_soname=$lt_cv_with_aix_soname
11885 fi
11886
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11888 printf "%s\n" "$with_aix_soname" >&6; }
11889 if test aix != "$with_aix_soname"; then
11890 # For the AIX way of multilib, we name the shared archive member
11891 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11892 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11893 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11894 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11895 if test 64 = "${OBJECT_MODE-32}"; then
11896 shared_archive_member_spec=shr_64
11897 else
11898 shared_archive_member_spec=shr
11899 fi
11900 fi
11901 ;;
11902 *)
11903 with_aix_soname=aix
11904 ;;
11905 esac
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916 # This can be used to rebuild libtool when needed
11917 LIBTOOL_DEPS=$ltmain
11918
11919 # Always use our own libtool.
11920 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951 test -z "$LN_S" && LN_S="ln -s"
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966 if test -n "${ZSH_VERSION+set}"; then
11967 setopt NO_GLOB_SUBST
11968 fi
11969
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11971 printf %s "checking for objdir... " >&6; }
11972 if test ${lt_cv_objdir+y}
11973 then :
11974 printf %s "(cached) " >&6
11975 else $as_nop
11976 rm -f .libs 2>/dev/null
11977 mkdir .libs 2>/dev/null
11978 if test -d .libs; then
11979 lt_cv_objdir=.libs
11980 else
11981 # MS-DOS does not allow filenames that begin with a dot.
11982 lt_cv_objdir=_libs
11983 fi
11984 rmdir .libs 2>/dev/null
11985 fi
11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11987 printf "%s\n" "$lt_cv_objdir" >&6; }
11988 objdir=$lt_cv_objdir
11989
11990
11991
11992
11993
11994 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11995
11996
11997
11998
11999 case $host_os in
12000 aix3*)
12001 # AIX sometimes has problems with the GCC collect2 program. For some
12002 # reason, if we set the COLLECT_NAMES environment variable, the problems
12003 # vanish in a puff of smoke.
12004 if test set != "${COLLECT_NAMES+set}"; then
12005 COLLECT_NAMES=
12006 export COLLECT_NAMES
12007 fi
12008 ;;
12009 esac
12010
12011 # Global variables:
12012 ofile=libtool
12013 can_build_shared=yes
12014
12015 # All known linkers require a '.a' archive for static linking (except MSVC,
12016 # which needs '.lib').
12017 libext=a
12018
12019 with_gnu_ld=$lt_cv_prog_gnu_ld
12020
12021 old_CC=$CC
12022 old_CFLAGS=$CFLAGS
12023
12024 # Set sane defaults for various variables
12025 test -z "$CC" && CC=cc
12026 test -z "$LTCC" && LTCC=$CC
12027 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12028 test -z "$LD" && LD=ld
12029 test -z "$ac_objext" && ac_objext=o
12030
12031 func_cc_basename $compiler
12032 cc_basename=$func_cc_basename_result
12033
12034
12035 # Only perform the check for file, if the check method requires it
12036 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12037 case $deplibs_check_method in
12038 file_magic*)
12039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12041 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12042 if test ${lt_cv_path_MAGIC_CMD+y}
12043 then :
12044 printf %s "(cached) " >&6
12045 else $as_nop
12046 case $MAGIC_CMD in
12047 [\\/*] | ?:[\\/]*)
12048 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12049 ;;
12050 *)
12051 lt_save_MAGIC_CMD=$MAGIC_CMD
12052 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12054 for ac_dir in $ac_dummy; do
12055 IFS=$lt_save_ifs
12056 test -z "$ac_dir" && ac_dir=.
12057 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12058 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12059 if test -n "$file_magic_test_file"; then
12060 case $deplibs_check_method in
12061 "file_magic "*)
12062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12063 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12065 $EGREP "$file_magic_regex" > /dev/null; then
12066 :
12067 else
12068 cat <<_LT_EOF 1>&2
12069
12070 *** Warning: the command libtool uses to detect shared libraries,
12071 *** $file_magic_cmd, produces output that libtool cannot recognize.
12072 *** The result is that libtool may fail to recognize shared libraries
12073 *** as such. This will affect the creation of libtool libraries that
12074 *** depend on shared libraries, but programs linked with such libtool
12075 *** libraries will work regardless of this problem. Nevertheless, you
12076 *** may want to report the problem to your system manager and/or to
12077 *** [email protected]
12078
12079 _LT_EOF
12080 fi ;;
12081 esac
12082 fi
12083 break
12084 fi
12085 done
12086 IFS=$lt_save_ifs
12087 MAGIC_CMD=$lt_save_MAGIC_CMD
12088 ;;
12089 esac
12090 fi
12091
12092 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12093 if test -n "$MAGIC_CMD"; then
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12095 printf "%s\n" "$MAGIC_CMD" >&6; }
12096 else
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 printf "%s\n" "no" >&6; }
12099 fi
12100
12101
12102
12103
12104
12105 if test -z "$lt_cv_path_MAGIC_CMD"; then
12106 if test -n "$ac_tool_prefix"; then
12107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12108 printf %s "checking for file... " >&6; }
12109 if test ${lt_cv_path_MAGIC_CMD+y}
12110 then :
12111 printf %s "(cached) " >&6
12112 else $as_nop
12113 case $MAGIC_CMD in
12114 [\\/*] | ?:[\\/]*)
12115 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12116 ;;
12117 *)
12118 lt_save_MAGIC_CMD=$MAGIC_CMD
12119 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12121 for ac_dir in $ac_dummy; do
12122 IFS=$lt_save_ifs
12123 test -z "$ac_dir" && ac_dir=.
12124 if test -f "$ac_dir/file"; then
12125 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12126 if test -n "$file_magic_test_file"; then
12127 case $deplibs_check_method in
12128 "file_magic "*)
12129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12130 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12132 $EGREP "$file_magic_regex" > /dev/null; then
12133 :
12134 else
12135 cat <<_LT_EOF 1>&2
12136
12137 *** Warning: the command libtool uses to detect shared libraries,
12138 *** $file_magic_cmd, produces output that libtool cannot recognize.
12139 *** The result is that libtool may fail to recognize shared libraries
12140 *** as such. This will affect the creation of libtool libraries that
12141 *** depend on shared libraries, but programs linked with such libtool
12142 *** libraries will work regardless of this problem. Nevertheless, you
12143 *** may want to report the problem to your system manager and/or to
12144 *** [email protected]
12145
12146 _LT_EOF
12147 fi ;;
12148 esac
12149 fi
12150 break
12151 fi
12152 done
12153 IFS=$lt_save_ifs
12154 MAGIC_CMD=$lt_save_MAGIC_CMD
12155 ;;
12156 esac
12157 fi
12158
12159 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12160 if test -n "$MAGIC_CMD"; then
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12162 printf "%s\n" "$MAGIC_CMD" >&6; }
12163 else
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 printf "%s\n" "no" >&6; }
12166 fi
12167
12168
12169 else
12170 MAGIC_CMD=:
12171 fi
12172 fi
12173
12174 fi
12175 ;;
12176 esac
12177
12178 # Use C for the default configuration in the libtool script
12179
12180 lt_save_CC=$CC
12181 ac_ext=c
12182 ac_cpp='$CPP $CPPFLAGS'
12183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186
12187
12188 # Source file extension for C test sources.
12189 ac_ext=c
12190
12191 # Object file extension for compiled C test sources.
12192 objext=o
12193 objext=$objext
12194
12195 # Code to be used in simple compile tests
12196 lt_simple_compile_test_code="int some_variable = 0;"
12197
12198 # Code to be used in simple link tests
12199 lt_simple_link_test_code='int main(){return(0);}'
12200
12201
12202
12203
12204
12205
12206
12207 # If no C compiler was specified, use CC.
12208 LTCC=${LTCC-"$CC"}
12209
12210 # If no C compiler flags were specified, use CFLAGS.
12211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12212
12213 # Allow CC to be a program name with arguments.
12214 compiler=$CC
12215
12216 # Save the default compiler, since it gets overwritten when the other
12217 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12218 compiler_DEFAULT=$CC
12219
12220 # save warnings/boilerplate of simple test code
12221 ac_outfile=conftest.$ac_objext
12222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12224 _lt_compiler_boilerplate=`cat conftest.err`
12225 $RM conftest*
12226
12227 ac_outfile=conftest.$ac_objext
12228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230 _lt_linker_boilerplate=`cat conftest.err`
12231 $RM -r conftest*
12232
12233
12234 ## CAVEAT EMPTOR:
12235 ## There is no encapsulation within the following macros, do not change
12236 ## the running order or otherwise move them around unless you know exactly
12237 ## what you are doing...
12238 if test -n "$compiler"; then
12239
12240 lt_prog_compiler_no_builtin_flag=
12241
12242 if test yes = "$GCC"; then
12243 case $cc_basename in
12244 nvcc*)
12245 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12246 *)
12247 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12248 esac
12249
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12251 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12252 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12253 then :
12254 printf %s "(cached) " >&6
12255 else $as_nop
12256 lt_cv_prog_compiler_rtti_exceptions=no
12257 ac_outfile=conftest.$ac_objext
12258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12259 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12260 # Insert the option either (1) after the last *FLAGS variable, or
12261 # (2) before a word containing "conftest.", or (3) at the end.
12262 # Note that $ac_compile itself does not contain backslashes and begins
12263 # with a dollar sign (not a hyphen), so the echo should work correctly.
12264 # The option is referenced via a variable to avoid confusing sed.
12265 lt_compile=`echo "$ac_compile" | $SED \
12266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12268 -e 's:$: $lt_compiler_flag:'`
12269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12270 (eval "$lt_compile" 2>conftest.err)
12271 ac_status=$?
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 if (exit $ac_status) && test -s "$ac_outfile"; then
12275 # The compiler can only warn and ignore the option if not recognized
12276 # So say no if there are warnings other than the usual output.
12277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12280 lt_cv_prog_compiler_rtti_exceptions=yes
12281 fi
12282 fi
12283 $RM conftest*
12284
12285 fi
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12287 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12288
12289 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12290 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12291 else
12292 :
12293 fi
12294
12295 fi
12296
12297
12298
12299
12300
12301
12302 lt_prog_compiler_wl=
12303 lt_prog_compiler_pic=
12304 lt_prog_compiler_static=
12305
12306
12307 if test yes = "$GCC"; then
12308 lt_prog_compiler_wl='-Wl,'
12309 lt_prog_compiler_static='-static'
12310
12311 case $host_os in
12312 aix*)
12313 # All AIX code is PIC.
12314 if test ia64 = "$host_cpu"; then
12315 # AIX 5 now supports IA64 processor
12316 lt_prog_compiler_static='-Bstatic'
12317 fi
12318 lt_prog_compiler_pic='-fPIC'
12319 ;;
12320
12321 amigaos*)
12322 case $host_cpu in
12323 powerpc)
12324 # see comment about AmigaOS4 .so support
12325 lt_prog_compiler_pic='-fPIC'
12326 ;;
12327 m68k)
12328 # FIXME: we need at least 68020 code to build shared libraries, but
12329 # adding the '-m68020' flag to GCC prevents building anything better,
12330 # like '-m68040'.
12331 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12332 ;;
12333 esac
12334 ;;
12335
12336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12337 # PIC is the default for these OSes.
12338 ;;
12339
12340 mingw* | cygwin* | pw32* | os2* | cegcc*)
12341 # This hack is so that the source file can tell whether it is being
12342 # built for inclusion in a dll (and should export symbols for example).
12343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12344 # (--disable-auto-import) libraries
12345 lt_prog_compiler_pic='-DDLL_EXPORT'
12346 case $host_os in
12347 os2*)
12348 lt_prog_compiler_static='$wl-static'
12349 ;;
12350 esac
12351 ;;
12352
12353 darwin* | rhapsody*)
12354 # PIC is the default on this platform
12355 # Common symbols not allowed in MH_DYLIB files
12356 lt_prog_compiler_pic='-fno-common'
12357 ;;
12358
12359 haiku*)
12360 # PIC is the default for Haiku.
12361 # The "-static" flag exists, but is broken.
12362 lt_prog_compiler_static=
12363 ;;
12364
12365 hpux*)
12366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12368 # sets the default TLS model and affects inlining.
12369 case $host_cpu in
12370 hppa*64*)
12371 # +Z the default
12372 ;;
12373 *)
12374 lt_prog_compiler_pic='-fPIC'
12375 ;;
12376 esac
12377 ;;
12378
12379 interix[3-9]*)
12380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12381 # Instead, we relocate shared libraries at runtime.
12382 ;;
12383
12384 msdosdjgpp*)
12385 # Just because we use GCC doesn't mean we suddenly get shared libraries
12386 # on systems that don't support them.
12387 lt_prog_compiler_can_build_shared=no
12388 enable_shared=no
12389 ;;
12390
12391 *nto* | *qnx*)
12392 # QNX uses GNU C++, but need to define -shared option too, otherwise
12393 # it will coredump.
12394 lt_prog_compiler_pic='-fPIC -shared'
12395 ;;
12396
12397 sysv4*MP*)
12398 if test -d /usr/nec; then
12399 lt_prog_compiler_pic=-Kconform_pic
12400 fi
12401 ;;
12402
12403 *)
12404 lt_prog_compiler_pic='-fPIC'
12405 ;;
12406 esac
12407
12408 case $cc_basename in
12409 nvcc*) # Cuda Compiler Driver 2.2
12410 lt_prog_compiler_wl='-Xlinker '
12411 if test -n "$lt_prog_compiler_pic"; then
12412 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12413 fi
12414 ;;
12415 esac
12416 else
12417 # PORTME Check for flag to pass linker flags through the system compiler.
12418 case $host_os in
12419 aix*)
12420 lt_prog_compiler_wl='-Wl,'
12421 if test ia64 = "$host_cpu"; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static='-Bstatic'
12424 else
12425 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12426 fi
12427 ;;
12428
12429 darwin* | rhapsody*)
12430 # PIC is the default on this platform
12431 # Common symbols not allowed in MH_DYLIB files
12432 lt_prog_compiler_pic='-fno-common'
12433 case $cc_basename in
12434 nagfor*)
12435 # NAG Fortran compiler
12436 lt_prog_compiler_wl='-Wl,-Wl,,'
12437 lt_prog_compiler_pic='-PIC'
12438 lt_prog_compiler_static='-Bstatic'
12439 ;;
12440 esac
12441 ;;
12442
12443 mingw* | cygwin* | pw32* | os2* | cegcc*)
12444 # This hack is so that the source file can tell whether it is being
12445 # built for inclusion in a dll (and should export symbols for example).
12446 lt_prog_compiler_pic='-DDLL_EXPORT'
12447 case $host_os in
12448 os2*)
12449 lt_prog_compiler_static='$wl-static'
12450 ;;
12451 esac
12452 ;;
12453
12454 hpux9* | hpux10* | hpux11*)
12455 lt_prog_compiler_wl='-Wl,'
12456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12457 # not for PA HP-UX.
12458 case $host_cpu in
12459 hppa*64*|ia64*)
12460 # +Z the default
12461 ;;
12462 *)
12463 lt_prog_compiler_pic='+Z'
12464 ;;
12465 esac
12466 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12467 lt_prog_compiler_static='$wl-a ${wl}archive'
12468 ;;
12469
12470 irix5* | irix6* | nonstopux*)
12471 lt_prog_compiler_wl='-Wl,'
12472 # PIC (with -KPIC) is the default.
12473 lt_prog_compiler_static='-non_shared'
12474 ;;
12475
12476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12477 case $cc_basename in
12478 # old Intel for x86_64, which still supported -KPIC.
12479 ecc*)
12480 lt_prog_compiler_wl='-Wl,'
12481 lt_prog_compiler_pic='-KPIC'
12482 lt_prog_compiler_static='-static'
12483 ;;
12484 # flang / f18. f95 an alias for gfortran or flang on Debian
12485 flang* | f18* | f95*)
12486 lt_prog_compiler_wl='-Wl,'
12487 lt_prog_compiler_pic='-fPIC'
12488 lt_prog_compiler_static='-static'
12489 ;;
12490 # icc used to be incompatible with GCC.
12491 # ICC 10 doesn't accept -KPIC any more.
12492 icc* | ifort*)
12493 lt_prog_compiler_wl='-Wl,'
12494 lt_prog_compiler_pic='-fPIC'
12495 lt_prog_compiler_static='-static'
12496 ;;
12497 # Lahey Fortran 8.1.
12498 lf95*)
12499 lt_prog_compiler_wl='-Wl,'
12500 lt_prog_compiler_pic='--shared'
12501 lt_prog_compiler_static='--static'
12502 ;;
12503 nagfor*)
12504 # NAG Fortran compiler
12505 lt_prog_compiler_wl='-Wl,-Wl,,'
12506 lt_prog_compiler_pic='-PIC'
12507 lt_prog_compiler_static='-Bstatic'
12508 ;;
12509 tcc*)
12510 # Fabrice Bellard et al's Tiny C Compiler
12511 lt_prog_compiler_wl='-Wl,'
12512 lt_prog_compiler_pic='-fPIC'
12513 lt_prog_compiler_static='-static'
12514 ;;
12515 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12516 # Portland Group compilers (*not* the Pentium gcc compiler,
12517 # which looks to be a dead project)
12518 lt_prog_compiler_wl='-Wl,'
12519 lt_prog_compiler_pic='-fpic'
12520 lt_prog_compiler_static='-Bstatic'
12521 ;;
12522 ccc*)
12523 lt_prog_compiler_wl='-Wl,'
12524 # All Alpha code is PIC.
12525 lt_prog_compiler_static='-non_shared'
12526 ;;
12527 xl* | bgxl* | bgf* | mpixl*)
12528 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12529 lt_prog_compiler_wl='-Wl,'
12530 lt_prog_compiler_pic='-qpic'
12531 lt_prog_compiler_static='-qstaticlink'
12532 ;;
12533 *)
12534 case `$CC -V 2>&1 | sed 5q` in
12535 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12537 lt_prog_compiler_pic='-KPIC'
12538 lt_prog_compiler_static='-Bstatic'
12539 lt_prog_compiler_wl=''
12540 ;;
12541 *Sun\ F* | *Sun*Fortran*)
12542 lt_prog_compiler_pic='-KPIC'
12543 lt_prog_compiler_static='-Bstatic'
12544 lt_prog_compiler_wl='-Qoption ld '
12545 ;;
12546 *Sun\ C*)
12547 # Sun C 5.9
12548 lt_prog_compiler_pic='-KPIC'
12549 lt_prog_compiler_static='-Bstatic'
12550 lt_prog_compiler_wl='-Wl,'
12551 ;;
12552 *Intel*\ [CF]*Compiler*)
12553 lt_prog_compiler_wl='-Wl,'
12554 lt_prog_compiler_pic='-fPIC'
12555 lt_prog_compiler_static='-static'
12556 ;;
12557 *Portland\ Group*)
12558 lt_prog_compiler_wl='-Wl,'
12559 lt_prog_compiler_pic='-fpic'
12560 lt_prog_compiler_static='-Bstatic'
12561 ;;
12562 esac
12563 ;;
12564 esac
12565 ;;
12566
12567 newsos6)
12568 lt_prog_compiler_pic='-KPIC'
12569 lt_prog_compiler_static='-Bstatic'
12570 ;;
12571
12572 *nto* | *qnx*)
12573 # QNX uses GNU C++, but need to define -shared option too, otherwise
12574 # it will coredump.
12575 lt_prog_compiler_pic='-fPIC -shared'
12576 ;;
12577
12578 osf3* | osf4* | osf5*)
12579 lt_prog_compiler_wl='-Wl,'
12580 # All OSF/1 code is PIC.
12581 lt_prog_compiler_static='-non_shared'
12582 ;;
12583
12584 rdos*)
12585 lt_prog_compiler_static='-non_shared'
12586 ;;
12587
12588 solaris*)
12589 lt_prog_compiler_pic='-KPIC'
12590 lt_prog_compiler_static='-Bstatic'
12591 case $cc_basename in
12592 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12593 lt_prog_compiler_wl='-Qoption ld ';;
12594 *)
12595 lt_prog_compiler_wl='-Wl,';;
12596 esac
12597 ;;
12598
12599 sunos4*)
12600 lt_prog_compiler_wl='-Qoption ld '
12601 lt_prog_compiler_pic='-PIC'
12602 lt_prog_compiler_static='-Bstatic'
12603 ;;
12604
12605 sysv4 | sysv4.2uw2* | sysv4.3*)
12606 lt_prog_compiler_wl='-Wl,'
12607 lt_prog_compiler_pic='-KPIC'
12608 lt_prog_compiler_static='-Bstatic'
12609 ;;
12610
12611 sysv4*MP*)
12612 if test -d /usr/nec; then
12613 lt_prog_compiler_pic='-Kconform_pic'
12614 lt_prog_compiler_static='-Bstatic'
12615 fi
12616 ;;
12617
12618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12619 lt_prog_compiler_wl='-Wl,'
12620 lt_prog_compiler_pic='-KPIC'
12621 lt_prog_compiler_static='-Bstatic'
12622 ;;
12623
12624 unicos*)
12625 lt_prog_compiler_wl='-Wl,'
12626 lt_prog_compiler_can_build_shared=no
12627 ;;
12628
12629 uts4*)
12630 lt_prog_compiler_pic='-pic'
12631 lt_prog_compiler_static='-Bstatic'
12632 ;;
12633
12634 *)
12635 lt_prog_compiler_can_build_shared=no
12636 ;;
12637 esac
12638 fi
12639
12640 case $host_os in
12641 # For platforms that do not support PIC, -DPIC is meaningless:
12642 *djgpp*)
12643 lt_prog_compiler_pic=
12644 ;;
12645 *)
12646 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12647 ;;
12648 esac
12649
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12651 printf %s "checking for $compiler option to produce PIC... " >&6; }
12652 if test ${lt_cv_prog_compiler_pic+y}
12653 then :
12654 printf %s "(cached) " >&6
12655 else $as_nop
12656 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12657 fi
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12659 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12660 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12661
12662 #
12663 # Check to make sure the PIC flag actually works.
12664 #
12665 if test -n "$lt_prog_compiler_pic"; then
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12667 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12668 if test ${lt_cv_prog_compiler_pic_works+y}
12669 then :
12670 printf %s "(cached) " >&6
12671 else $as_nop
12672 lt_cv_prog_compiler_pic_works=no
12673 ac_outfile=conftest.$ac_objext
12674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12675 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12676 # Insert the option either (1) after the last *FLAGS variable, or
12677 # (2) before a word containing "conftest.", or (3) at the end.
12678 # Note that $ac_compile itself does not contain backslashes and begins
12679 # with a dollar sign (not a hyphen), so the echo should work correctly.
12680 # The option is referenced via a variable to avoid confusing sed.
12681 lt_compile=`echo "$ac_compile" | $SED \
12682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12684 -e 's:$: $lt_compiler_flag:'`
12685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12686 (eval "$lt_compile" 2>conftest.err)
12687 ac_status=$?
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 if (exit $ac_status) && test -s "$ac_outfile"; then
12691 # The compiler can only warn and ignore the option if not recognized
12692 # So say no if there are warnings other than the usual output.
12693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12696 lt_cv_prog_compiler_pic_works=yes
12697 fi
12698 fi
12699 $RM conftest*
12700
12701 fi
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12703 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12704
12705 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12706 case $lt_prog_compiler_pic in
12707 "" | " "*) ;;
12708 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12709 esac
12710 else
12711 lt_prog_compiler_pic=
12712 lt_prog_compiler_can_build_shared=no
12713 fi
12714
12715 fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727 #
12728 # Check to make sure the static flag actually works.
12729 #
12730 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12732 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12733 if test ${lt_cv_prog_compiler_static_works+y}
12734 then :
12735 printf %s "(cached) " >&6
12736 else $as_nop
12737 lt_cv_prog_compiler_static_works=no
12738 save_LDFLAGS=$LDFLAGS
12739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12742 # The linker can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 if test -s conftest.err; then
12745 # Append any errors to the config.log.
12746 cat conftest.err 1>&5
12747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12749 if diff conftest.exp conftest.er2 >/dev/null; then
12750 lt_cv_prog_compiler_static_works=yes
12751 fi
12752 else
12753 lt_cv_prog_compiler_static_works=yes
12754 fi
12755 fi
12756 $RM -r conftest*
12757 LDFLAGS=$save_LDFLAGS
12758
12759 fi
12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12761 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12762
12763 if test yes = "$lt_cv_prog_compiler_static_works"; then
12764 :
12765 else
12766 lt_prog_compiler_static=
12767 fi
12768
12769
12770
12771
12772
12773
12774
12775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12776 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12777 if test ${lt_cv_prog_compiler_c_o+y}
12778 then :
12779 printf %s "(cached) " >&6
12780 else $as_nop
12781 lt_cv_prog_compiler_c_o=no
12782 $RM -r conftest 2>/dev/null
12783 mkdir conftest
12784 cd conftest
12785 mkdir out
12786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12787
12788 lt_compiler_flag="-o out/conftest2.$ac_objext"
12789 # Insert the option either (1) after the last *FLAGS variable, or
12790 # (2) before a word containing "conftest.", or (3) at the end.
12791 # Note that $ac_compile itself does not contain backslashes and begins
12792 # with a dollar sign (not a hyphen), so the echo should work correctly.
12793 lt_compile=`echo "$ac_compile" | $SED \
12794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12796 -e 's:$: $lt_compiler_flag:'`
12797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12798 (eval "$lt_compile" 2>out/conftest.err)
12799 ac_status=$?
12800 cat out/conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12803 then
12804 # The compiler can only warn and ignore the option if not recognized
12805 # So say no if there are warnings
12806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12809 lt_cv_prog_compiler_c_o=yes
12810 fi
12811 fi
12812 chmod u+w . 2>&5
12813 $RM conftest*
12814 # SGI C++ compiler will create directory out/ii_files/ for
12815 # template instantiation
12816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12817 $RM out/* && rmdir out
12818 cd ..
12819 $RM -r conftest
12820 $RM conftest*
12821
12822 fi
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12824 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12825
12826
12827
12828
12829
12830
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12832 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12833 if test ${lt_cv_prog_compiler_c_o+y}
12834 then :
12835 printf %s "(cached) " >&6
12836 else $as_nop
12837 lt_cv_prog_compiler_c_o=no
12838 $RM -r conftest 2>/dev/null
12839 mkdir conftest
12840 cd conftest
12841 mkdir out
12842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12843
12844 lt_compiler_flag="-o out/conftest2.$ac_objext"
12845 # Insert the option either (1) after the last *FLAGS variable, or
12846 # (2) before a word containing "conftest.", or (3) at the end.
12847 # Note that $ac_compile itself does not contain backslashes and begins
12848 # with a dollar sign (not a hyphen), so the echo should work correctly.
12849 lt_compile=`echo "$ac_compile" | $SED \
12850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12852 -e 's:$: $lt_compiler_flag:'`
12853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12854 (eval "$lt_compile" 2>out/conftest.err)
12855 ac_status=$?
12856 cat out/conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12859 then
12860 # The compiler can only warn and ignore the option if not recognized
12861 # So say no if there are warnings
12862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12865 lt_cv_prog_compiler_c_o=yes
12866 fi
12867 fi
12868 chmod u+w . 2>&5
12869 $RM conftest*
12870 # SGI C++ compiler will create directory out/ii_files/ for
12871 # template instantiation
12872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12873 $RM out/* && rmdir out
12874 cd ..
12875 $RM -r conftest
12876 $RM conftest*
12877
12878 fi
12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12880 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12881
12882
12883
12884
12885 hard_links=nottested
12886 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12887 # do not overwrite the value of need_locks provided by the user
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12889 printf %s "checking if we can lock with hard links... " >&6; }
12890 hard_links=yes
12891 $RM conftest*
12892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12893 touch conftest.a
12894 ln conftest.a conftest.b 2>&5 || hard_links=no
12895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12897 printf "%s\n" "$hard_links" >&6; }
12898 if test no = "$hard_links"; then
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12900 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12901 need_locks=warn
12902 fi
12903 else
12904 need_locks=no
12905 fi
12906
12907
12908
12909
12910
12911
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12913 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12914
12915 runpath_var=
12916 allow_undefined_flag=
12917 always_export_symbols=no
12918 archive_cmds=
12919 archive_expsym_cmds=
12920 compiler_needs_object=no
12921 enable_shared_with_static_runtimes=no
12922 export_dynamic_flag_spec=
12923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12924 hardcode_automatic=no
12925 hardcode_direct=no
12926 hardcode_direct_absolute=no
12927 hardcode_libdir_flag_spec=
12928 hardcode_libdir_separator=
12929 hardcode_minus_L=no
12930 hardcode_shlibpath_var=unsupported
12931 inherit_rpath=no
12932 link_all_deplibs=unknown
12933 module_cmds=
12934 module_expsym_cmds=
12935 old_archive_from_new_cmds=
12936 old_archive_from_expsyms_cmds=
12937 thread_safe_flag_spec=
12938 whole_archive_flag_spec=
12939 # include_expsyms should be a list of space-separated symbols to be *always*
12940 # included in the symbol list
12941 include_expsyms=
12942 # exclude_expsyms can be an extended regexp of symbols to exclude
12943 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12944 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12945 # as well as any symbol that contains 'd'.
12946 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12948 # platforms (ab)use it in PIC code, but their linkers get confused if
12949 # the symbol is explicitly referenced. Since portable code cannot
12950 # rely on this symbol name, it's probably fine to never include it in
12951 # preloaded symbol tables.
12952 # Exclude shared library initialization/finalization symbols.
12953 extract_expsyms_cmds=
12954
12955 case $host_os in
12956 cygwin* | mingw* | pw32* | cegcc*)
12957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12958 # When not using gcc, we currently assume that we are using
12959 # Microsoft Visual C++.
12960 if test yes != "$GCC"; then
12961 with_gnu_ld=no
12962 fi
12963 ;;
12964 interix*)
12965 # we just hope/assume this is gcc and not c89 (= MSVC++)
12966 with_gnu_ld=yes
12967 ;;
12968 openbsd* | bitrig*)
12969 with_gnu_ld=no
12970 ;;
12971 linux* | k*bsd*-gnu | gnu*)
12972 link_all_deplibs=no
12973 ;;
12974 esac
12975
12976 ld_shlibs=yes
12977
12978 # On some targets, GNU ld is compatible enough with the native linker
12979 # that we're better off using the native interface for both.
12980 lt_use_gnu_ld_interface=no
12981 if test yes = "$with_gnu_ld"; then
12982 case $host_os in
12983 aix*)
12984 # The AIX port of GNU ld has always aspired to compatibility
12985 # with the native linker. However, as the warning in the GNU ld
12986 # block says, versions before 2.19.5* couldn't really create working
12987 # shared libraries, regardless of the interface used.
12988 case `$LD -v 2>&1` in
12989 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12990 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12991 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12992 *)
12993 lt_use_gnu_ld_interface=yes
12994 ;;
12995 esac
12996 ;;
12997 *)
12998 lt_use_gnu_ld_interface=yes
12999 ;;
13000 esac
13001 fi
13002
13003 if test yes = "$lt_use_gnu_ld_interface"; then
13004 # If archive_cmds runs LD, not CC, wlarc should be empty
13005 wlarc='$wl'
13006
13007 # Set some defaults for GNU ld with shared library support. These
13008 # are reset later if shared libraries are not supported. Putting them
13009 # here allows them to be overridden if necessary.
13010 runpath_var=LD_RUN_PATH
13011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13012 export_dynamic_flag_spec='$wl--export-dynamic'
13013 # ancient GNU ld didn't support --whole-archive et. al.
13014 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13015 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13016 else
13017 whole_archive_flag_spec=
13018 fi
13019 supports_anon_versioning=no
13020 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13021 *GNU\ gold*) supports_anon_versioning=yes ;;
13022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13025 *\ 2.11.*) ;; # other 2.11 versions
13026 *) supports_anon_versioning=yes ;;
13027 esac
13028
13029 # See if GNU ld supports shared libraries.
13030 case $host_os in
13031 aix[3-9]*)
13032 # On AIX/PPC, the GNU linker is very broken
13033 if test ia64 != "$host_cpu"; then
13034 ld_shlibs=no
13035 cat <<_LT_EOF 1>&2
13036
13037 *** Warning: the GNU linker, at least up to release 2.19, is reported
13038 *** to be unable to reliably create shared libraries on AIX.
13039 *** Therefore, libtool is disabling shared libraries support. If you
13040 *** really care for shared libraries, you may want to install binutils
13041 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13042 *** You will then need to restart the configuration process.
13043
13044 _LT_EOF
13045 fi
13046 ;;
13047
13048 amigaos*)
13049 case $host_cpu in
13050 powerpc)
13051 # see comment about AmigaOS4 .so support
13052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13053 archive_expsym_cmds=''
13054 ;;
13055 m68k)
13056 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)'
13057 hardcode_libdir_flag_spec='-L$libdir'
13058 hardcode_minus_L=yes
13059 ;;
13060 esac
13061 ;;
13062
13063 beos*)
13064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13065 allow_undefined_flag=unsupported
13066 # Joseph Beckenbach <[email protected]> says some releases of gcc
13067 # support --undefined. This deserves some investigation. FIXME
13068 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13069 else
13070 ld_shlibs=no
13071 fi
13072 ;;
13073
13074 cygwin* | mingw* | pw32* | cegcc*)
13075 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13076 # as there is no search path for DLLs.
13077 hardcode_libdir_flag_spec='-L$libdir'
13078 export_dynamic_flag_spec='$wl--export-all-symbols'
13079 allow_undefined_flag=unsupported
13080 always_export_symbols=no
13081 enable_shared_with_static_runtimes=yes
13082 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'
13083 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13084
13085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13087 # If the export-symbols file already is a .def file, use it as
13088 # is; otherwise, prepend EXPORTS...
13089 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13090 cp $export_symbols $output_objdir/$soname.def;
13091 else
13092 echo EXPORTS > $output_objdir/$soname.def;
13093 cat $export_symbols >> $output_objdir/$soname.def;
13094 fi~
13095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13096 else
13097 ld_shlibs=no
13098 fi
13099 ;;
13100
13101 haiku*)
13102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13103 link_all_deplibs=yes
13104 ;;
13105
13106 os2*)
13107 hardcode_libdir_flag_spec='-L$libdir'
13108 hardcode_minus_L=yes
13109 allow_undefined_flag=unsupported
13110 shrext_cmds=.dll
13111 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13114 $ECHO EXPORTS >> $output_objdir/$libname.def~
13115 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13117 emximp -o $lib $output_objdir/$libname.def'
13118 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13121 $ECHO EXPORTS >> $output_objdir/$libname.def~
13122 prefix_cmds="$SED"~
13123 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13124 prefix_cmds="$prefix_cmds -e 1d";
13125 fi~
13126 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13127 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13129 emximp -o $lib $output_objdir/$libname.def'
13130 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13131 enable_shared_with_static_runtimes=yes
13132 ;;
13133
13134 interix[3-9]*)
13135 hardcode_direct=no
13136 hardcode_shlibpath_var=no
13137 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13138 export_dynamic_flag_spec='$wl-E'
13139 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13140 # Instead, shared libraries are loaded at an image base (0x10000000 by
13141 # default) and relocated if they conflict, which is a slow very memory
13142 # consuming and fragmenting process. To avoid this, we pick a random,
13143 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13144 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13146 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'
13147 ;;
13148
13149 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13150 tmp_diet=no
13151 if test linux-dietlibc = "$host_os"; then
13152 case $cc_basename in
13153 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13154 esac
13155 fi
13156 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13157 && test no = "$tmp_diet"
13158 then
13159 tmp_addflag=' $pic_flag'
13160 tmp_sharedflag='-shared'
13161 case $cc_basename,$host_cpu in
13162 pgcc*) # Portland Group C compiler
13163 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'
13164 tmp_addflag=' $pic_flag'
13165 ;;
13166 pgf77* | pgf90* | pgf95* | pgfortran*)
13167 # Portland Group f77 and f90 compilers
13168 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'
13169 tmp_addflag=' $pic_flag -Mnomain' ;;
13170 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13171 tmp_addflag=' -i_dynamic' ;;
13172 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13173 tmp_addflag=' -i_dynamic -nofor_main' ;;
13174 ifc* | ifort*) # Intel Fortran compiler
13175 tmp_addflag=' -nofor_main' ;;
13176 lf95*) # Lahey Fortran 8.1
13177 whole_archive_flag_spec=
13178 tmp_sharedflag='--shared' ;;
13179 nagfor*) # NAGFOR 5.3
13180 tmp_sharedflag='-Wl,-shared' ;;
13181 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13182 tmp_sharedflag='-qmkshrobj'
13183 tmp_addflag= ;;
13184 nvcc*) # Cuda Compiler Driver 2.2
13185 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'
13186 compiler_needs_object=yes
13187 ;;
13188 esac
13189 case `$CC -V 2>&1 | sed 5q` in
13190 *Sun\ C*) # Sun C 5.9
13191 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'
13192 compiler_needs_object=yes
13193 tmp_sharedflag='-G' ;;
13194 *Sun\ F*) # Sun Fortran 8.3
13195 tmp_sharedflag='-G' ;;
13196 esac
13197 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13198
13199 if test yes = "$supports_anon_versioning"; then
13200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13202 echo "local: *; };" >> $output_objdir/$libname.ver~
13203 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13204 fi
13205
13206 case $cc_basename in
13207 tcc*)
13208 export_dynamic_flag_spec='-rdynamic'
13209 ;;
13210 xlf* | bgf* | bgxlf* | mpixlf*)
13211 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13212 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13213 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13214 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13215 if test yes = "$supports_anon_versioning"; then
13216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218 echo "local: *; };" >> $output_objdir/$libname.ver~
13219 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13220 fi
13221 ;;
13222 esac
13223 else
13224 ld_shlibs=no
13225 fi
13226 ;;
13227
13228 netbsd* | netbsdelf*-gnu)
13229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13231 wlarc=
13232 else
13233 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13234 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13235 fi
13236 ;;
13237
13238 solaris*)
13239 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13240 ld_shlibs=no
13241 cat <<_LT_EOF 1>&2
13242
13243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13244 *** create shared libraries on Solaris systems. Therefore, libtool
13245 *** is disabling shared libraries support. We urge you to upgrade GNU
13246 *** binutils to release 2.9.1 or newer. Another option is to modify
13247 *** your PATH or compiler configuration so that the native linker is
13248 *** used, and then restart.
13249
13250 _LT_EOF
13251 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13253 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13254 else
13255 ld_shlibs=no
13256 fi
13257 ;;
13258
13259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13260 case `$LD -v 2>&1` in
13261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13262 ld_shlibs=no
13263 cat <<_LT_EOF 1>&2
13264
13265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13266 *** reliably create shared libraries on SCO systems. Therefore, libtool
13267 *** is disabling shared libraries support. We urge you to upgrade GNU
13268 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13269 *** your PATH or compiler configuration so that the native linker is
13270 *** used, and then restart.
13271
13272 _LT_EOF
13273 ;;
13274 *)
13275 # For security reasons, it is highly recommended that you always
13276 # use absolute paths for naming shared libraries, and exclude the
13277 # DT_RUNPATH tag from executables and libraries. But doing so
13278 # requires that you compile everything twice, which is a pain.
13279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13283 else
13284 ld_shlibs=no
13285 fi
13286 ;;
13287 esac
13288 ;;
13289
13290 sunos4*)
13291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13292 wlarc=
13293 hardcode_direct=yes
13294 hardcode_shlibpath_var=no
13295 ;;
13296
13297 *)
13298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13301 else
13302 ld_shlibs=no
13303 fi
13304 ;;
13305 esac
13306
13307 if test no = "$ld_shlibs"; then
13308 runpath_var=
13309 hardcode_libdir_flag_spec=
13310 export_dynamic_flag_spec=
13311 whole_archive_flag_spec=
13312 fi
13313 else
13314 # PORTME fill in a description of your system's linker (not GNU ld)
13315 case $host_os in
13316 aix3*)
13317 allow_undefined_flag=unsupported
13318 always_export_symbols=yes
13319 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'
13320 # Note: this linker hardcodes the directories in LIBPATH if there
13321 # are no directories specified by -L.
13322 hardcode_minus_L=yes
13323 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13324 # Neither direct hardcoding nor static linking is supported with a
13325 # broken collect2.
13326 hardcode_direct=unsupported
13327 fi
13328 ;;
13329
13330 aix[4-9]*)
13331 if test ia64 = "$host_cpu"; then
13332 # On IA64, the linker does run time linking by default, so we don't
13333 # have to do anything special.
13334 aix_use_runtimelinking=no
13335 exp_sym_flag='-Bexport'
13336 no_entry_flag=
13337 else
13338 # If we're using GNU nm, then we don't want the "-C" option.
13339 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13340 # Without the "-l" option, or with the "-B" option, AIX nm treats
13341 # weak defined symbols like other global defined symbols, whereas
13342 # GNU nm marks them as "W".
13343 # While the 'weak' keyword is ignored in the Export File, we need
13344 # it in the Import File for the 'aix-soname' feature, so we have
13345 # to replace the "-B" option with "-P" for AIX nm.
13346 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13347 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'
13348 else
13349 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'
13350 fi
13351 aix_use_runtimelinking=no
13352
13353 # Test if we are trying to use run time linking or normal
13354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13355 # have runtime linking enabled, and use it for executables.
13356 # For shared libraries, we enable/disable runtime linking
13357 # depending on the kind of the shared library created -
13358 # when "with_aix_soname,aix_use_runtimelinking" is:
13359 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13360 # "aix,yes" lib.so shared, rtl:yes, for executables
13361 # lib.a static archive
13362 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13363 # lib.a(lib.so.V) shared, rtl:no, for executables
13364 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13365 # lib.a(lib.so.V) shared, rtl:no
13366 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13367 # lib.a static archive
13368 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13369 for ld_flag in $LDFLAGS; do
13370 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13371 aix_use_runtimelinking=yes
13372 break
13373 fi
13374 done
13375 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13376 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13377 # so we don't have lib.a shared libs to link our executables.
13378 # We have to force runtime linking in this case.
13379 aix_use_runtimelinking=yes
13380 LDFLAGS="$LDFLAGS -Wl,-brtl"
13381 fi
13382 ;;
13383 esac
13384
13385 exp_sym_flag='-bexport'
13386 no_entry_flag='-bnoentry'
13387 fi
13388
13389 # When large executables or shared objects are built, AIX ld can
13390 # have problems creating the table of contents. If linking a library
13391 # or program results in "error TOC overflow" add -mminimal-toc to
13392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13394
13395 archive_cmds=''
13396 hardcode_direct=yes
13397 hardcode_direct_absolute=yes
13398 hardcode_libdir_separator=':'
13399 link_all_deplibs=yes
13400 file_list_spec='$wl-f,'
13401 case $with_aix_soname,$aix_use_runtimelinking in
13402 aix,*) ;; # traditional, no import file
13403 svr4,* | *,yes) # use import file
13404 # The Import File defines what to hardcode.
13405 hardcode_direct=no
13406 hardcode_direct_absolute=no
13407 ;;
13408 esac
13409
13410 if test yes = "$GCC"; then
13411 case $host_os in aix4.[012]|aix4.[012].*)
13412 # We only want to do this on AIX 4.2 and lower, the check
13413 # below for broken collect2 doesn't work under 4.3+
13414 collect2name=`$CC -print-prog-name=collect2`
13415 if test -f "$collect2name" &&
13416 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13417 then
13418 # We have reworked collect2
13419 :
13420 else
13421 # We have old collect2
13422 hardcode_direct=unsupported
13423 # It fails to find uninstalled libraries when the uninstalled
13424 # path is not listed in the libpath. Setting hardcode_minus_L
13425 # to unsupported forces relinking
13426 hardcode_minus_L=yes
13427 hardcode_libdir_flag_spec='-L$libdir'
13428 hardcode_libdir_separator=
13429 fi
13430 ;;
13431 esac
13432 shared_flag='-shared'
13433 if test yes = "$aix_use_runtimelinking"; then
13434 shared_flag="$shared_flag "'$wl-G'
13435 fi
13436 # Need to ensure runtime linking is disabled for the traditional
13437 # shared library, or the linker may eventually find shared libraries
13438 # /with/ Import File - we do not want to mix them.
13439 shared_flag_aix='-shared'
13440 shared_flag_svr4='-shared $wl-G'
13441 else
13442 # not using gcc
13443 if test ia64 = "$host_cpu"; then
13444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13445 # chokes on -Wl,-G. The following line is correct:
13446 shared_flag='-G'
13447 else
13448 if test yes = "$aix_use_runtimelinking"; then
13449 shared_flag='$wl-G'
13450 else
13451 shared_flag='$wl-bM:SRE'
13452 fi
13453 shared_flag_aix='$wl-bM:SRE'
13454 shared_flag_svr4='$wl-G'
13455 fi
13456 fi
13457
13458 export_dynamic_flag_spec='$wl-bexpall'
13459 # It seems that -bexpall does not export symbols beginning with
13460 # underscore (_), so it is better to generate a list of symbols to export.
13461 always_export_symbols=yes
13462 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13463 # Warning - without using the other runtime loading flags (-brtl),
13464 # -berok will link without error, but may produce a broken library.
13465 allow_undefined_flag='-berok'
13466 # Determine the default libpath from the value encoded in an
13467 # empty executable.
13468 if test set = "${lt_cv_aix_libpath+set}"; then
13469 aix_libpath=$lt_cv_aix_libpath
13470 else
13471 if test ${lt_cv_aix_libpath_+y}
13472 then :
13473 printf %s "(cached) " >&6
13474 else $as_nop
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477
13478 int
13479 main (void)
13480 {
13481
13482 ;
13483 return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"
13487 then :
13488
13489 lt_aix_libpath_sed='
13490 /Import File Strings/,/^$/ {
13491 /^0/ {
13492 s/^0 *\([^ ]*\) *$/\1/
13493 p
13494 }
13495 }'
13496 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13497 # Check for a 64-bit object if we didn't find anything.
13498 if test -z "$lt_cv_aix_libpath_"; then
13499 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13500 fi
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13503 conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$lt_cv_aix_libpath_"; then
13505 lt_cv_aix_libpath_=/usr/lib:/lib
13506 fi
13507
13508 fi
13509
13510 aix_libpath=$lt_cv_aix_libpath_
13511 fi
13512
13513 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13514 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
13515 else
13516 if test ia64 = "$host_cpu"; then
13517 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13518 allow_undefined_flag="-z nodefs"
13519 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"
13520 else
13521 # Determine the default libpath from the value encoded in an
13522 # empty executable.
13523 if test set = "${lt_cv_aix_libpath+set}"; then
13524 aix_libpath=$lt_cv_aix_libpath
13525 else
13526 if test ${lt_cv_aix_libpath_+y}
13527 then :
13528 printf %s "(cached) " >&6
13529 else $as_nop
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533 int
13534 main (void)
13535 {
13536
13537 ;
13538 return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"
13542 then :
13543
13544 lt_aix_libpath_sed='
13545 /Import File Strings/,/^$/ {
13546 /^0/ {
13547 s/^0 *\([^ ]*\) *$/\1/
13548 p
13549 }
13550 }'
13551 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13552 # Check for a 64-bit object if we didn't find anything.
13553 if test -z "$lt_cv_aix_libpath_"; then
13554 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13555 fi
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13558 conftest$ac_exeext conftest.$ac_ext
13559 if test -z "$lt_cv_aix_libpath_"; then
13560 lt_cv_aix_libpath_=/usr/lib:/lib
13561 fi
13562
13563 fi
13564
13565 aix_libpath=$lt_cv_aix_libpath_
13566 fi
13567
13568 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13569 # Warning - without using the other run time loading flags,
13570 # -berok will link without error, but may produce a broken library.
13571 no_undefined_flag=' $wl-bernotok'
13572 allow_undefined_flag=' $wl-berok'
13573 if test yes = "$with_gnu_ld"; then
13574 # We only use this code for GNU lds that support --whole-archive.
13575 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13576 else
13577 # Exported symbols can be pulled into shared objects from archives
13578 whole_archive_flag_spec='$convenience'
13579 fi
13580 archive_cmds_need_lc=yes
13581 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13582 # -brtl affects multiple linker settings, -berok does not and is overridden later
13583 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13584 if test svr4 != "$with_aix_soname"; then
13585 # This is similar to how AIX traditionally builds its shared libraries.
13586 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'
13587 fi
13588 if test aix != "$with_aix_soname"; then
13589 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'
13590 else
13591 # used by -dlpreopen to get the symbols
13592 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13593 fi
13594 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13595 fi
13596 fi
13597 ;;
13598
13599 amigaos*)
13600 case $host_cpu in
13601 powerpc)
13602 # see comment about AmigaOS4 .so support
13603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13604 archive_expsym_cmds=''
13605 ;;
13606 m68k)
13607 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)'
13608 hardcode_libdir_flag_spec='-L$libdir'
13609 hardcode_minus_L=yes
13610 ;;
13611 esac
13612 ;;
13613
13614 bsdi[45]*)
13615 export_dynamic_flag_spec=-rdynamic
13616 ;;
13617
13618 cygwin* | mingw* | pw32* | cegcc*)
13619 # When not using gcc, we currently assume that we are using
13620 # Microsoft Visual C++.
13621 # hardcode_libdir_flag_spec is actually meaningless, as there is
13622 # no search path for DLLs.
13623 case $cc_basename in
13624 cl*)
13625 # Native MSVC
13626 hardcode_libdir_flag_spec=' '
13627 allow_undefined_flag=unsupported
13628 always_export_symbols=yes
13629 file_list_spec='@'
13630 # Tell ltmain to make .lib files, not .a files.
13631 libext=lib
13632 # Tell ltmain to make .dll files, not .so files.
13633 shrext_cmds=.dll
13634 # FIXME: Setting linknames here is a bad hack.
13635 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13636 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13637 cp "$export_symbols" "$output_objdir/$soname.def";
13638 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13639 else
13640 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13641 fi~
13642 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13643 linknames='
13644 # The linker will not automatically build a static lib if we build a DLL.
13645 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13646 enable_shared_with_static_runtimes=yes
13647 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13648 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13649 # Don't use ranlib
13650 old_postinstall_cmds='chmod 644 $oldlib'
13651 postlink_cmds='lt_outputfile="@OUTPUT@"~
13652 lt_tool_outputfile="@TOOL_OUTPUT@"~
13653 case $lt_outputfile in
13654 *.exe|*.EXE) ;;
13655 *)
13656 lt_outputfile=$lt_outputfile.exe
13657 lt_tool_outputfile=$lt_tool_outputfile.exe
13658 ;;
13659 esac~
13660 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13661 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13662 $RM "$lt_outputfile.manifest";
13663 fi'
13664 ;;
13665 *)
13666 # Assume MSVC wrapper
13667 hardcode_libdir_flag_spec=' '
13668 allow_undefined_flag=unsupported
13669 # Tell ltmain to make .lib files, not .a files.
13670 libext=lib
13671 # Tell ltmain to make .dll files, not .so files.
13672 shrext_cmds=.dll
13673 # FIXME: Setting linknames here is a bad hack.
13674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13675 # The linker will automatically build a .lib file if we build a DLL.
13676 old_archive_from_new_cmds='true'
13677 # FIXME: Should let the user specify the lib program.
13678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13679 enable_shared_with_static_runtimes=yes
13680 ;;
13681 esac
13682 ;;
13683
13684 darwin* | rhapsody*)
13685
13686
13687 archive_cmds_need_lc=no
13688 hardcode_direct=no
13689 hardcode_automatic=yes
13690 hardcode_shlibpath_var=unsupported
13691 if test yes = "$lt_cv_ld_force_load"; then
13692 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\"`'
13693
13694 else
13695 whole_archive_flag_spec=''
13696 fi
13697 link_all_deplibs=yes
13698 allow_undefined_flag=$_lt_dar_allow_undefined
13699 case $cc_basename in
13700 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13701 *) _lt_dar_can_shared=$GCC ;;
13702 esac
13703 if test yes = "$_lt_dar_can_shared"; then
13704 output_verbose_link_cmd=func_echo_all
13705 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13706 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13707 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"
13708 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"
13709
13710 else
13711 ld_shlibs=no
13712 fi
13713
13714 ;;
13715
13716 dgux*)
13717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718 hardcode_libdir_flag_spec='-L$libdir'
13719 hardcode_shlibpath_var=no
13720 ;;
13721
13722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13723 # support. Future versions do this automatically, but an explicit c++rt0.o
13724 # does not break anything, and helps significantly (at the cost of a little
13725 # extra space).
13726 freebsd2.2*)
13727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13728 hardcode_libdir_flag_spec='-R$libdir'
13729 hardcode_direct=yes
13730 hardcode_shlibpath_var=no
13731 ;;
13732
13733 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13734 freebsd2.*)
13735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13736 hardcode_direct=yes
13737 hardcode_minus_L=yes
13738 hardcode_shlibpath_var=no
13739 ;;
13740
13741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13742 freebsd* | dragonfly*)
13743 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13744 hardcode_libdir_flag_spec='-R$libdir'
13745 hardcode_direct=yes
13746 hardcode_shlibpath_var=no
13747 ;;
13748
13749 hpux9*)
13750 if test yes = "$GCC"; then
13751 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'
13752 else
13753 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'
13754 fi
13755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13756 hardcode_libdir_separator=:
13757 hardcode_direct=yes
13758
13759 # hardcode_minus_L: Not really in the search PATH,
13760 # but as the default location of the library.
13761 hardcode_minus_L=yes
13762 export_dynamic_flag_spec='$wl-E'
13763 ;;
13764
13765 hpux10*)
13766 if test yes,no = "$GCC,$with_gnu_ld"; then
13767 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13768 else
13769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13770 fi
13771 if test no = "$with_gnu_ld"; then
13772 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13773 hardcode_libdir_separator=:
13774 hardcode_direct=yes
13775 hardcode_direct_absolute=yes
13776 export_dynamic_flag_spec='$wl-E'
13777 # hardcode_minus_L: Not really in the search PATH,
13778 # but as the default location of the library.
13779 hardcode_minus_L=yes
13780 fi
13781 ;;
13782
13783 hpux11*)
13784 if test yes,no = "$GCC,$with_gnu_ld"; then
13785 case $host_cpu in
13786 hppa*64*)
13787 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 ;;
13789 ia64*)
13790 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13791 ;;
13792 *)
13793 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13794 ;;
13795 esac
13796 else
13797 case $host_cpu in
13798 hppa*64*)
13799 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 ;;
13801 ia64*)
13802 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13803 ;;
13804 *)
13805
13806 # Older versions of the 11.00 compiler do not understand -b yet
13807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13809 printf %s "checking if $CC understands -b... " >&6; }
13810 if test ${lt_cv_prog_compiler__b+y}
13811 then :
13812 printf %s "(cached) " >&6
13813 else $as_nop
13814 lt_cv_prog_compiler__b=no
13815 save_LDFLAGS=$LDFLAGS
13816 LDFLAGS="$LDFLAGS -b"
13817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13819 # The linker can only warn and ignore the option if not recognized
13820 # So say no if there are warnings
13821 if test -s conftest.err; then
13822 # Append any errors to the config.log.
13823 cat conftest.err 1>&5
13824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13826 if diff conftest.exp conftest.er2 >/dev/null; then
13827 lt_cv_prog_compiler__b=yes
13828 fi
13829 else
13830 lt_cv_prog_compiler__b=yes
13831 fi
13832 fi
13833 $RM -r conftest*
13834 LDFLAGS=$save_LDFLAGS
13835
13836 fi
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13838 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13839
13840 if test yes = "$lt_cv_prog_compiler__b"; then
13841 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13842 else
13843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13844 fi
13845
13846 ;;
13847 esac
13848 fi
13849 if test no = "$with_gnu_ld"; then
13850 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13851 hardcode_libdir_separator=:
13852
13853 case $host_cpu in
13854 hppa*64*|ia64*)
13855 hardcode_direct=no
13856 hardcode_shlibpath_var=no
13857 ;;
13858 *)
13859 hardcode_direct=yes
13860 hardcode_direct_absolute=yes
13861 export_dynamic_flag_spec='$wl-E'
13862
13863 # hardcode_minus_L: Not really in the search PATH,
13864 # but as the default location of the library.
13865 hardcode_minus_L=yes
13866 ;;
13867 esac
13868 fi
13869 ;;
13870
13871 irix5* | irix6* | nonstopux*)
13872 if test yes = "$GCC"; then
13873 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'
13874 # Try to use the -exported_symbol ld option, if it does not
13875 # work, assume that -exports_file does not work either and
13876 # implicitly export all symbols.
13877 # This should be the same for all languages, so no per-tag cache variable.
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13879 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13880 if test ${lt_cv_irix_exported_symbol+y}
13881 then :
13882 printf %s "(cached) " >&6
13883 else $as_nop
13884 save_LDFLAGS=$LDFLAGS
13885 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 int foo (void) { return 0; }
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"
13891 then :
13892 lt_cv_irix_exported_symbol=yes
13893 else $as_nop
13894 lt_cv_irix_exported_symbol=no
13895 fi
13896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LDFLAGS=$save_LDFLAGS
13899 fi
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13901 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13902 if test yes = "$lt_cv_irix_exported_symbol"; then
13903 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'
13904 fi
13905 link_all_deplibs=no
13906 else
13907 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'
13908 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'
13909 fi
13910 archive_cmds_need_lc='no'
13911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13912 hardcode_libdir_separator=:
13913 inherit_rpath=yes
13914 link_all_deplibs=yes
13915 ;;
13916
13917 linux*)
13918 case $cc_basename in
13919 tcc*)
13920 # Fabrice Bellard et al's Tiny C Compiler
13921 ld_shlibs=yes
13922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13923 ;;
13924 esac
13925 ;;
13926
13927 netbsd* | netbsdelf*-gnu)
13928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13930 else
13931 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13932 fi
13933 hardcode_libdir_flag_spec='-R$libdir'
13934 hardcode_direct=yes
13935 hardcode_shlibpath_var=no
13936 ;;
13937
13938 newsos6)
13939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13940 hardcode_direct=yes
13941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13942 hardcode_libdir_separator=:
13943 hardcode_shlibpath_var=no
13944 ;;
13945
13946 *nto* | *qnx*)
13947 ;;
13948
13949 openbsd* | bitrig*)
13950 if test -f /usr/libexec/ld.so; then
13951 hardcode_direct=yes
13952 hardcode_shlibpath_var=no
13953 hardcode_direct_absolute=yes
13954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13957 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13958 export_dynamic_flag_spec='$wl-E'
13959 else
13960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13961 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13962 fi
13963 else
13964 ld_shlibs=no
13965 fi
13966 ;;
13967
13968 os2*)
13969 hardcode_libdir_flag_spec='-L$libdir'
13970 hardcode_minus_L=yes
13971 allow_undefined_flag=unsupported
13972 shrext_cmds=.dll
13973 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13976 $ECHO EXPORTS >> $output_objdir/$libname.def~
13977 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13978 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13979 emximp -o $lib $output_objdir/$libname.def'
13980 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13981 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13982 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13983 $ECHO EXPORTS >> $output_objdir/$libname.def~
13984 prefix_cmds="$SED"~
13985 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13986 prefix_cmds="$prefix_cmds -e 1d";
13987 fi~
13988 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13989 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13990 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13991 emximp -o $lib $output_objdir/$libname.def'
13992 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13993 enable_shared_with_static_runtimes=yes
13994 ;;
13995
13996 osf3*)
13997 if test yes = "$GCC"; then
13998 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13999 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'
14000 else
14001 allow_undefined_flag=' -expect_unresolved \*'
14002 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'
14003 fi
14004 archive_cmds_need_lc='no'
14005 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14006 hardcode_libdir_separator=:
14007 ;;
14008
14009 osf4* | osf5*) # as osf3* with the addition of -msym flag
14010 if test yes = "$GCC"; then
14011 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14012 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'
14013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14014 else
14015 allow_undefined_flag=' -expect_unresolved \*'
14016 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'
14017 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~
14018 $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'
14019
14020 # Both c and cxx compiler support -rpath directly
14021 hardcode_libdir_flag_spec='-rpath $libdir'
14022 fi
14023 archive_cmds_need_lc='no'
14024 hardcode_libdir_separator=:
14025 ;;
14026
14027 solaris*)
14028 no_undefined_flag=' -z defs'
14029 if test yes = "$GCC"; then
14030 wlarc='$wl'
14031 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14033 $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'
14034 else
14035 case `$CC -V 2>&1` in
14036 *"Compilers 5.0"*)
14037 wlarc=''
14038 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14040 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14041 ;;
14042 *)
14043 wlarc='$wl'
14044 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14047 ;;
14048 esac
14049 fi
14050 hardcode_libdir_flag_spec='-R$libdir'
14051 hardcode_shlibpath_var=no
14052 case $host_os in
14053 solaris2.[0-5] | solaris2.[0-5].*) ;;
14054 *)
14055 # The compiler driver will combine and reorder linker options,
14056 # but understands '-z linker_flag'. GCC discards it without '$wl',
14057 # but is careful enough not to reorder.
14058 # Supported since Solaris 2.6 (maybe 2.5.1?)
14059 if test yes = "$GCC"; then
14060 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14061 else
14062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14063 fi
14064 ;;
14065 esac
14066 link_all_deplibs=yes
14067 ;;
14068
14069 sunos4*)
14070 if test sequent = "$host_vendor"; then
14071 # Use $CC to link under sequent, because it throws in some extra .o
14072 # files that make .init and .fini sections work.
14073 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14074 else
14075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14076 fi
14077 hardcode_libdir_flag_spec='-L$libdir'
14078 hardcode_direct=yes
14079 hardcode_minus_L=yes
14080 hardcode_shlibpath_var=no
14081 ;;
14082
14083 sysv4)
14084 case $host_vendor in
14085 sni)
14086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 hardcode_direct=yes # is this really true???
14088 ;;
14089 siemens)
14090 ## LD is ld it makes a PLAMLIB
14091 ## CC just makes a GrossModule.
14092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093 reload_cmds='$CC -r -o $output$reload_objs'
14094 hardcode_direct=no
14095 ;;
14096 motorola)
14097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14099 ;;
14100 esac
14101 runpath_var='LD_RUN_PATH'
14102 hardcode_shlibpath_var=no
14103 ;;
14104
14105 sysv4.3*)
14106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107 hardcode_shlibpath_var=no
14108 export_dynamic_flag_spec='-Bexport'
14109 ;;
14110
14111 sysv4*MP*)
14112 if test -d /usr/nec; then
14113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14114 hardcode_shlibpath_var=no
14115 runpath_var=LD_RUN_PATH
14116 hardcode_runpath_var=yes
14117 ld_shlibs=yes
14118 fi
14119 ;;
14120
14121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14122 no_undefined_flag='$wl-z,text'
14123 archive_cmds_need_lc=no
14124 hardcode_shlibpath_var=no
14125 runpath_var='LD_RUN_PATH'
14126
14127 if test yes = "$GCC"; then
14128 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14129 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130 else
14131 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14132 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133 fi
14134 ;;
14135
14136 sysv5* | sco3.2v5* | sco5v6*)
14137 # Note: We CANNOT use -z defs as we might desire, because we do not
14138 # link with -lc, and that would cause any symbols used from libc to
14139 # always be unresolved, which means just about no library would
14140 # ever link correctly. If we're not using GNU ld we use -z text
14141 # though, which does catch some bad symbols but isn't as heavy-handed
14142 # as -z defs.
14143 no_undefined_flag='$wl-z,text'
14144 allow_undefined_flag='$wl-z,nodefs'
14145 archive_cmds_need_lc=no
14146 hardcode_shlibpath_var=no
14147 hardcode_libdir_flag_spec='$wl-R,$libdir'
14148 hardcode_libdir_separator=':'
14149 link_all_deplibs=yes
14150 export_dynamic_flag_spec='$wl-Bexport'
14151 runpath_var='LD_RUN_PATH'
14152
14153 if test yes = "$GCC"; then
14154 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 else
14157 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14159 fi
14160 ;;
14161
14162 uts4*)
14163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_libdir_flag_spec='-L$libdir'
14165 hardcode_shlibpath_var=no
14166 ;;
14167
14168 *)
14169 ld_shlibs=no
14170 ;;
14171 esac
14172
14173 if test sni = "$host_vendor"; then
14174 case $host in
14175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14176 export_dynamic_flag_spec='$wl-Blargedynsym'
14177 ;;
14178 esac
14179 fi
14180 fi
14181
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14183 printf "%s\n" "$ld_shlibs" >&6; }
14184 test no = "$ld_shlibs" && can_build_shared=no
14185
14186 with_gnu_ld=$with_gnu_ld
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202 #
14203 # Do we need to explicitly link libc?
14204 #
14205 case "x$archive_cmds_need_lc" in
14206 x|xyes)
14207 # Assume -lc should be added
14208 archive_cmds_need_lc=yes
14209
14210 if test yes,yes = "$GCC,$enable_shared"; then
14211 case $archive_cmds in
14212 *'~'*)
14213 # FIXME: we may have to deal with multi-command sequences.
14214 ;;
14215 '$CC '*)
14216 # Test whether the compiler implicitly links with -lc since on some
14217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218 # to ld, don't add -lc before -lgcc.
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14220 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14221 if test ${lt_cv_archive_cmds_need_lc+y}
14222 then :
14223 printf %s "(cached) " >&6
14224 else $as_nop
14225 $RM conftest*
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227
14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14229 (eval $ac_compile) 2>&5
14230 ac_status=$?
14231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; } 2>conftest.err; then
14233 soname=conftest
14234 lib=conftest
14235 libobjs=conftest.$ac_objext
14236 deplibs=
14237 wl=$lt_prog_compiler_wl
14238 pic_flag=$lt_prog_compiler_pic
14239 compiler_flags=-v
14240 linker_flags=-v
14241 verstring=
14242 output_objdir=.
14243 libname=conftest
14244 lt_save_allow_undefined_flag=$allow_undefined_flag
14245 allow_undefined_flag=
14246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14248 ac_status=$?
14249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14250 test $ac_status = 0; }
14251 then
14252 lt_cv_archive_cmds_need_lc=no
14253 else
14254 lt_cv_archive_cmds_need_lc=yes
14255 fi
14256 allow_undefined_flag=$lt_save_allow_undefined_flag
14257 else
14258 cat conftest.err 1>&5
14259 fi
14260 $RM conftest*
14261
14262 fi
14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14264 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14266 ;;
14267 esac
14268 fi
14269 ;;
14270 esac
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14424 printf %s "checking dynamic linker characteristics... " >&6; }
14425
14426 if test yes = "$GCC"; then
14427 case $host_os in
14428 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14429 *) lt_awk_arg='/^libraries:/' ;;
14430 esac
14431 case $host_os in
14432 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14433 *) lt_sed_strip_eq='s|=/|/|g' ;;
14434 esac
14435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14436 case $lt_search_path_spec in
14437 *\;*)
14438 # if the path contains ";" then we assume it to be the separator
14439 # otherwise default to the standard path separator (i.e. ":") - it is
14440 # assumed that no part of a normal pathname contains ";" but that should
14441 # okay in the real world where ";" in dirpaths is itself problematic.
14442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14443 ;;
14444 *)
14445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14446 ;;
14447 esac
14448 # Ok, now we have the path, separated by spaces, we can step through it
14449 # and add multilib dir if necessary...
14450 lt_tmp_lt_search_path_spec=
14451 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14452 # ...but if some path component already ends with the multilib dir we assume
14453 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14454 case "$lt_multi_os_dir; $lt_search_path_spec " in
14455 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14456 lt_multi_os_dir=
14457 ;;
14458 esac
14459 for lt_sys_path in $lt_search_path_spec; do
14460 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14462 elif test -n "$lt_multi_os_dir"; then
14463 test -d "$lt_sys_path" && \
14464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14465 fi
14466 done
14467 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14468 BEGIN {RS = " "; FS = "/|\n";} {
14469 lt_foo = "";
14470 lt_count = 0;
14471 for (lt_i = NF; lt_i > 0; lt_i--) {
14472 if ($lt_i != "" && $lt_i != ".") {
14473 if ($lt_i == "..") {
14474 lt_count++;
14475 } else {
14476 if (lt_count == 0) {
14477 lt_foo = "/" $lt_i lt_foo;
14478 } else {
14479 lt_count--;
14480 }
14481 }
14482 }
14483 }
14484 if (lt_foo != "") { lt_freq[lt_foo]++; }
14485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14486 }'`
14487 # AWK program above erroneously prepends '/' to C:/dos/paths
14488 # for these hosts.
14489 case $host_os in
14490 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14491 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14492 esac
14493 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14494 else
14495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14496 fi
14497 library_names_spec=
14498 libname_spec='lib$name'
14499 soname_spec=
14500 shrext_cmds=.so
14501 postinstall_cmds=
14502 postuninstall_cmds=
14503 finish_cmds=
14504 finish_eval=
14505 shlibpath_var=
14506 shlibpath_overrides_runpath=unknown
14507 version_type=none
14508 dynamic_linker="$host_os ld.so"
14509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14510 need_lib_prefix=unknown
14511 hardcode_into_libs=no
14512
14513 # when you set need_version to no, make sure it does not cause -set_version
14514 # flags to be left without arguments
14515 need_version=unknown
14516
14517
14518
14519 case $host_os in
14520 aix3*)
14521 version_type=linux # correct to gnu/linux during the next big refactor
14522 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14523 shlibpath_var=LIBPATH
14524
14525 # AIX 3 has no versioning support, so we append a major version to the name.
14526 soname_spec='$libname$release$shared_ext$major'
14527 ;;
14528
14529 aix[4-9]*)
14530 version_type=linux # correct to gnu/linux during the next big refactor
14531 need_lib_prefix=no
14532 need_version=no
14533 hardcode_into_libs=yes
14534 if test ia64 = "$host_cpu"; then
14535 # AIX 5 supports IA64
14536 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 else
14539 # With GCC up to 2.95.x, collect2 would create an import file
14540 # for dependence libraries. The import file would start with
14541 # the line '#! .'. This would cause the generated library to
14542 # depend on '.', always an invalid library. This was fixed in
14543 # development snapshots of GCC prior to 3.0.
14544 case $host_os in
14545 aix4 | aix4.[01] | aix4.[01].*)
14546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14547 echo ' yes '
14548 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14549 :
14550 else
14551 can_build_shared=no
14552 fi
14553 ;;
14554 esac
14555 # Using Import Files as archive members, it is possible to support
14556 # filename-based versioning of shared library archives on AIX. While
14557 # this would work for both with and without runtime linking, it will
14558 # prevent static linking of such archives. So we do filename-based
14559 # shared library versioning with .so extension only, which is used
14560 # when both runtime linking and shared linking is enabled.
14561 # Unfortunately, runtime linking may impact performance, so we do
14562 # not want this to be the default eventually. Also, we use the
14563 # versioned .so libs for executables only if there is the -brtl
14564 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14565 # To allow for filename-based versioning support, we need to create
14566 # libNAME.so.V as an archive file, containing:
14567 # *) an Import File, referring to the versioned filename of the
14568 # archive as well as the shared archive member, telling the
14569 # bitwidth (32 or 64) of that shared object, and providing the
14570 # list of exported symbols of that shared object, eventually
14571 # decorated with the 'weak' keyword
14572 # *) the shared object with the F_LOADONLY flag set, to really avoid
14573 # it being seen by the linker.
14574 # At run time we better use the real file rather than another symlink,
14575 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14576
14577 case $with_aix_soname,$aix_use_runtimelinking in
14578 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14579 # soname into executable. Probably we can add versioning support to
14580 # collect2, so additional links can be useful in future.
14581 aix,yes) # traditional libtool
14582 dynamic_linker='AIX unversionable lib.so'
14583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14584 # instead of lib<name>.a to let people know that these are not
14585 # typical AIX shared libraries.
14586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14587 ;;
14588 aix,no) # traditional AIX only
14589 dynamic_linker='AIX lib.a(lib.so.V)'
14590 # We preserve .a as extension for shared libraries through AIX4.2
14591 # and later when we are not doing run time linking.
14592 library_names_spec='$libname$release.a $libname.a'
14593 soname_spec='$libname$release$shared_ext$major'
14594 ;;
14595 svr4,*) # full svr4 only
14596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14598 # We do not specify a path in Import Files, so LIBPATH fires.
14599 shlibpath_overrides_runpath=yes
14600 ;;
14601 *,yes) # both, prefer svr4
14602 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14603 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14604 # unpreferred sharedlib libNAME.a needs extra handling
14605 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"'
14606 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"'
14607 # We do not specify a path in Import Files, so LIBPATH fires.
14608 shlibpath_overrides_runpath=yes
14609 ;;
14610 *,no) # both, prefer aix
14611 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14612 library_names_spec='$libname$release.a $libname.a'
14613 soname_spec='$libname$release$shared_ext$major'
14614 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14615 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)'
14616 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"'
14617 ;;
14618 esac
14619 shlibpath_var=LIBPATH
14620 fi
14621 ;;
14622
14623 amigaos*)
14624 case $host_cpu in
14625 powerpc)
14626 # Since July 2007 AmigaOS4 officially supports .so libraries.
14627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14629 ;;
14630 m68k)
14631 library_names_spec='$libname.ixlibrary $libname.a'
14632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14633 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'
14634 ;;
14635 esac
14636 ;;
14637
14638 beos*)
14639 library_names_spec='$libname$shared_ext'
14640 dynamic_linker="$host_os ld.so"
14641 shlibpath_var=LIBRARY_PATH
14642 ;;
14643
14644 bsdi[45]*)
14645 version_type=linux # correct to gnu/linux during the next big refactor
14646 need_version=no
14647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14648 soname_spec='$libname$release$shared_ext$major'
14649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14653 # the default ld.so.conf also contains /usr/contrib/lib and
14654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14655 # libtool to hard-code these into programs
14656 ;;
14657
14658 cygwin* | mingw* | pw32* | cegcc*)
14659 version_type=windows
14660 shrext_cmds=.dll
14661 need_version=no
14662 need_lib_prefix=no
14663
14664 case $GCC,$cc_basename in
14665 yes,*)
14666 # gcc
14667 library_names_spec='$libname.dll.a'
14668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14669 postinstall_cmds='base_file=`basename \$file`~
14670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14671 dldir=$destdir/`dirname \$dlpath`~
14672 test -d \$dldir || mkdir -p \$dldir~
14673 $install_prog $dir/$dlname \$dldir/$dlname~
14674 chmod a+x \$dldir/$dlname~
14675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14677 fi'
14678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14679 dlpath=$dir/\$dldll~
14680 $RM \$dlpath'
14681 shlibpath_overrides_runpath=yes
14682
14683 case $host_os in
14684 cygwin*)
14685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14686 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14687
14688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14689 ;;
14690 mingw* | cegcc*)
14691 # MinGW DLLs use traditional 'lib' prefix
14692 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14693 ;;
14694 pw32*)
14695 # pw32 DLLs use 'pw' prefix rather than 'lib'
14696 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14697 ;;
14698 esac
14699 dynamic_linker='Win32 ld.exe'
14700 ;;
14701
14702 *,cl*)
14703 # Native MSVC
14704 libname_spec='$name'
14705 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14706 library_names_spec='$libname.dll.lib'
14707
14708 case $build_os in
14709 mingw*)
14710 sys_lib_search_path_spec=
14711 lt_save_ifs=$IFS
14712 IFS=';'
14713 for lt_path in $LIB
14714 do
14715 IFS=$lt_save_ifs
14716 # Let DOS variable expansion print the short 8.3 style file name.
14717 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14718 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14719 done
14720 IFS=$lt_save_ifs
14721 # Convert to MSYS style.
14722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14723 ;;
14724 cygwin*)
14725 # Convert to unix form, then to dos form, then back to unix form
14726 # but this time dos style (no spaces!) so that the unix form looks
14727 # like /cygdrive/c/PROGRA~1:/cygdr...
14728 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14729 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14730 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14731 ;;
14732 *)
14733 sys_lib_search_path_spec=$LIB
14734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14735 # It is most probably a Windows format PATH.
14736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14737 else
14738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14739 fi
14740 # FIXME: find the short name or the path components, as spaces are
14741 # common. (e.g. "Program Files" -> "PROGRA~1")
14742 ;;
14743 esac
14744
14745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14746 postinstall_cmds='base_file=`basename \$file`~
14747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14748 dldir=$destdir/`dirname \$dlpath`~
14749 test -d \$dldir || mkdir -p \$dldir~
14750 $install_prog $dir/$dlname \$dldir/$dlname'
14751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752 dlpath=$dir/\$dldll~
14753 $RM \$dlpath'
14754 shlibpath_overrides_runpath=yes
14755 dynamic_linker='Win32 link.exe'
14756 ;;
14757
14758 *)
14759 # Assume MSVC wrapper
14760 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14761 dynamic_linker='Win32 ld.exe'
14762 ;;
14763 esac
14764 # FIXME: first we should search . and the directory the executable is in
14765 shlibpath_var=PATH
14766 ;;
14767
14768 darwin* | rhapsody*)
14769 dynamic_linker="$host_os dyld"
14770 version_type=darwin
14771 need_lib_prefix=no
14772 need_version=no
14773 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14774 soname_spec='$libname$release$major$shared_ext'
14775 shlibpath_overrides_runpath=yes
14776 shlibpath_var=DYLD_LIBRARY_PATH
14777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14778
14779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14781 ;;
14782
14783 dgux*)
14784 version_type=linux # correct to gnu/linux during the next big refactor
14785 need_lib_prefix=no
14786 need_version=no
14787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14788 soname_spec='$libname$release$shared_ext$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 ;;
14791
14792 freebsd* | dragonfly*)
14793 # DragonFly does not have aout. When/if they implement a new
14794 # versioning mechanism, adjust this.
14795 if test -x /usr/bin/objformat; then
14796 objformat=`/usr/bin/objformat`
14797 else
14798 case $host_os in
14799 freebsd[23].*) objformat=aout ;;
14800 *) objformat=elf ;;
14801 esac
14802 fi
14803 version_type=freebsd-$objformat
14804 case $version_type in
14805 freebsd-elf*)
14806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14807 soname_spec='$libname$release$shared_ext$major'
14808 need_version=no
14809 need_lib_prefix=no
14810 ;;
14811 freebsd-*)
14812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14813 need_version=yes
14814 ;;
14815 esac
14816 shlibpath_var=LD_LIBRARY_PATH
14817 case $host_os in
14818 freebsd2.*)
14819 shlibpath_overrides_runpath=yes
14820 ;;
14821 freebsd3.[01]* | freebsdelf3.[01]*)
14822 shlibpath_overrides_runpath=yes
14823 hardcode_into_libs=yes
14824 ;;
14825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14827 shlibpath_overrides_runpath=no
14828 hardcode_into_libs=yes
14829 ;;
14830 *) # from 4.6 on, and DragonFly
14831 shlibpath_overrides_runpath=yes
14832 hardcode_into_libs=yes
14833 ;;
14834 esac
14835 ;;
14836
14837 haiku*)
14838 version_type=linux # correct to gnu/linux during the next big refactor
14839 need_lib_prefix=no
14840 need_version=no
14841 dynamic_linker="$host_os runtime_loader"
14842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14843 soname_spec='$libname$release$shared_ext$major'
14844 shlibpath_var=LIBRARY_PATH
14845 shlibpath_overrides_runpath=no
14846 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14847 hardcode_into_libs=yes
14848 ;;
14849
14850 hpux9* | hpux10* | hpux11*)
14851 # Give a soname corresponding to the major version so that dld.sl refuses to
14852 # link against other versions.
14853 version_type=sunos
14854 need_lib_prefix=no
14855 need_version=no
14856 case $host_cpu in
14857 ia64*)
14858 shrext_cmds='.so'
14859 hardcode_into_libs=yes
14860 dynamic_linker="$host_os dld.so"
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14864 soname_spec='$libname$release$shared_ext$major'
14865 if test 32 = "$HPUX_IA64_MODE"; then
14866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14867 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14868 else
14869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14870 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14871 fi
14872 ;;
14873 hppa*64*)
14874 shrext_cmds='.sl'
14875 hardcode_into_libs=yes
14876 dynamic_linker="$host_os dld.sl"
14877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14880 soname_spec='$libname$release$shared_ext$major'
14881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14883 ;;
14884 *)
14885 shrext_cmds='.sl'
14886 dynamic_linker="$host_os dld.sl"
14887 shlibpath_var=SHLIB_PATH
14888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14890 soname_spec='$libname$release$shared_ext$major'
14891 ;;
14892 esac
14893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14894 postinstall_cmds='chmod 555 $lib'
14895 # or fails outright, so override atomically:
14896 install_override_mode=555
14897 ;;
14898
14899 interix[3-9]*)
14900 version_type=linux # correct to gnu/linux during the next big refactor
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14904 soname_spec='$libname$release$shared_ext$major'
14905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 ;;
14910
14911 irix5* | irix6* | nonstopux*)
14912 case $host_os in
14913 nonstopux*) version_type=nonstopux ;;
14914 *)
14915 if test yes = "$lt_cv_prog_gnu_ld"; then
14916 version_type=linux # correct to gnu/linux during the next big refactor
14917 else
14918 version_type=irix
14919 fi ;;
14920 esac
14921 need_lib_prefix=no
14922 need_version=no
14923 soname_spec='$libname$release$shared_ext$major'
14924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14925 case $host_os in
14926 irix5* | nonstopux*)
14927 libsuff= shlibsuff=
14928 ;;
14929 *)
14930 case $LD in # libtool.m4 will add one of these switches to LD
14931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14932 libsuff= shlibsuff= libmagic=32-bit;;
14933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14934 libsuff=32 shlibsuff=N32 libmagic=N32;;
14935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14937 *) libsuff= shlibsuff= libmagic=never-match;;
14938 esac
14939 ;;
14940 esac
14941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14942 shlibpath_overrides_runpath=no
14943 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14944 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14945 hardcode_into_libs=yes
14946 ;;
14947
14948 # No shared lib support for Linux oldld, aout, or coff.
14949 linux*oldld* | linux*aout* | linux*coff*)
14950 dynamic_linker=no
14951 ;;
14952
14953 linux*android*)
14954 version_type=none # Android doesn't support versioned libraries.
14955 need_lib_prefix=no
14956 need_version=no
14957 library_names_spec='$libname$release$shared_ext'
14958 soname_spec='$libname$release$shared_ext'
14959 finish_cmds=
14960 shlibpath_var=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath=yes
14962
14963 # This implies no fast_install, which is unacceptable.
14964 # Some rework will be needed to allow for fast_install
14965 # before this can be enabled.
14966 hardcode_into_libs=yes
14967
14968 dynamic_linker='Android linker'
14969 # Don't embed -rpath directories since the linker doesn't support them.
14970 hardcode_libdir_flag_spec='-L$libdir'
14971 ;;
14972
14973 # This must be glibc/ELF.
14974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14975 version_type=linux # correct to gnu/linux during the next big refactor
14976 need_lib_prefix=no
14977 need_version=no
14978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14979 soname_spec='$libname$release$shared_ext$major'
14980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=no
14983
14984 # Some binutils ld are patched to set DT_RUNPATH
14985 if test ${lt_cv_shlibpath_overrides_runpath+y}
14986 then :
14987 printf %s "(cached) " >&6
14988 else $as_nop
14989 lt_cv_shlibpath_overrides_runpath=no
14990 save_LDFLAGS=$LDFLAGS
14991 save_libdir=$libdir
14992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996
14997 int
14998 main (void)
14999 {
15000
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"
15006 then :
15007 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15008 then :
15009 lt_cv_shlibpath_overrides_runpath=yes
15010 fi
15011 fi
15012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15013 conftest$ac_exeext conftest.$ac_ext
15014 LDFLAGS=$save_LDFLAGS
15015 libdir=$save_libdir
15016
15017 fi
15018
15019 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15020
15021 # This implies no fast_install, which is unacceptable.
15022 # Some rework will be needed to allow for fast_install
15023 # before this can be enabled.
15024 hardcode_into_libs=yes
15025
15026 # Ideally, we could use ldconfig to report *all* directores which are
15027 # searched for libraries, however this is still not possible. Aside from not
15028 # being certain /sbin/ldconfig is available, command
15029 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15030 # even though it is searched at run-time. Try to do the best guess by
15031 # appending ld.so.conf contents (and includes) to the search path.
15032 if test -f /etc/ld.so.conf; then
15033 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' ' '`
15034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15035 fi
15036
15037 # We used to test for /lib/ld.so.1 and disable shared libraries on
15038 # powerpc, because MkLinux only supported shared libraries with the
15039 # GNU dynamic linker. Since this was broken with cross compilers,
15040 # most powerpc-linux boxes support dynamic linking these days and
15041 # people can always --disable-shared, the test was removed, and we
15042 # assume the GNU/Linux dynamic linker is in use.
15043 dynamic_linker='GNU/Linux ld.so'
15044 ;;
15045
15046 netbsdelf*-gnu)
15047 version_type=linux
15048 need_lib_prefix=no
15049 need_version=no
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15055 dynamic_linker='NetBSD ld.elf_so'
15056 ;;
15057
15058 netbsd*)
15059 version_type=sunos
15060 need_lib_prefix=no
15061 need_version=no
15062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15063 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15065 dynamic_linker='NetBSD (a.out) ld.so'
15066 else
15067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15068 soname_spec='$libname$release$shared_ext$major'
15069 dynamic_linker='NetBSD ld.elf_so'
15070 fi
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15074 ;;
15075
15076 newsos6)
15077 version_type=linux # correct to gnu/linux during the next big refactor
15078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 ;;
15082
15083 *nto* | *qnx*)
15084 version_type=qnx
15085 need_lib_prefix=no
15086 need_version=no
15087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15088 soname_spec='$libname$release$shared_ext$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=no
15091 hardcode_into_libs=yes
15092 dynamic_linker='ldqnx.so'
15093 ;;
15094
15095 openbsd* | bitrig*)
15096 version_type=sunos
15097 sys_lib_dlsearch_path_spec=/usr/lib
15098 need_lib_prefix=no
15099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15100 need_version=no
15101 else
15102 need_version=yes
15103 fi
15104 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath=yes
15108 ;;
15109
15110 os2*)
15111 libname_spec='$name'
15112 version_type=windows
15113 shrext_cmds=.dll
15114 need_version=no
15115 need_lib_prefix=no
15116 # OS/2 can only load a DLL with a base name of 8 characters or less.
15117 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15118 v=$($ECHO $release$versuffix | tr -d .-);
15119 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15120 $ECHO $n$v`$shared_ext'
15121 library_names_spec='${libname}_dll.$libext'
15122 dynamic_linker='OS/2 ld.exe'
15123 shlibpath_var=BEGINLIBPATH
15124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126 postinstall_cmds='base_file=`basename \$file`~
15127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15128 dldir=$destdir/`dirname \$dlpath`~
15129 test -d \$dldir || mkdir -p \$dldir~
15130 $install_prog $dir/$dlname \$dldir/$dlname~
15131 chmod a+x \$dldir/$dlname~
15132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15134 fi'
15135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15136 dlpath=$dir/\$dldll~
15137 $RM \$dlpath'
15138 ;;
15139
15140 osf3* | osf4* | osf5*)
15141 version_type=osf
15142 need_lib_prefix=no
15143 need_version=no
15144 soname_spec='$libname$release$shared_ext$major'
15145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15146 shlibpath_var=LD_LIBRARY_PATH
15147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15149 ;;
15150
15151 rdos*)
15152 dynamic_linker=no
15153 ;;
15154
15155 solaris*)
15156 version_type=linux # correct to gnu/linux during the next big refactor
15157 need_lib_prefix=no
15158 need_version=no
15159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15160 soname_spec='$libname$release$shared_ext$major'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 shlibpath_overrides_runpath=yes
15163 hardcode_into_libs=yes
15164 # ldd complains unless libraries are executable
15165 postinstall_cmds='chmod +x $lib'
15166 ;;
15167
15168 sunos4*)
15169 version_type=sunos
15170 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15174 if test yes = "$with_gnu_ld"; then
15175 need_lib_prefix=no
15176 fi
15177 need_version=yes
15178 ;;
15179
15180 sysv4 | sysv4.3*)
15181 version_type=linux # correct to gnu/linux during the next big refactor
15182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15183 soname_spec='$libname$release$shared_ext$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 case $host_vendor in
15186 sni)
15187 shlibpath_overrides_runpath=no
15188 need_lib_prefix=no
15189 runpath_var=LD_RUN_PATH
15190 ;;
15191 siemens)
15192 need_lib_prefix=no
15193 ;;
15194 motorola)
15195 need_lib_prefix=no
15196 need_version=no
15197 shlibpath_overrides_runpath=no
15198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15199 ;;
15200 esac
15201 ;;
15202
15203 sysv4*MP*)
15204 if test -d /usr/nec; then
15205 version_type=linux # correct to gnu/linux during the next big refactor
15206 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15207 soname_spec='$libname$shared_ext.$major'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 fi
15210 ;;
15211
15212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15213 version_type=sco
15214 need_lib_prefix=no
15215 need_version=no
15216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15217 soname_spec='$libname$release$shared_ext$major'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=yes
15220 hardcode_into_libs=yes
15221 if test yes = "$with_gnu_ld"; then
15222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15223 else
15224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15225 case $host_os in
15226 sco3.2v5*)
15227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15228 ;;
15229 esac
15230 fi
15231 sys_lib_dlsearch_path_spec='/usr/lib'
15232 ;;
15233
15234 tpf*)
15235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15236 version_type=linux # correct to gnu/linux during the next big refactor
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 shlibpath_overrides_runpath=no
15242 hardcode_into_libs=yes
15243 ;;
15244
15245 uts4*)
15246 version_type=linux # correct to gnu/linux during the next big refactor
15247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15248 soname_spec='$libname$release$shared_ext$major'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 ;;
15251
15252 *)
15253 dynamic_linker=no
15254 ;;
15255 esac
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15257 printf "%s\n" "$dynamic_linker" >&6; }
15258 test no = "$dynamic_linker" && can_build_shared=no
15259
15260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15261 if test yes = "$GCC"; then
15262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15263 fi
15264
15265 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15266 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15267 fi
15268
15269 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15270 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15271 fi
15272
15273 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15274 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15275
15276 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15277 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15278
15279 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15280 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15379 printf %s "checking how to hardcode library paths into programs... " >&6; }
15380 hardcode_action=
15381 if test -n "$hardcode_libdir_flag_spec" ||
15382 test -n "$runpath_var" ||
15383 test yes = "$hardcode_automatic"; then
15384
15385 # We can hardcode non-existent directories.
15386 if test no != "$hardcode_direct" &&
15387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15388 # have to relink, otherwise we might link with an installed library
15389 # when we should be linking with a yet-to-be-installed one
15390 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15391 test no != "$hardcode_minus_L"; then
15392 # Linking always hardcodes the temporary library directory.
15393 hardcode_action=relink
15394 else
15395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15396 hardcode_action=immediate
15397 fi
15398 else
15399 # We cannot hardcode anything, or else we can only hardcode existing
15400 # directories.
15401 hardcode_action=unsupported
15402 fi
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15404 printf "%s\n" "$hardcode_action" >&6; }
15405
15406 if test relink = "$hardcode_action" ||
15407 test yes = "$inherit_rpath"; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410 elif test yes = "$shlibpath_overrides_runpath" ||
15411 test no = "$enable_shared"; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15414 fi
15415
15416
15417
15418
15419
15420
15421 if test yes != "$enable_dlopen"; then
15422 enable_dlopen=unknown
15423 enable_dlopen_self=unknown
15424 enable_dlopen_self_static=unknown
15425 else
15426 lt_cv_dlopen=no
15427 lt_cv_dlopen_libs=
15428
15429 case $host_os in
15430 beos*)
15431 lt_cv_dlopen=load_add_on
15432 lt_cv_dlopen_libs=
15433 lt_cv_dlopen_self=yes
15434 ;;
15435
15436 mingw* | pw32* | cegcc*)
15437 lt_cv_dlopen=LoadLibrary
15438 lt_cv_dlopen_libs=
15439 ;;
15440
15441 cygwin*)
15442 lt_cv_dlopen=dlopen
15443 lt_cv_dlopen_libs=
15444 ;;
15445
15446 darwin*)
15447 # if libdl is installed we need to link against it
15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15449 printf %s "checking for dlopen in -ldl... " >&6; }
15450 if test ${ac_cv_lib_dl_dlopen+y}
15451 then :
15452 printf %s "(cached) " >&6
15453 else $as_nop
15454 ac_check_lib_save_LIBS=$LIBS
15455 LIBS="-ldl $LIBS"
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458
15459 /* Override any GCC internal prototype to avoid an error.
15460 Use char because int might match the return type of a GCC
15461 builtin and then its argument prototype would still apply. */
15462 char dlopen ();
15463 int
15464 main (void)
15465 {
15466 return dlopen ();
15467 ;
15468 return 0;
15469 }
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"
15472 then :
15473 ac_cv_lib_dl_dlopen=yes
15474 else $as_nop
15475 ac_cv_lib_dl_dlopen=no
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15478 conftest$ac_exeext conftest.$ac_ext
15479 LIBS=$ac_check_lib_save_LIBS
15480 fi
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15482 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15483 if test "x$ac_cv_lib_dl_dlopen" = xyes
15484 then :
15485 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15486 else $as_nop
15487
15488 lt_cv_dlopen=dyld
15489 lt_cv_dlopen_libs=
15490 lt_cv_dlopen_self=yes
15491
15492 fi
15493
15494 ;;
15495
15496 tpf*)
15497 # Don't try to run any link tests for TPF. We know it's impossible
15498 # because TPF is a cross-compiler, and we know how we open DSOs.
15499 lt_cv_dlopen=dlopen
15500 lt_cv_dlopen_libs=
15501 lt_cv_dlopen_self=no
15502 ;;
15503
15504 *)
15505 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15506 if test "x$ac_cv_func_shl_load" = xyes
15507 then :
15508 lt_cv_dlopen=shl_load
15509 else $as_nop
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15511 printf %s "checking for shl_load in -ldld... " >&6; }
15512 if test ${ac_cv_lib_dld_shl_load+y}
15513 then :
15514 printf %s "(cached) " >&6
15515 else $as_nop
15516 ac_check_lib_save_LIBS=$LIBS
15517 LIBS="-ldld $LIBS"
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520
15521 /* Override any GCC internal prototype to avoid an error.
15522 Use char because int might match the return type of a GCC
15523 builtin and then its argument prototype would still apply. */
15524 char shl_load ();
15525 int
15526 main (void)
15527 {
15528 return shl_load ();
15529 ;
15530 return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_link "$LINENO"
15534 then :
15535 ac_cv_lib_dld_shl_load=yes
15536 else $as_nop
15537 ac_cv_lib_dld_shl_load=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LIBS=$ac_check_lib_save_LIBS
15542 fi
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15544 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15545 if test "x$ac_cv_lib_dld_shl_load" = xyes
15546 then :
15547 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15548 else $as_nop
15549 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15550 if test "x$ac_cv_func_dlopen" = xyes
15551 then :
15552 lt_cv_dlopen=dlopen
15553 else $as_nop
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15555 printf %s "checking for dlopen in -ldl... " >&6; }
15556 if test ${ac_cv_lib_dl_dlopen+y}
15557 then :
15558 printf %s "(cached) " >&6
15559 else $as_nop
15560 ac_check_lib_save_LIBS=$LIBS
15561 LIBS="-ldl $LIBS"
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564
15565 /* Override any GCC internal prototype to avoid an error.
15566 Use char because int might match the return type of a GCC
15567 builtin and then its argument prototype would still apply. */
15568 char dlopen ();
15569 int
15570 main (void)
15571 {
15572 return dlopen ();
15573 ;
15574 return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_link "$LINENO"
15578 then :
15579 ac_cv_lib_dl_dlopen=yes
15580 else $as_nop
15581 ac_cv_lib_dl_dlopen=no
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15586 fi
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15588 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15589 if test "x$ac_cv_lib_dl_dlopen" = xyes
15590 then :
15591 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15592 else $as_nop
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15594 printf %s "checking for dlopen in -lsvld... " >&6; }
15595 if test ${ac_cv_lib_svld_dlopen+y}
15596 then :
15597 printf %s "(cached) " >&6
15598 else $as_nop
15599 ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lsvld $LIBS"
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607 char dlopen ();
15608 int
15609 main (void)
15610 {
15611 return dlopen ();
15612 ;
15613 return 0;
15614 }
15615 _ACEOF
15616 if ac_fn_c_try_link "$LINENO"
15617 then :
15618 ac_cv_lib_svld_dlopen=yes
15619 else $as_nop
15620 ac_cv_lib_svld_dlopen=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15623 conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_check_lib_save_LIBS
15625 fi
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15627 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15628 if test "x$ac_cv_lib_svld_dlopen" = xyes
15629 then :
15630 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15631 else $as_nop
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15633 printf %s "checking for dld_link in -ldld... " >&6; }
15634 if test ${ac_cv_lib_dld_dld_link+y}
15635 then :
15636 printf %s "(cached) " >&6
15637 else $as_nop
15638 ac_check_lib_save_LIBS=$LIBS
15639 LIBS="-ldld $LIBS"
15640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 /* end confdefs.h. */
15642
15643 /* Override any GCC internal prototype to avoid an error.
15644 Use char because int might match the return type of a GCC
15645 builtin and then its argument prototype would still apply. */
15646 char dld_link ();
15647 int
15648 main (void)
15649 {
15650 return dld_link ();
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"
15656 then :
15657 ac_cv_lib_dld_dld_link=yes
15658 else $as_nop
15659 ac_cv_lib_dld_dld_link=no
15660 fi
15661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15662 conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15664 fi
15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15666 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15667 if test "x$ac_cv_lib_dld_dld_link" = xyes
15668 then :
15669 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15670 fi
15671
15672
15673 fi
15674
15675
15676 fi
15677
15678
15679 fi
15680
15681
15682 fi
15683
15684
15685 fi
15686
15687 ;;
15688 esac
15689
15690 if test no = "$lt_cv_dlopen"; then
15691 enable_dlopen=no
15692 else
15693 enable_dlopen=yes
15694 fi
15695
15696 case $lt_cv_dlopen in
15697 dlopen)
15698 save_CPPFLAGS=$CPPFLAGS
15699 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15700
15701 save_LDFLAGS=$LDFLAGS
15702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15703
15704 save_LIBS=$LIBS
15705 LIBS="$lt_cv_dlopen_libs $LIBS"
15706
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15708 printf %s "checking whether a program can dlopen itself... " >&6; }
15709 if test ${lt_cv_dlopen_self+y}
15710 then :
15711 printf %s "(cached) " >&6
15712 else $as_nop
15713 if test yes = "$cross_compiling"; then :
15714 lt_cv_dlopen_self=cross
15715 else
15716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15717 lt_status=$lt_dlunknown
15718 cat > conftest.$ac_ext <<_LT_EOF
15719 #line $LINENO "configure"
15720 #include "confdefs.h"
15721
15722 #if HAVE_DLFCN_H
15723 #include <dlfcn.h>
15724 #endif
15725
15726 #include <stdio.h>
15727
15728 #ifdef RTLD_GLOBAL
15729 # define LT_DLGLOBAL RTLD_GLOBAL
15730 #else
15731 # ifdef DL_GLOBAL
15732 # define LT_DLGLOBAL DL_GLOBAL
15733 # else
15734 # define LT_DLGLOBAL 0
15735 # endif
15736 #endif
15737
15738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15739 find out it does not work in some platform. */
15740 #ifndef LT_DLLAZY_OR_NOW
15741 # ifdef RTLD_LAZY
15742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15743 # else
15744 # ifdef DL_LAZY
15745 # define LT_DLLAZY_OR_NOW DL_LAZY
15746 # else
15747 # ifdef RTLD_NOW
15748 # define LT_DLLAZY_OR_NOW RTLD_NOW
15749 # else
15750 # ifdef DL_NOW
15751 # define LT_DLLAZY_OR_NOW DL_NOW
15752 # else
15753 # define LT_DLLAZY_OR_NOW 0
15754 # endif
15755 # endif
15756 # endif
15757 # endif
15758 #endif
15759
15760 /* When -fvisibility=hidden is used, assume the code has been annotated
15761 correspondingly for the symbols needed. */
15762 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15763 int fnord () __attribute__((visibility("default")));
15764 #endif
15765
15766 int fnord () { return 42; }
15767 int main ()
15768 {
15769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15770 int status = $lt_dlunknown;
15771
15772 if (self)
15773 {
15774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15775 else
15776 {
15777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15778 else puts (dlerror ());
15779 }
15780 /* dlclose (self); */
15781 }
15782 else
15783 puts (dlerror ());
15784
15785 return status;
15786 }
15787 _LT_EOF
15788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15789 (eval $ac_link) 2>&5
15790 ac_status=$?
15791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15792 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15793 (./conftest; exit; ) >&5 2>/dev/null
15794 lt_status=$?
15795 case x$lt_status in
15796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15799 esac
15800 else :
15801 # compilation failed
15802 lt_cv_dlopen_self=no
15803 fi
15804 fi
15805 rm -fr conftest*
15806
15807
15808 fi
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15810 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15811
15812 if test yes = "$lt_cv_dlopen_self"; then
15813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15815 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15816 if test ${lt_cv_dlopen_self_static+y}
15817 then :
15818 printf %s "(cached) " >&6
15819 else $as_nop
15820 if test yes = "$cross_compiling"; then :
15821 lt_cv_dlopen_self_static=cross
15822 else
15823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15824 lt_status=$lt_dlunknown
15825 cat > conftest.$ac_ext <<_LT_EOF
15826 #line $LINENO "configure"
15827 #include "confdefs.h"
15828
15829 #if HAVE_DLFCN_H
15830 #include <dlfcn.h>
15831 #endif
15832
15833 #include <stdio.h>
15834
15835 #ifdef RTLD_GLOBAL
15836 # define LT_DLGLOBAL RTLD_GLOBAL
15837 #else
15838 # ifdef DL_GLOBAL
15839 # define LT_DLGLOBAL DL_GLOBAL
15840 # else
15841 # define LT_DLGLOBAL 0
15842 # endif
15843 #endif
15844
15845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15846 find out it does not work in some platform. */
15847 #ifndef LT_DLLAZY_OR_NOW
15848 # ifdef RTLD_LAZY
15849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15850 # else
15851 # ifdef DL_LAZY
15852 # define LT_DLLAZY_OR_NOW DL_LAZY
15853 # else
15854 # ifdef RTLD_NOW
15855 # define LT_DLLAZY_OR_NOW RTLD_NOW
15856 # else
15857 # ifdef DL_NOW
15858 # define LT_DLLAZY_OR_NOW DL_NOW
15859 # else
15860 # define LT_DLLAZY_OR_NOW 0
15861 # endif
15862 # endif
15863 # endif
15864 # endif
15865 #endif
15866
15867 /* When -fvisibility=hidden is used, assume the code has been annotated
15868 correspondingly for the symbols needed. */
15869 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15870 int fnord () __attribute__((visibility("default")));
15871 #endif
15872
15873 int fnord () { return 42; }
15874 int main ()
15875 {
15876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15877 int status = $lt_dlunknown;
15878
15879 if (self)
15880 {
15881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15882 else
15883 {
15884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15885 else puts (dlerror ());
15886 }
15887 /* dlclose (self); */
15888 }
15889 else
15890 puts (dlerror ());
15891
15892 return status;
15893 }
15894 _LT_EOF
15895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15896 (eval $ac_link) 2>&5
15897 ac_status=$?
15898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15900 (./conftest; exit; ) >&5 2>/dev/null
15901 lt_status=$?
15902 case x$lt_status in
15903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15906 esac
15907 else :
15908 # compilation failed
15909 lt_cv_dlopen_self_static=no
15910 fi
15911 fi
15912 rm -fr conftest*
15913
15914
15915 fi
15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15917 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15918 fi
15919
15920 CPPFLAGS=$save_CPPFLAGS
15921 LDFLAGS=$save_LDFLAGS
15922 LIBS=$save_LIBS
15923 ;;
15924 esac
15925
15926 case $lt_cv_dlopen_self in
15927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15928 *) enable_dlopen_self=unknown ;;
15929 esac
15930
15931 case $lt_cv_dlopen_self_static in
15932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15933 *) enable_dlopen_self_static=unknown ;;
15934 esac
15935 fi
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953 striplib=
15954 old_striplib=
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15956 printf %s "checking whether stripping libraries is possible... " >&6; }
15957 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15961 printf "%s\n" "yes" >&6; }
15962 else
15963 # FIXME - insert some real tests, host_os isn't really good enough
15964 case $host_os in
15965 darwin*)
15966 if test -n "$STRIP"; then
15967 striplib="$STRIP -x"
15968 old_striplib="$STRIP -S"
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 printf "%s\n" "yes" >&6; }
15971 else
15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 printf "%s\n" "no" >&6; }
15974 fi
15975 ;;
15976 *)
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 printf "%s\n" "no" >&6; }
15979 ;;
15980 esac
15981 fi
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994 # Report what library types will actually be built
15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15996 printf %s "checking if libtool supports shared libraries... " >&6; }
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15998 printf "%s\n" "$can_build_shared" >&6; }
15999
16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16001 printf %s "checking whether to build shared libraries... " >&6; }
16002 test no = "$can_build_shared" && enable_shared=no
16003
16004 # On AIX, shared libraries and static libraries use the same namespace, and
16005 # are all built from PIC.
16006 case $host_os in
16007 aix3*)
16008 test yes = "$enable_shared" && enable_static=no
16009 if test -n "$RANLIB"; then
16010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16011 postinstall_cmds='$RANLIB $lib'
16012 fi
16013 ;;
16014
16015 aix[4-9]*)
16016 if test ia64 != "$host_cpu"; then
16017 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16018 yes,aix,yes) ;; # shared object as lib.so file only
16019 yes,svr4,*) ;; # shared object as lib.so archive member only
16020 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16021 esac
16022 fi
16023 ;;
16024 esac
16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16026 printf "%s\n" "$enable_shared" >&6; }
16027
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16029 printf %s "checking whether to build static libraries... " >&6; }
16030 # Make sure either enable_shared or enable_static is yes.
16031 test yes = "$enable_shared" || enable_static=yes
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16033 printf "%s\n" "$enable_static" >&6; }
16034
16035
16036
16037
16038 fi
16039 ac_ext=c
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16044
16045 CC=$lt_save_CC
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061 ac_config_commands="$ac_config_commands libtool"
16062
16063
16064
16065
16066 # Only expand once:
16067
16068
16069
16070 if test x"$modules" = xdisabled
16071 then
16072 echo "Modules disabled."
16073 else
16074 # Enable module support in source code
16075
16076 printf "%s\n" "#define USE_MODULES 1" >>confdefs.h
16077
16078 # Export the module file suffix as LT_MODULE_EXT
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
16080 printf %s "checking what extension is used for runtime loadable modules... " >&6; }
16081 if test ${libltdl_cv_shlibext+y}
16082 then :
16083 printf %s "(cached) " >&6
16084 else $as_nop
16085
16086 module=yes
16087 eval libltdl_cv_shlibext=$shrext_cmds
16088 module=no
16089 eval libltdl_cv_shrext=$shrext_cmds
16090
16091 fi
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16093 printf "%s\n" "$libltdl_cv_shlibext" >&6; }
16094 if test -n "$libltdl_cv_shlibext"; then
16095
16096 printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
16097
16098 fi
16099 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16100
16101 printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
16102
16103 fi
16104 if test -n "$shared_archive_member_spec"; then
16105
16106 printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
16107
16108 fi
16109
16110 fi
16111 if test "x$modules" = xenabled ; then
16112 HAVE_MODULES_TRUE=
16113 HAVE_MODULES_FALSE='#'
16114 else
16115 HAVE_MODULES_TRUE='#'
16116 HAVE_MODULES_FALSE=
16117 fi
16118
16119
16120 # Ensure that a possibly hijacked libtool does not build any static libs.
16121 if test x"$enable_static" = xno; then
16122 LIB_CFLAGS=-shared
16123 else
16124 LIB_CFLAGS=
16125 fi
16126
16127
16128
16129
16130
16131
16132 # Check whether --enable-components was given.
16133 if test ${enable_components+y}
16134 then :
16135 enableval=$enable_components;
16136 if test "x$enableval" = xyes
16137 then
16138 build_all=yes
16139 else
16140 build_all=no
16141 fi
16142
16143 else $as_nop
16144
16145 build_all=yes
16146
16147
16148 fi
16149
16150
16151 # Check whether --enable-programs was given.
16152 if test ${enable_programs+y}
16153 then :
16154 enableval=$enable_programs;
16155 if test "x$enableval" = xyes
16156 then
16157 build_programs=yes
16158 else
16159 build_programs=no
16160 fi
16161
16162 else $as_nop
16163
16164 build_programs=no
16165
16166
16167 fi
16168
16169
16170 # Check whether --enable-libmpg123 was given.
16171 if test ${enable_libmpg123+y}
16172 then :
16173 enableval=$enable_libmpg123;
16174 if test "x$enableval" = xyes
16175 then
16176 build_libmpg123=yes
16177 else
16178 build_libmpg123=no
16179 fi
16180
16181 else $as_nop
16182
16183 build_libmpg123=no
16184
16185
16186 fi
16187
16188
16189 # Check whether --enable-libout123 was given.
16190 if test ${enable_libout123+y}
16191 then :
16192 enableval=$enable_libout123;
16193 if test "x$enableval" = xyes
16194 then
16195 build_libout123=yes
16196 else
16197 build_libout123=no
16198 fi
16199
16200 else $as_nop
16201
16202 build_libout123=no
16203
16204
16205 fi
16206
16207
16208 # Check whether --enable-libout123-modules was given.
16209 if test ${enable_libout123_modules+y}
16210 then :
16211 enableval=$enable_libout123_modules;
16212 if test "x$enableval" = xyes
16213 then
16214 build_libout123_modules=yes
16215 else
16216 build_libout123_modules=no
16217 fi
16218
16219 else $as_nop
16220
16221 build_libout123_modules=no
16222
16223
16224 fi
16225
16226
16227 # Check whether --enable-libsyn123 was given.
16228 if test ${enable_libsyn123+y}
16229 then :
16230 enableval=$enable_libsyn123;
16231 if test "x$enableval" = xyes
16232 then
16233 build_libsyn123=yes
16234 else
16235 build_libsyn123=no
16236 fi
16237
16238 else $as_nop
16239
16240 build_libsyn123=no
16241
16242
16243 fi
16244
16245
16246 if test "x$build_all" = xyes; then
16247 build_programs=yes
16248 build_libmpg123=yes
16249 build_libout123=yes
16250 build_libout123_modules=yes
16251 build_libsyn123=yes
16252 fi
16253
16254 if test "x$build_programs" = xyes ; then
16255 BUILD_PROGRAMS_TRUE=
16256 BUILD_PROGRAMS_FALSE='#'
16257 else
16258 BUILD_PROGRAMS_TRUE='#'
16259 BUILD_PROGRAMS_FALSE=
16260 fi
16261
16262 if test "x$build_libmpg123" = xyes ; then
16263 BUILD_LIBMPG123_TRUE=
16264 BUILD_LIBMPG123_FALSE='#'
16265 else
16266 BUILD_LIBMPG123_TRUE='#'
16267 BUILD_LIBMPG123_FALSE=
16268 fi
16269
16270 if test "x$build_libout123" = xyes ; then
16271 BUILD_LIBOUT123_TRUE=
16272 BUILD_LIBOUT123_FALSE='#'
16273 else
16274 BUILD_LIBOUT123_TRUE='#'
16275 BUILD_LIBOUT123_FALSE=
16276 fi
16277
16278 if test "x$build_libout123_modules" = xyes ; then
16279 BUILD_LIBOUT123_MODULES_TRUE=
16280 BUILD_LIBOUT123_MODULES_FALSE='#'
16281 else
16282 BUILD_LIBOUT123_MODULES_TRUE='#'
16283 BUILD_LIBOUT123_MODULES_FALSE=
16284 fi
16285
16286 if test "x$build_libout123" = xyes || test "x$build_libout123_modules" = xyes ; then
16287 BUILD_LIBOUT123_OR_MODULES_TRUE=
16288 BUILD_LIBOUT123_OR_MODULES_FALSE='#'
16289 else
16290 BUILD_LIBOUT123_OR_MODULES_TRUE='#'
16291 BUILD_LIBOUT123_OR_MODULES_FALSE=
16292 fi
16293
16294 if test "x$build_libsyn123" = xyes ; then
16295 BUILD_LIBSYN123_TRUE=
16296 BUILD_LIBSYN123_FALSE='#'
16297 else
16298 BUILD_LIBSYN123_TRUE='#'
16299 BUILD_LIBSYN123_FALSE=
16300 fi
16301
16302 # If we install libraries, prompting pkgconfig and include directories.
16303 if test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libout123_modules" = xyes || test "x$build_libsyn123" = xyes ; then
16304 NEED_LIB_TRUE=
16305 NEED_LIB_FALSE='#'
16306 else
16307 NEED_LIB_TRUE='#'
16308 NEED_LIB_FALSE=
16309 fi
16310
16311 if test "x$build_libmpg123" = xyes || test "x$build_libout123" = xyes || test "x$build_libsyn123" = xyes ; then
16312 NEED_MAINLIB_TRUE=
16313 NEED_MAINLIB_FALSE='#'
16314 else
16315 NEED_MAINLIB_TRUE='#'
16316 NEED_MAINLIB_FALSE=
16317 fi
16318
16319
16320 components=""
16321
16322 if test "x$build_programs" = xyes; then
16323 components="$components programs"
16324 fi
16325
16326 if test "x$build_libmpg123" = xyes; then
16327 components="$components libmpg123"
16328 fi
16329 if test "x$build_libout123" = xyes; then
16330 components="$components libout123"
16331 fi
16332 if test "x$build_libout123_modules" = xyes; then
16333 components="$components libout123-modules"
16334 fi
16335 if test "x$build_libsyn123" = xyes; then
16336 components="$components libsyn123"
16337 fi
16338
16339 components=$(echo $components)
16340
16341
16342 # Check whether --enable-debug was given.
16343 if test ${enable_debug+y}
16344 then :
16345 enableval=$enable_debug;
16346 if test "x$enableval" = xyes
16347 then
16348 debugging="enabled"
16349 else
16350 debugging="disabled"
16351 fi
16352
16353 else $as_nop
16354 debugging="disabled"
16355
16356 fi
16357
16358
16359 # Check whether --enable-xdebug was given.
16360 if test ${enable_xdebug+y}
16361 then :
16362 enableval=$enable_xdebug;
16363 if test "x$enableval" = xyes
16364 then
16365 xdebugging="enabled"
16366 else
16367 xdebugging="disabled"
16368 fi
16369
16370 else $as_nop
16371 xdebugging="disabled"
16372
16373 fi
16374
16375
16376 if test x"$xdebugging" = xenabled; then
16377 debugging=enabled
16378
16379 printf "%s\n" "#define XDEBUG 1" >>confdefs.h
16380
16381 fi
16382
16383 # Check whether --enable-nagging was given.
16384 if test ${enable_nagging+y}
16385 then :
16386 enableval=$enable_nagging;
16387 if test "x$enableval" = xyes
16388 then
16389 nagging="enabled"
16390 else
16391 nagging="disabled"
16392 fi
16393
16394 else $as_nop
16395 nagging="disabled"
16396
16397 fi
16398
16399
16400 if test x"$debugging" = xenabled; then
16401
16402 printf "%s\n" "#define DEBUG 1" >>confdefs.h
16403
16404 fi
16405
16406 # Check whether --enable-gapless was given.
16407 if test ${enable_gapless+y}
16408 then :
16409 enableval=$enable_gapless;
16410 if test "x$enableval" = xyes
16411 then
16412 gapless="enabled"
16413 else
16414 gapless="disabled"
16415 fi
16416
16417 else $as_nop
16418 gapless="enabled"
16419
16420 fi
16421
16422 if test "x$gapless" = xenabled; then
16423
16424 printf "%s\n" "#define GAPLESS 1" >>confdefs.h
16425
16426 fi
16427
16428 # Check whether --enable-fifo was given.
16429 if test ${enable_fifo+y}
16430 then :
16431 enableval=$enable_fifo;
16432 if test "x$enableval" = xyes
16433 then
16434 fifo="enabled"
16435 else
16436 fifo="disabled"
16437 fi
16438
16439 else $as_nop
16440
16441 fifo="auto"
16442
16443
16444 fi
16445
16446
16447
16448
16449 id3v2=enabled
16450 # Check whether --enable-id3v2 was given.
16451 if test ${enable_id3v2+y}
16452 then :
16453 enableval=$enable_id3v2;
16454 if test "x$enableval" = xno; then
16455 id3v2="disabled"
16456 fi
16457
16458 fi
16459
16460
16461 # id3v2 depends on strings... so check that in between.
16462 string=enabled
16463 # Check whether --enable-string was given.
16464 if test ${enable_string+y}
16465 then :
16466 enableval=$enable_string;
16467 if test "x$enableval" = xno; then
16468 string="disabled"
16469 fi
16470
16471 fi
16472
16473
16474 if test "x$string" = "xdisabled"; then
16475
16476 printf "%s\n" "#define NO_STRING 1" >>confdefs.h
16477
16478 id3v2=disabled
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ID3v2 support disabled because of string API being disabled." >&5
16480 printf "%s\n" "$as_me: WARNING: ID3v2 support disabled because of string API being disabled." >&2;}
16481 fi
16482 if test "x$string" = xenabled; then
16483 HAVE_STRING_TRUE=
16484 HAVE_STRING_FALSE='#'
16485 else
16486 HAVE_STRING_TRUE='#'
16487 HAVE_STRING_FALSE=
16488 fi
16489
16490
16491 if test "x$id3v2" = "xdisabled"; then
16492
16493 printf "%s\n" "#define NO_ID3V2 1" >>confdefs.h
16494
16495 fi
16496
16497 icy=enabled
16498 # Check whether --enable-icy was given.
16499 if test ${enable_icy+y}
16500 then :
16501 enableval=$enable_icy;
16502 if test "x$enableval" = xno; then
16503 icy="disabled"
16504 fi
16505
16506 fi
16507
16508
16509 if test "x$icy" = "xdisabled"; then
16510
16511 printf "%s\n" "#define NO_ICY 1" >>confdefs.h
16512
16513 fi
16514 if test "x$icy" = xenabled; then
16515 HAVE_ICY_TRUE=
16516 HAVE_ICY_FALSE='#'
16517 else
16518 HAVE_ICY_TRUE='#'
16519 HAVE_ICY_FALSE=
16520 fi
16521
16522
16523 ntom=enabled
16524 # Check whether --enable-ntom was given.
16525 if test ${enable_ntom+y}
16526 then :
16527 enableval=$enable_ntom;
16528 if test "x$enableval" = xno; then
16529 ntom="disabled"
16530 fi
16531
16532 fi
16533
16534
16535 if test "x$ntom" = "xdisabled"; then
16536
16537 printf "%s\n" "#define NO_NTOM 1" >>confdefs.h
16538
16539 fi
16540 if test "x$ntom" = xenabled; then
16541 HAVE_NTOM_TRUE=
16542 HAVE_NTOM_FALSE='#'
16543 else
16544 HAVE_NTOM_TRUE='#'
16545 HAVE_NTOM_FALSE=
16546 fi
16547
16548
16549 downsample=enabled
16550 # Check whether --enable-downsample was given.
16551 if test ${enable_downsample+y}
16552 then :
16553 enableval=$enable_downsample;
16554 if test "x$enableval" = xno; then
16555 downsample="disabled"
16556 fi
16557
16558 fi
16559
16560
16561 if test "x$downsample" = "xdisabled"; then
16562
16563 printf "%s\n" "#define NO_DOWNSAMPLE 1" >>confdefs.h
16564
16565 fi
16566
16567 feeder=enabled
16568 # Check whether --enable-feeder was given.
16569 if test ${enable_feeder+y}
16570 then :
16571 enableval=$enable_feeder;
16572 if test "x$enableval" = xno; then
16573 feeder="disabled"
16574 fi
16575
16576 fi
16577
16578
16579 if test "x$feeder" = "xdisabled"; then
16580
16581 printf "%s\n" "#define NO_FEEDER 1" >>confdefs.h
16582
16583 fi
16584
16585 moreinfo=enabled
16586 # Check whether --enable-moreinfo was given.
16587 if test ${enable_moreinfo+y}
16588 then :
16589 enableval=$enable_moreinfo;
16590 if test "x$enableval" = xno; then
16591 moreinfo="disabled"
16592 fi
16593
16594 fi
16595
16596
16597 if test "x$moreinfo" = "xdisabled"; then
16598
16599 printf "%s\n" "#define NO_MOREINFO 1" >>confdefs.h
16600
16601 fi
16602
16603 messages=enabled
16604 # Check whether --enable-messages was given.
16605 if test ${enable_messages+y}
16606 then :
16607 enableval=$enable_messages;
16608 if test "x$enableval" = xno; then
16609 messages="disabled"
16610 fi
16611
16612 fi
16613
16614
16615 if test "x$messages" = "xdisabled"; then
16616
16617 printf "%s\n" "#define NO_WARNING 1" >>confdefs.h
16618
16619
16620 printf "%s\n" "#define NO_ERRORMSG 1" >>confdefs.h
16621
16622
16623 printf "%s\n" "#define NO_ERETURN 1" >>confdefs.h
16624
16625 fi
16626
16627 runtimetables=disabled
16628 # Check whether --enable-runtime-tables was given.
16629 if test ${enable_runtime_tables+y}
16630 then :
16631 enableval=$enable_runtime_tables;
16632 if test "x$enableval" = xyes; then
16633 runtimetables=enabled
16634 fi
16635
16636
16637 fi
16638
16639
16640 if test "x$runtimetables" = "xenabled"; then
16641
16642 printf "%s\n" "#define RUNTIME_TABLES 1" >>confdefs.h
16643
16644 fi
16645
16646 if test "x$runtimetables" = xenabled ; then
16647 HAVE_RUNTIME_TABLES_TRUE=
16648 HAVE_RUNTIME_TABLES_FALSE='#'
16649 else
16650 HAVE_RUNTIME_TABLES_TRUE='#'
16651 HAVE_RUNTIME_TABLES_FALSE=
16652 fi
16653
16654
16655 newhuff=enabled
16656 # Check whether --enable-new-huffman was given.
16657 if test ${enable_new_huffman+y}
16658 then :
16659 enableval=$enable_new_huffman;
16660 if test "x$enableval" = xno; then
16661 newhuff=disabled
16662 fi
16663
16664
16665 fi
16666
16667
16668 if test "x$newhuff" = "xenabled"; then
16669
16670 printf "%s\n" "#define USE_NEW_HUFFTABLE 1" >>confdefs.h
16671
16672 fi
16673
16674 integers=quality
16675 # Check whether --enable-int-quality was given.
16676 if test ${enable_int_quality+y}
16677 then :
16678 enableval=$enable_int_quality;
16679 if test "x$enableval" = xno; then
16680 integers=fast
16681 fi
16682
16683 fi
16684
16685
16686 if test $integers = quality; then
16687
16688 printf "%s\n" "#define ACCURATE_ROUNDING 1" >>confdefs.h
16689
16690 fi
16691 if test x"$integers" = xquality ; then
16692 HAVE_ACCURATE_TRUE=
16693 HAVE_ACCURATE_FALSE='#'
16694 else
16695 HAVE_ACCURATE_TRUE='#'
16696 HAVE_ACCURATE_FALSE=
16697 fi
16698
16699
16700 int16=enabled
16701 # Check whether --enable-16bit was given.
16702 if test ${enable_16bit+y}
16703 then :
16704 enableval=$enable_16bit;
16705 if test "x$enableval" = xno; then
16706 int16="disabled"
16707 fi
16708
16709 fi
16710
16711
16712 int8=enabled
16713 # Check whether --enable-8bit was given.
16714 if test ${enable_8bit+y}
16715 then :
16716 enableval=$enable_8bit;
16717 if test "x$enableval" = xno; then
16718 int8="disabled"
16719 fi
16720
16721 fi
16722
16723
16724 int32=enabled
16725 # Check whether --enable-32bit was given.
16726 if test ${enable_32bit+y}
16727 then :
16728 enableval=$enable_32bit;
16729 if test "x$enableval" = xno; then
16730 int32="disabled"
16731 fi
16732
16733 fi
16734
16735
16736 real=enabled
16737 # Check whether --enable-real was given.
16738 if test ${enable_real+y}
16739 then :
16740 enableval=$enable_real;
16741 if test "x$enableval" = xno; then
16742 real="disabled"
16743 fi
16744
16745 fi
16746
16747
16748 equalizer=enabled
16749 # Check whether --enable-equalizer was given.
16750 if test ${enable_equalizer+y}
16751 then :
16752 enableval=$enable_equalizer;
16753 if test "x$enableval" = xno; then
16754 equalizer="disabled"
16755 fi
16756
16757 fi
16758
16759
16760
16761 # Check whether --with-cpu was given.
16762 if test ${with_cpu+y}
16763 then :
16764 withval=$with_cpu;
16765 fi
16766
16767
16768 use_yasm=auto
16769 # Check whether --enable-yasm was given.
16770 if test ${enable_yasm+y}
16771 then :
16772 enableval=$enable_yasm;
16773 if test "x$enableval" = xyes; then
16774 use_yasm="enabled"
16775 else
16776 use_yasm="disabled"
16777 fi
16778
16779 fi
16780
16781 if test x"$use_yasm" = xenabled; then
16782 as_fn_error $? "Yasm for AVX is currently broken and might go away." "$LINENO" 5
16783 fi
16784
16785 # Check whether --enable-ieeefloat was given.
16786 if test ${enable_ieeefloat+y}
16787 then :
16788 enableval=$enable_ieeefloat;
16789 if test "x$enableval" = xyes; then
16790 ieee=enabled
16791 else
16792 ieee=disabled
16793 fi
16794
16795 else $as_nop
16796 ieee=enabled
16797 fi
16798
16799
16800 if test "x$ieee" = xenabled; then
16801 echo "We assume IEEE754 floating point format."
16802
16803 printf "%s\n" "#define IEEE_FLOAT 1" >>confdefs.h
16804
16805 fi
16806
16807 # Check whether --enable-cases was given.
16808 if test ${enable_cases+y}
16809 then :
16810 enableval=$enable_cases;
16811 if test "x$enableval" = xyes; then
16812 specialcases=enabled
16813 else
16814 specialcases=disabled
16815 fi
16816
16817 else $as_nop
16818 specialcases=enabled
16819 fi
16820
16821
16822 if test "x$specialcases" = xdisabled; then
16823
16824 printf "%s\n" "#define SYN123_NO_CASES 1" >>confdefs.h
16825
16826 fi
16827
16828 sys_cppflags=
16829 newoldwritesample=disabled
16830 case $host in
16831 aarch64-*linux*|arm64-*linux*|aarch64-*bsd*|arm64-*bsd*|aarch64-apple-darwin*|arm64-apple-darwin*)
16832 cpu_type="aarch64"
16833 ;;
16834 arm*-*-linux*-*eabihf|armv7hl*-*-linux*)
16835 cpu_type="arm_fpu"
16836 ;;
16837 arm*-*-linux*)
16838 # check that... perhaps we are better off on arm with kernel math emulation
16839 cpu_type="arm_nofpu"
16840 ;;
16841 armv7*-apple-darwin*)
16842 cpu_type="arm_fpu"
16843 ;;
16844 i386-*-linux*|i386-*-kfreebsd*-gnu)
16845 cpu_type="i386_fpu"
16846 newoldwritesample=enabled
16847 ;;
16848 i486-*-linux*|i486-*-kfreebsd*-gnu)
16849 cpu_type="i486"
16850 newoldwritesample=enabled
16851 ;;
16852 i586-*-linux*|i586-*-kfreebsd*-gnu)
16853 cpu_type="x86"
16854 newoldwritesample=enabled
16855 ;;
16856 i686-*-linux*|i686-*-kfreebsd*-gnu)
16857 cpu_type="x86"
16858 newoldwritesample=enabled
16859 ;;
16860 x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
16861 cpu_type="x86-64"
16862 ;;
16863 *-*-linux*|*-*-kfreebsd*-gnu)
16864 cpu_type="generic_fpu"
16865 ;;
16866 i?86-apple-darwin10*)
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CPU type supports x86-64" >&5
16868 printf %s "checking if CPU type supports x86-64... " >&6; }
16869 case `sysctl -n hw.optional.x86_64` in
16870 1)
16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16872 printf "%s\n" "yes" >&6; }
16873 cpu_type="x86-64"
16874 ;;
16875 *)
16876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16877 printf "%s\n" "no" >&6; }
16878 cpu_type="x86"
16879 newoldwritesample=enabled
16880 ;;
16881 esac
16882 ;;
16883 i?86-apple-darwin*)
16884 cpu_type="x86"
16885 newoldwritesample=enabled
16886 ;;
16887 x86_64-apple-darwin*)
16888 cpu_type="x86-64"
16889 ;;
16890 *-apple-darwin*)
16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CPU type supports AltiVec" >&5
16892 printf %s "checking if CPU type supports AltiVec... " >&6; }
16893 case `machine` in
16894 ppc7400 | ppc7450 | ppc970)
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 printf "%s\n" "yes" >&6; }
16897 cpu_type="altivec"
16898 ;;
16899 *)
16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16901 printf "%s\n" "no" >&6; }
16902 cpu_type="generic_fpu"
16903 ;;
16904 esac
16905 ;;
16906 i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd* | i?86-*-haiku*)
16907 cpu_type="x86"
16908 newoldwritesample=enabled
16909 ;;
16910 x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd* | x86_64-*-haiku*)
16911 cpu_type="x86-64"
16912 ;;
16913 *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
16914 cpu_type="generic_fpu"
16915 ;;
16916 i386-*-solaris*)
16917 cpu_type=x86
16918 newoldwritesample=enabled
16919 ;;
16920 x86_64-*-solaris*)
16921 cpu_type=x86-64
16922 ;;
16923 *-*-solaris*)
16924 cpu_type="generic_fpu"
16925 ;;
16926 # os2-emx = OS/2 with some Unix fun; so p.ex. buffer works.
16927 # Till we sorted out the assembler troubles, generic CPU is default.
16928 i386-pc-os2-emx)
16929 cpu_type=generic_fpu
16930 newoldwritesample=enabled
16931 ;;
16932 x86_64-pc-os2-emx)
16933 # We are optimistic hat the future knows OS/2 on x86-64;-)
16934 cpu_type=generic_fpu
16935 ;;
16936 *-pc-os2-emx)
16937 cpu_type="generic_fpu"
16938 ;;
16939 *-dec-osf*)
16940 cpu_type="generic_fpu"
16941 ;;
16942 x86_64-*-cygwin*)
16943 cpu_type="x86-64"
16944 ;;
16945 i686-*-cygwin*)
16946 cpu_type="x86"
16947 newoldwritesample=enabled
16948 ;;
16949 i586-*-cygwin*)
16950 cpu_type="x86"
16951 newoldwritesample=enabled
16952 ;;
16953 i486-*-cygwin*)
16954 cpu_type="i486"
16955 newoldwritesample=enabled
16956 ;;
16957 i386-*-cygwin*)
16958 cpu_type="i386"
16959 newoldwritesample=enabled
16960 ;;
16961 *-cygwin*)
16962 cpu_type="generic_fpu"
16963 ;;
16964 i[3-7]86-*-mingw32*)
16965 LIBS="$LIBS"
16966 buffer=disabled
16967 cpu_type="x86"
16968 newoldwritesample=enabled
16969 ;;
16970 x86_64-*-mingw32*)
16971 LIBS="$LIBS"
16972 buffer=disabled
16973 cpu_type="x86-64"
16974 ;;
16975 i386-*-nto-qnx*)
16976 cpu_type="x86"
16977 newoldwritesample=enabled
16978 ;;
16979 *-ibm-aix*)
16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: AIX system detected. You might want to --disable-largefile when trouble about conflicting types for lseek64 and friends occurs." >&5
16981 printf "%s\n" "$as_me: WARNING: AIX system detected. You might want to --disable-largefile when trouble about conflicting types for lseek64 and friends occurs." >&2;}
16982 # Altivec instead? It is developed for MacOS ...
16983 cpu_type=generic_fpu
16984 # no struct winsize without _ALL_SOURCE
16985 sys_cppflags=-D_ALL_SOURCE
16986 ;;
16987 i386-*)
16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
16989 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
16990 cpu_type="i386"
16991 buffer=disabled
16992 sys_cppflags=-DGENERIC
16993 newoldwritesample=enabled
16994 ;;
16995 i486-*)
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
16997 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
16998 cpu_type="i486"
16999 buffer=disabled
17000 sys_cppflags=-DGENERIC
17001 newoldwritesample=enabled
17002 ;;
17003 i586-*)
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
17005 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
17006 cpu_type="x86"
17007 buffer=disabled
17008 sys_cppflags=-DGENERIC
17009 newoldwritesample=enabled
17010 ;;
17011 i686-*)
17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
17013 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
17014 cpu_type="x86"
17015 buffer=disabled
17016 sys_cppflags=-DGENERIC
17017 newoldwritesample=enabled
17018 ;;
17019 x86_64-*)
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
17021 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
17022 cpu_type="x86-64"
17023 buffer=disabled
17024 sys_cppflags=-DGENERIC
17025 ;;
17026 *)
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown host operating system" >&5
17028 printf "%s\n" "$as_me: WARNING: Unknown host operating system" >&2;}
17029 cpu_type="generic_fpu"
17030 buffer=disabled
17031 sys_cppflags=-DGENERIC
17032 ;;
17033 esac
17034
17035 # Check whether --enable-buffer was given.
17036 if test ${enable_buffer+y}
17037 then :
17038 enableval=$enable_buffer;
17039 if test "x$enableval" = xyes
17040 then
17041 echo "Note: Enabling buffer per request... perhaps it will not build anyway."
17042 buffer="enabled"
17043 else
17044 echo "Note: Disabling buffer per request."
17045 buffer="disabled"
17046 fi
17047
17048
17049 fi
17050
17051
17052 # Check whether --enable-newoldwritesample was given.
17053 if test ${enable_newoldwritesample+y}
17054 then :
17055 enableval=$enable_newoldwritesample;
17056 if test "x$enableval" = xyes
17057 then
17058 newoldwritesample=enabled
17059 else
17060 newoldwritesample=disabled
17061 fi
17062
17063 fi
17064
17065
17066 if test "x$with_cpu" != "x"; then
17067 cpu_type=$with_cpu
17068 fi
17069
17070 # Flag for 32 bit synth output or post-processing.
17071 case "$cpu_type" in
17072 *_nofpu)
17073 synth32=false
17074
17075 printf "%s\n" "#define NO_SYNTH32 1" >>confdefs.h
17076
17077 ;;
17078 *)
17079 synth32=true
17080 ;;
17081 esac
17082
17083 if test "x$int16" = "xdisabled"; then
17084
17085 printf "%s\n" "#define NO_16BIT 1" >>confdefs.h
17086
17087 fi
17088
17089 if test "x$int16" = "xenabled"; then
17090 HAVE_SYNTH16_TRUE=
17091 HAVE_SYNTH16_FALSE='#'
17092 else
17093 HAVE_SYNTH16_TRUE='#'
17094 HAVE_SYNTH16_FALSE=
17095 fi
17096
17097
17098 # 8bit works only through 16bit
17099 if test "x$int16" = "xdisabled"; then
17100 int8=disabled
17101 fi
17102 if test "x$int8" = "xdisabled"; then
17103
17104 printf "%s\n" "#define NO_8BIT 1" >>confdefs.h
17105
17106 fi
17107
17108 if test "x$int8" = "xenabled"; then
17109 HAVE_SYNTH8_TRUE=
17110 HAVE_SYNTH8_FALSE='#'
17111 else
17112 HAVE_SYNTH8_TRUE='#'
17113 HAVE_SYNTH8_FALSE=
17114 fi
17115
17116
17117 if test "x$int32" = "xdisabled"; then
17118
17119 printf "%s\n" "#define NO_32BIT 1" >>confdefs.h
17120
17121 fi
17122 if $synth32 && test x"$int32" = xenabled ; then
17123 HAVE_SYNTH32_TRUE=
17124 HAVE_SYNTH32_FALSE='#'
17125 else
17126 HAVE_SYNTH32_TRUE='#'
17127 HAVE_SYNTH32_FALSE=
17128 fi
17129
17130
17131 if test "x$real" = "xdisabled"; then
17132
17133 printf "%s\n" "#define NO_REAL 1" >>confdefs.h
17134
17135 fi
17136 if $synth32 && test x"$real" = xenabled ; then
17137 HAVE_SYNTHREAL_TRUE=
17138 HAVE_SYNTHREAL_FALSE='#'
17139 else
17140 HAVE_SYNTHREAL_TRUE='#'
17141 HAVE_SYNTHREAL_FALSE=
17142 fi
17143
17144
17145 if test "x$equalizer" = "xdisabled"; then
17146
17147 printf "%s\n" "#define NO_EQUALIZER 1" >>confdefs.h
17148
17149 fi
17150 if test x"$equalizer" = xenabled ; then
17151 HAVE_EQUALIZER_TRUE=
17152 HAVE_EQUALIZER_FALSE='#'
17153 else
17154 HAVE_EQUALIZER_TRUE='#'
17155 HAVE_EQUALIZER_FALSE=
17156 fi
17157
17158
17159 layer1=enabled
17160 # Check whether --enable-layer1 was given.
17161 if test ${enable_layer1+y}
17162 then :
17163 enableval=$enable_layer1;
17164 if test "x$enableval" = xno; then
17165 layer1="disabled"
17166
17167 printf "%s\n" "#define NO_LAYER1 1" >>confdefs.h
17168
17169 fi
17170
17171 fi
17172
17173
17174 if test "x$layer1" = xenabled ; then
17175 HAVE_LAYER1_TRUE=
17176 HAVE_LAYER1_FALSE='#'
17177 else
17178 HAVE_LAYER1_TRUE='#'
17179 HAVE_LAYER1_FALSE=
17180 fi
17181
17182
17183 layer2=enabled
17184 # Check whether --enable-layer2 was given.
17185 if test ${enable_layer2+y}
17186 then :
17187 enableval=$enable_layer2;
17188 if test "x$enableval" = xno; then
17189 layer2="disabled"
17190
17191 printf "%s\n" "#define NO_LAYER2 1" >>confdefs.h
17192
17193 fi
17194
17195 fi
17196
17197
17198 if test "x$layer2" = xenabled ; then
17199 HAVE_LAYER2_TRUE=
17200 HAVE_LAYER2_FALSE='#'
17201 else
17202 HAVE_LAYER2_TRUE='#'
17203 HAVE_LAYER2_FALSE=
17204 fi
17205
17206
17207 layer3=enabled
17208 # Check whether --enable-layer3 was given.
17209 if test ${enable_layer3+y}
17210 then :
17211 enableval=$enable_layer3;
17212 if test "x$enableval" = xno; then
17213 layer3="disabled"
17214
17215 printf "%s\n" "#define NO_LAYER3 1" >>confdefs.h
17216
17217 fi
17218
17219 fi
17220
17221
17222 if test "x$layer3" = xenabled ; then
17223 HAVE_LAYER3_TRUE=
17224 HAVE_LAYER3_FALSE='#'
17225 else
17226 HAVE_LAYER3_TRUE='#'
17227 HAVE_LAYER3_FALSE=
17228 fi
17229
17230
17231
17232 # Check whether --with-audio was given.
17233 if test ${with_audio+y}
17234 then :
17235 withval=$with_audio;
17236 fi
17237
17238
17239 # Check whether --with-default-audio was given.
17240 if test ${with_default_audio+y}
17241 then :
17242 withval=$with_default_audio;
17243 fi
17244
17245
17246
17247 # Check whether --with-optimization was given.
17248 if test ${with_optimization+y}
17249 then :
17250 withval=$with_optimization;
17251 fi
17252
17253
17254
17255 # Check whether --with-seektable was given.
17256 if test ${with_seektable+y}
17257 then :
17258 withval=$with_seektable;
17259 fi
17260
17261
17262
17263
17264 # based on posting from John Dalgliesh <[email protected]> on ffmpeg (LGPL) mailing list
17265 # extended to use balign if present
17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if .balign is present" >&5
17267 printf %s "checking if .balign is present... " >&6; }
17268 echo '.balign 4' > conftest.s
17269 if $CCAS $CCASFLAGS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
17270
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272 printf "%s\n" "yes" >&6; }
17273
17274 printf "%s\n" "#define ASMALIGN_BALIGN 1" >>confdefs.h
17275
17276
17277 else
17278
17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 printf "%s\n" "no" >&6; }
17281
17282 # find if .align arg is power-of-two or not
17283 asmalign_exp="unknown"
17284 if test x"$asmalign_exp" = xunknown; then
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if .align takes 2-exponent" >&5
17286 printf %s "checking if .align takes 2-exponent... " >&6; }
17287 asmalign_exp="no"
17288 echo '.align 3' > conftest.s
17289 if $CCAS $CCASFLAGS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
17290 asmalign_exp="yes"
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17292 printf "%s\n" "yes" >&6; }
17293 else
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 printf "%s\n" "no" >&6; }
17296 fi
17297 rm -f conftest.o conftest.s
17298 fi
17299 if test x"$asmalign_exp" = xyes; then
17300
17301 printf "%s\n" "#define ASMALIGN_EXP 1" >>confdefs.h
17302
17303 else
17304
17305 printf "%s\n" "#define ASMALIGN_BYTE 1" >>confdefs.h
17306
17307 fi
17308
17309 fi
17310
17311 ccalign="unknown"
17312 if test x"$ccalign" = xunknown; then
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned(16)))" >&5
17314 printf %s "checking __attribute__((aligned(16)))... " >&6; }
17315 ccalign="no"
17316 echo '__attribute__((aligned(16))) float var;' > conftest.c
17317 if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
17318 ccalign="yes"
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 printf "%s\n" "yes" >&6; }
17321 else
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 printf "%s\n" "no" >&6; }
17324 fi
17325 rm -f conftest.o conftest.c
17326 fi
17327
17328
17329 avx_support="unknown"
17330 if test x"$avx_support" = xunknown; then
17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if assembler supports AVX instructions" >&5
17332 printf %s "checking if assembler supports AVX instructions... " >&6; }
17333 avx_support="no"
17334 echo '.text' > conftest.s
17335 echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
17336 if $CCAS $CCASFLAGS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
17337 avx_support="yes"
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17339 printf "%s\n" "yes" >&6; }
17340 else
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 printf "%s\n" "no" >&6; }
17343 fi
17344 rm -f conftest.o conftest.s
17345 fi
17346
17347 check_yasm=no
17348 if test x"$avx_support" = xno || test x"$use_yasm" = xenabled; then
17349 check_yasm=yes
17350 fi
17351 if test x"$use_yasm" = xdisabled; then
17352 check_yasm=no
17353 fi
17354
17355 if test x"$check_yasm" = xyes; then
17356 for ac_prog in yasm
17357 do
17358 # Extract the first word of "$ac_prog", so it can be a program name with args.
17359 set dummy $ac_prog; ac_word=$2
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17361 printf %s "checking for $ac_word... " >&6; }
17362 if test ${ac_cv_prog_YASM+y}
17363 then :
17364 printf %s "(cached) " >&6
17365 else $as_nop
17366 if test -n "$YASM"; then
17367 ac_cv_prog_YASM="$YASM" # Let the user override the test.
17368 else
17369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17370 for as_dir in $PATH
17371 do
17372 IFS=$as_save_IFS
17373 case $as_dir in #(((
17374 '') as_dir=./ ;;
17375 */) ;;
17376 *) as_dir=$as_dir/ ;;
17377 esac
17378 for ac_exec_ext in '' $ac_executable_extensions; do
17379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17380 ac_cv_prog_YASM="$ac_prog"
17381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17382 break 2
17383 fi
17384 done
17385 done
17386 IFS=$as_save_IFS
17387
17388 fi
17389 fi
17390 YASM=$ac_cv_prog_YASM
17391 if test -n "$YASM"; then
17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
17393 printf "%s\n" "$YASM" >&6; }
17394 else
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17396 printf "%s\n" "no" >&6; }
17397 fi
17398
17399
17400 test -n "$YASM" && break
17401 done
17402 test -n "$YASM" || YASM="no"
17403
17404 if test x"$YASM" != xno; then
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $YASM supports GAS syntax and AVX instructions" >&5
17406 printf %s "checking if $YASM supports GAS syntax and AVX instructions... " >&6; }
17407 echo '.text' > conftest.s
17408 echo 'vaddps %ymm0,%ymm0,%ymm0' >> conftest.s
17409 if $YASM -pgas -rcpp -o conftest.o conftest.s 1>/dev/null 2>&1; then
17410 avx_support="yes"
17411 YASMFLAGS="-pgas -rgas -mamd64"
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17413 printf "%s\n" "yes" >&6; }
17414 else
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 printf "%s\n" "no" >&6; }
17417 fi
17418 rm -f conftest.o conftest.s
17419 else
17420 if test x"$use_yasm" = xenabled; then
17421 as_fn_error $? "Yasm enforced but not found!" "$LINENO" 5
17422 fi
17423 fi
17424 else
17425 YASM="no"
17426 fi
17427
17428 if test "x$cpu_type" = "xavx"; then
17429 if test "x$avx_support" != "xyes"; then
17430 as_fn_error $? "Assembler doesn't understand AVX instructions." "$LINENO" 5
17431 fi
17432 fi
17433
17434
17435
17436
17437
17438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for basic C99 features" >&5
17439 printf %s "checking for basic C99 features... " >&6; }
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 `cat "$srcdir/test_c99.c"`
17443 _ACEOF
17444 if ac_fn_c_try_link "$LINENO"
17445 then :
17446 have_c99=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17447 printf "%s\n" "yes" >&6; }
17448 else $as_nop
17449 have_c99=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450 printf "%s\n" "no" >&6; }
17451
17452 fi
17453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17454 conftest$ac_exeext conftest.$ac_ext
17455 if test "x$have_c99" = xno; then
17456 as_fn_error $? "Your toolchain lacks basic C99 features. See test_c99.c for the requirements." "$LINENO" 5
17457 fi
17458
17459 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17460 if test "x$ac_cv_header_unistd_h" = xyes
17461 then :
17462 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17463
17464 fi
17465 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17466 if test "x$ac_cv_header_sched_h" = xyes
17467 then :
17468 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
17469
17470 fi
17471 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
17472 if test "x$ac_cv_header_sys_ioctl_h" = xyes
17473 then :
17474 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
17475
17476 fi
17477 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
17478 if test "x$ac_cv_header_sys_types_h" = xyes
17479 then :
17480 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
17481
17482 fi
17483 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17484 if test "x$ac_cv_header_sys_time_h" = xyes
17485 then :
17486 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
17487
17488 fi
17489 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
17490 if test "x$ac_cv_header_sys_wait_h" = xyes
17491 then :
17492 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17493
17494 fi
17495 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
17496 if test "x$ac_cv_header_sys_resource_h" = xyes
17497 then :
17498 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
17499
17500 fi
17501 ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
17502 if test "x$ac_cv_header_sys_signal_h" = xyes
17503 then :
17504 printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h
17505
17506 fi
17507 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
17508 if test "x$ac_cv_header_signal_h" = xyes
17509 then :
17510 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
17511
17512 fi
17513 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
17514 if test "x$ac_cv_header_sys_select_h" = xyes
17515 then :
17516 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
17517
17518 fi
17519 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17520 if test "x$ac_cv_header_dirent_h" = xyes
17521 then :
17522 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17523
17524 fi
17525 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
17526 if test "x$ac_cv_header_sys_stat_h" = xyes
17527 then :
17528 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
17529
17530 fi
17531
17532
17533
17534 portable_api=no
17535 # Check whether --enable-portable was given.
17536 if test ${enable_portable+y}
17537 then :
17538 enableval=$enable_portable;
17539 if test "x$enableval" = xyes; then
17540 portable_api="yes"
17541 fi
17542
17543 fi
17544
17545 if test "x$portable_api" = xyes; then
17546
17547 printf "%s\n" "#define PORTABLE_API 1" >>confdefs.h
17548
17549 fi
17550
17551 if test x"$portable_api" = xno ; then
17552 HAVE_LFS_WRAP_TRUE=
17553 HAVE_LFS_WRAP_FALSE='#'
17554 else
17555 HAVE_LFS_WRAP_TRUE='#'
17556 HAVE_LFS_WRAP_FALSE=
17557 fi
17558
17559
17560 # Check for shape-shifting off_t just for the mpg123 client application.
17561 # At least at first, mpg123 itself will excercise the wrappers, otherwise
17562 # we don't know they work.
17563 # Do not use AC_CHECK_SIZEOF twice to avoid redefinition of SIZEOF_OFF_T
17564 # in further tests via confdefs.h.
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking switched off_t size" >&5
17566 printf %s "checking switched off_t size... " >&6; }
17567 if ac_fn_c_compute_int "$LINENO" "sizeof(off_t)" "switched_off_size" "
17568 #undef _FILE_OFFSET_BITS
17569 #define _FILE_OFFSET_BITS 64
17570 #include <sys/types.h>
17571 "
17572 then :
17573
17574 fi
17575
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $switched_off_size" >&5
17577 printf "%s\n" "$switched_off_size" >&6; }
17578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking unswitched off_t size" >&5
17579 printf %s "checking unswitched off_t size... " >&6; }
17580 if ac_fn_c_compute_int "$LINENO" "sizeof(off_t)" "unswitched_off_size" "
17581 #undef _FILE_OFFSET_BITS
17582 #include <sys/types.h>
17583 "
17584 then :
17585
17586 fi
17587
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unswitched_off_size" >&5
17589 printf "%s\n" "$unswitched_off_size" >&6; }
17590 # Now the size without meddling, possibly enforced to 64 bits by system settings.
17591 # The cast to long int works around a bug in the HP C Compiler
17592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17594 # This bug is HP SR number 8606223364.
17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17596 printf %s "checking size of off_t... " >&6; }
17597 if test ${ac_cv_sizeof_off_t+y}
17598 then :
17599 printf %s "(cached) " >&6
17600 else $as_nop
17601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
17602 #include <sys/types.h>
17603
17604 "
17605 then :
17606
17607 else $as_nop
17608 if test "$ac_cv_type_off_t" = yes; then
17609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17611 as_fn_error 77 "cannot compute sizeof (off_t)
17612 See \`config.log' for more details" "$LINENO" 5; }
17613 else
17614 ac_cv_sizeof_off_t=0
17615 fi
17616 fi
17617
17618 fi
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17620 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
17621
17622
17623
17624 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
17625
17626
17627
17628 # Some paranoia about the limited choices we accept.
17629 # 32 or 64 bit offsets, an the switched one better not be smaller.
17630 if test "x$ac_cv_sizeof_off_t" = x0; then
17631 as_fn_error $? "Not even off_t found. I need some POSIX." "$LINENO" 5
17632 fi
17633 if test "x$ac_cv_sizeof_off_t" != x8 &&
17634 test "x$ac_cv_sizeof_off_t" != x4; then
17635 as_fn_error $? "unexpected size of off_t" "$LINENO" 5
17636 fi
17637
17638 if test "x$ac_cv_sizeof_off_t" != "x$switched_off_size"; then
17639 if test "x$switched_off_size" != x8; then
17640 as_fn_error $? "bad switched off_t size" "$LINENO" 5
17641 fi
17642 lfs_sensitive=yes
17643
17644 printf "%s\n" "#define LFS_SENSITIVE 1" >>confdefs.h
17645
17646 else
17647 lfs_sensitive=no
17648 fi
17649
17650 forced_off_64=no
17651 if test "x$unswitched_off_size" != "x$ac_cv_sizeof_off_t"; then
17652 if test "x$ac_cv_sizeof_off_t" = x8; then
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected system with enforced 64 bit offsets, dropping suffixless symbols for uncryptic ABI breakage." >&5
17654 printf "%s\n" "$as_me: Detected system with enforced 64 bit offsets, dropping suffixless symbols for uncryptic ABI breakage." >&6;}
17655
17656 printf "%s\n" "#define FORCED_OFF_64 1" >>confdefs.h
17657
17658 forced_off_64=yes
17659 fi
17660 fi
17661
17662 use_largefile=auto
17663
17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if native off_t is already 64 bits" >&5
17665 printf %s "checking if native off_t is already 64 bits... " >&6; }
17666 if test "x$ac_cv_sizeof_off_t" = x8; then
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17668 printf "%s\n" "yes" >&6; }
17669 use_largefile=no
17670 else
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17672 printf "%s\n" "no" >&6; }
17673 fi
17674
17675 # Check whether --enable-largefile was given.
17676 if test ${enable_largefile+y}
17677 then :
17678 enableval=$enable_largefile; if test "x$enableval" = xno; then
17679 use_largefile=no
17680 fi
17681
17682 fi
17683
17684
17685 # Large file support without the magic. Check for the API explicitly.
17686 # The shape-shifting off_t has to be avoided for the library builds.
17687 # The mpg123 application might still use it to check if the API works.
17688 # Or we limit it to portable, off_t-less API at some point.
17689
17690 if test x"$use_largefile" != xno; then
17691
17692 # Expect usual_LARGEFILE64_SOURCE mechanics with off64_t and lseek64 present.
17693 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
17694 if test "x$ac_cv_func_lseek64" = xyes
17695 then :
17696 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
17697
17698 fi
17699
17700 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "
17701 #define _LARGEFILE64_SOURCE
17702 #include <sys/types.h>
17703 #include <unistd.h>
17704
17705 "
17706 if test "x$ac_cv_type_off64_t" = xyes
17707 then :
17708 have_off64_t=yes
17709 else $as_nop
17710 have_off64_t=no
17711 fi
17712
17713 if test "x$have_off64_t" = xyes && test "x$ac_cv_func_lseek64" = xyes; then
17714 use_largefile=yes
17715
17716 printf "%s\n" "#define LFS_LARGEFILE_64 1" >>confdefs.h
17717
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have O_LARGEFILE" >&5
17719 printf %s "checking if we have O_LARGEFILE... " >&6; }
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722
17723 #define _LARGEFILE64_SOURCE
17724 #include <sys/types.h>
17725 #include <sys/stat.h>
17726 #include <unistd.h>
17727 #include <fcntl.h>
17728
17729 int foo()
17730 {
17731 return open("foo", O_RDONLY|O_LARGEFILE);
17732 }
17733
17734 _ACEOF
17735 if ac_fn_c_try_compile "$LINENO"
17736 then :
17737 have_o_largefile=yes
17738 else $as_nop
17739 have_o_largefile=no
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_largefile" >&5
17743 printf "%s\n" "$have_o_largefile" >&6; }
17744 if test x"$have_o_largefile" = xyes; then
17745
17746 printf "%s\n" "#define HAVE_O_LARGEFILE 1" >>confdefs.h
17747
17748 fi
17749 else
17750 use_largefile=no
17751 fi
17752
17753 fi # use_largefile auto or yes
17754
17755
17756
17757 for ac_func in mmap
17758 do :
17759 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17760 if test "x$ac_cv_func_mmap" = xyes
17761 then :
17762 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
17763 have_mmap=yes
17764 else $as_nop
17765 have_mmap=no
17766 fi
17767
17768 done
17769 if test "x$have_mmap" = "xno"; then
17770 for ac_header in sys/ipc.h sys/shm.h
17771 do :
17772 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
17773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17774 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17775 then :
17776 cat >>confdefs.h <<_ACEOF
17777 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
17778 _ACEOF
17779
17780 else $as_nop
17781 buffer=disabled
17782 fi
17783
17784 done
17785
17786 for ac_func in shmget shmat shmdt shmctl
17787 do :
17788 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
17789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17790 if eval test \"x\$"$as_ac_var"\" = x"yes"
17791 then :
17792 cat >>confdefs.h <<_ACEOF
17793 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
17794 _ACEOF
17795
17796 else $as_nop
17797 buffer=disabled
17798 fi
17799
17800 done
17801 fi
17802
17803 # Check if system supports termios
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
17805 printf %s "checking POSIX termios... " >&6; }
17806 if test ${ac_cv_sys_posix_termios+y}
17807 then :
17808 printf %s "(cached) " >&6
17809 else $as_nop
17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h. */
17812 #include <sys/types.h>
17813 #include <unistd.h>
17814 #include <termios.h>
17815
17816 int
17817 main (void)
17818 {
17819 /* SunOS 4.0.3 has termios.h but not the library calls. */
17820 tcgetattr(0, 0);
17821 ;
17822 return 0;
17823 }
17824 _ACEOF
17825 if ac_fn_c_try_link "$LINENO"
17826 then :
17827 ac_cv_sys_posix_termios=yes
17828 else $as_nop
17829 ac_cv_sys_posix_termios=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17832 conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
17835 printf "%s\n" "$ac_cv_sys_posix_termios" >&6; }
17836
17837
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have wincon.h" >&5
17839 printf %s "checking if we have wincon.h... " >&6; }
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17842
17843 #include <windows.h>
17844 #include <wincon.h>
17845 void *v = &ReadConsoleInput;
17846
17847 _ACEOF
17848 if ac_fn_c_try_compile "$LINENO"
17849 then :
17850 ac_cv_header_wincon_h=yes
17851 else $as_nop
17852 ac_cv_header_wincon_h=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_wincon_h" >&5
17856 printf "%s\n" "$ac_cv_header_wincon_h" >&6; }
17857 if test "x$ac_cv_header_wincon_h" = "xyes"
17858 then :
17859
17860 printf "%s\n" "#define HAVE_WINCON_H 1" >>confdefs.h
17861
17862 fi
17863
17864 term_type=none
17865 if test "x$ac_cv_sys_posix_termios" = "xyes"; then
17866
17867 printf "%s\n" "#define HAVE_TERMIOS 1" >>confdefs.h
17868
17869 term_type=posix
17870 elif test "x$ac_cv_header_windows_h" = "xyes" &&
17871 test "x$ac_cv_header_wincon_h" = "xyes"; then
17872 term_type=win32
17873 fi
17874
17875 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
17876 if test "x$ac_cv_func_random" = xyes
17877 then :
17878 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
17879
17880 fi
17881 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
17882 if test "x$ac_cv_func_setenv" = xyes
17883 then :
17884 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
17885
17886 fi
17887 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17888 if test "x$ac_cv_func_unsetenv" = xyes
17889 then :
17890 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
17891
17892 fi
17893
17894
17895 # Check for sched_setscheduler
17896 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
17897 if test "x$ac_cv_func_sched_setscheduler" = xyes
17898 then :
17899 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
17900
17901 fi
17902 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
17903 if test "x$ac_cv_func_setuid" = xyes
17904 then :
17905 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
17906
17907 fi
17908 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
17909 if test "x$ac_cv_func_getuid" = xyes
17910 then :
17911 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
17912
17913 fi
17914
17915
17916 # Check for setpriority
17917 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
17918 if test "x$ac_cv_func_setpriority" = xyes
17919 then :
17920 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
17921
17922 fi
17923
17924
17925 # strtok_s for MSVCRT, not the C11 variant
17926 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17927 if test "x$ac_cv_func_strerror" = xyes
17928 then :
17929 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
17930
17931 fi
17932 ac_fn_c_check_func "$LINENO" "strerror_l" "ac_cv_func_strerror_l"
17933 if test "x$ac_cv_func_strerror_l" = xyes
17934 then :
17935 printf "%s\n" "#define HAVE_STRERROR_L 1" >>confdefs.h
17936
17937 fi
17938 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
17939 if test "x$ac_cv_func_uselocale" = xyes
17940 then :
17941 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
17942
17943 fi
17944 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17945 if test "x$ac_cv_func_strtok_r" = xyes
17946 then :
17947 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
17948
17949 fi
17950 ac_fn_c_check_func "$LINENO" "strtok_s" "ac_cv_func_strtok_s"
17951 if test "x$ac_cv_func_strtok_s" = xyes
17952 then :
17953 printf "%s\n" "#define HAVE_STRTOK_S 1" >>confdefs.h
17954
17955 fi
17956
17957
17958 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
17959 if test "x$ac_cv_func_setlocale" = xyes
17960 then :
17961 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
17962
17963 fi
17964 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
17965 if test "x$ac_cv_func_nl_langinfo" = xyes
17966 then :
17967 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
17968
17969 fi
17970 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
17971 if test "x$ac_cv_func_mbstowcs" = xyes
17972 then :
17973 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
17974
17975 fi
17976 ac_fn_c_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
17977 if test "x$ac_cv_func_wcstombs" = xyes
17978 then :
17979 printf "%s\n" "#define HAVE_WCSTOMBS 1" >>confdefs.h
17980
17981 fi
17982 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth"
17983 if test "x$ac_cv_func_wcswidth" = xyes
17984 then :
17985 printf "%s\n" "#define HAVE_WCSWIDTH 1" >>confdefs.h
17986
17987 fi
17988 ac_fn_c_check_func "$LINENO" "iswprint" "ac_cv_func_iswprint"
17989 if test "x$ac_cv_func_iswprint" = xyes
17990 then :
17991 printf "%s\n" "#define HAVE_ISWPRINT 1" >>confdefs.h
17992
17993 fi
17994
17995
17996 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
17997 if test "x$ac_cv_func_atoll" = xyes
17998 then :
17999 printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
18000
18001 fi
18002
18003
18004
18005 for ac_func in mkfifo
18006 do :
18007 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
18008 if test "x$ac_cv_func_mkfifo" = xyes
18009 then :
18010 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
18011 have_mkfifo=yes
18012 else $as_nop
18013 have_mkfifo=no
18014 fi
18015
18016 done
18017
18018
18019 for ac_func in fork execvp
18020 do :
18021 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
18022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18023 if eval test \"x\$"$as_ac_var"\" = x"yes"
18024 then :
18025 cat >>confdefs.h <<_ACEOF
18026 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
18027 _ACEOF
18028 have_fork=yes
18029 else $as_nop
18030 have_fork=no; break
18031 fi
18032
18033 done
18034
18035 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
18036 if test "x$ac_cv_func_ctermid" = xyes
18037 then :
18038 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
18039
18040 fi
18041
18042
18043 #AC_CHECK_FUNCS( _setmode setmode )
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 #include <io.h>
18047 #include <fcntl.h>
18048 #include <stdio.h>
18049
18050 int main()
18051 {
18052 _setmode(STDIN_FILENO, _O_BINARY);
18053 _setmode(STDOUT_FILENO, _O_TEXT);
18054 return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"
18058 then :
18059
18060 printf "%s\n" "#define HAVE__SETMODE 1" >>confdefs.h
18061
18062 fi
18063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18064 conftest$ac_exeext conftest.$ac_ext
18065
18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h. */
18068 #include <io.h>
18069 #include <fcntl.h>
18070 #include <stdio.h>
18071
18072 int main()
18073 {
18074 setmode(STDIN_FILENO, O_BINARY);
18075 setmode(STDOUT_FILENO, O_TEXT);
18076 return 0;
18077 }
18078 _ACEOF
18079 if ac_fn_c_try_link "$LINENO"
18080 then :
18081
18082 printf "%s\n" "#define HAVE_SETMODE 1" >>confdefs.h
18083
18084 fi
18085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18086 conftest$ac_exeext conftest.$ac_ext
18087
18088
18089 # locale headers
18090 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18091 if test "x$ac_cv_header_locale_h" = xyes
18092 then :
18093 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
18094
18095 fi
18096 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
18097 if test "x$ac_cv_header_langinfo_h" = xyes
18098 then :
18099 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
18100
18101 fi
18102 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
18103 if test "x$ac_cv_header_wchar_h" = xyes
18104 then :
18105 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
18106
18107 fi
18108 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
18109 if test "x$ac_cv_header_wctype_h" = xyes
18110 then :
18111 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
18112
18113 fi
18114
18115 # Headers for network (http) stuff
18116 network_internal=unknown
18117 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
18118 if test "x$ac_cv_header_netdb_h" = xyes
18119 then :
18120 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
18121
18122 fi
18123 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18124 if test "x$ac_cv_header_sys_param_h" = xyes
18125 then :
18126 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18127
18128 fi
18129 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18130 if test "x$ac_cv_header_sys_socket_h" = xyes
18131 then :
18132 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
18133
18134 fi
18135 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18136 if test "x$ac_cv_header_netinet_in_h" = xyes
18137 then :
18138 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
18139
18140 fi
18141 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18142 if test "x$ac_cv_header_arpa_inet_h" = xyes
18143 then :
18144 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
18145
18146 fi
18147
18148 if test "x$ac_cv_header_netdb_h" = "xyes" &&
18149 test "x$ac_cv_header_sys_param_h" = "xyes" &&
18150 test "x$ac_cv_header_sys_socket_h" = "xyes" &&
18151 test "x$ac_cv_header_netinet_in_h" = "xyes" &&
18152 test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
18153 have_network=yes
18154 network_internal=posix
18155 else
18156 have_network=no
18157 fi
18158
18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18160 printf %s "checking for library containing gethostbyname... " >&6; }
18161 if test ${ac_cv_search_gethostbyname+y}
18162 then :
18163 printf %s "(cached) " >&6
18164 else $as_nop
18165 ac_func_search_save_LIBS=$LIBS
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172 char gethostbyname ();
18173 int
18174 main (void)
18175 {
18176 return gethostbyname ();
18177 ;
18178 return 0;
18179 }
18180 _ACEOF
18181 for ac_lib in '' nsl socket network
18182 do
18183 if test -z "$ac_lib"; then
18184 ac_res="none required"
18185 else
18186 ac_res=-l$ac_lib
18187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18188 fi
18189 if ac_fn_c_try_link "$LINENO"
18190 then :
18191 ac_cv_search_gethostbyname=$ac_res
18192 fi
18193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18194 conftest$ac_exeext
18195 if test ${ac_cv_search_gethostbyname+y}
18196 then :
18197 break
18198 fi
18199 done
18200 if test ${ac_cv_search_gethostbyname+y}
18201 then :
18202
18203 else $as_nop
18204 ac_cv_search_gethostbyname=no
18205 fi
18206 rm conftest.$ac_ext
18207 LIBS=$ac_func_search_save_LIBS
18208 fi
18209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18210 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
18211 ac_res=$ac_cv_search_gethostbyname
18212 if test "$ac_res" != no
18213 then :
18214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18215
18216 fi
18217
18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18219 printf %s "checking for library containing socket... " >&6; }
18220 if test ${ac_cv_search_socket+y}
18221 then :
18222 printf %s "(cached) " >&6
18223 else $as_nop
18224 ac_func_search_save_LIBS=$LIBS
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 char socket ();
18232 int
18233 main (void)
18234 {
18235 return socket ();
18236 ;
18237 return 0;
18238 }
18239 _ACEOF
18240 for ac_lib in '' socket
18241 do
18242 if test -z "$ac_lib"; then
18243 ac_res="none required"
18244 else
18245 ac_res=-l$ac_lib
18246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18247 fi
18248 if ac_fn_c_try_link "$LINENO"
18249 then :
18250 ac_cv_search_socket=$ac_res
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18253 conftest$ac_exeext
18254 if test ${ac_cv_search_socket+y}
18255 then :
18256 break
18257 fi
18258 done
18259 if test ${ac_cv_search_socket+y}
18260 then :
18261
18262 else $as_nop
18263 ac_cv_search_socket=no
18264 fi
18265 rm conftest.$ac_ext
18266 LIBS=$ac_func_search_save_LIBS
18267 fi
18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18269 printf "%s\n" "$ac_cv_search_socket" >&6; }
18270 ac_res=$ac_cv_search_socket
18271 if test "$ac_res" != no
18272 then :
18273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18274
18275 fi
18276
18277
18278
18279 for ac_func in getaddrinfo
18280 do :
18281 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18282 if test "x$ac_cv_func_getaddrinfo" = xyes
18283 then :
18284 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
18285 have_ipv6=yes
18286 else $as_nop
18287 have_ipv6=no
18288 fi
18289
18290 done
18291
18292 # Checks for maths libraries.
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
18294 printf %s "checking for sqrt in -lm... " >&6; }
18295 if test ${ac_cv_lib_m_sqrt+y}
18296 then :
18297 printf %s "(cached) " >&6
18298 else $as_nop
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lm $LIBS"
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18307 char sqrt ();
18308 int
18309 main (void)
18310 {
18311 return sqrt ();
18312 ;
18313 return 0;
18314 }
18315 _ACEOF
18316 if ac_fn_c_try_link "$LINENO"
18317 then :
18318 ac_cv_lib_m_sqrt=yes
18319 else $as_nop
18320 ac_cv_lib_m_sqrt=no
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18325 fi
18326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
18327 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
18328 if test "x$ac_cv_lib_m_sqrt" = xyes
18329 then :
18330 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
18331
18332 LIBS="-lm $LIBS"
18333
18334 fi
18335
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for powf in -lmx" >&5
18337 printf %s "checking for powf in -lmx... " >&6; }
18338 if test ${ac_cv_lib_mx_powf+y}
18339 then :
18340 printf %s "(cached) " >&6
18341 else $as_nop
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lmx $LIBS"
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346
18347 /* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18350 char powf ();
18351 int
18352 main (void)
18353 {
18354 return powf ();
18355 ;
18356 return 0;
18357 }
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"
18360 then :
18361 ac_cv_lib_mx_powf=yes
18362 else $as_nop
18363 ac_cv_lib_mx_powf=no
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18366 conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18368 fi
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mx_powf" >&5
18370 printf "%s\n" "$ac_cv_lib_mx_powf" >&6; }
18371 if test "x$ac_cv_lib_mx_powf" = xyes
18372 then :
18373 printf "%s\n" "#define HAVE_LIBMX 1" >>confdefs.h
18374
18375 LIBS="-lmx $LIBS"
18376
18377 fi
18378
18379
18380 # attempt to make the signal stuff work... also with GENERIC - later
18381 #if test x"$ac_cv_header_sys_signal_h" = xyes; then
18382 # AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
18383 # if test x"$ac_cv_func_sigemptyset" = xyes &&
18384 # test x"$ac_cv_func_sigaddset" = xyes &&
18385 # test x"$ac_cv_func_sigprocmask" = xyes &&
18386 # test x"$ac_cv_func_sigaction" = xyes; then
18387 # AC_DEFINE(
18388 #fi
18389
18390 # Optionally use platform macros for byte swapping.
18391 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
18392 if test "x$ac_cv_header_byteswap_h" = xyes
18393 then :
18394 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
18395
18396 fi
18397
18398
18399
18400 # do not assume gcc here, so no flags by default
18401 ADD_CFLAGS=""
18402 ADD_CPPFLAGS="$sys_cppflags"
18403 ADD_LDFLAGS=""
18404 LIBS="$LIBS"
18405
18406 # Remove that if it is settled that tcsetattr on OS/2 is unsalvageable anyway.
18407 # The only user of os2.h is the output module.
18408 ac_fn_c_check_header_compile "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
18409 if test "x$ac_cv_header_os2_h" = xyes
18410 then :
18411 printf "%s\n" "#define HAVE_OS2_H 1" >>confdefs.h
18412
18413 fi
18414
18415
18416 # If debugging is enabled, just enable debugging symbols.
18417 # All other stuff enters nagging territory.
18418 if test x"$debugging" = xenabled; then
18419 ADD_CFLAGS="-g"
18420 fi
18421 # gcc specific...
18422 if test x"$GCC" = xyes; then
18423 if test x"$nagging" = xenabled; then
18424 ADD_CFLAGS="$ADD_CFLAGS -Wall -Werror -std=c99 -pedantic"
18425 fi
18426 fi
18427
18428 case $host in
18429 i?86-*)
18430
18431 printf "%s\n" "#define ABI_ALIGN_FUN 1" >>confdefs.h
18432
18433 ;;
18434 esac
18435
18436
18437 s_altivec="HAVE_ALTIVEC"
18438 s_i386="HAVE_I386"
18439 s_i486="$s_i386 HAVE_I486"
18440 s_i586="$s_i386 HAVE_I586"
18441 s_i586d="$s_i386 HAVE_I586_DITHER"
18442 s_3dnow="$s_i386 HAVE_3DNOW"
18443 s_3dnowext="$s_i386 HAVE_3DNOWEXT HAVE_MMXTAB"
18444 s_3dnow_vintage="$s_3dnow HAVE_3DNOW_VINTAGE"
18445 s_3dnowext_vintage="$s_3dnowext HAVE_3DNOWEXT_VINTAGE"
18446
18447 s_mmx="$s_i386 HAVE_MMX HAVE_MMXTAB"
18448 s_sse_vintage="$s_i386 HAVE_MMXTAB HAVE_SSE_VINTAGE"
18449 s_sse="$s_sse_vintage HAVE_SSE"
18450 s_x86_64="HAVE_X86_64 HAVE_X86_64_MONO"
18451 s_x86_64_mono_synths="HAVE_X86_64_MONO"
18452 s_x86_64_avx="HAVE_AVX"
18453 s_x86multi="HAVE_GETCPUFLAGS"
18454 s_x86_64_multi="HAVE_GETCPUFLAGS_X86_64"
18455 s_dither="HAVE_DITHER"
18456 s_neon="HAVE_NEON"
18457 s_neon64="HAVE_NEON64"
18458 s_arm_multi="HAVE_GETCPUFLAGS_ARM"
18459 s_arm="HAVE_ARM"
18460
18461 # SSE and newer invoke dct64 for float numbers when producing s32 or float output,
18462 # as well as accurate rounding.
18463 if test x"$integers" = xquality || test x"$int32" = xenabled || test x"$real" = xenabled ; then
18464 HAVE_FLOATDCT_TRUE=
18465 HAVE_FLOATDCT_FALSE='#'
18466 else
18467 HAVE_FLOATDCT_TRUE='#'
18468 HAVE_FLOATDCT_FALSE=
18469 fi
18470
18471
18472 case $cpu_type in
18473 generic)
18474 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
18475 more_sources=""
18476 ccalign=no
18477 ;;
18478 generic_dither)
18479 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
18480 more_sources="$s_dither"
18481 ccalign=no
18482 ;;
18483 generic_fpu | generic_float)
18484 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
18485 more_sources=""
18486 ccalign=no
18487 ;;
18488 generic_nofpu)
18489 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
18490 more_sources=
18491 ccalign=no
18492 ;;
18493 ppc_nofpu)
18494 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DOPT_PPC -DREAL_IS_FIXED"
18495 more_sources=
18496 ccalign=no
18497 ;;
18498 arm_nofpu)
18499 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_ARM -DREAL_IS_FIXED"
18500 more_sources="$s_arm"
18501 ccalign=no
18502 ;;
18503 altivec)
18504 ADD_CFLAGS="$ADD_CFLAGS -maltivec"
18505 ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
18506 more_sources="$s_altivec"
18507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -faltivec" >&5
18508 printf %s "checking if $CC accepts -faltivec... " >&6; }
18509 touch conftest.c
18510 if $CC -faltivec -c -o conftest.o conftest.c >/dev/null 2>&1; then
18511 ADD_CFLAGS="$ADD_CFLAGS -faltivec"
18512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18513 printf "%s\n" "yes" >&6; }
18514 else
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18516 printf "%s\n" "no" >&6; }
18517 fi
18518 rm -f conftest.o conftest.c
18519 ;;
18520 neon)
18521 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON -DREAL_IS_FLOAT"
18522 more_sources="$s_neon"
18523 ;;
18524 arm_fpu)
18525 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON -DREAL_IS_FLOAT"
18526 more_sources="$s_neon $s_dither $s_arm_multi"
18527 ;;
18528 neon64)
18529 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_NEON64 -DREAL_IS_FLOAT"
18530 more_sources="$s_neon64"
18531 ;;
18532 aarch64)
18533 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON64 -DREAL_IS_FLOAT"
18534 more_sources="$s_neon64 $s_dither $s_arm_multi"
18535 ;;
18536 i386)
18537 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
18538 more_sources="$s_i386"
18539 ccalign=no
18540 ;;
18541 i386_fpu)
18542 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
18543 more_sources="$s_i386"
18544 ccalign=no
18545 ;;
18546 i386_nofpu)
18547 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
18548 more_sources="$s_i386"
18549 have_cond
18550 ccalign=no
18551 ;;
18552 i486)
18553 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
18554 more_sources="$s_i486"
18555 ccalign=no
18556 ;;
18557 i586)
18558 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
18559 more_sources="$s_i586"
18560 ;;
18561 i586_dither)
18562 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
18563 more_sources="$s_i586d $s_dither"
18564 ;;
18565 3dnow)
18566 # legacy 3dnow had the 3dnow paired with i586...
18567 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
18568 more_sources="$s_i586 $s_3dnow $s_x86multi "
18569 ;;
18570 3dnow_vintage)
18571 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW_VINTAGE -DREAL_IS_FLOAT"
18572 more_sources="$s_i586 $s_3dnow_vintage $s_x86multi "
18573 ;;
18574 3dnow_alone)
18575 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
18576 more_sources="$s_3dnow"
18577 ;;
18578 3dnowext_alone)
18579 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
18580 more_sources="$s_3dnowext"
18581 ;;
18582 3dnowext_vintage)
18583 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT_VINTAGE -DREAL_IS_FLOAT"
18584 more_sources="$s_3dnowext_vintage $s_3dnow $s_x86multi"
18585 ;;
18586 3dnowext)
18587 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
18588 more_sources="$s_3dnowext $s_3dnow $s_x86multi"
18589 ;;
18590 mmx_alone|mmx)
18591 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
18592 more_sources="$s_mmx"
18593 ;;
18594 sse_alone|sse)
18595 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
18596 more_sources="$s_sse"
18597 ;;
18598 sse_vintage)
18599 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT"
18600 more_sources="$s_sse_vintage"
18601 ;;
18602 avx)
18603 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX -DREAL_IS_FLOAT"
18604 more_sources="$s_x86_64_avx $s_x86_64_mono_synths"
18605 if test "x$YASM" != "xno"; then
18606 use_yasm_for_avx="yes"
18607 fi
18608 ;;
18609 x86|x86_dither)
18610 # plain C dct36 always there, for vintage/non-vintage
18611 # Selection of non-/vintage sources implies that
18612 # $s_3dnow_vintage contains $s_3dnow,
18613 # $s_sse contains $s_sse_vintage.
18614 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOW_VINTAGE -DOPT_3DNOWEXT -DOPT_3DNOWEXT_VINTAGE -DOPT_SSE -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT"
18615 more_sources="$s_i386 $s_i586 $s_i586d $s_mmx $s_3dnow_vintage $s_3dnowext_vintage $s_sse $s_x86multi $s_dither"
18616 ;;
18617 x86-64_alone)
18618 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
18619 more_sources="$s_x86_64"
18620 ;;
18621 x86-64|x86-64_all|x86-64_dither)
18622 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
18623 more_sources="$s_x86_64 $s_dither $s_x86_64_multi"
18624 if test "x$avx_support" = "xyes"; then
18625 ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_AVX"
18626 more_sources="$more_sources $s_x86_64_avx"
18627 if test "x$YASM" != "xno"; then
18628 use_yasm_for_avx="yes"
18629 fi
18630 fi
18631 ;;
18632 *)
18633 as_fn_error $? "Unknown CPU type '$cpu_type'" "$LINENO" 5
18634 ;;
18635 esac
18636
18637 # Use yasm instead of the default assembler for AVX sources
18638 if test "x$use_yasm_for_avx" = "xyes"; then
18639 case $host_os in
18640 *cygwin*|*mingw*)
18641 YASM_FORMAT="-f win64"
18642 ;;
18643 *darwin*)
18644 YASM_FORMAT="-f macho"
18645 ;;
18646 *)
18647 YASM_FORMAT="-f elf"
18648 ;;
18649 esac
18650
18651 printf "%s\n" "#define USE_YASM_FOR_AVX 1" >>confdefs.h
18652
18653 fi
18654 if test "x$use_yasm_for_avx" = xyes; then
18655 USE_YASM_FOR_AVX_TRUE=
18656 USE_YASM_FOR_AVX_FALSE='#'
18657 else
18658 USE_YASM_FOR_AVX_TRUE='#'
18659 USE_YASM_FOR_AVX_FALSE=
18660 fi
18661
18662
18663
18664 # Check if we want feature report function.
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want feature report function" >&5
18666 printf %s "checking if we want feature report function... " >&6; }
18667 feature_report=enabled
18668 # Check whether --enable-feature_report was given.
18669 if test ${enable_feature_report+y}
18670 then :
18671 enableval=$enable_feature_report;
18672 if test "x$enableval" = xno; then
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674 printf "%s\n" "no" >&6; }
18675 feature_report=disabled
18676 else
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18678 printf "%s\n" "yes" >&6; }
18679 fi
18680
18681 else $as_nop
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683 printf "%s\n" "yes" >&6; }
18684 fi
18685
18686
18687 if test "x$feature_report" = xenabled; then
18688 HAVE_FEATURE_TRUE=
18689 HAVE_FEATURE_FALSE='#'
18690 else
18691 HAVE_FEATURE_TRUE='#'
18692 HAVE_FEATURE_FALSE=
18693 fi
18694
18695
18696 # Return 0 if first arg appears in list of following arguments.
18697 # Return 1 otherwise.
18698 word_in_list() {
18699 word=$1
18700 shift
18701 # Avoid naming conflict with the outside!
18702 # Is local not POSIX sh?
18703 for given_word in "$@"
18704 do
18705 if test "x$word" = "x$given_word"; then
18706 return 0
18707 fi
18708 done
18709 return 1
18710 }
18711
18712
18713 if word_in_list HAVE_ALTIVEC $more_sources; then
18714 HAVE_ALTIVEC_TRUE=
18715 HAVE_ALTIVEC_FALSE='#'
18716 else
18717 HAVE_ALTIVEC_TRUE='#'
18718 HAVE_ALTIVEC_FALSE=
18719 fi
18720
18721 if word_in_list HAVE_I386 $more_sources; then
18722 HAVE_I386_TRUE=
18723 HAVE_I386_FALSE='#'
18724 else
18725 HAVE_I386_TRUE='#'
18726 HAVE_I386_FALSE=
18727 fi
18728
18729 if word_in_list HAVE_I486 $more_sources; then
18730 HAVE_I486_TRUE=
18731 HAVE_I486_FALSE='#'
18732 else
18733 HAVE_I486_TRUE='#'
18734 HAVE_I486_FALSE=
18735 fi
18736
18737 if word_in_list HAVE_I586 $more_sources; then
18738 HAVE_I586_TRUE=
18739 HAVE_I586_FALSE='#'
18740 else
18741 HAVE_I586_TRUE='#'
18742 HAVE_I586_FALSE=
18743 fi
18744
18745 if word_in_list HAVE_I586_DITHER $more_sources; then
18746 HAVE_I586_DITHER_TRUE=
18747 HAVE_I586_DITHER_FALSE='#'
18748 else
18749 HAVE_I586_DITHER_TRUE='#'
18750 HAVE_I586_DITHER_FALSE=
18751 fi
18752
18753 if word_in_list HAVE_3DNOW $more_sources; then
18754 HAVE_3DNOW_TRUE=
18755 HAVE_3DNOW_FALSE='#'
18756 else
18757 HAVE_3DNOW_TRUE='#'
18758 HAVE_3DNOW_FALSE=
18759 fi
18760
18761 if word_in_list HAVE_3DNOWEXT $more_sources; then
18762 HAVE_3DNOWEXT_TRUE=
18763 HAVE_3DNOWEXT_FALSE='#'
18764 else
18765 HAVE_3DNOWEXT_TRUE='#'
18766 HAVE_3DNOWEXT_FALSE=
18767 fi
18768
18769 if word_in_list HAVE_MMXTAB $more_sources; then
18770 HAVE_MMXTAB_TRUE=
18771 HAVE_MMXTAB_FALSE='#'
18772 else
18773 HAVE_MMXTAB_TRUE='#'
18774 HAVE_MMXTAB_FALSE=
18775 fi
18776
18777 if word_in_list HAVE_3DNOW_VINTAGE $more_sources; then
18778 HAVE_3DNOW_VINTAGE_TRUE=
18779 HAVE_3DNOW_VINTAGE_FALSE='#'
18780 else
18781 HAVE_3DNOW_VINTAGE_TRUE='#'
18782 HAVE_3DNOW_VINTAGE_FALSE=
18783 fi
18784
18785 if word_in_list HAVE_3DNOWEXT_VINTAGE $more_sources; then
18786 HAVE_3DNOWEXT_VINTAGE_TRUE=
18787 HAVE_3DNOWEXT_VINTAGE_FALSE='#'
18788 else
18789 HAVE_3DNOWEXT_VINTAGE_TRUE='#'
18790 HAVE_3DNOWEXT_VINTAGE_FALSE=
18791 fi
18792
18793 if word_in_list HAVE_MMX $more_sources; then
18794 HAVE_MMX_TRUE=
18795 HAVE_MMX_FALSE='#'
18796 else
18797 HAVE_MMX_TRUE='#'
18798 HAVE_MMX_FALSE=
18799 fi
18800
18801 if word_in_list HAVE_SSE_VINTAGE $more_sources; then
18802 HAVE_SSE_VINTAGE_TRUE=
18803 HAVE_SSE_VINTAGE_FALSE='#'
18804 else
18805 HAVE_SSE_VINTAGE_TRUE='#'
18806 HAVE_SSE_VINTAGE_FALSE=
18807 fi
18808
18809 if word_in_list HAVE_SSE $more_sources; then
18810 HAVE_SSE_TRUE=
18811 HAVE_SSE_FALSE='#'
18812 else
18813 HAVE_SSE_TRUE='#'
18814 HAVE_SSE_FALSE=
18815 fi
18816
18817 if word_in_list HAVE_X86_64 $more_sources; then
18818 HAVE_X86_64_TRUE=
18819 HAVE_X86_64_FALSE='#'
18820 else
18821 HAVE_X86_64_TRUE='#'
18822 HAVE_X86_64_FALSE=
18823 fi
18824
18825 if word_in_list HAVE_X86_64_MONO $more_sources; then
18826 HAVE_X86_64_MONO_TRUE=
18827 HAVE_X86_64_MONO_FALSE='#'
18828 else
18829 HAVE_X86_64_MONO_TRUE='#'
18830 HAVE_X86_64_MONO_FALSE=
18831 fi
18832
18833 if word_in_list HAVE_AVX $more_sources; then
18834 HAVE_AVX_TRUE=
18835 HAVE_AVX_FALSE='#'
18836 else
18837 HAVE_AVX_TRUE='#'
18838 HAVE_AVX_FALSE=
18839 fi
18840
18841 if word_in_list HAVE_GETCPUFLAGS $more_sources; then
18842 HAVE_GETCPUFLAGS_TRUE=
18843 HAVE_GETCPUFLAGS_FALSE='#'
18844 else
18845 HAVE_GETCPUFLAGS_TRUE='#'
18846 HAVE_GETCPUFLAGS_FALSE=
18847 fi
18848
18849 if word_in_list HAVE_GETCPUFLAGS_X86_64 $more_sources; then
18850 HAVE_GETCPUFLAGS_X86_64_TRUE=
18851 HAVE_GETCPUFLAGS_X86_64_FALSE='#'
18852 else
18853 HAVE_GETCPUFLAGS_X86_64_TRUE='#'
18854 HAVE_GETCPUFLAGS_X86_64_FALSE=
18855 fi
18856
18857 if word_in_list HAVE_DITHER $more_sources; then
18858 HAVE_DITHER_TRUE=
18859 HAVE_DITHER_FALSE='#'
18860 else
18861 HAVE_DITHER_TRUE='#'
18862 HAVE_DITHER_FALSE=
18863 fi
18864
18865 if word_in_list HAVE_NEON $more_sources; then
18866 HAVE_NEON_TRUE=
18867 HAVE_NEON_FALSE='#'
18868 else
18869 HAVE_NEON_TRUE='#'
18870 HAVE_NEON_FALSE=
18871 fi
18872
18873 if word_in_list HAVE_NEON64 $more_sources; then
18874 HAVE_NEON64_TRUE=
18875 HAVE_NEON64_FALSE='#'
18876 else
18877 HAVE_NEON64_TRUE='#'
18878 HAVE_NEON64_FALSE=
18879 fi
18880
18881 if word_in_list HAVE_GETCPUFLAGS_ARM $more_sources; then
18882 HAVE_GETCPUFLAGS_ARM_TRUE=
18883 HAVE_GETCPUFLAGS_ARM_FALSE='#'
18884 else
18885 HAVE_GETCPUFLAGS_ARM_TRUE='#'
18886 HAVE_GETCPUFLAGS_ARM_FALSE=
18887 fi
18888
18889 if word_in_list HAVE_ARM $more_sources; then
18890 HAVE_ARM_TRUE=
18891 HAVE_ARM_FALSE='#'
18892 else
18893 HAVE_ARM_TRUE='#'
18894 HAVE_ARM_FALSE=
18895 fi
18896
18897
18898 if test x"$ccalign" = xyes; then
18899
18900 printf "%s\n" "#define CCALIGN 1" >>confdefs.h
18901
18902 fi
18903
18904
18905 # The full list of supported modules to check, first come, first serve.
18906 check_modules="pulse alsa tinyalsa oss coreaudio sndio sun win32 win32_wasapi os2 esd jack portaudio sdl nas arts openal"
18907 # Only check qsa before all else on QNX.
18908 # It would mask ALSA otherwise.
18909 case $host in
18910 *-nto-qnx*)
18911 check_modules="qsa $check_modules"
18912 ;;
18913 esac
18914
18915 # The final list.
18916 output_modules=
18917
18918 check_forced=no
18919 check_failed=no
18920 if test "x$with_audio" != "x"; then
18921 check_modules=`echo $with_audio|tr , ' '`
18922 echo "Limiting outputs to build according to your preference: $check_modules"
18923 check_forced=yes
18924 fi
18925
18926 # Dummy output module is always built alongside libout123, but not
18927 # when just building the modules.
18928 if test "x$build_libout123" = xyes && ! echo "$check_modules" | grep -qw dummy; then
18929 check_modules="$check_modules dummy"
18930 fi
18931
18932 # Now go through the modules to check and do the chores.
18933 for m in $check_modules
18934 do
18935 case "$m" in
18936 dummy)
18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you are too dumbing dumb for the dummy" >&5
18938 printf %s "checking if you are too dumbing dumb for the dummy... " >&6; }
18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940 printf "%s\n" "no" >&6; }
18941 output_modules="$output_modules dummy"
18942 HAVE_DUMMY=yes
18943 ;;
18944 oss)
18945 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
18946 if test "x$ac_cv_header_sys_soundcard_h" = xyes
18947 then :
18948 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
18949
18950 fi
18951 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
18952 if test "x$ac_cv_header_linux_soundcard_h" = xyes
18953 then :
18954 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
18955
18956 fi
18957 ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
18958 if test "x$ac_cv_header_machine_soundcard_h" = xyes
18959 then :
18960 printf "%s\n" "#define HAVE_MACHINE_SOUNDCARD_H 1" >>confdefs.h
18961
18962 fi
18963
18964 if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
18965 -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
18966 -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
18967 then
18968 output_modules="$output_modules oss"
18969 HAVE_OSS="yes"
18970 else
18971 check_failed=yes
18972 fi
18973 ;;
18974 tinyalsa)
18975 TINYALSA_LIBS="-ltinyalsa"
18976 # Check for ALSA
18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcm_open in -ltinyalsa" >&5
18978 printf %s "checking for pcm_open in -ltinyalsa... " >&6; }
18979 if test ${ac_cv_lib_tinyalsa_pcm_open+y}
18980 then :
18981 printf %s "(cached) " >&6
18982 else $as_nop
18983 ac_check_lib_save_LIBS=$LIBS
18984 LIBS="-ltinyalsa $LIBS"
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991 char pcm_open ();
18992 int
18993 main (void)
18994 {
18995 return pcm_open ();
18996 ;
18997 return 0;
18998 }
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"
19001 then :
19002 ac_cv_lib_tinyalsa_pcm_open=yes
19003 else $as_nop
19004 ac_cv_lib_tinyalsa_pcm_open=no
19005 fi
19006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19007 conftest$ac_exeext conftest.$ac_ext
19008 LIBS=$ac_check_lib_save_LIBS
19009 fi
19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinyalsa_pcm_open" >&5
19011 printf "%s\n" "$ac_cv_lib_tinyalsa_pcm_open" >&6; }
19012 if test "x$ac_cv_lib_tinyalsa_pcm_open" = xyes
19013 then :
19014 ac_fn_c_check_header_compile "$LINENO" "tinyalsa/asoundlib.h" "ac_cv_header_tinyalsa_asoundlib_h" "$ac_includes_default"
19015 if test "x$ac_cv_header_tinyalsa_asoundlib_h" = xyes
19016 then :
19017 output_modules="$output_modules tinyalsa" HAVE_TINYALSA="yes"
19018 else $as_nop
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found TINYALSA library but NOT header files on your system" >&5
19020 printf "%s\n" "$as_me: WARNING: Found TINYALSA library but NOT header files on your system" >&2;}
19021 fi
19022
19023
19024
19025 fi
19026
19027 if test "x$HAVE_TINYALSA" != xyes; then
19028 check_failed=yes
19029 fi
19030 ;;
19031 # QSA and ALSA are not distinguishable in these tests, need to block
19032 # each other and play with test order depending on platform.
19033 alsa)
19034 if test "x$HAVE_QSA" = xyes; then
19035 HAVE_ALSA=no
19036 else
19037
19038 ALSA_LIBS="-lasound"
19039 # Check for ALSA
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
19041 printf %s "checking for snd_pcm_open in -lasound... " >&6; }
19042 if test ${ac_cv_lib_asound_snd_pcm_open+y}
19043 then :
19044 printf %s "(cached) " >&6
19045 else $as_nop
19046 ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lasound $LIBS"
19048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h. */
19050
19051 /* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19054 char snd_pcm_open ();
19055 int
19056 main (void)
19057 {
19058 return snd_pcm_open ();
19059 ;
19060 return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_link "$LINENO"
19064 then :
19065 ac_cv_lib_asound_snd_pcm_open=yes
19066 else $as_nop
19067 ac_cv_lib_asound_snd_pcm_open=no
19068 fi
19069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19072 fi
19073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
19074 printf "%s\n" "$ac_cv_lib_asound_snd_pcm_open" >&6; }
19075 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes
19076 then :
19077 ac_fn_c_check_header_compile "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
19078 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes
19079 then :
19080 output_modules="$output_modules alsa" HAVE_ALSA="yes"
19081 else $as_nop
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found ALSA library but NOT header files on your system" >&5
19083 printf "%s\n" "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
19084 fi
19085
19086
19087
19088 fi
19089
19090 if test "x$HAVE_ALSA" != xyes; then
19091 check_failed=yes
19092 fi
19093
19094 fi # HAVE_QSA
19095 ;;
19096 qsa)
19097 if test "x$HAVE_ALSA" = xyes; then
19098 HAVE_QSA=no
19099 else
19100
19101 QSA_LIBS="-lasound"
19102 # Check for QSA
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
19104 printf %s "checking for snd_pcm_open in -lasound... " >&6; }
19105 if test ${ac_cv_lib_asound_snd_pcm_open+y}
19106 then :
19107 printf %s "(cached) " >&6
19108 else $as_nop
19109 ac_check_lib_save_LIBS=$LIBS
19110 LIBS="-lasound $LIBS"
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19117 char snd_pcm_open ();
19118 int
19119 main (void)
19120 {
19121 return snd_pcm_open ();
19122 ;
19123 return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"
19127 then :
19128 ac_cv_lib_asound_snd_pcm_open=yes
19129 else $as_nop
19130 ac_cv_lib_asound_snd_pcm_open=no
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19135 fi
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
19137 printf "%s\n" "$ac_cv_lib_asound_snd_pcm_open" >&6; }
19138 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes
19139 then :
19140 ac_fn_c_check_header_compile "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default"
19141 if test "x$ac_cv_header_sys_asoundlib_h" = xyes
19142 then :
19143 output_modules="$output_modules qsa" HAVE_QSA="yes"
19144 else $as_nop
19145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found QSA library but NOT header files on your system" >&5
19146 printf "%s\n" "$as_me: WARNING: Found QSA library but NOT header files on your system" >&2;}
19147 fi
19148
19149
19150
19151 fi
19152
19153 if test "x$HAVE_QSA" != xyes; then
19154 check_failed=yes
19155 fi
19156
19157 fi # HAVE_ALSA
19158 ;;
19159 jack)
19160 # JACK module uses semaphores, hence -lpthread.
19161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_post in -lpthread" >&5
19162 printf %s "checking for sem_post in -lpthread... " >&6; }
19163 if test ${ac_cv_lib_pthread_sem_post+y}
19164 then :
19165 printf %s "(cached) " >&6
19166 else $as_nop
19167 ac_check_lib_save_LIBS=$LIBS
19168 LIBS="-lpthread $LIBS"
19169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170 /* end confdefs.h. */
19171
19172 /* Override any GCC internal prototype to avoid an error.
19173 Use char because int might match the return type of a GCC
19174 builtin and then its argument prototype would still apply. */
19175 char sem_post ();
19176 int
19177 main (void)
19178 {
19179 return sem_post ();
19180 ;
19181 return 0;
19182 }
19183 _ACEOF
19184 if ac_fn_c_try_link "$LINENO"
19185 then :
19186 ac_cv_lib_pthread_sem_post=yes
19187 else $as_nop
19188 ac_cv_lib_pthread_sem_post=no
19189 fi
19190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19191 conftest$ac_exeext conftest.$ac_ext
19192 LIBS=$ac_check_lib_save_LIBS
19193 fi
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_post" >&5
19195 printf "%s\n" "$ac_cv_lib_pthread_sem_post" >&6; }
19196 if test "x$ac_cv_lib_pthread_sem_post" = xyes
19197 then :
19198
19199 pkg_failed=no
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack" >&5
19201 printf %s "checking for jack... " >&6; }
19202
19203 if test -n "$JACK_CFLAGS"; then
19204 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
19205 elif test -n "$PKG_CONFIG"; then
19206 if test -n "$PKG_CONFIG" && \
19207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
19208 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
19209 ac_status=$?
19210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19211 test $ac_status = 0; }; then
19212 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
19213 test "x$?" != "x0" && pkg_failed=yes
19214 else
19215 pkg_failed=yes
19216 fi
19217 else
19218 pkg_failed=untried
19219 fi
19220 if test -n "$JACK_LIBS"; then
19221 pkg_cv_JACK_LIBS="$JACK_LIBS"
19222 elif test -n "$PKG_CONFIG"; then
19223 if test -n "$PKG_CONFIG" && \
19224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
19225 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
19226 ac_status=$?
19227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; then
19229 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
19230 test "x$?" != "x0" && pkg_failed=yes
19231 else
19232 pkg_failed=yes
19233 fi
19234 else
19235 pkg_failed=untried
19236 fi
19237
19238
19239
19240 if test $pkg_failed = yes; then
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 printf "%s\n" "no" >&6; }
19243
19244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19245 _pkg_short_errors_supported=yes
19246 else
19247 _pkg_short_errors_supported=no
19248 fi
19249 if test $_pkg_short_errors_supported = yes; then
19250 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
19251 else
19252 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
19253 fi
19254 # Put the nasty error message in config.log where it belongs
19255 echo "$JACK_PKG_ERRORS" >&5
19256
19257 HAVE_JACK="no" check_failed=yes
19258 elif test $pkg_failed = untried; then
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 printf "%s\n" "no" >&6; }
19261 HAVE_JACK="no" check_failed=yes
19262 else
19263 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
19264 JACK_LIBS=$pkg_cv_JACK_LIBS
19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 printf "%s\n" "yes" >&6; }
19267
19268 output_modules="$output_modules jack"
19269 HAVE_JACK="yes"
19270 JACK_LIBS="$JACK_LIBS -lpthread"
19271
19272 fi
19273
19274 else $as_nop
19275 HAVE_JACK=no check_failed=yes
19276
19277 fi
19278
19279 ;;
19280 pulse)
19281
19282 pkg_failed=no
19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple" >&5
19284 printf %s "checking for libpulse-simple... " >&6; }
19285
19286 if test -n "$PULSE_CFLAGS"; then
19287 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
19288 elif test -n "$PKG_CONFIG"; then
19289 if test -n "$PKG_CONFIG" && \
19290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
19291 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
19292 ac_status=$?
19293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19294 test $ac_status = 0; }; then
19295 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
19296 test "x$?" != "x0" && pkg_failed=yes
19297 else
19298 pkg_failed=yes
19299 fi
19300 else
19301 pkg_failed=untried
19302 fi
19303 if test -n "$PULSE_LIBS"; then
19304 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
19305 elif test -n "$PKG_CONFIG"; then
19306 if test -n "$PKG_CONFIG" && \
19307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
19308 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
19309 ac_status=$?
19310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19311 test $ac_status = 0; }; then
19312 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
19313 test "x$?" != "x0" && pkg_failed=yes
19314 else
19315 pkg_failed=yes
19316 fi
19317 else
19318 pkg_failed=untried
19319 fi
19320
19321
19322
19323 if test $pkg_failed = yes; then
19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19325 printf "%s\n" "no" >&6; }
19326
19327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19328 _pkg_short_errors_supported=yes
19329 else
19330 _pkg_short_errors_supported=no
19331 fi
19332 if test $_pkg_short_errors_supported = yes; then
19333 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple" 2>&1`
19334 else
19335 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple" 2>&1`
19336 fi
19337 # Put the nasty error message in config.log where it belongs
19338 echo "$PULSE_PKG_ERRORS" >&5
19339
19340 HAVE_PULSE="no" check_failed=yes
19341 elif test $pkg_failed = untried; then
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 printf "%s\n" "no" >&6; }
19344 HAVE_PULSE="no" check_failed=yes
19345 else
19346 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
19347 PULSE_LIBS=$pkg_cv_PULSE_LIBS
19348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349 printf "%s\n" "yes" >&6; }
19350 output_modules="$output_modules pulse" HAVE_PULSE="yes"
19351 fi
19352 ;;
19353 esd)
19354
19355 pkg_failed=no
19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound" >&5
19357 printf %s "checking for esound... " >&6; }
19358
19359 if test -n "$ESD_CFLAGS"; then
19360 pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
19361 elif test -n "$PKG_CONFIG"; then
19362 if test -n "$PKG_CONFIG" && \
19363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
19364 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
19365 ac_status=$?
19366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19367 test $ac_status = 0; }; then
19368 pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
19369 test "x$?" != "x0" && pkg_failed=yes
19370 else
19371 pkg_failed=yes
19372 fi
19373 else
19374 pkg_failed=untried
19375 fi
19376 if test -n "$ESD_LIBS"; then
19377 pkg_cv_ESD_LIBS="$ESD_LIBS"
19378 elif test -n "$PKG_CONFIG"; then
19379 if test -n "$PKG_CONFIG" && \
19380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound\""; } >&5
19381 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
19382 ac_status=$?
19383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384 test $ac_status = 0; }; then
19385 pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
19386 test "x$?" != "x0" && pkg_failed=yes
19387 else
19388 pkg_failed=yes
19389 fi
19390 else
19391 pkg_failed=untried
19392 fi
19393
19394
19395
19396 if test $pkg_failed = yes; then
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 printf "%s\n" "no" >&6; }
19399
19400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19401 _pkg_short_errors_supported=yes
19402 else
19403 _pkg_short_errors_supported=no
19404 fi
19405 if test $_pkg_short_errors_supported = yes; then
19406 ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound" 2>&1`
19407 else
19408 ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound" 2>&1`
19409 fi
19410 # Put the nasty error message in config.log where it belongs
19411 echo "$ESD_PKG_ERRORS" >&5
19412
19413 HAVE_ESD="no" check_failed=yes
19414 elif test $pkg_failed = untried; then
19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19416 printf "%s\n" "no" >&6; }
19417 HAVE_ESD="no" check_failed=yes
19418 else
19419 ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
19420 ESD_LIBS=$pkg_cv_ESD_LIBS
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422 printf "%s\n" "yes" >&6; }
19423 output_modules="$output_modules esd" HAVE_ESD="yes"
19424 fi
19425 ;;
19426 portaudio)
19427 # Remember: This looks only insane because you chose an insane tab width!
19428 PORTAUDIO_LIBS="-lportaudio"
19429 PORTAUDIO_CFLAGS=
19430 case $host in
19431 *-*-mingw32)
19432 # We tested portaudio with MME
19433 if test "x$HAVE_PORTAUDIO" != "xyes"; then
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
19435 printf %s "checking for Pa_Initialize in -lportaudio... " >&6; }
19436 if test ${ac_cv_lib_portaudio_Pa_Initialize+y}
19437 then :
19438 printf %s "(cached) " >&6
19439 else $as_nop
19440 ac_check_lib_save_LIBS=$LIBS
19441 LIBS="-lportaudio -lwinmm
19442 $LIBS"
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19445
19446 /* Override any GCC internal prototype to avoid an error.
19447 Use char because int might match the return type of a GCC
19448 builtin and then its argument prototype would still apply. */
19449 char Pa_Initialize ();
19450 int
19451 main (void)
19452 {
19453 return Pa_Initialize ();
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_link "$LINENO"
19459 then :
19460 ac_cv_lib_portaudio_Pa_Initialize=yes
19461 else $as_nop
19462 ac_cv_lib_portaudio_Pa_Initialize=no
19463 fi
19464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19465 conftest$ac_exeext conftest.$ac_ext
19466 LIBS=$ac_check_lib_save_LIBS
19467 fi
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
19469 printf "%s\n" "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
19470 if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes
19471 then :
19472 ac_fn_c_check_header_compile "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
19473 if test "x$ac_cv_header_portaudio_h" = xyes
19474 then :
19475 output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes"
19476 else $as_nop
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
19478 printf "%s\n" "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
19479 fi
19480
19481 PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
19482
19483 else $as_nop
19484 HAVE_PORTAUDIO="no"
19485 fi
19486
19487 fi
19488 ;;
19489 *)
19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
19491 printf %s "checking for Pa_Initialize in -lportaudio... " >&6; }
19492 if test ${ac_cv_lib_portaudio_Pa_Initialize+y}
19493 then :
19494 printf %s "(cached) " >&6
19495 else $as_nop
19496 ac_check_lib_save_LIBS=$LIBS
19497 LIBS="-lportaudio $LIBS"
19498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499 /* end confdefs.h. */
19500
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19504 char Pa_Initialize ();
19505 int
19506 main (void)
19507 {
19508 return Pa_Initialize ();
19509 ;
19510 return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_link "$LINENO"
19514 then :
19515 ac_cv_lib_portaudio_Pa_Initialize=yes
19516 else $as_nop
19517 ac_cv_lib_portaudio_Pa_Initialize=no
19518 fi
19519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19522 fi
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
19524 printf "%s\n" "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
19525 if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes
19526 then :
19527 ac_fn_c_check_header_compile "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
19528 if test "x$ac_cv_header_portaudio_h" = xyes
19529 then :
19530 output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes"
19531 else $as_nop
19532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found PortAudio library but NOT header files on your system" >&5
19533 printf "%s\n" "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
19534 fi
19535
19536
19537
19538 fi
19539
19540 ;;
19541 esac
19542 if test "x$HAVE_PORTAUDIO" != xyes; then
19543 check_failed=yes
19544 else
19545 # See if we have v19 or v18
19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_GetVersion in -lportaudio" >&5
19547 printf %s "checking for Pa_GetVersion in -lportaudio... " >&6; }
19548 if test ${ac_cv_lib_portaudio_Pa_GetVersion+y}
19549 then :
19550 printf %s "(cached) " >&6
19551 else $as_nop
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lportaudio $PORTAUDIO_LIBS $LIBS"
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19560 char Pa_GetVersion ();
19561 int
19562 main (void)
19563 {
19564 return Pa_GetVersion ();
19565 ;
19566 return 0;
19567 }
19568 _ACEOF
19569 if ac_fn_c_try_link "$LINENO"
19570 then :
19571 ac_cv_lib_portaudio_Pa_GetVersion=yes
19572 else $as_nop
19573 ac_cv_lib_portaudio_Pa_GetVersion=no
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19576 conftest$ac_exeext conftest.$ac_ext
19577 LIBS=$ac_check_lib_save_LIBS
19578 fi
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetVersion" >&5
19580 printf "%s\n" "$ac_cv_lib_portaudio_Pa_GetVersion" >&6; }
19581 if test "x$ac_cv_lib_portaudio_Pa_GetVersion" = xyes
19582 then :
19583 :
19584 else $as_nop
19585
19586 printf "%s\n" "#define PORTAUDIO18 1" >>confdefs.h
19587
19588 fi
19589
19590 fi
19591 ;;
19592 sdl)
19593
19594 pkg_failed=no
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
19596 printf %s "checking for sdl2... " >&6; }
19597
19598 if test -n "$SDL_CFLAGS"; then
19599 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
19600 elif test -n "$PKG_CONFIG"; then
19601 if test -n "$PKG_CONFIG" && \
19602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
19603 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
19604 ac_status=$?
19605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19606 test $ac_status = 0; }; then
19607 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
19608 test "x$?" != "x0" && pkg_failed=yes
19609 else
19610 pkg_failed=yes
19611 fi
19612 else
19613 pkg_failed=untried
19614 fi
19615 if test -n "$SDL_LIBS"; then
19616 pkg_cv_SDL_LIBS="$SDL_LIBS"
19617 elif test -n "$PKG_CONFIG"; then
19618 if test -n "$PKG_CONFIG" && \
19619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
19620 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
19621 ac_status=$?
19622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; }; then
19624 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
19625 test "x$?" != "x0" && pkg_failed=yes
19626 else
19627 pkg_failed=yes
19628 fi
19629 else
19630 pkg_failed=untried
19631 fi
19632
19633
19634
19635 if test $pkg_failed = yes; then
19636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19637 printf "%s\n" "no" >&6; }
19638
19639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19640 _pkg_short_errors_supported=yes
19641 else
19642 _pkg_short_errors_supported=no
19643 fi
19644 if test $_pkg_short_errors_supported = yes; then
19645 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
19646 else
19647 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
19648 fi
19649 # Put the nasty error message in config.log where it belongs
19650 echo "$SDL_PKG_ERRORS" >&5
19651
19652 HAVE_SDL="no" check_failed=yes
19653 elif test $pkg_failed = untried; then
19654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19655 printf "%s\n" "no" >&6; }
19656 HAVE_SDL="no" check_failed=yes
19657 else
19658 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
19659 SDL_LIBS=$pkg_cv_SDL_LIBS
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19661 printf "%s\n" "yes" >&6; }
19662 output_modules="$output_modules sdl" HAVE_SDL="yes"
19663 fi
19664 if ! test "$HAVE_SDL" = "yes"; then
19665 check_failed=no
19666
19667 pkg_failed=no
19668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
19669 printf %s "checking for sdl... " >&6; }
19670
19671 if test -n "$SDL_CFLAGS"; then
19672 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
19673 elif test -n "$PKG_CONFIG"; then
19674 if test -n "$PKG_CONFIG" && \
19675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
19676 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
19677 ac_status=$?
19678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679 test $ac_status = 0; }; then
19680 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
19681 test "x$?" != "x0" && pkg_failed=yes
19682 else
19683 pkg_failed=yes
19684 fi
19685 else
19686 pkg_failed=untried
19687 fi
19688 if test -n "$SDL_LIBS"; then
19689 pkg_cv_SDL_LIBS="$SDL_LIBS"
19690 elif test -n "$PKG_CONFIG"; then
19691 if test -n "$PKG_CONFIG" && \
19692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
19693 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
19694 ac_status=$?
19695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19696 test $ac_status = 0; }; then
19697 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
19698 test "x$?" != "x0" && pkg_failed=yes
19699 else
19700 pkg_failed=yes
19701 fi
19702 else
19703 pkg_failed=untried
19704 fi
19705
19706
19707
19708 if test $pkg_failed = yes; then
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19710 printf "%s\n" "no" >&6; }
19711
19712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19713 _pkg_short_errors_supported=yes
19714 else
19715 _pkg_short_errors_supported=no
19716 fi
19717 if test $_pkg_short_errors_supported = yes; then
19718 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
19719 else
19720 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
19721 fi
19722 # Put the nasty error message in config.log where it belongs
19723 echo "$SDL_PKG_ERRORS" >&5
19724
19725 HAVE_SDL="no" check_failed=yes
19726 elif test $pkg_failed = untried; then
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19728 printf "%s\n" "no" >&6; }
19729 HAVE_SDL="no" check_failed=yes
19730 else
19731 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
19732 SDL_LIBS=$pkg_cv_SDL_LIBS
19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19734 printf "%s\n" "yes" >&6; }
19735 output_modules="$output_modules sdl" HAVE_SDL="yes"
19736 fi
19737 fi
19738 ;;
19739 nas)
19740 NAS_LIBS=-laudio
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
19742 printf %s "checking for AuOpenServer in -laudio... " >&6; }
19743 if test ${ac_cv_lib_audio_AuOpenServer+y}
19744 then :
19745 printf %s "(cached) " >&6
19746 else $as_nop
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-laudio $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h. */
19751
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755 char AuOpenServer ();
19756 int
19757 main (void)
19758 {
19759 return AuOpenServer ();
19760 ;
19761 return 0;
19762 }
19763 _ACEOF
19764 if ac_fn_c_try_link "$LINENO"
19765 then :
19766 ac_cv_lib_audio_AuOpenServer=yes
19767 else $as_nop
19768 ac_cv_lib_audio_AuOpenServer=no
19769 fi
19770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19771 conftest$ac_exeext conftest.$ac_ext
19772 LIBS=$ac_check_lib_save_LIBS
19773 fi
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
19775 printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
19776 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
19777 then :
19778 ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
19779 if test "x$ac_cv_header_audio_audiolib_h" = xyes
19780 then :
19781 output_modules="$output_modules nas" HAVE_NAS="yes"
19782 else $as_nop
19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found NAS library but NOT header files on your system" >&5
19784 printf "%s\n" "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
19785 fi
19786
19787
19788
19789 fi
19790
19791 if test "x$HAVE_NAS" != xyes; then
19792 check_failed=yes
19793 fi
19794 ;;
19795 win32)
19796 # Check for windows ... and win32 audio
19797 # Does not work... instead just check for header
19798 # AC_CHECK_LIB( [winmm], [waveOutOpen] )
19799 WIN32_LIBS=-lwinmm
19800 if test x$ac_cv_header_windows_h = xyes; then
19801 output_modules="$output_modules win32"
19802 HAVE_WIN32=yes
19803 else
19804 HAVE_WIN32=no
19805 check_failed=yes
19806 fi
19807 ;;
19808 win32_wasapi)
19809 # Check for windows ... and win32 wasapi audio
19810 # Does not work... instead just check for header
19811 # AC_CHECK_LIB( [avrt], [] )
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have wasapi headers" >&5
19813 printf %s "checking if we have wasapi headers... " >&6; }
19814 OLD_LIBS=$LIBS
19815 LIBS="$LIBS -lole32 -lavrt"
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818
19819 #define COBJMACROS 1
19820 #define _WIN32_WINNT 0x601
19821 #include <initguid.h>
19822 #include <audioclient.h>
19823 #include <mmdeviceapi.h>
19824 #include <avrt.h>
19825 int main(){
19826 /* UUID Checks */
19827 GUID *IDs = {
19828 &CLSID_MMDeviceEnumerator,
19829 &IID_IMMDeviceEnumerator,
19830 &IID_IAudioClient,
19831 &IID_IAudioRenderClient
19832 };
19833 return 0;
19834 }
19835
19836 _ACEOF
19837 if ac_fn_c_try_link "$LINENO"
19838 then :
19839 HAVE_WIN32_WASAPI=yes
19840 else $as_nop
19841 HAVE_WIN32_WASAPI=no
19842 fi
19843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19844 conftest$ac_exeext conftest.$ac_ext
19845 LIBS=$OLD_LIBS
19846 WIN32_WASAPI_LIBS="-lole32 -lavrt"
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_WIN32_WASAPI" >&5
19848 printf "%s\n" "$HAVE_WIN32_WASAPI" >&6; }
19849 if test "x$HAVE_WIN32_WASAPI" = xyes; then
19850 output_modules="$output_modules win32_wasapi"
19851 else
19852 check_failed=yes
19853 fi
19854 ;;
19855 sndio)
19856
19857 pkg_failed=no
19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
19859 printf %s "checking for sndio... " >&6; }
19860
19861 if test -n "$SNDIO_CFLAGS"; then
19862 pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
19863 elif test -n "$PKG_CONFIG"; then
19864 if test -n "$PKG_CONFIG" && \
19865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
19866 ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
19867 ac_status=$?
19868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19869 test $ac_status = 0; }; then
19870 pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
19871 test "x$?" != "x0" && pkg_failed=yes
19872 else
19873 pkg_failed=yes
19874 fi
19875 else
19876 pkg_failed=untried
19877 fi
19878 if test -n "$SNDIO_LIBS"; then
19879 pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
19880 elif test -n "$PKG_CONFIG"; then
19881 if test -n "$PKG_CONFIG" && \
19882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
19883 ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
19884 ac_status=$?
19885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19886 test $ac_status = 0; }; then
19887 pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
19888 test "x$?" != "x0" && pkg_failed=yes
19889 else
19890 pkg_failed=yes
19891 fi
19892 else
19893 pkg_failed=untried
19894 fi
19895
19896
19897
19898 if test $pkg_failed = yes; then
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19900 printf "%s\n" "no" >&6; }
19901
19902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19903 _pkg_short_errors_supported=yes
19904 else
19905 _pkg_short_errors_supported=no
19906 fi
19907 if test $_pkg_short_errors_supported = yes; then
19908 SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
19909 else
19910 SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
19911 fi
19912 # Put the nasty error message in config.log where it belongs
19913 echo "$SNDIO_PKG_ERRORS" >&5
19914
19915 HAVE_SNDIO="no" check_failed=yes
19916 elif test $pkg_failed = untried; then
19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918 printf "%s\n" "no" >&6; }
19919 HAVE_SNDIO="no" check_failed=yes
19920 else
19921 SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
19922 SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
19923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19924 printf "%s\n" "yes" >&6; }
19925 output_modules="$output_modules sndio" HAVE_SNDIO="yes"
19926 fi
19927 ;;
19928 sun)
19929 ac_fn_c_check_header_compile "$LINENO" "sun/audioio.h" "ac_cv_header_sun_audioio_h" "$ac_includes_default"
19930 if test "x$ac_cv_header_sun_audioio_h" = xyes
19931 then :
19932 printf "%s\n" "#define HAVE_SUN_AUDIOIO_H 1" >>confdefs.h
19933
19934 fi
19935 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
19936 if test "x$ac_cv_header_sys_audioio_h" = xyes
19937 then :
19938 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
19939
19940 fi
19941 ac_fn_c_check_header_compile "$LINENO" "asm/audioio.h" "ac_cv_header_asm_audioio_h" "$ac_includes_default"
19942 if test "x$ac_cv_header_asm_audioio_h" = xyes
19943 then :
19944 printf "%s\n" "#define HAVE_ASM_AUDIOIO_H 1" >>confdefs.h
19945
19946 fi
19947 ac_fn_c_check_header_compile "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
19948 if test "x$ac_cv_header_sys_audio_h" = xyes
19949 then :
19950 printf "%s\n" "#define HAVE_SYS_AUDIO_H 1" >>confdefs.h
19951
19952 fi
19953
19954 if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
19955 -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
19956 -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
19957 then
19958 output_modules="$output_modules sun"
19959 HAVE_SUN="yes"
19960 else
19961 check_failed=yes
19962 fi
19963 ;;
19964 coreaudio)
19965 COREAUDIO_LIBS="-framework AudioToolbox"
19966 ac_fn_c_check_header_compile "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default"
19967 if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = xyes
19968 then :
19969 printf "%s\n" "#define HAVE_AUDIOUNIT_AUDIOUNIT_H 1" >>confdefs.h
19970
19971 fi
19972 ac_fn_c_check_header_compile "$LINENO" "AudioToolbox/AudioToolbox.h" "ac_cv_header_AudioToolbox_AudioToolbox_h" "$ac_includes_default"
19973 if test "x$ac_cv_header_AudioToolbox_AudioToolbox_h" = xyes
19974 then :
19975 printf "%s\n" "#define HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H 1" >>confdefs.h
19976
19977 fi
19978
19979 if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
19980 -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
19981 then
19982 OLD_LIBS=$LIBS
19983 LIBS="$LIBS $COREAUDIO_LIBS"
19984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AudioUnit functions are available within AudioToolbox" >&5
19985 printf %s "checking if AudioUnit functions are available within AudioToolbox... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 #include <AudioUnit/AudioUnit.h>
19989 int
19990 main (void)
19991 {
19992 AudioUnitInitialize(NULL);
19993 ;
19994 return 0;
19995 }
19996 _ACEOF
19997 if ac_fn_c_try_link "$LINENO"
19998 then :
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000 printf "%s\n" "yes" >&6; }
20001 else $as_nop
20002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20003 printf "%s\n" "no" >&6; }
20004 COREAUDIO_LIBS="$COREAUDIO_LIBS -framework AudioUnit"
20005
20006 fi
20007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$OLD_LIBS
20010 for ac_header in CoreServices/CoreServices.h
20011 do :
20012 ac_fn_c_check_header_compile "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
20013 if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes
20014 then :
20015 printf "%s\n" "#define HAVE_CORESERVICES_CORESERVICES_H 1" >>confdefs.h
20016 COREAUDIO_LIBS="$COREAUDIO_LIBS -framework CoreServices"
20017
20018 fi
20019
20020 done
20021 if test x"$modules" = xdisabled; then
20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&5
20023 printf "%s\n" "$as_me: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&2;}
20024 buffer=disabled
20025 fi
20026 output_modules="$output_modules coreaudio"
20027 HAVE_COREAUDIO="yes"
20028 else
20029 check_failed=yes
20030 fi
20031 ;;
20032 arts)
20033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for artsc" >&5
20034 printf %s "checking for artsc... " >&6; }
20035 if artsc-config > /dev/null 2>&1; then
20036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20037 printf "%s\n" "yes" >&6; }
20038 output_modules="$output_modules arts"
20039 HAVE_ARTS=yes
20040 ARTS_LIBS=`artsc-config --libs`
20041 ARTS_CFLAGS=`artsc-config --cflags`
20042 else
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20044 printf "%s\n" "no" >&6; }
20045 check_failed=yes
20046 fi
20047 ;;
20048 openal)
20049 ac_fn_c_check_header_compile "$LINENO" "OpenAL/al.h" "ac_cv_header_OpenAL_al_h" "$ac_includes_default"
20050 if test "x$ac_cv_header_OpenAL_al_h" = xyes
20051 then :
20052 printf "%s\n" "#define HAVE_OPENAL_AL_H 1" >>confdefs.h
20053
20054 fi
20055 ac_fn_c_check_header_compile "$LINENO" "OpenAL/alc.h" "ac_cv_header_OpenAL_alc_h" "$ac_includes_default"
20056 if test "x$ac_cv_header_OpenAL_alc_h" = xyes
20057 then :
20058 printf "%s\n" "#define HAVE_OPENAL_ALC_H 1" >>confdefs.h
20059
20060 fi
20061 ac_fn_c_check_header_compile "$LINENO" "AL/al.h" "ac_cv_header_AL_al_h" "$ac_includes_default"
20062 if test "x$ac_cv_header_AL_al_h" = xyes
20063 then :
20064 printf "%s\n" "#define HAVE_AL_AL_H 1" >>confdefs.h
20065
20066 fi
20067 ac_fn_c_check_header_compile "$LINENO" "AL/alc.h" "ac_cv_header_AL_alc_h" "$ac_includes_default"
20068 if test "x$ac_cv_header_AL_alc_h" = xyes
20069 then :
20070 printf "%s\n" "#define HAVE_AL_ALC_H 1" >>confdefs.h
20071
20072 fi
20073 ac_fn_c_check_header_compile "$LINENO" "al.h" "ac_cv_header_al_h" "$ac_includes_default"
20074 if test "x$ac_cv_header_al_h" = xyes
20075 then :
20076 printf "%s\n" "#define HAVE_AL_H 1" >>confdefs.h
20077
20078 fi
20079 ac_fn_c_check_header_compile "$LINENO" "alc.h" "ac_cv_header_alc_h" "$ac_includes_default"
20080 if test "x$ac_cv_header_alc_h" = xyes
20081 then :
20082 printf "%s\n" "#define HAVE_ALC_H 1" >>confdefs.h
20083
20084 fi
20085
20086 if test "x${ac_cv_header_OpenAL_al_h}" = "xyes" \
20087 -a "x${ac_cv_header_OpenAL_alc_h}" = "xyes";
20088 then #Mac OS X
20089 output_modules="$output_modules openal"
20090 OPENAL_LIBS="-framework OpenAL"
20091 OPENAL_CFLAGS="-DOPENAL_SUBDIR_OPENAL"
20092 HAVE_OPENAL="yes"
20093 elif test "x${ac_cv_header_AL_al_h}" = "xyes" \
20094 -a "x${ac_cv_header_AL_alc_h}" = "xyes";
20095 then #Linux
20096 output_modules="$output_modules openal"
20097 OPENAL_LIBS="-lopenal"
20098 OPENAL_CFLAGS="-DOPENAL_SUBDIR_AL"
20099 HAVE_OPENAL="yes"
20100 elif test "x${ac_cv_header_al_h}" = "xyes" \
20101 -a "x${ac_cv_header_alc_h}" = "xyes";
20102 then #Windows?
20103 output_modules="$output_modules openal"
20104 OPENAL_LIBS="-lopenal"
20105 OPENAL_CFLAGS=""
20106 HAVE_OPENAL="yes"
20107 else
20108 check_failed=yes
20109 fi
20110 ;;
20111 os2)
20112 OS2_LIBS="-lcx -lmmpm2"
20113 OS2_CFLAGS="-idirafter /@unixroot/usr/include/os2tk45"
20114 oldcflags="$CFLAGS"
20115 CFLAGS="$CFLAGS $OS2_CFLAGS"
20116 ac_fn_c_check_header_compile "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
20117 if test "x$ac_cv_header_os2_h" = xyes
20118 then :
20119 printf "%s\n" "#define HAVE_OS2_H 1" >>confdefs.h
20120
20121 fi
20122
20123 # os2me.h depends on os2.h
20124 # Yes, that way of coding it is ugly.
20125 if test "x${ac_cv_header_os2_h}" = xyes
20126 then
20127 # We mimick exactly the way how the header will be used.
20128 # It seems to be picky...
20129 ac_fn_c_check_header_compile "$LINENO" "os2me.h" "ac_cv_header_os2me_h" "#define INCL_OS2MM
20130 #undef VERSION
20131 #define INCL_DOS
20132 #define INCL_VIO
20133 #define INCL_KBD
20134 #include <os2.h>
20135 #
20136 "
20137 if test "x$ac_cv_header_os2me_h" = xyes
20138 then :
20139 printf "%s\n" "#define HAVE_OS2ME_H 1" >>confdefs.h
20140
20141 fi
20142
20143 fi
20144 if test "x${ac_cv_header_os2_h}" = xyes \
20145 -a "x${ac_cv_header_os2me_h}" = xyes
20146 then
20147 output_modules="$output_modules os2"
20148 HAVE_OS2=yes
20149 else
20150 check_failed=yes
20151 fi
20152 CFLAGS="$oldcflags"
20153 ;;
20154 # from here on only forced tests, untested code
20155 hp)
20156 # What's the deal with that and alib?
20157 UNSUPPORTED_AUDIO=yes
20158 ac_fn_c_check_header_compile "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
20159 if test "x$ac_cv_header_sys_audio_h" = xyes
20160 then :
20161 output_modules="$output_modules hp" HAVE_HP=yes
20162 else $as_nop
20163 check_failed=yes
20164 fi
20165
20166 ;;
20167 alib)
20168 UNSUPPORTED_AUDIO=yes
20169 # ALIB_CFLAGS="-I/opt/audio/include"
20170 ALIB_LIBS=-lAlib
20171 # These headers may not be all about audio but they are used.
20172 ac_fn_c_check_header_compile "$LINENO" "Alib.h" "ac_cv_header_Alib_h" "$ac_includes_default"
20173 if test "x$ac_cv_header_Alib_h" = xyes
20174 then :
20175 printf "%s\n" "#define HAVE_ALIB_H 1" >>confdefs.h
20176
20177 fi
20178 ac_fn_c_check_header_compile "$LINENO" "CUlib.h" "ac_cv_header_CUlib_h" "$ac_includes_default"
20179 if test "x$ac_cv_header_CUlib_h" = xyes
20180 then :
20181 printf "%s\n" "#define HAVE_CULIB_H 1" >>confdefs.h
20182
20183 fi
20184 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
20185 if test "x$ac_cv_header_netdb_h" = xyes
20186 then :
20187 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
20188
20189 fi
20190 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20191 if test "x$ac_cv_header_netinet_in_h" = xyes
20192 then :
20193 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
20194
20195 fi
20196 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
20197 if test "x$ac_cv_header_netinet_tcp_h" = xyes
20198 then :
20199 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
20200
20201 fi
20202
20203 if test "x${ac_cv_header_Alib_h}" = xyes \
20204 -a "x${ac_cv_header_CUlib_h}" = xyes \
20205 -a "x${ac_cv_header_netdb_h}" = xyes \
20206 -a "x${ac_cv_header_netinet_in_h}" = xyes \
20207 -a "x${ac_cv_header_netinet_tcp_h}" = xyes
20208 then
20209 output_modules="$output_modules alib"
20210 HAVE_ALIB=yes
20211 else
20212 check_failed=yes
20213 fi
20214 ;;
20215 mint)
20216 UNSUPPORTED_AUDIO=yes
20217 for ac_header in audios.h
20218 do :
20219 ac_fn_c_check_header_compile "$LINENO" "audios.h" "ac_cv_header_audios_h" "$ac_includes_default"
20220 if test "x$ac_cv_header_audios_h" = xyes
20221 then :
20222 printf "%s\n" "#define HAVE_AUDIOS_H 1" >>confdefs.h
20223 output_modules="$output_modules mint" HAVE_MINT=yes
20224 else $as_nop
20225 check_failes=yes
20226 fi
20227
20228 done
20229 ;;
20230 aix)
20231 UNSUPPORTED_AUDIO=yes
20232 for ac_header in sys/audio.h
20233 do :
20234 ac_fn_c_check_header_compile "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
20235 if test "x$ac_cv_header_sys_audio_h" = xyes
20236 then :
20237 printf "%s\n" "#define HAVE_SYS_AUDIO_H 1" >>confdefs.h
20238 output_modules="$output_modules aix" HAVE_AIX=yes
20239 else $as_nop
20240 check_failed=yes
20241 fi
20242
20243 done
20244 ;;
20245 sgi)
20246 UNSUPPORTED_AUDIO=yes
20247 SGI_LIBS=-laudio
20248 ac_fn_c_check_header_compile "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
20249 if test "x$ac_cv_header_dmedia_audio_h" = xyes
20250 then :
20251 output_modules="$output_modules sgi" HAVE_SGI=yes
20252 else $as_nop
20253 check_failed=yes
20254 fi
20255
20256 ;;
20257 *)
20258 as_fn_error $? "Unsupported/-known output '$m' demanded!" "$LINENO" 5
20259 ;;
20260 esac
20261 done
20262
20263 if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&5
20265 printf "%s\n" "$as_me: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&2;}
20266 fi
20267
20268 if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
20269 as_fn_error $? "One/some of your requested audio modules failed the test!" "$LINENO" 5
20270 fi
20271
20272 # When you extend check_modules, you should extend this:
20273 #for i in alsa qsa oss coreaudio sndio sun win32 win32_wasapi esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint openal dummy
20274 #do echo $i; done |
20275 #perl -ne 'chomp; $big = uc($_); print <<EOT;
20276 #AC_SUBST(${big}_LIBS)
20277 #AC_SUBST(${big}_LDFLAGS)
20278 #AC_SUBST(${big}_CFLAGS)
20279 #AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
20280 #EOT
20281 #'
20282
20283
20284
20285 if test "x$HAVE_TINYALSA" = xyes ; then
20286 HAVE_TINYALSA_TRUE=
20287 HAVE_TINYALSA_FALSE='#'
20288 else
20289 HAVE_TINYALSA_TRUE='#'
20290 HAVE_TINYALSA_FALSE=
20291 fi
20292
20293
20294
20295
20296 if test "x$HAVE_ALSA" = xyes ; then
20297 HAVE_ALSA_TRUE=
20298 HAVE_ALSA_FALSE='#'
20299 else
20300 HAVE_ALSA_TRUE='#'
20301 HAVE_ALSA_FALSE=
20302 fi
20303
20304
20305
20306
20307 if test "x$HAVE_QSA" = xyes ; then
20308 HAVE_QSA_TRUE=
20309 HAVE_QSA_FALSE='#'
20310 else
20311 HAVE_QSA_TRUE='#'
20312 HAVE_QSA_FALSE=
20313 fi
20314
20315
20316
20317
20318 if test "x$HAVE_OSS" = xyes ; then
20319 HAVE_OSS_TRUE=
20320 HAVE_OSS_FALSE='#'
20321 else
20322 HAVE_OSS_TRUE='#'
20323 HAVE_OSS_FALSE=
20324 fi
20325
20326
20327
20328
20329 if test "x$HAVE_COREAUDIO" = xyes ; then
20330 HAVE_COREAUDIO_TRUE=
20331 HAVE_COREAUDIO_FALSE='#'
20332 else
20333 HAVE_COREAUDIO_TRUE='#'
20334 HAVE_COREAUDIO_FALSE=
20335 fi
20336
20337
20338
20339
20340 if test "x$HAVE_SNDIO" = xyes ; then
20341 HAVE_SNDIO_TRUE=
20342 HAVE_SNDIO_FALSE='#'
20343 else
20344 HAVE_SNDIO_TRUE='#'
20345 HAVE_SNDIO_FALSE=
20346 fi
20347
20348
20349
20350
20351 if test "x$HAVE_SUN" = xyes ; then
20352 HAVE_SUN_TRUE=
20353 HAVE_SUN_FALSE='#'
20354 else
20355 HAVE_SUN_TRUE='#'
20356 HAVE_SUN_FALSE=
20357 fi
20358
20359
20360
20361
20362 if test "x$HAVE_WIN32" = xyes ; then
20363 HAVE_WIN32_TRUE=
20364 HAVE_WIN32_FALSE='#'
20365 else
20366 HAVE_WIN32_TRUE='#'
20367 HAVE_WIN32_FALSE=
20368 fi
20369
20370
20371
20372
20373 if test "x$HAVE_WIN32_WASAPI" = xyes ; then
20374 HAVE_WIN32_WASAPI_TRUE=
20375 HAVE_WIN32_WASAPI_FALSE='#'
20376 else
20377 HAVE_WIN32_WASAPI_TRUE='#'
20378 HAVE_WIN32_WASAPI_FALSE=
20379 fi
20380
20381
20382
20383
20384 if test "x$HAVE_ESD" = xyes ; then
20385 HAVE_ESD_TRUE=
20386 HAVE_ESD_FALSE='#'
20387 else
20388 HAVE_ESD_TRUE='#'
20389 HAVE_ESD_FALSE=
20390 fi
20391
20392
20393
20394
20395 if test "x$HAVE_JACK" = xyes ; then
20396 HAVE_JACK_TRUE=
20397 HAVE_JACK_FALSE='#'
20398 else
20399 HAVE_JACK_TRUE='#'
20400 HAVE_JACK_FALSE=
20401 fi
20402
20403
20404
20405
20406 if test "x$HAVE_PORTAUDIO" = xyes ; then
20407 HAVE_PORTAUDIO_TRUE=
20408 HAVE_PORTAUDIO_FALSE='#'
20409 else
20410 HAVE_PORTAUDIO_TRUE='#'
20411 HAVE_PORTAUDIO_FALSE=
20412 fi
20413
20414
20415
20416
20417 if test "x$HAVE_PULSE" = xyes ; then
20418 HAVE_PULSE_TRUE=
20419 HAVE_PULSE_FALSE='#'
20420 else
20421 HAVE_PULSE_TRUE='#'
20422 HAVE_PULSE_FALSE=
20423 fi
20424
20425
20426
20427
20428 if test "x$HAVE_SDL" = xyes ; then
20429 HAVE_SDL_TRUE=
20430 HAVE_SDL_FALSE='#'
20431 else
20432 HAVE_SDL_TRUE='#'
20433 HAVE_SDL_FALSE=
20434 fi
20435
20436
20437
20438
20439 if test "x$HAVE_NAS" = xyes ; then
20440 HAVE_NAS_TRUE=
20441 HAVE_NAS_FALSE='#'
20442 else
20443 HAVE_NAS_TRUE='#'
20444 HAVE_NAS_FALSE=
20445 fi
20446
20447
20448
20449
20450 if test "x$HAVE_AIX" = xyes ; then
20451 HAVE_AIX_TRUE=
20452 HAVE_AIX_FALSE='#'
20453 else
20454 HAVE_AIX_TRUE='#'
20455 HAVE_AIX_FALSE=
20456 fi
20457
20458
20459
20460
20461 if test "x$HAVE_ALIB" = xyes ; then
20462 HAVE_ALIB_TRUE=
20463 HAVE_ALIB_FALSE='#'
20464 else
20465 HAVE_ALIB_TRUE='#'
20466 HAVE_ALIB_FALSE=
20467 fi
20468
20469
20470
20471
20472 if test "x$HAVE_ARTS" = xyes ; then
20473 HAVE_ARTS_TRUE=
20474 HAVE_ARTS_FALSE='#'
20475 else
20476 HAVE_ARTS_TRUE='#'
20477 HAVE_ARTS_FALSE=
20478 fi
20479
20480
20481
20482
20483 if test "x$HAVE_HP" = xyes ; then
20484 HAVE_HP_TRUE=
20485 HAVE_HP_FALSE='#'
20486 else
20487 HAVE_HP_TRUE='#'
20488 HAVE_HP_FALSE=
20489 fi
20490
20491
20492
20493
20494 if test "x$HAVE_OS2" = xyes ; then
20495 HAVE_OS2_TRUE=
20496 HAVE_OS2_FALSE='#'
20497 else
20498 HAVE_OS2_TRUE='#'
20499 HAVE_OS2_FALSE=
20500 fi
20501
20502
20503
20504
20505 if test "x$HAVE_SGI" = xyes ; then
20506 HAVE_SGI_TRUE=
20507 HAVE_SGI_FALSE='#'
20508 else
20509 HAVE_SGI_TRUE='#'
20510 HAVE_SGI_FALSE=
20511 fi
20512
20513
20514
20515
20516 if test "x$HAVE_MINT" = xyes ; then
20517 HAVE_MINT_TRUE=
20518 HAVE_MINT_FALSE='#'
20519 else
20520 HAVE_MINT_TRUE='#'
20521 HAVE_MINT_FALSE=
20522 fi
20523
20524
20525
20526
20527 if test "x$HAVE_OPENAL" = xyes ; then
20528 HAVE_OPENAL_TRUE=
20529 HAVE_OPENAL_FALSE='#'
20530 else
20531 HAVE_OPENAL_TRUE='#'
20532 HAVE_OPENAL_FALSE=
20533 fi
20534
20535
20536
20537
20538 if test "x$HAVE_DUMMY" = xyes ; then
20539 HAVE_DUMMY_TRUE=
20540 HAVE_DUMMY_FALSE='#'
20541 else
20542 HAVE_DUMMY_TRUE='#'
20543 HAVE_DUMMY_FALSE=
20544 fi
20545
20546 # Hackery to get rid of module .la files.
20547
20548 output_modules=`echo $output_modules`
20549
20550 for f in $output_modules
20551 do
20552 output_modules_la="$output_modules_la output_$f.la"
20553 done
20554
20555
20556 list_without()
20557 {
20558 lw_word=$1
20559 lw_spc=
20560 for w in "$@"
20561 do
20562 if test x"$w" != x"$lw_word"; then
20563 printf '%s%s' "$lw_spc" "$w"
20564 lw_spc=' '
20565 fi
20566 done
20567 }
20568
20569 first_word()
20570 {
20571 echo $1
20572 }
20573
20574 # Did user choose default audio subsystem ?
20575 # That's (beginning of) the list for mpg123's internal default.
20576 if test "x$with_default_audio" != "x"; then
20577 default_output_modules=`echo "$with_default_audio" | tr , ' '`
20578 else
20579 default_output_modules=`list_without dummy $output_modules`
20580 fi
20581
20582 default_output_module=`first_word $default_output_modules`
20583
20584 # Without actual modules, there is only the builtin one.
20585 if test x"$modules" = xdisabled; then
20586 # Module-less build needs _some_ default module.
20587 if test -z "$default_output_module"; then
20588 default_output_module=dummy
20589 fi
20590 default_output_modules=$default_output_module
20591 fi
20592
20593 # Setup the static build.
20594 # The conditionals always need to be defined by configure, even if
20595 # HAVE_MODULES is FALSE!
20596 # Here's a script for that tedious list, perhaps to be outsourced together with the one in #src/output/Makefile.am
20597 #for i in dummy tinyalsa alsa qsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 win32_wasapi aix alib arts hp os2 sgi mint openal
20598 #do echo $i; done |
20599 #perl -ne 'chomp; $big = uc($_); print <<EOT;
20600 #AM_CONDITIONAL([BUILD_${big}], [ test "$_" = "\$default_output_module" ])
20601 #EOT
20602 #'
20603
20604 if test "dummy" = "$default_output_module" ; then
20605 BUILD_DUMMY_TRUE=
20606 BUILD_DUMMY_FALSE='#'
20607 else
20608 BUILD_DUMMY_TRUE='#'
20609 BUILD_DUMMY_FALSE=
20610 fi
20611
20612 if test "tinyalsa" = "$default_output_module" ; then
20613 BUILD_TINYALSA_TRUE=
20614 BUILD_TINYALSA_FALSE='#'
20615 else
20616 BUILD_TINYALSA_TRUE='#'
20617 BUILD_TINYALSA_FALSE=
20618 fi
20619
20620 if test "alsa" = "$default_output_module" ; then
20621 BUILD_ALSA_TRUE=
20622 BUILD_ALSA_FALSE='#'
20623 else
20624 BUILD_ALSA_TRUE='#'
20625 BUILD_ALSA_FALSE=
20626 fi
20627
20628 if test "qsa" = "$default_output_module" ; then
20629 BUILD_QSA_TRUE=
20630 BUILD_QSA_FALSE='#'
20631 else
20632 BUILD_QSA_TRUE='#'
20633 BUILD_QSA_FALSE=
20634 fi
20635
20636 if test "coreaudio" = "$default_output_module" ; then
20637 BUILD_COREAUDIO_TRUE=
20638 BUILD_COREAUDIO_FALSE='#'
20639 else
20640 BUILD_COREAUDIO_TRUE='#'
20641 BUILD_COREAUDIO_FALSE=
20642 fi
20643
20644 if test "esd" = "$default_output_module" ; then
20645 BUILD_ESD_TRUE=
20646 BUILD_ESD_FALSE='#'
20647 else
20648 BUILD_ESD_TRUE='#'
20649 BUILD_ESD_FALSE=
20650 fi
20651
20652 if test "jack" = "$default_output_module" ; then
20653 BUILD_JACK_TRUE=
20654 BUILD_JACK_FALSE='#'
20655 else
20656 BUILD_JACK_TRUE='#'
20657 BUILD_JACK_FALSE=
20658 fi
20659
20660 if test "nas" = "$default_output_module" ; then
20661 BUILD_NAS_TRUE=
20662 BUILD_NAS_FALSE='#'
20663 else
20664 BUILD_NAS_TRUE='#'
20665 BUILD_NAS_FALSE=
20666 fi
20667
20668 if test "oss" = "$default_output_module" ; then
20669 BUILD_OSS_TRUE=
20670 BUILD_OSS_FALSE='#'
20671 else
20672 BUILD_OSS_TRUE='#'
20673 BUILD_OSS_FALSE=
20674 fi
20675
20676 if test "portaudio" = "$default_output_module" ; then
20677 BUILD_PORTAUDIO_TRUE=
20678 BUILD_PORTAUDIO_FALSE='#'
20679 else
20680 BUILD_PORTAUDIO_TRUE='#'
20681 BUILD_PORTAUDIO_FALSE=
20682 fi
20683
20684 if test "pulse" = "$default_output_module" ; then
20685 BUILD_PULSE_TRUE=
20686 BUILD_PULSE_FALSE='#'
20687 else
20688 BUILD_PULSE_TRUE='#'
20689 BUILD_PULSE_FALSE=
20690 fi
20691
20692 if test "sdl" = "$default_output_module" ; then
20693 BUILD_SDL_TRUE=
20694 BUILD_SDL_FALSE='#'
20695 else
20696 BUILD_SDL_TRUE='#'
20697 BUILD_SDL_FALSE=
20698 fi
20699
20700 if test "sndio" = "$default_output_module" ; then
20701 BUILD_SNDIO_TRUE=
20702 BUILD_SNDIO_FALSE='#'
20703 else
20704 BUILD_SNDIO_TRUE='#'
20705 BUILD_SNDIO_FALSE=
20706 fi
20707
20708 if test "sun" = "$default_output_module" ; then
20709 BUILD_SUN_TRUE=
20710 BUILD_SUN_FALSE='#'
20711 else
20712 BUILD_SUN_TRUE='#'
20713 BUILD_SUN_FALSE=
20714 fi
20715
20716 if test "win32" = "$default_output_module" ; then
20717 BUILD_WIN32_TRUE=
20718 BUILD_WIN32_FALSE='#'
20719 else
20720 BUILD_WIN32_TRUE='#'
20721 BUILD_WIN32_FALSE=
20722 fi
20723
20724 if test "win32_wasapi" = "$default_output_module" ; then
20725 BUILD_WIN32_WASAPI_TRUE=
20726 BUILD_WIN32_WASAPI_FALSE='#'
20727 else
20728 BUILD_WIN32_WASAPI_TRUE='#'
20729 BUILD_WIN32_WASAPI_FALSE=
20730 fi
20731
20732 if test "aix" = "$default_output_module" ; then
20733 BUILD_AIX_TRUE=
20734 BUILD_AIX_FALSE='#'
20735 else
20736 BUILD_AIX_TRUE='#'
20737 BUILD_AIX_FALSE=
20738 fi
20739
20740 if test "alib" = "$default_output_module" ; then
20741 BUILD_ALIB_TRUE=
20742 BUILD_ALIB_FALSE='#'
20743 else
20744 BUILD_ALIB_TRUE='#'
20745 BUILD_ALIB_FALSE=
20746 fi
20747
20748 if test "arts" = "$default_output_module" ; then
20749 BUILD_ARTS_TRUE=
20750 BUILD_ARTS_FALSE='#'
20751 else
20752 BUILD_ARTS_TRUE='#'
20753 BUILD_ARTS_FALSE=
20754 fi
20755
20756 if test "hp" = "$default_output_module" ; then
20757 BUILD_HP_TRUE=
20758 BUILD_HP_FALSE='#'
20759 else
20760 BUILD_HP_TRUE='#'
20761 BUILD_HP_FALSE=
20762 fi
20763
20764 if test "os2" = "$default_output_module" ; then
20765 BUILD_OS2_TRUE=
20766 BUILD_OS2_FALSE='#'
20767 else
20768 BUILD_OS2_TRUE='#'
20769 BUILD_OS2_FALSE=
20770 fi
20771
20772 if test "sgi" = "$default_output_module" ; then
20773 BUILD_SGI_TRUE=
20774 BUILD_SGI_FALSE='#'
20775 else
20776 BUILD_SGI_TRUE='#'
20777 BUILD_SGI_FALSE=
20778 fi
20779
20780 if test "mint" = "$default_output_module" ; then
20781 BUILD_MINT_TRUE=
20782 BUILD_MINT_FALSE='#'
20783 else
20784 BUILD_MINT_TRUE='#'
20785 BUILD_MINT_FALSE=
20786 fi
20787
20788 if test "openal" = "$default_output_module" ; then
20789 BUILD_OPENAL_TRUE=
20790 BUILD_OPENAL_FALSE='#'
20791 else
20792 BUILD_OPENAL_TRUE='#'
20793 BUILD_OPENAL_FALSE=
20794 fi
20795
20796
20797 default_modstring=`echo "$default_output_modules"|tr ' ' ,`
20798
20799 printf "%s\n" "#define DEFAULT_OUTPUT_MODULE \"$default_modstring\"" >>confdefs.h
20800
20801
20802
20803 CFLAGS="$ADD_CFLAGS $CFLAGS"
20804 if test x"$buffer" = xenabled ; then
20805 BUILD_BUFFER_TRUE=
20806 BUILD_BUFFER_FALSE='#'
20807 else
20808 BUILD_BUFFER_TRUE='#'
20809 BUILD_BUFFER_FALSE=
20810 fi
20811
20812 if test x"$buffer" = xdisabled; then
20813 ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
20814 fi
20815 if test x"$newoldwritesample" = xenabled; then
20816 ADD_CPPFLAGS="$ADD_CPPFLAGS -DNEWOLD_WRITE_SAMPLE"
20817 fi
20818 CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
20819 LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
20820
20821 # None chosen?
20822 if test "x$with_optimization" = "x"; then
20823 if test x"$debugging" = xenabled; then
20824 with_optimization="0"
20825 else
20826 # enable (gcc specific) default opts only with gcc
20827 if test "x$GCC" = xyes; then
20828 with_optimization="2"
20829 else
20830 with_optimization="0"
20831 fi
20832 fi
20833 fi
20834
20835 case $with_optimization in
20836 0)
20837 # No Optimizations
20838 CFLAGS="$CFLAGS"
20839 ;;
20840 1)
20841 CFLAGS="-O $CFLAGS"
20842 ;;
20843 2)
20844 CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
20845 ;;
20846 3)
20847 CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
20848 ;;
20849 4)
20850 CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
20851 ;;
20852 *)
20853 as_fn_error $? "Unknown optimizations level '$with_optimization'" "$LINENO" 5
20854 ;;
20855 esac
20856
20857 if test "x$GCC" = xyes && echo "$CFLAGS" | $GREP 'mpreferred-stack-boundary=' > /dev/null; then
20858 case $cpu_type in
20859 x86 | i586* | mmx | sse | 3dnow* | altivec)
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are trying to mess with stack alignment. I know better. " >&5
20861 printf "%s\n" "$as_me: WARNING: You are trying to mess with stack alignment. I know better. " >&2;}
20862 CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
20863 ;;
20864 esac
20865 fi
20866
20867
20868 if test "x$with_seektable" = "x"; then
20869 seektable=1000
20870 else
20871 seektable=$with_seektable
20872 fi
20873
20874 if test "$seektable" -gt 0; then
20875
20876 printf "%s\n" "#define FRAME_INDEX 1" >>confdefs.h
20877
20878 fi
20879 # Define that always... also without frame index enabled.
20880
20881 printf "%s\n" "#define INDEX_SIZE $seektable" >>confdefs.h
20882
20883
20884 # Check if we want Unicode for Win32. Cygwin and Midipix does not need _wopen
20885 COMPAT_LIBS=
20886
20887 win32_unicode=unneeded
20888 win32_sockets=disabled
20889 win32_sockets_working=no
20890 win32_wide_working=no
20891 win32_winver_bump=no
20892
20893 ### mingw.org may not work properly for newer APIs
20894 case $host_os in
20895 *mingw*)
20896 ac_fn_c_check_header_compile "$LINENO" "_mingw_mac.h" "ac_cv_header__mingw_mac_h" "$ac_includes_default"
20897 if test "x$ac_cv_header__mingw_mac_h" = xyes
20898 then :
20899
20900 else $as_nop
20901
20902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You are using the mingw.org distribution" >&5
20903 printf "%s\n" "$as_me: WARNING: You are using the mingw.org distribution" >&2;}
20904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mpg123 may not build properly" >&5
20905 printf "%s\n" "$as_me: WARNING: mpg123 may not build properly" >&2;}
20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please switch to using mingw-w64 if possible" >&5
20907 printf "%s\n" "$as_me: WARNING: Please switch to using mingw-w64 if possible" >&2;}
20908
20909 fi
20910
20911 ;;
20912 esac
20913
20914 if test "x$win32_specific_codes" = xenabled; then
20915 #### Check for Wide functions
20916 ac_fn_c_check_func "$LINENO" "_wopen" "ac_cv_func__wopen"
20917 if test "x$ac_cv_func__wopen" = xyes
20918 then :
20919 win32_unicode=enabled
20920 else $as_nop
20921 win32_unicode=disabled
20922 fi
20923
20924 if test "x$uwp_build" = xyes; then
20925
20926 printf "%s\n" "#define WANT_WIN32_UNICODE 1" >>confdefs.h
20927
20928 else
20929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want Unicode File Open for Win32" >&5
20930 printf %s "checking if we want Unicode File Open for Win32... " >&6; }
20931 if test "x$win32_unicode" = xenabled; then
20932 oldlibs=$LIBS
20933 LIBS="$LIBS -lshlwapi"
20934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20935 printf "%s\n" "yes" >&6; }
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Unicode functions working" >&5
20937 printf %s "checking if Unicode functions working... " >&6; }
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20940
20941 #include <windows.h>
20942 #include <shlwapi.h>
20943 #include <stdlib.h>
20944 int main()
20945 {
20946 MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
20947 WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
20948 PathCombineW(0,0,0);
20949 return 0;
20950 }
20951
20952 _ACEOF
20953 if ac_fn_c_try_link "$LINENO"
20954 then :
20955 win32_wide_working=yes
20956 else $as_nop
20957 win32_winver_bump=yes
20958 fi
20959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20960 conftest$ac_exeext conftest.$ac_ext
20961 if test "x$win32_wide_working" = xno; then
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20964
20965 #define WINVER 0x501
20966 #define _WIN32_WINNT 0x501
20967 #include <windows.h>
20968 #include <shlwapi.h>
20969 #include <stdlib.h>
20970 int main()
20971 {
20972 MultiByteToWideChar (0, 0, NULL, 0, NULL, 0);
20973 WideCharToMultiByte (0, 0, NULL, 0, NULL, 0, NULL, NULL);
20974 PathCombineW(0,0,0);
20975 return 0;
20976 }
20977
20978 _ACEOF
20979 if ac_fn_c_try_link "$LINENO"
20980 then :
20981 win32_wide_working=yes
20982 else $as_nop
20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20984 printf "%s\n" "no" >&6; }
20985 fi
20986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20987 conftest$ac_exeext conftest.$ac_ext
20988 fi
20989 LIBS=$oldlibs
20990 if test "x$win32_wide_working" = xyes; then
20991 COMPAT_LIBS="-lshlwapi $COMPAT_LIBS"
20992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20993 printf "%s\n" "yes" >&6; }
20994
20995 printf "%s\n" "#define WANT_WIN32_UNICODE 1" >>confdefs.h
20996
20997 else
20998 as_fn_error $? "Unicode support for Win32 not working" "$LINENO" 5
20999 fi
21000 else
21001 as_fn_error $? "Unicode File Open for Win32 not available" "$LINENO" 5
21002 fi
21003 fi
21004
21005 #### Check for Network functions
21006 for ac_header in ws2tcpip.h
21007 do :
21008 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21009 if test "x$ac_cv_header_ws2tcpip_h" = xyes
21010 then :
21011 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
21012 win32_sockets=enabled
21013 else $as_nop
21014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
21015 printf "%s\n" "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
21016 fi
21017
21018 done
21019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want Win32 sockets" >&5
21020 printf %s "checking if we want Win32 sockets... " >&6; }
21021 if test "x$win32_sockets" = "xenabled"; then
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21023 printf "%s\n" "yes" >&6; }
21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if winsock2 API is available" >&5
21025 printf %s "checking if winsock2 API is available... " >&6; }
21026 wsoldlibs="$LIBS"
21027 LIBS="$LIBS -lws2_32"
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030
21031 #include <winsock2.h>
21032 #include <ws2tcpip.h>
21033 #include <stdlib.h>
21034 int main()
21035 {
21036 getaddrinfo(NULL, NULL, NULL, NULL);
21037 freeaddrinfo(NULL);
21038 return 0;
21039 }
21040
21041 _ACEOF
21042 if ac_fn_c_try_link "$LINENO"
21043 then :
21044 win32_sockets_working=yes
21045 else $as_nop
21046 win32_winver_bump=yes
21047 fi
21048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21049 conftest$ac_exeext conftest.$ac_ext
21050 if test "x$win32_sockets_working" = "xno"; then
21051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper if winsock2 API is available" >&5
21052 printf %s "checking deeper if winsock2 API is available... " >&6; }
21053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h. */
21055
21056 #define WINVER 0x501
21057 #define _WIN32_WINNT 0x501
21058 #include <winsock2.h>
21059 #include <ws2tcpip.h>
21060 #include <stdlib.h>
21061 int main()
21062 {
21063 getaddrinfo(NULL, NULL, NULL, NULL);
21064 freeaddrinfo(NULL);
21065 return 0;
21066 }
21067
21068 _ACEOF
21069 if ac_fn_c_try_link "$LINENO"
21070 then :
21071 win32_sockets_working=yes
21072 else $as_nop
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074 printf "%s\n" "no" >&6; }
21075 fi
21076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21077 conftest$ac_exeext conftest.$ac_ext
21078 fi
21079 if test "x$win32_sockets_working" = "xyes"; then
21080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21081 printf "%s\n" "yes" >&6; }
21082 network_internal=winsock2
21083 have_network=yes
21084 have_ipv6=yes
21085 else
21086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please update your headers to support winsock 2.2." >&5
21087 printf "%s\n" "$as_me: WARNING: Please update your headers to support winsock 2.2." >&2;}
21088 fi
21089 LIBS="$wsoldlibs"
21090 else
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092 printf "%s\n" "no" >&6; }
21093 fi
21094
21095 #### Check for Win32 Named Pipe functions
21096 win32_fifo_working=no
21097 winver=""
21098 if test x$win32_specific_codes = xenabled; then
21099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have Named Pipes" >&5
21100 printf %s "checking if we have Named Pipes... " >&6; }
21101 if test "x$fifo" != "xdisabled"; then
21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h. */
21104
21105 #include <windows.h>
21106 int main(){
21107 CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
21108 CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
21109 return 0;
21110 }
21111 _ACEOF
21112 if ac_fn_c_try_link "$LINENO"
21113 then :
21114 win32_fifo_working=yes
21115 else $as_nop
21116 win32_winver_bump=yes
21117 fi
21118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21119 conftest$ac_exeext conftest.$ac_ext
21120 if test "x$win32_fifo_working" != "xyes"; then
21121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122 /* end confdefs.h. */
21123
21124 #define WINVER 0x501
21125 #define _WIN32_WINNT 0x501
21126 #include <windows.h>
21127 int main(){
21128 CreateNamedPipeA(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
21129 CreateNamedPipeW(NULL,PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,PIPE_TYPE_BYTE,1,255,255,0,NULL);
21130 return 0;
21131 }
21132 _ACEOF
21133 if ac_fn_c_try_link "$LINENO"
21134 then :
21135 win32_fifo_working=yes
21136 else $as_nop
21137 win32_fifo_working=no
21138 fi
21139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21140 conftest$ac_exeext conftest.$ac_ext
21141 fi
21142 fi
21143 have_mkfifo=$win32_fifo_working
21144 if test "x$win32_fifo_working" = "xyes"; then
21145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21146 printf "%s\n" "yes" >&6; }
21147
21148 printf "%s\n" "#define WANT_WIN32_FIFO 1" >>confdefs.h
21149
21150 else
21151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21152 printf "%s\n" "no" >&6; }
21153 fi
21154 fi
21155
21156 #### WINVER Bump
21157 if test x$win32_specific_codes = xenabled; then
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WINVER and _WIN32_WINNT needs version bumps" >&5
21159 printf %s "checking if WINVER and _WIN32_WINNT needs version bumps... " >&6; }
21160 if test "x$win32_winver_bump" = "xyes"; then
21161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21162 printf "%s\n" "yes" >&6; }
21163
21164 printf "%s\n" "#define WINVER 0x0600" >>confdefs.h
21165
21166
21167 printf "%s\n" "#define _WIN32_WINNT 0x0600" >>confdefs.h
21168
21169 # getaddrinfo and freeaddrinfo are available for Win2K and above
21170 # Bug: MinGW.org w32api ws2tcpip.h incorrectly wants (_WIN32_WINNT >= 0x0501) for getaddrinfo and freeaddrinfo
21171 # MultiByteToWideChar and WideCharToMultiByte are available for Win2K and above
21172 # GetThreadErrorMode only available on Vista and Later
21173 else
21174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21175 printf "%s\n" "no" >&6; }
21176 fi
21177 fi
21178
21179 fi #END OF WIN32 CHECKS
21180
21181 #### Check mingw.org for EOVERFLOW
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have EOVERFLOW macro" >&5
21183 printf %s "checking if we have EOVERFLOW macro... " >&6; }
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h. */
21186
21187 #include <errno.h>
21188 int i = (EOVERFLOW) + 0;
21189
21190 _ACEOF
21191 if ac_fn_c_try_compile "$LINENO"
21192 then :
21193 eoverflow_present=yes
21194 else $as_nop
21195 eoverflow_present=no
21196 fi
21197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $eoverflow_present" >&5
21199 printf "%s\n" "$eoverflow_present" >&6; }
21200 if test "x$eoverflow_present" = "xyes"
21201 then :
21202
21203 else $as_nop
21204
21205 printf "%s\n" "#define EOVERFLOW EFBIG" >>confdefs.h
21206
21207 fi
21208
21209 # old network choice
21210
21211 # Check whether --enable-ipv6 was given.
21212 if test ${enable_ipv6+y}
21213 then :
21214 enableval=$enable_ipv6;
21215 if test "x$enableval" = xyes
21216 then
21217 ipv6="enabled"
21218 else
21219 ipv6="disabled"
21220 fi
21221
21222 else $as_nop
21223
21224 ipv6="auto"
21225
21226
21227 fi
21228
21229
21230 network_type=auto
21231
21232 # Check whether --enable-network was given.
21233 if test ${enable_network+y}
21234 then :
21235 enableval=$enable_network;
21236 if test "x$enableval" = xyes
21237 then
21238 network_type=auto
21239 else
21240 network_type=disabled
21241 fi
21242
21243 fi
21244
21245
21246 # new network choice
21247
21248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preferred network support" >&5
21249 printf %s "checking for preferred network support... " >&6; }
21250
21251 # Check whether --with-network was given.
21252 if test ${with_network+y}
21253 then :
21254 withval=$with_network;
21255 case "$withval" in
21256 exec)
21257 network_type="exec"
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: exec" >&5
21259 printf "%s\n" "exec" >&6; }
21260 ;;
21261 winhttp)
21262 network_type="winhttp"
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: winhttp" >&5
21264 printf "%s\n" "winhttp" >&6; }
21265 ;;
21266 wininet)
21267 network_type="wininet"
21268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: wininet" >&5
21269 printf "%s\n" "wininet" >&6; }
21270 ;;
21271 wininethttp)
21272 network_type="wininethttp"
21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: wininethttp" >&5
21274 printf "%s\n" "wininethttp" >&6; }
21275 ;;
21276 internal)
21277 network_type="internal"
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal" >&5
21279 printf "%s\n" "internal" >&6; }
21280 ;;
21281 yes|auto)
21282 network_type="auto"
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
21284 printf "%s\n" "auto" >&6; }
21285 ;;
21286 no|none)
21287 network_type="disabled"
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
21289 printf "%s\n" "none" >&6; }
21290 ;;
21291 *)
21292 as_fn_error $? "Unknown network option \"$withval\"" "$LINENO" 5
21293 ;;
21294 esac
21295
21296 else $as_nop
21297
21298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $network_type" >&5
21299 printf "%s\n" "$network_type" >&6; }
21300
21301
21302 fi
21303
21304
21305 if test x$network_type = xauto; then
21306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for automatic network support" >&5
21307 printf %s "checking for automatic network support... " >&6; }
21308 if test "x$have_fork" = "xyes"; then
21309 network_type=exec
21310 elif test "x$win32_specific_codes" = "xenabled"; then
21311 network_type=wininethttp
21312 elif test "x$have_network" = "xyes"; then
21313 network_type="internal"
21314 else
21315 network_type="disabled"
21316 fi
21317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $network_type" >&5
21318 printf "%s\n" "$network_type" >&6; }
21319 fi
21320
21321 # new net123
21322 if test x$network_type != xdisabled; then
21323
21324 printf "%s\n" "#define NET123 1" >>confdefs.h
21325
21326 fi
21327 if test x$network_type = xexec -a x$have_fork != xyes; then
21328 as_fn_error $? "exec network support selected but fork not available" "$LINENO" 5
21329 fi
21330 if test x$network_type = xwininet -o x$network_type = xwinhttp -o x$network_type = xwininethttp && test x$win32_specific_codes != xenabled; then
21331 as_fn_error $? "wininet or winhttp is currently only for Windows" "$LINENO" 5
21332 fi
21333
21334 #### Use Win32 support codes
21335 if test "x$win32_specific_codes" = xenabled ; then
21336 WIN32_CODES_TRUE=
21337 WIN32_CODES_FALSE='#'
21338 else
21339 WIN32_CODES_TRUE='#'
21340 WIN32_CODES_FALSE=
21341 fi
21342
21343
21344 if test x"$ipv6" = xauto; then
21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 use" >&5
21346 printf %s "checking IPv6 use... " >&6; }
21347 if test x"$have_ipv6" = xyes -a x"$network_type" != xdisabled; then
21348 ipv6=enabled
21349 else
21350 ipv6=disabled
21351 fi
21352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
21353 printf "%s\n" "$ipv6" >&6; }
21354 fi
21355
21356 if test x$network_type != xdisabled -a x$network_internal = xwinsock2; then
21357
21358 printf "%s\n" "#define WANT_WIN32_SOCKETS 1" >>confdefs.h
21359
21360 fi
21361
21362 if test x$network_type != xdisabled -a x$network_internal = xwinsock2 ; then
21363 NETWORK_WINSOCK_TRUE=
21364 NETWORK_WINSOCK_FALSE='#'
21365 else
21366 NETWORK_WINSOCK_TRUE='#'
21367 NETWORK_WINSOCK_FALSE=
21368 fi
21369
21370 if test x$network_type != xdisabled ; then
21371 NET123_TRUE=
21372 NET123_FALSE='#'
21373 else
21374 NET123_TRUE='#'
21375 NET123_FALSE=
21376 fi
21377
21378 if test x$network_type = xexec ; then
21379 NET123_EXEC_TRUE=
21380 NET123_EXEC_FALSE='#'
21381 else
21382 NET123_EXEC_TRUE='#'
21383 NET123_EXEC_FALSE=
21384 fi
21385
21386 if test x$network_type = xwinhttp || test x$network_type = xwininethttp ; then
21387 NET123_WINHTTP_TRUE=
21388 NET123_WINHTTP_FALSE='#'
21389 else
21390 NET123_WINHTTP_TRUE='#'
21391 NET123_WINHTTP_FALSE=
21392 fi
21393
21394 if test x$network_type = xwininet || test x$network_type = xwininethttp ; then
21395 NET123_WININET_TRUE=
21396 NET123_WININET_FALSE='#'
21397 else
21398 NET123_WININET_TRUE='#'
21399 NET123_WININET_FALSE=
21400 fi
21401
21402
21403 case "$network_type" in
21404 exec)
21405
21406 printf "%s\n" "#define NET123_EXEC 1" >>confdefs.h
21407
21408 ;;
21409 winhttp)
21410
21411 printf "%s\n" "#define NET123_WINHTTP 1" >>confdefs.h
21412
21413 ;;
21414 wininet)
21415
21416 printf "%s\n" "#define NET123_WININET 1" >>confdefs.h
21417
21418 ;;
21419 wininethttp)
21420
21421 printf "%s\n" "#define NET123_WININET 1" >>confdefs.h
21422
21423
21424 printf "%s\n" "#define NET123_WINHTTP 1" >>confdefs.h
21425
21426 ;;
21427 esac
21428
21429
21430 if test "x$term_type" = xposix ; then
21431 TERM_POSIX_TRUE=
21432 TERM_POSIX_FALSE='#'
21433 else
21434 TERM_POSIX_TRUE='#'
21435 TERM_POSIX_FALSE=
21436 fi
21437
21438 if test "x$term_type" = xnone ; then
21439 TERM_NONE_TRUE=
21440 TERM_NONE_FALSE='#'
21441 else
21442 TERM_NONE_TRUE='#'
21443 TERM_NONE_FALSE=
21444 fi
21445
21446 if test "x$term_type" = xwin32 ; then
21447 TERM_WIN32_TRUE=
21448 TERM_WIN32_FALSE='#'
21449 else
21450 TERM_WIN32_TRUE='#'
21451 TERM_WIN32_FALSE=
21452 fi
21453
21454
21455
21456 if test x"$fifo" = xauto; then
21457 if test x"$have_mkfifo" = xyes; then
21458 fifo=enabled
21459 else
21460 fifo=disabled
21461 fi
21462 fi
21463
21464 if test x"$fifo" = xenabled; then
21465
21466 printf "%s\n" "#define FIFO 1" >>confdefs.h
21467
21468 if test x"$have_mkfifo" = xno; then
21469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&5
21470 printf "%s\n" "$as_me: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&2;}
21471 fi
21472 fi
21473
21474 if test x"$network_type" != xdisabled; then
21475
21476 printf "%s\n" "#define NETWORK 1" >>confdefs.h
21477
21478 if test x"$have_network" = xno; then
21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You forced network code while I think there is support missing! " >&5
21480 printf "%s\n" "$as_me: WARNING: You forced network code while I think there is support missing! " >&2;}
21481 fi
21482 fi
21483
21484 if test x"$ipv6" = xenabled; then
21485
21486 printf "%s\n" "#define IPV6 1" >>confdefs.h
21487
21488 if test x"$have_ipv6" = xno; then
21489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&5
21490 printf "%s\n" "$as_me: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&2;}
21491 fi
21492 fi
21493
21494
21495 PROG_LIBS=$LIBS
21496 LIBS=
21497 LIBMPG123_LIBS="$LIBM $COMPAT_LIBS"
21498 LIBSYN123_LIBS=$LIBM
21499 LIBOUT123_LIBS="$LIBRT $LIBM $COMPAT_LIBS"
21500
21501
21502
21503
21504
21505
21506
21507
21508 ac_config_files="$ac_config_files Makefile libmpg123.pc libout123.pc libsyn123.pc mpg123.spec"
21509
21510
21511 cat >confcache <<\_ACEOF
21512 # This file is a shell script that caches the results of configure
21513 # tests run on this system so they can be shared between configure
21514 # scripts and configure runs, see configure's option --config-cache.
21515 # It is not useful on other systems. If it contains results you don't
21516 # want to keep, you may remove or edit it.
21517 #
21518 # config.status only pays attention to the cache file if you give it
21519 # the --recheck option to rerun configure.
21520 #
21521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21523 # following values.
21524
21525 _ACEOF
21526
21527 # The following way of writing the cache mishandles newlines in values,
21528 # but we know of no workaround that is simple, portable, and efficient.
21529 # So, we kill variables containing newlines.
21530 # Ultrix sh set writes to stderr and can't be redirected directly,
21531 # and sets the high bit in the cache file unless we assign to the vars.
21532 (
21533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21534 eval ac_val=\$$ac_var
21535 case $ac_val in #(
21536 *${as_nl}*)
21537 case $ac_var in #(
21538 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21539 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21540 esac
21541 case $ac_var in #(
21542 _ | IFS | as_nl) ;; #(
21543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21544 *) { eval $ac_var=; unset $ac_var;} ;;
21545 esac ;;
21546 esac
21547 done
21548
21549 (set) 2>&1 |
21550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21551 *${as_nl}ac_space=\ *)
21552 # `set' does not quote correctly, so add quotes: double-quote
21553 # substitution turns \\\\ into \\, and sed turns \\ into \.
21554 sed -n \
21555 "s/'/'\\\\''/g;
21556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21557 ;; #(
21558 *)
21559 # `set' quotes correctly as required by POSIX, so do not add quotes.
21560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21561 ;;
21562 esac |
21563 sort
21564 ) |
21565 sed '
21566 /^ac_cv_env_/b end
21567 t clear
21568 :clear
21569 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21570 t end
21571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21572 :end' >>confcache
21573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21574 if test -w "$cache_file"; then
21575 if test "x$cache_file" != "x/dev/null"; then
21576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21577 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21578 if test ! -f "$cache_file" || test -h "$cache_file"; then
21579 cat confcache >"$cache_file"
21580 else
21581 case $cache_file in #(
21582 */* | ?:*)
21583 mv -f confcache "$cache_file"$$ &&
21584 mv -f "$cache_file"$$ "$cache_file" ;; #(
21585 *)
21586 mv -f confcache "$cache_file" ;;
21587 esac
21588 fi
21589 fi
21590 else
21591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21592 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21593 fi
21594 fi
21595 rm -f confcache
21596
21597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21598 # Let make expand exec_prefix.
21599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21600
21601 DEFS=-DHAVE_CONFIG_H
21602
21603 ac_libobjs=
21604 ac_ltlibobjs=
21605 U=
21606 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21607 # 1. Remove the extension, and $U if already installed.
21608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21609 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21611 # will be set to the directory where LIBOBJS objects are built.
21612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21614 done
21615 LIBOBJS=$ac_libobjs
21616
21617 LTLIBOBJS=$ac_ltlibobjs
21618
21619
21620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21621 printf %s "checking that generated files are newer than configure... " >&6; }
21622 if test -n "$am_sleep_pid"; then
21623 # Hide warnings about reused PIDs.
21624 wait $am_sleep_pid 2>/dev/null
21625 fi
21626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21627 printf "%s\n" "done" >&6; }
21628 if test -n "$EXEEXT"; then
21629 am__EXEEXT_TRUE=
21630 am__EXEEXT_FALSE='#'
21631 else
21632 am__EXEEXT_TRUE='#'
21633 am__EXEEXT_FALSE=
21634 fi
21635
21636 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21637 as_fn_error $? "conditional \"AMDEP\" was never defined.
21638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21639 fi
21640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21641 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21643 fi
21644 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
21645 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
21646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21647 fi
21648 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21649 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21651 fi
21652
21653 if test -z "${HAVE_MODULES_TRUE}" && test -z "${HAVE_MODULES_FALSE}"; then
21654 as_fn_error $? "conditional \"HAVE_MODULES\" was never defined.
21655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656 fi
21657 if test -z "${BUILD_PROGRAMS_TRUE}" && test -z "${BUILD_PROGRAMS_FALSE}"; then
21658 as_fn_error $? "conditional \"BUILD_PROGRAMS\" was never defined.
21659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660 fi
21661 if test -z "${BUILD_LIBMPG123_TRUE}" && test -z "${BUILD_LIBMPG123_FALSE}"; then
21662 as_fn_error $? "conditional \"BUILD_LIBMPG123\" was never defined.
21663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21664 fi
21665 if test -z "${BUILD_LIBOUT123_TRUE}" && test -z "${BUILD_LIBOUT123_FALSE}"; then
21666 as_fn_error $? "conditional \"BUILD_LIBOUT123\" was never defined.
21667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21668 fi
21669 if test -z "${BUILD_LIBOUT123_MODULES_TRUE}" && test -z "${BUILD_LIBOUT123_MODULES_FALSE}"; then
21670 as_fn_error $? "conditional \"BUILD_LIBOUT123_MODULES\" was never defined.
21671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21672 fi
21673 if test -z "${BUILD_LIBOUT123_OR_MODULES_TRUE}" && test -z "${BUILD_LIBOUT123_OR_MODULES_FALSE}"; then
21674 as_fn_error $? "conditional \"BUILD_LIBOUT123_OR_MODULES\" was never defined.
21675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21676 fi
21677 if test -z "${BUILD_LIBSYN123_TRUE}" && test -z "${BUILD_LIBSYN123_FALSE}"; then
21678 as_fn_error $? "conditional \"BUILD_LIBSYN123\" was never defined.
21679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21680 fi
21681 if test -z "${NEED_LIB_TRUE}" && test -z "${NEED_LIB_FALSE}"; then
21682 as_fn_error $? "conditional \"NEED_LIB\" was never defined.
21683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21684 fi
21685 if test -z "${NEED_MAINLIB_TRUE}" && test -z "${NEED_MAINLIB_FALSE}"; then
21686 as_fn_error $? "conditional \"NEED_MAINLIB\" was never defined.
21687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21688 fi
21689 if test -z "${HAVE_STRING_TRUE}" && test -z "${HAVE_STRING_FALSE}"; then
21690 as_fn_error $? "conditional \"HAVE_STRING\" was never defined.
21691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21692 fi
21693 if test -z "${HAVE_ICY_TRUE}" && test -z "${HAVE_ICY_FALSE}"; then
21694 as_fn_error $? "conditional \"HAVE_ICY\" was never defined.
21695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21696 fi
21697 if test -z "${HAVE_NTOM_TRUE}" && test -z "${HAVE_NTOM_FALSE}"; then
21698 as_fn_error $? "conditional \"HAVE_NTOM\" was never defined.
21699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21700 fi
21701 if test -z "${HAVE_RUNTIME_TABLES_TRUE}" && test -z "${HAVE_RUNTIME_TABLES_FALSE}"; then
21702 as_fn_error $? "conditional \"HAVE_RUNTIME_TABLES\" was never defined.
21703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21704 fi
21705 if test -z "${HAVE_ACCURATE_TRUE}" && test -z "${HAVE_ACCURATE_FALSE}"; then
21706 as_fn_error $? "conditional \"HAVE_ACCURATE\" was never defined.
21707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21708 fi
21709 if test -z "${HAVE_SYNTH16_TRUE}" && test -z "${HAVE_SYNTH16_FALSE}"; then
21710 as_fn_error $? "conditional \"HAVE_SYNTH16\" was never defined.
21711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21712 fi
21713 if test -z "${HAVE_SYNTH8_TRUE}" && test -z "${HAVE_SYNTH8_FALSE}"; then
21714 as_fn_error $? "conditional \"HAVE_SYNTH8\" was never defined.
21715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21716 fi
21717 if test -z "${HAVE_SYNTH32_TRUE}" && test -z "${HAVE_SYNTH32_FALSE}"; then
21718 as_fn_error $? "conditional \"HAVE_SYNTH32\" was never defined.
21719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21720 fi
21721 if test -z "${HAVE_SYNTHREAL_TRUE}" && test -z "${HAVE_SYNTHREAL_FALSE}"; then
21722 as_fn_error $? "conditional \"HAVE_SYNTHREAL\" was never defined.
21723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21724 fi
21725 if test -z "${HAVE_EQUALIZER_TRUE}" && test -z "${HAVE_EQUALIZER_FALSE}"; then
21726 as_fn_error $? "conditional \"HAVE_EQUALIZER\" was never defined.
21727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21728 fi
21729 if test -z "${HAVE_LAYER1_TRUE}" && test -z "${HAVE_LAYER1_FALSE}"; then
21730 as_fn_error $? "conditional \"HAVE_LAYER1\" was never defined.
21731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21732 fi
21733 if test -z "${HAVE_LAYER2_TRUE}" && test -z "${HAVE_LAYER2_FALSE}"; then
21734 as_fn_error $? "conditional \"HAVE_LAYER2\" was never defined.
21735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21736 fi
21737 if test -z "${HAVE_LAYER3_TRUE}" && test -z "${HAVE_LAYER3_FALSE}"; then
21738 as_fn_error $? "conditional \"HAVE_LAYER3\" was never defined.
21739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21740 fi
21741 if test -z "${HAVE_LFS_WRAP_TRUE}" && test -z "${HAVE_LFS_WRAP_FALSE}"; then
21742 as_fn_error $? "conditional \"HAVE_LFS_WRAP\" was never defined.
21743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21744 fi
21745 if test -z "${HAVE_FLOATDCT_TRUE}" && test -z "${HAVE_FLOATDCT_FALSE}"; then
21746 as_fn_error $? "conditional \"HAVE_FLOATDCT\" was never defined.
21747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21748 fi
21749 if test -z "${USE_YASM_FOR_AVX_TRUE}" && test -z "${USE_YASM_FOR_AVX_FALSE}"; then
21750 as_fn_error $? "conditional \"USE_YASM_FOR_AVX\" was never defined.
21751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21752 fi
21753 if test -z "${HAVE_FEATURE_TRUE}" && test -z "${HAVE_FEATURE_FALSE}"; then
21754 as_fn_error $? "conditional \"HAVE_FEATURE\" was never defined.
21755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21756 fi
21757 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
21758 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
21759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21760 fi
21761 if test -z "${HAVE_I386_TRUE}" && test -z "${HAVE_I386_FALSE}"; then
21762 as_fn_error $? "conditional \"HAVE_I386\" was never defined.
21763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21764 fi
21765 if test -z "${HAVE_I486_TRUE}" && test -z "${HAVE_I486_FALSE}"; then
21766 as_fn_error $? "conditional \"HAVE_I486\" was never defined.
21767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21768 fi
21769 if test -z "${HAVE_I586_TRUE}" && test -z "${HAVE_I586_FALSE}"; then
21770 as_fn_error $? "conditional \"HAVE_I586\" was never defined.
21771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21772 fi
21773 if test -z "${HAVE_I586_DITHER_TRUE}" && test -z "${HAVE_I586_DITHER_FALSE}"; then
21774 as_fn_error $? "conditional \"HAVE_I586_DITHER\" was never defined.
21775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21776 fi
21777 if test -z "${HAVE_3DNOW_TRUE}" && test -z "${HAVE_3DNOW_FALSE}"; then
21778 as_fn_error $? "conditional \"HAVE_3DNOW\" was never defined.
21779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21780 fi
21781 if test -z "${HAVE_3DNOWEXT_TRUE}" && test -z "${HAVE_3DNOWEXT_FALSE}"; then
21782 as_fn_error $? "conditional \"HAVE_3DNOWEXT\" was never defined.
21783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21784 fi
21785 if test -z "${HAVE_MMXTAB_TRUE}" && test -z "${HAVE_MMXTAB_FALSE}"; then
21786 as_fn_error $? "conditional \"HAVE_MMXTAB\" was never defined.
21787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21788 fi
21789 if test -z "${HAVE_3DNOW_VINTAGE_TRUE}" && test -z "${HAVE_3DNOW_VINTAGE_FALSE}"; then
21790 as_fn_error $? "conditional \"HAVE_3DNOW_VINTAGE\" was never defined.
21791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21792 fi
21793 if test -z "${HAVE_3DNOWEXT_VINTAGE_TRUE}" && test -z "${HAVE_3DNOWEXT_VINTAGE_FALSE}"; then
21794 as_fn_error $? "conditional \"HAVE_3DNOWEXT_VINTAGE\" was never defined.
21795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21796 fi
21797 if test -z "${HAVE_MMX_TRUE}" && test -z "${HAVE_MMX_FALSE}"; then
21798 as_fn_error $? "conditional \"HAVE_MMX\" was never defined.
21799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21800 fi
21801 if test -z "${HAVE_SSE_VINTAGE_TRUE}" && test -z "${HAVE_SSE_VINTAGE_FALSE}"; then
21802 as_fn_error $? "conditional \"HAVE_SSE_VINTAGE\" was never defined.
21803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21804 fi
21805 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
21806 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
21807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21808 fi
21809 if test -z "${HAVE_X86_64_TRUE}" && test -z "${HAVE_X86_64_FALSE}"; then
21810 as_fn_error $? "conditional \"HAVE_X86_64\" was never defined.
21811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21812 fi
21813 if test -z "${HAVE_X86_64_MONO_TRUE}" && test -z "${HAVE_X86_64_MONO_FALSE}"; then
21814 as_fn_error $? "conditional \"HAVE_X86_64_MONO\" was never defined.
21815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21816 fi
21817 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
21818 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
21819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21820 fi
21821 if test -z "${HAVE_GETCPUFLAGS_TRUE}" && test -z "${HAVE_GETCPUFLAGS_FALSE}"; then
21822 as_fn_error $? "conditional \"HAVE_GETCPUFLAGS\" was never defined.
21823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21824 fi
21825 if test -z "${HAVE_GETCPUFLAGS_X86_64_TRUE}" && test -z "${HAVE_GETCPUFLAGS_X86_64_FALSE}"; then
21826 as_fn_error $? "conditional \"HAVE_GETCPUFLAGS_X86_64\" was never defined.
21827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21828 fi
21829 if test -z "${HAVE_DITHER_TRUE}" && test -z "${HAVE_DITHER_FALSE}"; then
21830 as_fn_error $? "conditional \"HAVE_DITHER\" was never defined.
21831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21832 fi
21833 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
21834 as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
21835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21836 fi
21837 if test -z "${HAVE_NEON64_TRUE}" && test -z "${HAVE_NEON64_FALSE}"; then
21838 as_fn_error $? "conditional \"HAVE_NEON64\" was never defined.
21839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21840 fi
21841 if test -z "${HAVE_GETCPUFLAGS_ARM_TRUE}" && test -z "${HAVE_GETCPUFLAGS_ARM_FALSE}"; then
21842 as_fn_error $? "conditional \"HAVE_GETCPUFLAGS_ARM\" was never defined.
21843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21844 fi
21845 if test -z "${HAVE_ARM_TRUE}" && test -z "${HAVE_ARM_FALSE}"; then
21846 as_fn_error $? "conditional \"HAVE_ARM\" was never defined.
21847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21848 fi
21849 if test -z "${HAVE_TINYALSA_TRUE}" && test -z "${HAVE_TINYALSA_FALSE}"; then
21850 as_fn_error $? "conditional \"HAVE_TINYALSA\" was never defined.
21851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21852 fi
21853 if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
21854 as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
21855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21856 fi
21857 if test -z "${HAVE_QSA_TRUE}" && test -z "${HAVE_QSA_FALSE}"; then
21858 as_fn_error $? "conditional \"HAVE_QSA\" was never defined.
21859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21860 fi
21861 if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
21862 as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
21863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21864 fi
21865 if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then
21866 as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined.
21867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21868 fi
21869 if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
21870 as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined.
21871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21872 fi
21873 if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
21874 as_fn_error $? "conditional \"HAVE_SUN\" was never defined.
21875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21876 fi
21877 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
21878 as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
21879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21880 fi
21881 if test -z "${HAVE_WIN32_WASAPI_TRUE}" && test -z "${HAVE_WIN32_WASAPI_FALSE}"; then
21882 as_fn_error $? "conditional \"HAVE_WIN32_WASAPI\" was never defined.
21883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21884 fi
21885 if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
21886 as_fn_error $? "conditional \"HAVE_ESD\" was never defined.
21887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21888 fi
21889 if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
21890 as_fn_error $? "conditional \"HAVE_JACK\" was never defined.
21891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21892 fi
21893 if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
21894 as_fn_error $? "conditional \"HAVE_PORTAUDIO\" was never defined.
21895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21896 fi
21897 if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
21898 as_fn_error $? "conditional \"HAVE_PULSE\" was never defined.
21899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21900 fi
21901 if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
21902 as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
21903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21904 fi
21905 if test -z "${HAVE_NAS_TRUE}" && test -z "${HAVE_NAS_FALSE}"; then
21906 as_fn_error $? "conditional \"HAVE_NAS\" was never defined.
21907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21908 fi
21909 if test -z "${HAVE_AIX_TRUE}" && test -z "${HAVE_AIX_FALSE}"; then
21910 as_fn_error $? "conditional \"HAVE_AIX\" was never defined.
21911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21912 fi
21913 if test -z "${HAVE_ALIB_TRUE}" && test -z "${HAVE_ALIB_FALSE}"; then
21914 as_fn_error $? "conditional \"HAVE_ALIB\" was never defined.
21915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21916 fi
21917 if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then
21918 as_fn_error $? "conditional \"HAVE_ARTS\" was never defined.
21919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21920 fi
21921 if test -z "${HAVE_HP_TRUE}" && test -z "${HAVE_HP_FALSE}"; then
21922 as_fn_error $? "conditional \"HAVE_HP\" was never defined.
21923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21924 fi
21925 if test -z "${HAVE_OS2_TRUE}" && test -z "${HAVE_OS2_FALSE}"; then
21926 as_fn_error $? "conditional \"HAVE_OS2\" was never defined.
21927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21928 fi
21929 if test -z "${HAVE_SGI_TRUE}" && test -z "${HAVE_SGI_FALSE}"; then
21930 as_fn_error $? "conditional \"HAVE_SGI\" was never defined.
21931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21932 fi
21933 if test -z "${HAVE_MINT_TRUE}" && test -z "${HAVE_MINT_FALSE}"; then
21934 as_fn_error $? "conditional \"HAVE_MINT\" was never defined.
21935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21936 fi
21937 if test -z "${HAVE_OPENAL_TRUE}" && test -z "${HAVE_OPENAL_FALSE}"; then
21938 as_fn_error $? "conditional \"HAVE_OPENAL\" was never defined.
21939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21940 fi
21941 if test -z "${HAVE_DUMMY_TRUE}" && test -z "${HAVE_DUMMY_FALSE}"; then
21942 as_fn_error $? "conditional \"HAVE_DUMMY\" was never defined.
21943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21944 fi
21945 if test -z "${BUILD_DUMMY_TRUE}" && test -z "${BUILD_DUMMY_FALSE}"; then
21946 as_fn_error $? "conditional \"BUILD_DUMMY\" was never defined.
21947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21948 fi
21949 if test -z "${BUILD_TINYALSA_TRUE}" && test -z "${BUILD_TINYALSA_FALSE}"; then
21950 as_fn_error $? "conditional \"BUILD_TINYALSA\" was never defined.
21951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21952 fi
21953 if test -z "${BUILD_ALSA_TRUE}" && test -z "${BUILD_ALSA_FALSE}"; then
21954 as_fn_error $? "conditional \"BUILD_ALSA\" was never defined.
21955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21956 fi
21957 if test -z "${BUILD_QSA_TRUE}" && test -z "${BUILD_QSA_FALSE}"; then
21958 as_fn_error $? "conditional \"BUILD_QSA\" was never defined.
21959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21960 fi
21961 if test -z "${BUILD_COREAUDIO_TRUE}" && test -z "${BUILD_COREAUDIO_FALSE}"; then
21962 as_fn_error $? "conditional \"BUILD_COREAUDIO\" was never defined.
21963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21964 fi
21965 if test -z "${BUILD_ESD_TRUE}" && test -z "${BUILD_ESD_FALSE}"; then
21966 as_fn_error $? "conditional \"BUILD_ESD\" was never defined.
21967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21968 fi
21969 if test -z "${BUILD_JACK_TRUE}" && test -z "${BUILD_JACK_FALSE}"; then
21970 as_fn_error $? "conditional \"BUILD_JACK\" was never defined.
21971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21972 fi
21973 if test -z "${BUILD_NAS_TRUE}" && test -z "${BUILD_NAS_FALSE}"; then
21974 as_fn_error $? "conditional \"BUILD_NAS\" was never defined.
21975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21976 fi
21977 if test -z "${BUILD_OSS_TRUE}" && test -z "${BUILD_OSS_FALSE}"; then
21978 as_fn_error $? "conditional \"BUILD_OSS\" was never defined.
21979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21980 fi
21981 if test -z "${BUILD_PORTAUDIO_TRUE}" && test -z "${BUILD_PORTAUDIO_FALSE}"; then
21982 as_fn_error $? "conditional \"BUILD_PORTAUDIO\" was never defined.
21983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21984 fi
21985 if test -z "${BUILD_PULSE_TRUE}" && test -z "${BUILD_PULSE_FALSE}"; then
21986 as_fn_error $? "conditional \"BUILD_PULSE\" was never defined.
21987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21988 fi
21989 if test -z "${BUILD_SDL_TRUE}" && test -z "${BUILD_SDL_FALSE}"; then
21990 as_fn_error $? "conditional \"BUILD_SDL\" was never defined.
21991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21992 fi
21993 if test -z "${BUILD_SNDIO_TRUE}" && test -z "${BUILD_SNDIO_FALSE}"; then
21994 as_fn_error $? "conditional \"BUILD_SNDIO\" was never defined.
21995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21996 fi
21997 if test -z "${BUILD_SUN_TRUE}" && test -z "${BUILD_SUN_FALSE}"; then
21998 as_fn_error $? "conditional \"BUILD_SUN\" was never defined.
21999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22000 fi
22001 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
22002 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
22003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22004 fi
22005 if test -z "${BUILD_WIN32_WASAPI_TRUE}" && test -z "${BUILD_WIN32_WASAPI_FALSE}"; then
22006 as_fn_error $? "conditional \"BUILD_WIN32_WASAPI\" was never defined.
22007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22008 fi
22009 if test -z "${BUILD_AIX_TRUE}" && test -z "${BUILD_AIX_FALSE}"; then
22010 as_fn_error $? "conditional \"BUILD_AIX\" was never defined.
22011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22012 fi
22013 if test -z "${BUILD_ALIB_TRUE}" && test -z "${BUILD_ALIB_FALSE}"; then
22014 as_fn_error $? "conditional \"BUILD_ALIB\" was never defined.
22015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22016 fi
22017 if test -z "${BUILD_ARTS_TRUE}" && test -z "${BUILD_ARTS_FALSE}"; then
22018 as_fn_error $? "conditional \"BUILD_ARTS\" was never defined.
22019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22020 fi
22021 if test -z "${BUILD_HP_TRUE}" && test -z "${BUILD_HP_FALSE}"; then
22022 as_fn_error $? "conditional \"BUILD_HP\" was never defined.
22023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22024 fi
22025 if test -z "${BUILD_OS2_TRUE}" && test -z "${BUILD_OS2_FALSE}"; then
22026 as_fn_error $? "conditional \"BUILD_OS2\" was never defined.
22027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22028 fi
22029 if test -z "${BUILD_SGI_TRUE}" && test -z "${BUILD_SGI_FALSE}"; then
22030 as_fn_error $? "conditional \"BUILD_SGI\" was never defined.
22031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22032 fi
22033 if test -z "${BUILD_MINT_TRUE}" && test -z "${BUILD_MINT_FALSE}"; then
22034 as_fn_error $? "conditional \"BUILD_MINT\" was never defined.
22035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22036 fi
22037 if test -z "${BUILD_OPENAL_TRUE}" && test -z "${BUILD_OPENAL_FALSE}"; then
22038 as_fn_error $? "conditional \"BUILD_OPENAL\" was never defined.
22039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22040 fi
22041 if test -z "${BUILD_BUFFER_TRUE}" && test -z "${BUILD_BUFFER_FALSE}"; then
22042 as_fn_error $? "conditional \"BUILD_BUFFER\" was never defined.
22043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22044 fi
22045 if test -z "${WIN32_CODES_TRUE}" && test -z "${WIN32_CODES_FALSE}"; then
22046 as_fn_error $? "conditional \"WIN32_CODES\" was never defined.
22047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22048 fi
22049 if test -z "${NETWORK_WINSOCK_TRUE}" && test -z "${NETWORK_WINSOCK_FALSE}"; then
22050 as_fn_error $? "conditional \"NETWORK_WINSOCK\" was never defined.
22051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22052 fi
22053 if test -z "${NET123_TRUE}" && test -z "${NET123_FALSE}"; then
22054 as_fn_error $? "conditional \"NET123\" was never defined.
22055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22056 fi
22057 if test -z "${NET123_EXEC_TRUE}" && test -z "${NET123_EXEC_FALSE}"; then
22058 as_fn_error $? "conditional \"NET123_EXEC\" was never defined.
22059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22060 fi
22061 if test -z "${NET123_WINHTTP_TRUE}" && test -z "${NET123_WINHTTP_FALSE}"; then
22062 as_fn_error $? "conditional \"NET123_WINHTTP\" was never defined.
22063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22064 fi
22065 if test -z "${NET123_WININET_TRUE}" && test -z "${NET123_WININET_FALSE}"; then
22066 as_fn_error $? "conditional \"NET123_WININET\" was never defined.
22067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22068 fi
22069 if test -z "${TERM_POSIX_TRUE}" && test -z "${TERM_POSIX_FALSE}"; then
22070 as_fn_error $? "conditional \"TERM_POSIX\" was never defined.
22071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22072 fi
22073 if test -z "${TERM_NONE_TRUE}" && test -z "${TERM_NONE_FALSE}"; then
22074 as_fn_error $? "conditional \"TERM_NONE\" was never defined.
22075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22076 fi
22077 if test -z "${TERM_WIN32_TRUE}" && test -z "${TERM_WIN32_FALSE}"; then
22078 as_fn_error $? "conditional \"TERM_WIN32\" was never defined.
22079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22080 fi
22081
22082 : "${CONFIG_STATUS=./config.status}"
22083 ac_write_fail=0
22084 ac_clean_files_save=$ac_clean_files
22085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22087 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22088 as_write_fail=0
22089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22090 #! $SHELL
22091 # Generated by $as_me.
22092 # Run this file to recreate the current configuration.
22093 # Compiler output produced by configure, useful for debugging
22094 # configure, is in config.log if it exists.
22095
22096 debug=false
22097 ac_cs_recheck=false
22098 ac_cs_silent=false
22099
22100 SHELL=\${CONFIG_SHELL-$SHELL}
22101 export SHELL
22102 _ASEOF
22103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22104 ## -------------------- ##
22105 ## M4sh Initialization. ##
22106 ## -------------------- ##
22107
22108 # Be more Bourne compatible
22109 DUALCASE=1; export DUALCASE # for MKS sh
22110 as_nop=:
22111 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22112 then :
22113 emulate sh
22114 NULLCMD=:
22115 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22116 # is contrary to our usage. Disable this feature.
22117 alias -g '${1+"$@"}'='"$@"'
22118 setopt NO_GLOB_SUBST
22119 else $as_nop
22120 case `(set -o) 2>/dev/null` in #(
22121 *posix*) :
22122 set -o posix ;; #(
22123 *) :
22124 ;;
22125 esac
22126 fi
22127
22128
22129
22130 # Reset variables that may have inherited troublesome values from
22131 # the environment.
22132
22133 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22134 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22135 # side effect of setting IFS to empty, thus disabling word splitting.)
22136 # Quoting is to prevent editors from complaining about space-tab.
22137 as_nl='
22138 '
22139 export as_nl
22140 IFS=" "" $as_nl"
22141
22142 PS1='$ '
22143 PS2='> '
22144 PS4='+ '
22145
22146 # Ensure predictable behavior from utilities with locale-dependent output.
22147 LC_ALL=C
22148 export LC_ALL
22149 LANGUAGE=C
22150 export LANGUAGE
22151
22152 # We cannot yet rely on "unset" to work, but we need these variables
22153 # to be unset--not just set to an empty or harmless value--now, to
22154 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22155 # also avoids known problems related to "unset" and subshell syntax
22156 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22157 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22158 do eval test \${$as_var+y} \
22159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22160 done
22161
22162 # Ensure that fds 0, 1, and 2 are open.
22163 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22164 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22165 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22166
22167 # The user is always right.
22168 if ${PATH_SEPARATOR+false} :; then
22169 PATH_SEPARATOR=:
22170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22171 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22172 PATH_SEPARATOR=';'
22173 }
22174 fi
22175
22176
22177 # Find who we are. Look in the path if we contain no directory separator.
22178 as_myself=
22179 case $0 in #((
22180 *[\\/]* ) as_myself=$0 ;;
22181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22182 for as_dir in $PATH
22183 do
22184 IFS=$as_save_IFS
22185 case $as_dir in #(((
22186 '') as_dir=./ ;;
22187 */) ;;
22188 *) as_dir=$as_dir/ ;;
22189 esac
22190 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22191 done
22192 IFS=$as_save_IFS
22193
22194 ;;
22195 esac
22196 # We did not find ourselves, most probably we were run as `sh COMMAND'
22197 # in which case we are not to be found in the path.
22198 if test "x$as_myself" = x; then
22199 as_myself=$0
22200 fi
22201 if test ! -f "$as_myself"; then
22202 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22203 exit 1
22204 fi
22205
22206
22207
22208 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22209 # ----------------------------------------
22210 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22211 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22212 # script with STATUS, using 1 if that was 0.
22213 as_fn_error ()
22214 {
22215 as_status=$1; test $as_status -eq 0 && as_status=1
22216 if test "$4"; then
22217 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22219 fi
22220 printf "%s\n" "$as_me: error: $2" >&2
22221 as_fn_exit $as_status
22222 } # as_fn_error
22223
22224
22225
22226 # as_fn_set_status STATUS
22227 # -----------------------
22228 # Set $? to STATUS, without forking.
22229 as_fn_set_status ()
22230 {
22231 return $1
22232 } # as_fn_set_status
22233
22234 # as_fn_exit STATUS
22235 # -----------------
22236 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22237 as_fn_exit ()
22238 {
22239 set +e
22240 as_fn_set_status $1
22241 exit $1
22242 } # as_fn_exit
22243
22244 # as_fn_unset VAR
22245 # ---------------
22246 # Portably unset VAR.
22247 as_fn_unset ()
22248 {
22249 { eval $1=; unset $1;}
22250 }
22251 as_unset=as_fn_unset
22252
22253 # as_fn_append VAR VALUE
22254 # ----------------------
22255 # Append the text in VALUE to the end of the definition contained in VAR. Take
22256 # advantage of any shell optimizations that allow amortized linear growth over
22257 # repeated appends, instead of the typical quadratic growth present in naive
22258 # implementations.
22259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22260 then :
22261 eval 'as_fn_append ()
22262 {
22263 eval $1+=\$2
22264 }'
22265 else $as_nop
22266 as_fn_append ()
22267 {
22268 eval $1=\$$1\$2
22269 }
22270 fi # as_fn_append
22271
22272 # as_fn_arith ARG...
22273 # ------------------
22274 # Perform arithmetic evaluation on the ARGs, and store the result in the
22275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22276 # must be portable across $(()) and expr.
22277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22278 then :
22279 eval 'as_fn_arith ()
22280 {
22281 as_val=$(( $* ))
22282 }'
22283 else $as_nop
22284 as_fn_arith ()
22285 {
22286 as_val=`expr "$@" || test $? -eq 1`
22287 }
22288 fi # as_fn_arith
22289
22290
22291 if expr a : '\(a\)' >/dev/null 2>&1 &&
22292 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22293 as_expr=expr
22294 else
22295 as_expr=false
22296 fi
22297
22298 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22299 as_basename=basename
22300 else
22301 as_basename=false
22302 fi
22303
22304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22305 as_dirname=dirname
22306 else
22307 as_dirname=false
22308 fi
22309
22310 as_me=`$as_basename -- "$0" ||
22311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22312 X"$0" : 'X\(//\)$' \| \
22313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22314 printf "%s\n" X/"$0" |
22315 sed '/^.*\/\([^/][^/]*\)\/*$/{
22316 s//\1/
22317 q
22318 }
22319 /^X\/\(\/\/\)$/{
22320 s//\1/
22321 q
22322 }
22323 /^X\/\(\/\).*/{
22324 s//\1/
22325 q
22326 }
22327 s/.*/./; q'`
22328
22329 # Avoid depending upon Character Ranges.
22330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22333 as_cr_digits='0123456789'
22334 as_cr_alnum=$as_cr_Letters$as_cr_digits
22335
22336
22337 # Determine whether it's possible to make 'echo' print without a newline.
22338 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22339 # for compatibility with existing Makefiles.
22340 ECHO_C= ECHO_N= ECHO_T=
22341 case `echo -n x` in #(((((
22342 -n*)
22343 case `echo 'xy\c'` in
22344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22345 xy) ECHO_C='\c';;
22346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22347 ECHO_T=' ';;
22348 esac;;
22349 *)
22350 ECHO_N='-n';;
22351 esac
22352
22353 # For backward compatibility with old third-party macros, we provide
22354 # the shell variables $as_echo and $as_echo_n. New code should use
22355 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22356 as_echo='printf %s\n'
22357 as_echo_n='printf %s'
22358
22359 rm -f conf$$ conf$$.exe conf$$.file
22360 if test -d conf$$.dir; then
22361 rm -f conf$$.dir/conf$$.file
22362 else
22363 rm -f conf$$.dir
22364 mkdir conf$$.dir 2>/dev/null
22365 fi
22366 if (echo >conf$$.file) 2>/dev/null; then
22367 if ln -s conf$$.file conf$$ 2>/dev/null; then
22368 as_ln_s='ln -s'
22369 # ... but there are two gotchas:
22370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22372 # In both cases, we have to default to `cp -pR'.
22373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22374 as_ln_s='cp -pR'
22375 elif ln conf$$.file conf$$ 2>/dev/null; then
22376 as_ln_s=ln
22377 else
22378 as_ln_s='cp -pR'
22379 fi
22380 else
22381 as_ln_s='cp -pR'
22382 fi
22383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22384 rmdir conf$$.dir 2>/dev/null
22385
22386
22387 # as_fn_mkdir_p
22388 # -------------
22389 # Create "$as_dir" as a directory, including parents if necessary.
22390 as_fn_mkdir_p ()
22391 {
22392
22393 case $as_dir in #(
22394 -*) as_dir=./$as_dir;;
22395 esac
22396 test -d "$as_dir" || eval $as_mkdir_p || {
22397 as_dirs=
22398 while :; do
22399 case $as_dir in #(
22400 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22401 *) as_qdir=$as_dir;;
22402 esac
22403 as_dirs="'$as_qdir' $as_dirs"
22404 as_dir=`$as_dirname -- "$as_dir" ||
22405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22406 X"$as_dir" : 'X\(//\)[^/]' \| \
22407 X"$as_dir" : 'X\(//\)$' \| \
22408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22409 printf "%s\n" X"$as_dir" |
22410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22411 s//\1/
22412 q
22413 }
22414 /^X\(\/\/\)[^/].*/{
22415 s//\1/
22416 q
22417 }
22418 /^X\(\/\/\)$/{
22419 s//\1/
22420 q
22421 }
22422 /^X\(\/\).*/{
22423 s//\1/
22424 q
22425 }
22426 s/.*/./; q'`
22427 test -d "$as_dir" && break
22428 done
22429 test -z "$as_dirs" || eval "mkdir $as_dirs"
22430 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22431
22432
22433 } # as_fn_mkdir_p
22434 if mkdir -p . 2>/dev/null; then
22435 as_mkdir_p='mkdir -p "$as_dir"'
22436 else
22437 test -d ./-p && rmdir ./-p
22438 as_mkdir_p=false
22439 fi
22440
22441
22442 # as_fn_executable_p FILE
22443 # -----------------------
22444 # Test if FILE is an executable regular file.
22445 as_fn_executable_p ()
22446 {
22447 test -f "$1" && test -x "$1"
22448 } # as_fn_executable_p
22449 as_test_x='test -x'
22450 as_executable_p=as_fn_executable_p
22451
22452 # Sed expression to map a string onto a valid CPP name.
22453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22454
22455 # Sed expression to map a string onto a valid variable name.
22456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22457
22458
22459 exec 6>&1
22460 ## ----------------------------------- ##
22461 ## Main body of $CONFIG_STATUS script. ##
22462 ## ----------------------------------- ##
22463 _ASEOF
22464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22465
22466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22467 # Save the log message, to keep $0 and so on meaningful, and to
22468 # report actual input values of CONFIG_FILES etc. instead of their
22469 # values after options handling.
22470 ac_log="
22471 This file was extended by mpg123 $as_me 1.33.6, which was
22472 generated by GNU Autoconf 2.71. Invocation command line was
22473
22474 CONFIG_FILES = $CONFIG_FILES
22475 CONFIG_HEADERS = $CONFIG_HEADERS
22476 CONFIG_LINKS = $CONFIG_LINKS
22477 CONFIG_COMMANDS = $CONFIG_COMMANDS
22478 $ $0 $@
22479
22480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22481 "
22482
22483 _ACEOF
22484
22485 case $ac_config_files in *"
22486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22487 esac
22488
22489 case $ac_config_headers in *"
22490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22491 esac
22492
22493
22494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22495 # Files that config.status was made for.
22496 config_files="$ac_config_files"
22497 config_headers="$ac_config_headers"
22498 config_commands="$ac_config_commands"
22499
22500 _ACEOF
22501
22502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22503 ac_cs_usage="\
22504 \`$as_me' instantiates files and other configuration actions
22505 from templates according to the current configuration. Unless the files
22506 and actions are specified as TAGs, all are instantiated by default.
22507
22508 Usage: $0 [OPTION]... [TAG]...
22509
22510 -h, --help print this help, then exit
22511 -V, --version print version number and configuration settings, then exit
22512 --config print configuration, then exit
22513 -q, --quiet, --silent
22514 do not print progress messages
22515 -d, --debug don't remove temporary files
22516 --recheck update $as_me by reconfiguring in the same conditions
22517 --file=FILE[:TEMPLATE]
22518 instantiate the configuration file FILE
22519 --header=FILE[:TEMPLATE]
22520 instantiate the configuration header FILE
22521
22522 Configuration files:
22523 $config_files
22524
22525 Configuration headers:
22526 $config_headers
22527
22528 Configuration commands:
22529 $config_commands
22530
22531 Report bugs to <[email protected]>."
22532
22533 _ACEOF
22534 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22535 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22537 ac_cs_config='$ac_cs_config_escaped'
22538 ac_cs_version="\\
22539 mpg123 config.status 1.33.6
22540 configured by $0, generated by GNU Autoconf 2.71,
22541 with options \\"\$ac_cs_config\\"
22542
22543 Copyright (C) 2021 Free Software Foundation, Inc.
22544 This config.status script is free software; the Free Software Foundation
22545 gives unlimited permission to copy, distribute and modify it."
22546
22547 ac_pwd='$ac_pwd'
22548 srcdir='$srcdir'
22549 INSTALL='$INSTALL'
22550 MKDIR_P='$MKDIR_P'
22551 AWK='$AWK'
22552 test -n "\$AWK" || AWK=awk
22553 _ACEOF
22554
22555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22556 # The default lists apply if the user does not specify any file.
22557 ac_need_defaults=:
22558 while test $# != 0
22559 do
22560 case $1 in
22561 --*=?*)
22562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22564 ac_shift=:
22565 ;;
22566 --*=)
22567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22568 ac_optarg=
22569 ac_shift=:
22570 ;;
22571 *)
22572 ac_option=$1
22573 ac_optarg=$2
22574 ac_shift=shift
22575 ;;
22576 esac
22577
22578 case $ac_option in
22579 # Handling of the options.
22580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22581 ac_cs_recheck=: ;;
22582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22583 printf "%s\n" "$ac_cs_version"; exit ;;
22584 --config | --confi | --conf | --con | --co | --c )
22585 printf "%s\n" "$ac_cs_config"; exit ;;
22586 --debug | --debu | --deb | --de | --d | -d )
22587 debug=: ;;
22588 --file | --fil | --fi | --f )
22589 $ac_shift
22590 case $ac_optarg in
22591 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22592 '') as_fn_error $? "missing file argument" ;;
22593 esac
22594 as_fn_append CONFIG_FILES " '$ac_optarg'"
22595 ac_need_defaults=false;;
22596 --header | --heade | --head | --hea )
22597 $ac_shift
22598 case $ac_optarg in
22599 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22600 esac
22601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22602 ac_need_defaults=false;;
22603 --he | --h)
22604 # Conflict between --help and --header
22605 as_fn_error $? "ambiguous option: \`$1'
22606 Try \`$0 --help' for more information.";;
22607 --help | --hel | -h )
22608 printf "%s\n" "$ac_cs_usage"; exit ;;
22609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22611 ac_cs_silent=: ;;
22612
22613 # This is an error.
22614 -*) as_fn_error $? "unrecognized option: \`$1'
22615 Try \`$0 --help' for more information." ;;
22616
22617 *) as_fn_append ac_config_targets " $1"
22618 ac_need_defaults=false ;;
22619
22620 esac
22621 shift
22622 done
22623
22624 ac_configure_extra_args=
22625
22626 if $ac_cs_silent; then
22627 exec 6>/dev/null
22628 ac_configure_extra_args="$ac_configure_extra_args --silent"
22629 fi
22630
22631 _ACEOF
22632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22633 if \$ac_cs_recheck; then
22634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22635 shift
22636 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22637 CONFIG_SHELL='$SHELL'
22638 export CONFIG_SHELL
22639 exec "\$@"
22640 fi
22641
22642 _ACEOF
22643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22644 exec 5>>config.log
22645 {
22646 echo
22647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22648 ## Running $as_me. ##
22649 _ASBOX
22650 printf "%s\n" "$ac_log"
22651 } >&5
22652
22653 _ACEOF
22654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22655 #
22656 # INIT-COMMANDS
22657 #
22658 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22659
22660
22661 # The HP-UX ksh and POSIX shell print the target directory to stdout
22662 # if CDPATH is set.
22663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22664
22665 sed_quote_subst='$sed_quote_subst'
22666 double_quote_subst='$double_quote_subst'
22667 delay_variable_subst='$delay_variable_subst'
22668 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22669 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22670 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22671 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22672 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22673 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22674 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22675 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22676 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22677 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22678 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22679 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22680 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22681 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22682 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22683 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22684 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22685 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22686 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22687 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22688 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22689 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22690 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22691 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22692 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22693 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22694 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22695 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22696 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22697 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22698 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22699 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22700 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22701 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22702 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22703 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22704 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22705 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22706 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22707 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22708 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22709 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22710 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22711 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22712 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22713 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22714 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22715 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22716 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22717 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22718 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22719 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22720 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22721 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22722 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22723 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22724 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22725 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22726 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22727 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"`'
22728 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22729 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22730 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22731 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22732 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22733 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22734 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22735 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22736 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22737 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22738 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22739 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22740 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22741 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22742 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22743 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22744 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22745 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22746 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22747 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22748 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22749 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22750 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22751 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22752 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22753 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22754 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22755 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22756 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22757 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22758 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22759 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22760 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22761 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22762 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22763 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22764 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22765 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22766 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22767 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22768 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22769 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22770 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22771 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22772 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22773 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22774 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22775 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22776 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22777 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22778 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22779 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22780 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22781 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22782 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22783 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22784 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22785 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22786 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22787 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22788 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22789 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22790 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22791 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22792 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22793 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22794 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22795 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22796 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22797 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22798 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22799 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22800 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22801 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22802 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22803 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22804
22805 LTCC='$LTCC'
22806 LTCFLAGS='$LTCFLAGS'
22807 compiler='$compiler_DEFAULT'
22808
22809 # A function that is used when there is no print builtin or printf.
22810 func_fallback_echo ()
22811 {
22812 eval 'cat <<_LTECHO_EOF
22813 \$1
22814 _LTECHO_EOF'
22815 }
22816
22817 # Quote evaled strings.
22818 for var in AS \
22819 DLLTOOL \
22820 OBJDUMP \
22821 SHELL \
22822 ECHO \
22823 PATH_SEPARATOR \
22824 SED \
22825 GREP \
22826 EGREP \
22827 FGREP \
22828 LD \
22829 NM \
22830 LN_S \
22831 lt_SP2NL \
22832 lt_NL2SP \
22833 reload_flag \
22834 deplibs_check_method \
22835 file_magic_cmd \
22836 file_magic_glob \
22837 want_nocaseglob \
22838 sharedlib_from_linklib_cmd \
22839 AR \
22840 AR_FLAGS \
22841 archiver_list_spec \
22842 STRIP \
22843 RANLIB \
22844 CC \
22845 CFLAGS \
22846 compiler \
22847 lt_cv_sys_global_symbol_pipe \
22848 lt_cv_sys_global_symbol_to_cdecl \
22849 lt_cv_sys_global_symbol_to_import \
22850 lt_cv_sys_global_symbol_to_c_name_address \
22851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22852 lt_cv_nm_interface \
22853 nm_file_list_spec \
22854 lt_cv_truncate_bin \
22855 lt_prog_compiler_no_builtin_flag \
22856 lt_prog_compiler_pic \
22857 lt_prog_compiler_wl \
22858 lt_prog_compiler_static \
22859 lt_cv_prog_compiler_c_o \
22860 need_locks \
22861 MANIFEST_TOOL \
22862 DSYMUTIL \
22863 NMEDIT \
22864 LIPO \
22865 OTOOL \
22866 OTOOL64 \
22867 shrext_cmds \
22868 export_dynamic_flag_spec \
22869 whole_archive_flag_spec \
22870 compiler_needs_object \
22871 with_gnu_ld \
22872 allow_undefined_flag \
22873 no_undefined_flag \
22874 hardcode_libdir_flag_spec \
22875 hardcode_libdir_separator \
22876 exclude_expsyms \
22877 include_expsyms \
22878 file_list_spec \
22879 variables_saved_for_relink \
22880 libname_spec \
22881 library_names_spec \
22882 soname_spec \
22883 install_override_mode \
22884 finish_eval \
22885 old_striplib \
22886 striplib; do
22887 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22888 *[\\\\\\\`\\"\\\$]*)
22889 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22890 ;;
22891 *)
22892 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22893 ;;
22894 esac
22895 done
22896
22897 # Double-quote double-evaled strings.
22898 for var in reload_cmds \
22899 old_postinstall_cmds \
22900 old_postuninstall_cmds \
22901 old_archive_cmds \
22902 extract_expsyms_cmds \
22903 old_archive_from_new_cmds \
22904 old_archive_from_expsyms_cmds \
22905 archive_cmds \
22906 archive_expsym_cmds \
22907 module_cmds \
22908 module_expsym_cmds \
22909 export_symbols_cmds \
22910 prelink_cmds \
22911 postlink_cmds \
22912 postinstall_cmds \
22913 postuninstall_cmds \
22914 finish_cmds \
22915 sys_lib_search_path_spec \
22916 configure_time_dlsearch_path \
22917 configure_time_lt_sys_library_path; do
22918 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22919 *[\\\\\\\`\\"\\\$]*)
22920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22921 ;;
22922 *)
22923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22924 ;;
22925 esac
22926 done
22927
22928 ac_aux_dir='$ac_aux_dir'
22929
22930 # See if we are running on zsh, and set the options that allow our
22931 # commands through without removal of \ escapes INIT.
22932 if test -n "\${ZSH_VERSION+set}"; then
22933 setopt NO_GLOB_SUBST
22934 fi
22935
22936
22937 PACKAGE='$PACKAGE'
22938 VERSION='$VERSION'
22939 RM='$RM'
22940 ofile='$ofile'
22941
22942
22943
22944
22945 _ACEOF
22946
22947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22948
22949 # Handling of arguments.
22950 for ac_config_target in $ac_config_targets
22951 do
22952 case $ac_config_target in
22953 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22954 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22955 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22956 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22957 "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
22958 "libout123.pc") CONFIG_FILES="$CONFIG_FILES libout123.pc" ;;
22959 "libsyn123.pc") CONFIG_FILES="$CONFIG_FILES libsyn123.pc" ;;
22960 "mpg123.spec") CONFIG_FILES="$CONFIG_FILES mpg123.spec" ;;
22961
22962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22963 esac
22964 done
22965
22966
22967 # If the user did not use the arguments to specify the items to instantiate,
22968 # then the envvar interface is used. Set only those that are not.
22969 # We use the long form for the default assignment because of an extremely
22970 # bizarre bug on SunOS 4.1.3.
22971 if $ac_need_defaults; then
22972 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22973 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22974 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22975 fi
22976
22977 # Have a temporary directory for convenience. Make it in the build tree
22978 # simply because there is no reason against having it here, and in addition,
22979 # creating and moving files from /tmp can sometimes cause problems.
22980 # Hook for its removal unless debugging.
22981 # Note that there is a small window in which the directory will not be cleaned:
22982 # after its creation but before its name has been assigned to `$tmp'.
22983 $debug ||
22984 {
22985 tmp= ac_tmp=
22986 trap 'exit_status=$?
22987 : "${ac_tmp:=$tmp}"
22988 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22989 ' 0
22990 trap 'as_fn_exit 1' 1 2 13 15
22991 }
22992 # Create a (secure) tmp directory for tmp files.
22993
22994 {
22995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22996 test -d "$tmp"
22997 } ||
22998 {
22999 tmp=./conf$$-$RANDOM
23000 (umask 077 && mkdir "$tmp")
23001 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23002 ac_tmp=$tmp
23003
23004 # Set up the scripts for CONFIG_FILES section.
23005 # No need to generate them if there are no CONFIG_FILES.
23006 # This happens for instance with `./config.status config.h'.
23007 if test -n "$CONFIG_FILES"; then
23008
23009
23010 ac_cr=`echo X | tr X '\015'`
23011 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23012 # But we know of no other shell where ac_cr would be empty at this
23013 # point, so we can use a bashism as a fallback.
23014 if test "x$ac_cr" = x; then
23015 eval ac_cr=\$\'\\r\'
23016 fi
23017 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23018 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23019 ac_cs_awk_cr='\\r'
23020 else
23021 ac_cs_awk_cr=$ac_cr
23022 fi
23023
23024 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23025 _ACEOF
23026
23027
23028 {
23029 echo "cat >conf$$subs.awk <<_ACEOF" &&
23030 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23031 echo "_ACEOF"
23032 } >conf$$subs.sh ||
23033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23035 ac_delim='%!_!# '
23036 for ac_last_try in false false false false false :; do
23037 . ./conf$$subs.sh ||
23038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23039
23040 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23041 if test $ac_delim_n = $ac_delim_num; then
23042 break
23043 elif $ac_last_try; then
23044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23045 else
23046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23047 fi
23048 done
23049 rm -f conf$$subs.sh
23050
23051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23052 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23053 _ACEOF
23054 sed -n '
23055 h
23056 s/^/S["/; s/!.*/"]=/
23057 p
23058 g
23059 s/^[^!]*!//
23060 :repl
23061 t repl
23062 s/'"$ac_delim"'$//
23063 t delim
23064 :nl
23065 h
23066 s/\(.\{148\}\)..*/\1/
23067 t more1
23068 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23069 p
23070 n
23071 b repl
23072 :more1
23073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23074 p
23075 g
23076 s/.\{148\}//
23077 t nl
23078 :delim
23079 h
23080 s/\(.\{148\}\)..*/\1/
23081 t more2
23082 s/["\\]/\\&/g; s/^/"/; s/$/"/
23083 p
23084 b
23085 :more2
23086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23087 p
23088 g
23089 s/.\{148\}//
23090 t delim
23091 ' <conf$$subs.awk | sed '
23092 /^[^""]/{
23093 N
23094 s/\n//
23095 }
23096 ' >>$CONFIG_STATUS || ac_write_fail=1
23097 rm -f conf$$subs.awk
23098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23099 _ACAWK
23100 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23101 for (key in S) S_is_set[key] = 1
23102 FS = ""
23103
23104 }
23105 {
23106 line = $ 0
23107 nfields = split(line, field, "@")
23108 substed = 0
23109 len = length(field[1])
23110 for (i = 2; i < nfields; i++) {
23111 key = field[i]
23112 keylen = length(key)
23113 if (S_is_set[key]) {
23114 value = S[key]
23115 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23116 len += length(value) + length(field[++i])
23117 substed = 1
23118 } else
23119 len += 1 + keylen
23120 }
23121
23122 print line
23123 }
23124
23125 _ACAWK
23126 _ACEOF
23127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23130 else
23131 cat
23132 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23133 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23134 _ACEOF
23135
23136 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23137 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23138 # trailing colons and then remove the whole line if VPATH becomes empty
23139 # (actually we leave an empty line to preserve line numbers).
23140 if test "x$srcdir" = x.; then
23141 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23142 h
23143 s///
23144 s/^/:/
23145 s/[ ]*$/:/
23146 s/:\$(srcdir):/:/g
23147 s/:\${srcdir}:/:/g
23148 s/:@srcdir@:/:/g
23149 s/^:*//
23150 s/:*$//
23151 x
23152 s/\(=[ ]*\).*/\1/
23153 G
23154 s/\n//
23155 s/^[^=]*=[ ]*$//
23156 }'
23157 fi
23158
23159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23160 fi # test -n "$CONFIG_FILES"
23161
23162 # Set up the scripts for CONFIG_HEADERS section.
23163 # No need to generate them if there are no CONFIG_HEADERS.
23164 # This happens for instance with `./config.status Makefile'.
23165 if test -n "$CONFIG_HEADERS"; then
23166 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23167 BEGIN {
23168 _ACEOF
23169
23170 # Transform confdefs.h into an awk script `defines.awk', embedded as
23171 # here-document in config.status, that substitutes the proper values into
23172 # config.h.in to produce config.h.
23173
23174 # Create a delimiter string that does not exist in confdefs.h, to ease
23175 # handling of long lines.
23176 ac_delim='%!_!# '
23177 for ac_last_try in false false :; do
23178 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23179 if test -z "$ac_tt"; then
23180 break
23181 elif $ac_last_try; then
23182 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23183 else
23184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23185 fi
23186 done
23187
23188 # For the awk script, D is an array of macro values keyed by name,
23189 # likewise P contains macro parameters if any. Preserve backslash
23190 # newline sequences.
23191
23192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23193 sed -n '
23194 s/.\{148\}/&'"$ac_delim"'/g
23195 t rset
23196 :rset
23197 s/^[ ]*#[ ]*define[ ][ ]*/ /
23198 t def
23199 d
23200 :def
23201 s/\\$//
23202 t bsnl
23203 s/["\\]/\\&/g
23204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23205 D["\1"]=" \3"/p
23206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23207 d
23208 :bsnl
23209 s/["\\]/\\&/g
23210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23211 D["\1"]=" \3\\\\\\n"\\/p
23212 t cont
23213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23214 t cont
23215 d
23216 :cont
23217 n
23218 s/.\{148\}/&'"$ac_delim"'/g
23219 t clear
23220 :clear
23221 s/\\$//
23222 t bsnlc
23223 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23224 d
23225 :bsnlc
23226 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23227 b cont
23228 ' <confdefs.h | sed '
23229 s/'"$ac_delim"'/"\\\
23230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23231
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233 for (key in D) D_is_set[key] = 1
23234 FS = ""
23235 }
23236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23237 line = \$ 0
23238 split(line, arg, " ")
23239 if (arg[1] == "#") {
23240 defundef = arg[2]
23241 mac1 = arg[3]
23242 } else {
23243 defundef = substr(arg[1], 2)
23244 mac1 = arg[2]
23245 }
23246 split(mac1, mac2, "(") #)
23247 macro = mac2[1]
23248 prefix = substr(line, 1, index(line, defundef) - 1)
23249 if (D_is_set[macro]) {
23250 # Preserve the white space surrounding the "#".
23251 print prefix "define", macro P[macro] D[macro]
23252 next
23253 } else {
23254 # Replace #undef with comments. This is necessary, for example,
23255 # in the case of _POSIX_SOURCE, which is predefined and required
23256 # on some systems where configure will not decide to define it.
23257 if (defundef == "undef") {
23258 print "/*", prefix defundef, macro, "*/"
23259 next
23260 }
23261 }
23262 }
23263 { print }
23264 _ACAWK
23265 _ACEOF
23266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23267 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23268 fi # test -n "$CONFIG_HEADERS"
23269
23270
23271 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23272 shift
23273 for ac_tag
23274 do
23275 case $ac_tag in
23276 :[FHLC]) ac_mode=$ac_tag; continue;;
23277 esac
23278 case $ac_mode$ac_tag in
23279 :[FHL]*:*);;
23280 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23281 :[FH]-) ac_tag=-:-;;
23282 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23283 esac
23284 ac_save_IFS=$IFS
23285 IFS=:
23286 set x $ac_tag
23287 IFS=$ac_save_IFS
23288 shift
23289 ac_file=$1
23290 shift
23291
23292 case $ac_mode in
23293 :L) ac_source=$1;;
23294 :[FH])
23295 ac_file_inputs=
23296 for ac_f
23297 do
23298 case $ac_f in
23299 -) ac_f="$ac_tmp/stdin";;
23300 *) # Look for the file first in the build tree, then in the source tree
23301 # (if the path is not absolute). The absolute path cannot be DOS-style,
23302 # because $ac_f cannot contain `:'.
23303 test -f "$ac_f" ||
23304 case $ac_f in
23305 [\\/$]*) false;;
23306 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23307 esac ||
23308 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23309 esac
23310 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23311 as_fn_append ac_file_inputs " '$ac_f'"
23312 done
23313
23314 # Let's still pretend it is `configure' which instantiates (i.e., don't
23315 # use $as_me), people would be surprised to read:
23316 # /* config.h. Generated by config.status. */
23317 configure_input='Generated from '`
23318 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23319 `' by configure.'
23320 if test x"$ac_file" != x-; then
23321 configure_input="$ac_file. $configure_input"
23322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23323 printf "%s\n" "$as_me: creating $ac_file" >&6;}
23324 fi
23325 # Neutralize special characters interpreted by sed in replacement strings.
23326 case $configure_input in #(
23327 *\&* | *\|* | *\\* )
23328 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23330 *) ac_sed_conf_input=$configure_input;;
23331 esac
23332
23333 case $ac_tag in
23334 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23336 esac
23337 ;;
23338 esac
23339
23340 ac_dir=`$as_dirname -- "$ac_file" ||
23341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342 X"$ac_file" : 'X\(//\)[^/]' \| \
23343 X"$ac_file" : 'X\(//\)$' \| \
23344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23345 printf "%s\n" X"$ac_file" |
23346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23347 s//\1/
23348 q
23349 }
23350 /^X\(\/\/\)[^/].*/{
23351 s//\1/
23352 q
23353 }
23354 /^X\(\/\/\)$/{
23355 s//\1/
23356 q
23357 }
23358 /^X\(\/\).*/{
23359 s//\1/
23360 q
23361 }
23362 s/.*/./; q'`
23363 as_dir="$ac_dir"; as_fn_mkdir_p
23364 ac_builddir=.
23365
23366 case "$ac_dir" in
23367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23368 *)
23369 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23370 # A ".." for each directory in $ac_dir_suffix.
23371 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23372 case $ac_top_builddir_sub in
23373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23375 esac ;;
23376 esac
23377 ac_abs_top_builddir=$ac_pwd
23378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23379 # for backward compatibility:
23380 ac_top_builddir=$ac_top_build_prefix
23381
23382 case $srcdir in
23383 .) # We are building in place.
23384 ac_srcdir=.
23385 ac_top_srcdir=$ac_top_builddir_sub
23386 ac_abs_top_srcdir=$ac_pwd ;;
23387 [\\/]* | ?:[\\/]* ) # Absolute name.
23388 ac_srcdir=$srcdir$ac_dir_suffix;
23389 ac_top_srcdir=$srcdir
23390 ac_abs_top_srcdir=$srcdir ;;
23391 *) # Relative name.
23392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23393 ac_top_srcdir=$ac_top_build_prefix$srcdir
23394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23395 esac
23396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23397
23398
23399 case $ac_mode in
23400 :F)
23401 #
23402 # CONFIG_FILE
23403 #
23404
23405 case $INSTALL in
23406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23407 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23408 esac
23409 ac_MKDIR_P=$MKDIR_P
23410 case $MKDIR_P in
23411 [\\/$]* | ?:[\\/]* ) ;;
23412 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23413 esac
23414 _ACEOF
23415
23416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23417 # If the template does not know about datarootdir, expand it.
23418 # FIXME: This hack should be removed a few years after 2.60.
23419 ac_datarootdir_hack=; ac_datarootdir_seen=
23420 ac_sed_dataroot='
23421 /datarootdir/ {
23422 p
23423 q
23424 }
23425 /@datadir@/p
23426 /@docdir@/p
23427 /@infodir@/p
23428 /@localedir@/p
23429 /@mandir@/p'
23430 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23431 *datarootdir*) ac_datarootdir_seen=yes;;
23432 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23434 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23435 _ACEOF
23436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23437 ac_datarootdir_hack='
23438 s&@datadir@&$datadir&g
23439 s&@docdir@&$docdir&g
23440 s&@infodir@&$infodir&g
23441 s&@localedir@&$localedir&g
23442 s&@mandir@&$mandir&g
23443 s&\\\${datarootdir}&$datarootdir&g' ;;
23444 esac
23445 _ACEOF
23446
23447 # Neutralize VPATH when `$srcdir' = `.'.
23448 # Shell code in configure.ac might set extrasub.
23449 # FIXME: do we really want to maintain this feature?
23450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23451 ac_sed_extra="$ac_vpsub
23452 $extrasub
23453 _ACEOF
23454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23455 :t
23456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23457 s|@configure_input@|$ac_sed_conf_input|;t t
23458 s&@top_builddir@&$ac_top_builddir_sub&;t t
23459 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23460 s&@srcdir@&$ac_srcdir&;t t
23461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23462 s&@top_srcdir@&$ac_top_srcdir&;t t
23463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23464 s&@builddir@&$ac_builddir&;t t
23465 s&@abs_builddir@&$ac_abs_builddir&;t t
23466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23467 s&@INSTALL@&$ac_INSTALL&;t t
23468 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23469 $ac_datarootdir_hack
23470 "
23471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23472 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23473
23474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23475 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23477 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23479 which seems to be undefined. Please make sure it is defined" >&5
23480 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23481 which seems to be undefined. Please make sure it is defined" >&2;}
23482
23483 rm -f "$ac_tmp/stdin"
23484 case $ac_file in
23485 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23486 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23487 esac \
23488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23489 ;;
23490 :H)
23491 #
23492 # CONFIG_HEADER
23493 #
23494 if test x"$ac_file" != x-; then
23495 {
23496 printf "%s\n" "/* $configure_input */" >&1 \
23497 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23498 } >"$ac_tmp/config.h" \
23499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23500 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23502 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23503 else
23504 rm -f "$ac_file"
23505 mv "$ac_tmp/config.h" "$ac_file" \
23506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23507 fi
23508 else
23509 printf "%s\n" "/* $configure_input */" >&1 \
23510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23511 || as_fn_error $? "could not create -" "$LINENO" 5
23512 fi
23513 # Compute "$ac_file"'s index in $config_headers.
23514 _am_arg="$ac_file"
23515 _am_stamp_count=1
23516 for _am_header in $config_headers :; do
23517 case $_am_header in
23518 $_am_arg | $_am_arg:* )
23519 break ;;
23520 * )
23521 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23522 esac
23523 done
23524 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23525 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23526 X"$_am_arg" : 'X\(//\)[^/]' \| \
23527 X"$_am_arg" : 'X\(//\)$' \| \
23528 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23529 printf "%s\n" X"$_am_arg" |
23530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23531 s//\1/
23532 q
23533 }
23534 /^X\(\/\/\)[^/].*/{
23535 s//\1/
23536 q
23537 }
23538 /^X\(\/\/\)$/{
23539 s//\1/
23540 q
23541 }
23542 /^X\(\/\).*/{
23543 s//\1/
23544 q
23545 }
23546 s/.*/./; q'`/stamp-h$_am_stamp_count
23547 ;;
23548
23549 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23550 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23551 ;;
23552 esac
23553
23554
23555 case $ac_file$ac_mode in
23556 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23557 # Older Autoconf quotes --file arguments for eval, but not when files
23558 # are listed without --file. Let's play safe and only enable the eval
23559 # if we detect the quoting.
23560 # TODO: see whether this extra hack can be removed once we start
23561 # requiring Autoconf 2.70 or later.
23562 case $CONFIG_FILES in #(
23563 *\'*) :
23564 eval set x "$CONFIG_FILES" ;; #(
23565 *) :
23566 set x $CONFIG_FILES ;; #(
23567 *) :
23568 ;;
23569 esac
23570 shift
23571 # Used to flag and report bootstrapping failures.
23572 am_rc=0
23573 for am_mf
23574 do
23575 # Strip MF so we end up with the name of the file.
23576 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23577 # Check whether this is an Automake generated Makefile which includes
23578 # dependency-tracking related rules and includes.
23579 # Grep'ing the whole file directly is not great: AIX grep has a line
23580 # limit of 2048, but all sed's we know have understand at least 4000.
23581 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23582 || continue
23583 am_dirpart=`$as_dirname -- "$am_mf" ||
23584 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23585 X"$am_mf" : 'X\(//\)[^/]' \| \
23586 X"$am_mf" : 'X\(//\)$' \| \
23587 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23588 printf "%s\n" X"$am_mf" |
23589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23590 s//\1/
23591 q
23592 }
23593 /^X\(\/\/\)[^/].*/{
23594 s//\1/
23595 q
23596 }
23597 /^X\(\/\/\)$/{
23598 s//\1/
23599 q
23600 }
23601 /^X\(\/\).*/{
23602 s//\1/
23603 q
23604 }
23605 s/.*/./; q'`
23606 am_filepart=`$as_basename -- "$am_mf" ||
23607 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23608 X"$am_mf" : 'X\(//\)$' \| \
23609 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23610 printf "%s\n" X/"$am_mf" |
23611 sed '/^.*\/\([^/][^/]*\)\/*$/{
23612 s//\1/
23613 q
23614 }
23615 /^X\/\(\/\/\)$/{
23616 s//\1/
23617 q
23618 }
23619 /^X\/\(\/\).*/{
23620 s//\1/
23621 q
23622 }
23623 s/.*/./; q'`
23624 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23625 && sed -e '/# am--include-marker/d' "$am_filepart" \
23626 | $MAKE -f - am--depfiles" >&5
23627 (cd "$am_dirpart" \
23628 && sed -e '/# am--include-marker/d' "$am_filepart" \
23629 | $MAKE -f - am--depfiles) >&5 2>&5
23630 ac_status=$?
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } || am_rc=$?
23633 done
23634 if test $am_rc -ne 0; then
23635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23636 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23637 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23638 for automatic dependency tracking. If GNU make was not used, consider
23639 re-running the configure script with MAKE=\"gmake\" (or whatever is
23640 necessary). You can also try re-running configure with the
23641 '--disable-dependency-tracking' option to at least be able to build
23642 the package (albeit without support for automatic dependency tracking).
23643 See \`config.log' for more details" "$LINENO" 5; }
23644 fi
23645 { am_dirpart=; unset am_dirpart;}
23646 { am_filepart=; unset am_filepart;}
23647 { am_mf=; unset am_mf;}
23648 { am_rc=; unset am_rc;}
23649 rm -f conftest-deps.mk
23650 }
23651 ;;
23652 "libtool":C)
23653
23654 # See if we are running on zsh, and set the options that allow our
23655 # commands through without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}"; then
23657 setopt NO_GLOB_SUBST
23658 fi
23659
23660 cfgfile=${ofile}T
23661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23662 $RM "$cfgfile"
23663
23664 cat <<_LT_EOF >> "$cfgfile"
23665 #! $SHELL
23666 # Generated automatically by $as_me ($PACKAGE) $VERSION
23667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23668
23669 # Provide generalized library-building support services.
23670 # Written by Gordon Matzigkeit, 1996
23671
23672 # Copyright (C) 2014 Free Software Foundation, Inc.
23673 # This is free software; see the source for copying conditions. There is NO
23674 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23675
23676 # GNU Libtool is free software; you can redistribute it and/or modify
23677 # it under the terms of the GNU General Public License as published by
23678 # the Free Software Foundation; either version 2 of of the License, or
23679 # (at your option) any later version.
23680 #
23681 # As a special exception to the GNU General Public License, if you
23682 # distribute this file as part of a program or library that is built
23683 # using GNU Libtool, you may include this file under the same
23684 # distribution terms that you use for the rest of that program.
23685 #
23686 # GNU Libtool is distributed in the hope that it will be useful, but
23687 # WITHOUT ANY WARRANTY; without even the implied warranty of
23688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23689 # GNU General Public License for more details.
23690 #
23691 # You should have received a copy of the GNU General Public License
23692 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23693
23694
23695 # The names of the tagged configurations supported by this script.
23696 available_tags=''
23697
23698 # Configured defaults for sys_lib_dlsearch_path munging.
23699 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23700
23701 # ### BEGIN LIBTOOL CONFIG
23702
23703 # Which release of libtool.m4 was used?
23704 macro_version=$macro_version
23705 macro_revision=$macro_revision
23706
23707 # Assembler program.
23708 AS=$lt_AS
23709
23710 # DLL creation program.
23711 DLLTOOL=$lt_DLLTOOL
23712
23713 # Object dumper program.
23714 OBJDUMP=$lt_OBJDUMP
23715
23716 # Whether or not to build static libraries.
23717 build_old_libs=$enable_static
23718
23719 # Whether or not to build shared libraries.
23720 build_libtool_libs=$enable_shared
23721
23722 # What type of objects to build.
23723 pic_mode=$pic_mode
23724
23725 # Whether or not to optimize for fast installation.
23726 fast_install=$enable_fast_install
23727
23728 # Shared archive member basename,for filename based shared library versioning on AIX.
23729 shared_archive_member_spec=$shared_archive_member_spec
23730
23731 # Shell to use when invoking shell scripts.
23732 SHELL=$lt_SHELL
23733
23734 # An echo program that protects backslashes.
23735 ECHO=$lt_ECHO
23736
23737 # The PATH separator for the build system.
23738 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23739
23740 # The host system.
23741 host_alias=$host_alias
23742 host=$host
23743 host_os=$host_os
23744
23745 # The build system.
23746 build_alias=$build_alias
23747 build=$build
23748 build_os=$build_os
23749
23750 # A sed program that does not truncate output.
23751 SED=$lt_SED
23752
23753 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23754 Xsed="\$SED -e 1s/^X//"
23755
23756 # A grep program that handles long lines.
23757 GREP=$lt_GREP
23758
23759 # An ERE matcher.
23760 EGREP=$lt_EGREP
23761
23762 # A literal string matcher.
23763 FGREP=$lt_FGREP
23764
23765 # A BSD- or MS-compatible name lister.
23766 NM=$lt_NM
23767
23768 # Whether we need soft or hard links.
23769 LN_S=$lt_LN_S
23770
23771 # What is the maximum length of a command?
23772 max_cmd_len=$max_cmd_len
23773
23774 # Object file suffix (normally "o").
23775 objext=$ac_objext
23776
23777 # Executable file suffix (normally "").
23778 exeext=$exeext
23779
23780 # whether the shell understands "unset".
23781 lt_unset=$lt_unset
23782
23783 # turn spaces into newlines.
23784 SP2NL=$lt_lt_SP2NL
23785
23786 # turn newlines into spaces.
23787 NL2SP=$lt_lt_NL2SP
23788
23789 # convert \$build file names to \$host format.
23790 to_host_file_cmd=$lt_cv_to_host_file_cmd
23791
23792 # convert \$build files to toolchain format.
23793 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23794
23795 # Method to check whether dependent libraries are shared objects.
23796 deplibs_check_method=$lt_deplibs_check_method
23797
23798 # Command to use when deplibs_check_method = "file_magic".
23799 file_magic_cmd=$lt_file_magic_cmd
23800
23801 # How to find potential files when deplibs_check_method = "file_magic".
23802 file_magic_glob=$lt_file_magic_glob
23803
23804 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23805 want_nocaseglob=$lt_want_nocaseglob
23806
23807 # Command to associate shared and link libraries.
23808 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23809
23810 # The archiver.
23811 AR=$lt_AR
23812
23813 # Flags to create an archive.
23814 AR_FLAGS=$lt_AR_FLAGS
23815
23816 # How to feed a file listing to the archiver.
23817 archiver_list_spec=$lt_archiver_list_spec
23818
23819 # A symbol stripping program.
23820 STRIP=$lt_STRIP
23821
23822 # Commands used to install an old-style archive.
23823 RANLIB=$lt_RANLIB
23824 old_postinstall_cmds=$lt_old_postinstall_cmds
23825 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23826
23827 # Whether to use a lock for old archive extraction.
23828 lock_old_archive_extraction=$lock_old_archive_extraction
23829
23830 # A C compiler.
23831 LTCC=$lt_CC
23832
23833 # LTCC compiler flags.
23834 LTCFLAGS=$lt_CFLAGS
23835
23836 # Take the output of nm and produce a listing of raw symbols and C names.
23837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23838
23839 # Transform the output of nm in a proper C declaration.
23840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23841
23842 # Transform the output of nm into a list of symbols to manually relocate.
23843 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23844
23845 # Transform the output of nm in a C name address pair.
23846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23847
23848 # Transform the output of nm in a C name address pair when lib prefix is needed.
23849 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23850
23851 # The name lister interface.
23852 nm_interface=$lt_lt_cv_nm_interface
23853
23854 # Specify filename containing input files for \$NM.
23855 nm_file_list_spec=$lt_nm_file_list_spec
23856
23857 # The root where to search for dependent libraries,and where our libraries should be installed.
23858 lt_sysroot=$lt_sysroot
23859
23860 # Command to truncate a binary pipe.
23861 lt_truncate_bin=$lt_lt_cv_truncate_bin
23862
23863 # The name of the directory that contains temporary libtool files.
23864 objdir=$objdir
23865
23866 # Used to examine libraries when file_magic_cmd begins with "file".
23867 MAGIC_CMD=$MAGIC_CMD
23868
23869 # Must we lock files when doing compilation?
23870 need_locks=$lt_need_locks
23871
23872 # Manifest tool.
23873 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23874
23875 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23876 DSYMUTIL=$lt_DSYMUTIL
23877
23878 # Tool to change global to local symbols on Mac OS X.
23879 NMEDIT=$lt_NMEDIT
23880
23881 # Tool to manipulate fat objects and archives on Mac OS X.
23882 LIPO=$lt_LIPO
23883
23884 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23885 OTOOL=$lt_OTOOL
23886
23887 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23888 OTOOL64=$lt_OTOOL64
23889
23890 # Old archive suffix (normally "a").
23891 libext=$libext
23892
23893 # Shared library suffix (normally ".so").
23894 shrext_cmds=$lt_shrext_cmds
23895
23896 # The commands to extract the exported symbol list from a shared archive.
23897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23898
23899 # Variables whose values should be saved in libtool wrapper scripts and
23900 # restored at link time.
23901 variables_saved_for_relink=$lt_variables_saved_for_relink
23902
23903 # Do we need the "lib" prefix for modules?
23904 need_lib_prefix=$need_lib_prefix
23905
23906 # Do we need a version for libraries?
23907 need_version=$need_version
23908
23909 # Library versioning type.
23910 version_type=$version_type
23911
23912 # Shared library runtime path variable.
23913 runpath_var=$runpath_var
23914
23915 # Shared library path variable.
23916 shlibpath_var=$shlibpath_var
23917
23918 # Is shlibpath searched before the hard-coded library search path?
23919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23920
23921 # Format of library name prefix.
23922 libname_spec=$lt_libname_spec
23923
23924 # List of archive names. First name is the real one, the rest are links.
23925 # The last name is the one that the linker finds with -lNAME
23926 library_names_spec=$lt_library_names_spec
23927
23928 # The coded name of the library, if different from the real name.
23929 soname_spec=$lt_soname_spec
23930
23931 # Permission mode override for installation of shared libraries.
23932 install_override_mode=$lt_install_override_mode
23933
23934 # Command to use after installation of a shared archive.
23935 postinstall_cmds=$lt_postinstall_cmds
23936
23937 # Command to use after uninstallation of a shared archive.
23938 postuninstall_cmds=$lt_postuninstall_cmds
23939
23940 # Commands used to finish a libtool library installation in a directory.
23941 finish_cmds=$lt_finish_cmds
23942
23943 # As "finish_cmds", except a single script fragment to be evaled but
23944 # not shown.
23945 finish_eval=$lt_finish_eval
23946
23947 # Whether we should hardcode library paths into libraries.
23948 hardcode_into_libs=$hardcode_into_libs
23949
23950 # Compile-time system search path for libraries.
23951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23952
23953 # Detected run-time system search path for libraries.
23954 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23955
23956 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23957 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23958
23959 # Whether dlopen is supported.
23960 dlopen_support=$enable_dlopen
23961
23962 # Whether dlopen of programs is supported.
23963 dlopen_self=$enable_dlopen_self
23964
23965 # Whether dlopen of statically linked programs is supported.
23966 dlopen_self_static=$enable_dlopen_self_static
23967
23968 # Commands to strip libraries.
23969 old_striplib=$lt_old_striplib
23970 striplib=$lt_striplib
23971
23972
23973 # The linker used to build libraries.
23974 LD=$lt_LD
23975
23976 # How to create reloadable object files.
23977 reload_flag=$lt_reload_flag
23978 reload_cmds=$lt_reload_cmds
23979
23980 # Commands used to build an old-style archive.
23981 old_archive_cmds=$lt_old_archive_cmds
23982
23983 # A language specific compiler.
23984 CC=$lt_compiler
23985
23986 # Is the compiler the GNU compiler?
23987 with_gcc=$GCC
23988
23989 # Compiler flag to turn off builtin functions.
23990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23991
23992 # Additional compiler flags for building library objects.
23993 pic_flag=$lt_lt_prog_compiler_pic
23994
23995 # How to pass a linker flag through the compiler.
23996 wl=$lt_lt_prog_compiler_wl
23997
23998 # Compiler flag to prevent dynamic linking.
23999 link_static_flag=$lt_lt_prog_compiler_static
24000
24001 # Does compiler simultaneously support -c and -o options?
24002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24003
24004 # Whether or not to add -lc for building shared libraries.
24005 build_libtool_need_lc=$archive_cmds_need_lc
24006
24007 # Whether or not to disallow shared libs when runtime libs are static.
24008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24009
24010 # Compiler flag to allow reflexive dlopens.
24011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24012
24013 # Compiler flag to generate shared objects directly from archives.
24014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24015
24016 # Whether the compiler copes with passing no objects directly.
24017 compiler_needs_object=$lt_compiler_needs_object
24018
24019 # Create an old-style archive from a shared archive.
24020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24021
24022 # Create a temporary old-style archive to link instead of a shared archive.
24023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24024
24025 # Commands used to build a shared archive.
24026 archive_cmds=$lt_archive_cmds
24027 archive_expsym_cmds=$lt_archive_expsym_cmds
24028
24029 # Commands used to build a loadable module if different from building
24030 # a shared archive.
24031 module_cmds=$lt_module_cmds
24032 module_expsym_cmds=$lt_module_expsym_cmds
24033
24034 # Whether we are building with GNU ld or not.
24035 with_gnu_ld=$lt_with_gnu_ld
24036
24037 # Flag that allows shared libraries with undefined symbols to be built.
24038 allow_undefined_flag=$lt_allow_undefined_flag
24039
24040 # Flag that enforces no undefined symbols.
24041 no_undefined_flag=$lt_no_undefined_flag
24042
24043 # Flag to hardcode \$libdir into a binary during linking.
24044 # This must work even if \$libdir does not exist
24045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24046
24047 # Whether we need a single "-rpath" flag with a separated argument.
24048 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24049
24050 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24051 # DIR into the resulting binary.
24052 hardcode_direct=$hardcode_direct
24053
24054 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24055 # DIR into the resulting binary and the resulting library dependency is
24056 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24057 # library is relocated.
24058 hardcode_direct_absolute=$hardcode_direct_absolute
24059
24060 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24061 # into the resulting binary.
24062 hardcode_minus_L=$hardcode_minus_L
24063
24064 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24065 # into the resulting binary.
24066 hardcode_shlibpath_var=$hardcode_shlibpath_var
24067
24068 # Set to "yes" if building a shared library automatically hardcodes DIR
24069 # into the library and all subsequent libraries and executables linked
24070 # against it.
24071 hardcode_automatic=$hardcode_automatic
24072
24073 # Set to yes if linker adds runtime paths of dependent libraries
24074 # to runtime path list.
24075 inherit_rpath=$inherit_rpath
24076
24077 # Whether libtool must link a program against all its dependency libraries.
24078 link_all_deplibs=$link_all_deplibs
24079
24080 # Set to "yes" if exported symbols are required.
24081 always_export_symbols=$always_export_symbols
24082
24083 # The commands to list exported symbols.
24084 export_symbols_cmds=$lt_export_symbols_cmds
24085
24086 # Symbols that should not be listed in the preloaded symbols.
24087 exclude_expsyms=$lt_exclude_expsyms
24088
24089 # Symbols that must always be exported.
24090 include_expsyms=$lt_include_expsyms
24091
24092 # Commands necessary for linking programs (against libraries) with templates.
24093 prelink_cmds=$lt_prelink_cmds
24094
24095 # Commands necessary for finishing linking programs.
24096 postlink_cmds=$lt_postlink_cmds
24097
24098 # Specify filename containing input files.
24099 file_list_spec=$lt_file_list_spec
24100
24101 # How to hardcode a shared library path into an executable.
24102 hardcode_action=$hardcode_action
24103
24104 # ### END LIBTOOL CONFIG
24105
24106 _LT_EOF
24107
24108 cat <<'_LT_EOF' >> "$cfgfile"
24109
24110 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24111
24112 # func_munge_path_list VARIABLE PATH
24113 # -----------------------------------
24114 # VARIABLE is name of variable containing _space_ separated list of
24115 # directories to be munged by the contents of PATH, which is string
24116 # having a format:
24117 # "DIR[:DIR]:"
24118 # string "DIR[ DIR]" will be prepended to VARIABLE
24119 # ":DIR[:DIR]"
24120 # string "DIR[ DIR]" will be appended to VARIABLE
24121 # "DIRP[:DIRP]::[DIRA:]DIRA"
24122 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24123 # "DIRA[ DIRA]" will be appended to VARIABLE
24124 # "DIR[:DIR]"
24125 # VARIABLE will be replaced by "DIR[ DIR]"
24126 func_munge_path_list ()
24127 {
24128 case x$2 in
24129 x)
24130 ;;
24131 *:)
24132 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24133 ;;
24134 x:*)
24135 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24136 ;;
24137 *::*)
24138 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24139 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24140 ;;
24141 *)
24142 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24143 ;;
24144 esac
24145 }
24146
24147
24148 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24149 func_cc_basename ()
24150 {
24151 for cc_temp in $*""; do
24152 case $cc_temp in
24153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24155 \-*) ;;
24156 *) break;;
24157 esac
24158 done
24159 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24160 }
24161
24162
24163 # ### END FUNCTIONS SHARED WITH CONFIGURE
24164
24165 _LT_EOF
24166
24167 case $host_os in
24168 aix3*)
24169 cat <<\_LT_EOF >> "$cfgfile"
24170 # AIX sometimes has problems with the GCC collect2 program. For some
24171 # reason, if we set the COLLECT_NAMES environment variable, the problems
24172 # vanish in a puff of smoke.
24173 if test set != "${COLLECT_NAMES+set}"; then
24174 COLLECT_NAMES=
24175 export COLLECT_NAMES
24176 fi
24177 _LT_EOF
24178 ;;
24179 esac
24180
24181
24182
24183 ltmain=$ac_aux_dir/ltmain.sh
24184
24185
24186 # We use sed instead of cat because bash on DJGPP gets confused if
24187 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24188 # text mode, it properly converts lines to CR/LF. This bash problem
24189 # is reportedly fixed, but why not run on old versions too?
24190 sed '$q' "$ltmain" >> "$cfgfile" \
24191 || (rm -f "$cfgfile"; exit 1)
24192
24193 mv -f "$cfgfile" "$ofile" ||
24194 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24195 chmod +x "$ofile"
24196
24197 ;;
24198
24199 esac
24200 done # for ac_tag
24201
24202
24203 as_fn_exit 0
24204 _ACEOF
24205 ac_clean_files=$ac_clean_files_save
24206
24207 test $ac_write_fail = 0 ||
24208 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24209
24210
24211 # configure is writing to config.log, and then calls config.status.
24212 # config.status does its own redirection, appending to config.log.
24213 # Unfortunately, on DOS this fails, as config.log is still kept open
24214 # by configure, so config.status won't be able to write to it; its
24215 # output is simply discarded. So we exec the FD to /dev/null,
24216 # effectively closing config.log, so it can be properly (re)opened and
24217 # appended to by config.status. When coming back to configure, we
24218 # need to make the FD available again.
24219 if test "$no_create" != yes; then
24220 ac_cs_success=:
24221 ac_config_status_args=
24222 test "$silent" = yes &&
24223 ac_config_status_args="$ac_config_status_args --quiet"
24224 exec 5>/dev/null
24225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24226 exec 5>>config.log
24227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24228 # would make configure fail if this is the last instruction.
24229 $ac_cs_success || as_fn_exit 1
24230 fi
24231 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24233 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24234 fi
24235
24236
24237
24238 default_offset_bits=`expr "$ac_cv_sizeof_off_t" "*" "8"`
24239
24240 if test "x$build_programs" = xyes && ! test "x$portable_api" = xyes; then
24241 build_mpg123_programs=yes
24242 else
24243 build_mpg123_programs=no
24244 fi
24245
24246 echo "
24247 $PACKAGE_NAME $PACKAGE_VERSION
24248
24249 Install path ............ $prefix
24250 Components .............. $components
24251 Main mpg123 program(s)... $build_mpg123_programs
24252 CPU Optimization ........ $cpu_type
24253 Compiler Optimization ... $with_optimization"
24254 if test x"$use_yasm_for_avx" = xyes; then
24255 echo " Use yasm (for AVX only) . enabled"
24256 else
24257 echo " Use yasm (for AVX only) . disabled"
24258 fi
24259
24260 echo " Gapless Support ......... $gapless
24261 Debugging ............... $debugging
24262 Terminal control ........ $term_type
24263 Extreme debugging ....... $xdebugging
24264 Seek table size ......... $seektable
24265 FIFO support ............ $fifo
24266 Buffer .................. $buffer"
24267 if test x$network_type != xdisabled; then
24268 if test x$network_type != xinternal; then
24269 echo " External network ........ $network_type"
24270 fi
24271 echo " Internal network type ... $network_internal
24272 IPv6 (getaddrinfo) ...... $ipv6"
24273 fi
24274 echo " largefile sensitive ..... $lfs_sensitive"
24275 echo " default offsets ......... $default_offset_bits"
24276 echo " explicit 64 bit offsets . $use_largefile"
24277 echo " forced 64 bit offsets ... $forced_off_64"
24278 echo " only portable API ....... $portable_api"
24279
24280 if test "x$forced_off_64" = xyes; then
24281 echo
24282 echo "Note: Ensure that client programs are built with _FILE_OFFSET_BITS defined to 64, too."
24283 echo " Old binaries built for 32 bit off_t may fail missing symbols in mpg123 libraries."
24284 echo
24285 fi
24286
24287 echo "
24288 Core libmpg123 features:
24289 Layer I ................. $layer1
24290 Layer II ................ $layer2
24291 Layer III ............... $layer3
24292 NtoM resampling ......... $ntom
24293 downsampled decoding .... $downsample
24294 Feeder/buffered input ... $feeder
24295 ID3v2 parsing ........... $id3v2
24296 String API .............. $string
24297 ICY parsing/conversion .. $icy
24298 Error/warning messages .. $messages
24299 Win32 Unicode File Open.. $win32_unicode
24300 Feature Report Function.. $feature_report
24301 Output formats (nofpu will disable all but 16 or 8 bit!):
24302 8 bit integer ........... $int8
24303 16 bit integer .......... $int16
24304 32/24 bit integer ....... $int32
24305 real (32 bit float) ..... $real
24306 Equalizer ............... $equalizer
24307 Optimization detail:
24308 Integer conversion ...... $integers
24309 IEEE 754 hackery ........ $ieee
24310 New/old WRITE_SAMPLE .... $newoldwritesample
24311 new Huffman scheme ...... $newhuff
24312 runtime tables .......... $runtimetables
24313
24314 Note: Disabling core features is not commonly done and some combinations might
24315 not build/work. If you encounter such a case, help yourself (and provide
24316 a patch) or just poke the maintainers."
24317
24318 echo
24319
24320 echo " libsyn123 special cases . $specialcases"
24321 echo
24322
24323 echo " Modules ................. $modules"
24324 echo " Checked audio modules ... $check_modules"
24325 echo " Detected audio support .. $output_modules"
24326 echo " Runtime order ........... $default_output_modules"
24327
24328 if test x"$modules" = xdisabled; then
24329 echo
24330 echo "The _single_ active output module $default_output_module is being statically linked in."
24331 fi
24332 if test x"$with_optimization" = x0; then
24333 echo
24334 echo "No optimization flags chosen, ensure something basic in your CFLAGS at least..."
24335 fi
24336
24337 if test x"$cpu_type" = xi486; then
24338 echo
24339 echo "WARNING: You selected the i486 decoder. This is not recommened for regular use."
24340 echo "It was designed for actual i486 CPUs a long time ago. Generic C code is likely"
24341 echo "to perform better nowadays. Also, the decoder misses features like volume"
24342 echo "scaling and has clipping issues. Continue if you are into software archeology"
24343 echo "only."
24344 fi
24345
24346 if test "x$use_extlib" = xyes; then
24347 echo
24348 echo "Warning: You opted to use external builds of the mpg123 libraries. They need to"
24349 echo " match the headers shipped with this source (which are used during build"
24350 echo " regardless)."
24351 echo
24352 fi
24353
24354 echo
24355 echo " CPPFLAGS='$CPPFLAGS'"
24356 echo " CFLAGS='$CFLAGS'"
24357 echo " PROG_LIBS='$PROG_LIBS'"
24358 echo " (derived from LIBS, only used for end-user binaries and modules)"
24359 echo " LIBDL='$LIBDL'"
24360 echo " LIBMPG123_LIBS='$LIBMPG123_LIBS'"
24361 echo " LIBSYN123_LIBS='$LIBSYN123_LIBS'"
24362 echo " LIBOUT123_LIBS='$LIBOUT123_LIBS'"
24363 echo
24364 echo "Next type 'make' and then 'make install'."
24365