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 lame 3.101.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
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='lame'
623 PACKAGE_TARNAME='lame'
624 PACKAGE_VERSION='3.101'
625 PACKAGE_STRING='lame 3.101'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="libmp3lame/lame.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 CONFIG_DEFS
667 CPUCCODE
668 CPUTYPE
669 WITH_MP3RTP
670 WITH_MP3X
671 WITH_FRONTEND
672 RM_F
673 MAKEDEP
674 NASM_FORMAT
675 LIB_MINOR_VERSION
676 LIB_MAJOR_VERSION
677 LDADD
678 CONFIG_MATH_LIB
679 LIBMP3LAME_LDADD
680 FRONTEND_LDADD
681 FRONTEND_CFLAGS
682 FRONTEND_LDFLAGS
683 INCLUDES
684 HAVE_NASM_FALSE
685 HAVE_NASM_TRUE
686 NASM
687 WITH_VECTOR_FALSE
688 WITH_VECTOR_TRUE
689 WITH_XMM_FALSE
690 WITH_XMM_TRUE
691 LIB_WITH_DECODER_FALSE
692 LIB_WITH_DECODER_TRUE
693 mpg123_LIBS
694 mpg123_CFLAGS
695 SNDFILE_LIBS
696 SNDFILE_CFLAGS
697 GTK_LIBS
698 GTK_CFLAGS
699 GTK_CONFIG
700 LTLIBICONV
701 LIBICONV
702 CPP
703 ALLOCA
704 LIBTOOL_DEPS
705 LT_SYS_LIBRARY_PATH
706 OTOOL64
707 OTOOL
708 LIPO
709 NMEDIT
710 DSYMUTIL
711 MANIFEST_TOOL
712 RANLIB
713 ac_ct_AR
714 AR
715 DLLTOOL
716 OBJDUMP
717 FILECMD
718 LN_S
719 NM
720 ac_ct_DUMPBIN
721 DUMPBIN
722 LD
723 FGREP
724 EGREP
725 GREP
726 SED
727 LIBTOOL
728 am__fastdepCC_FALSE
729 am__fastdepCC_TRUE
730 CCDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 PKG_CONFIG_LIBDIR
744 PKG_CONFIG_PATH
745 PKG_CONFIG
746 am__include
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 CSCOPE
755 ETAGS
756 CTAGS
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 runstatedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL
827 am__quote'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 with_dmalloc
843 enable_largefile
844 enable_nasm
845 enable_ieeehack
846 enable_rpath
847 with_libiconv_prefix
848 enable_cpml
849 with_gtk_prefix
850 with_gtk_exec_prefix
851 enable_gtktest
852 enable_efence
853 with_fileio
854 enable_analyzer_hooks
855 enable_decoder
856 enable_frontend
857 enable_mp3x
858 enable_mp3rtp
859 enable_ipv6
860 enable_dynamic_frontends
861 enable_expopt
862 enable_debug
863 '
864 ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 PKG_CONFIG
868 PKG_CONFIG_PATH
869 PKG_CONFIG_LIBDIR
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 LT_SYS_LIBRARY_PATH
876 CPP
877 SNDFILE_CFLAGS
878 SNDFILE_LIBS
879 mpg123_CFLAGS
880 mpg123_LIBS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 runstatedir='${localstatedir}/run'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *=) ac_optarg= ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: \`$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1010
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -runstatedir | --runstatedir | --runstatedi | --runstated \
1171 | --runstate | --runstat | --runsta | --runst | --runs \
1172 | --run | --ru | --r)
1173 ac_prev=runstatedir ;;
1174 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1175 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1176 | --run=* | --ru=* | --r=*)
1177 runstatedir=$ac_optarg ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: \`$ac_useropt'"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: \`$ac_useropt'"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir runstatedir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1346 fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 printf "%s\n" X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\).*/{
1386 s//\1/
1387 q
1388 }
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1393 fi
1394 else
1395 ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures lame 3.101 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/lame]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1484
1485 cat <<\_ACEOF
1486
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of lame 3.101:";;
1501 esac
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-silent-rules less verbose build output (undo: "make V=1")
1509 --disable-silent-rules verbose build output (undo: "make V=0")
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-dependency-tracking
1514 do not reject slow dependency extractors
1515 --disable-dependency-tracking
1516 speeds up one-time build
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --disable-largefile omit support for large files
1523 --enable-nasm Allow the use of nasm if available
1524 --enable-ieeehack Enable Takhiros IEEE754 hack (speed improvement for old CPUs)
1525 --disable-rpath do not hardcode runtime library paths
1526 --disable-cpml Do not use Compaq's fast Math Library
1527 --disable-gtktest Do not try to compile and run a test GTK program
1528 --enable-efence Use ElectricFence for malloc debugging
1529 --disable-analyzer-hooks Exclude analyzer hooks
1530 --disable-decoder Exclude mpg123 decoder
1531 --disable-frontend Do not build the lame executable default=build
1532 --enable-mp3x Build GTK frame analyzer default=no
1533 --enable-mp3rtp Build mp3rtp default=no
1534 --disable-ipv6 Disable IPV6 support(By default ipv6 (with ipv4)
1535 support is enabled)
1536 --enable-dynamic-frontends Link frontends against shared libraries default=no
1537 --enable-expopt=full,norm Whether to enable experimental optimizations
1538 default=no
1539 --enable-debug=alot,norm Enable debugging (disables optimizations)
1540 default=no
1541
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1546 both]
1547 --with-aix-soname=aix|svr4|both
1548 shared library versioning (aka "SONAME") variant to
1549 provide on AIX, [default=aix].
1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1552 compiler's sysroot if not specified).
1553 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1558 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1559 --with-fileio=lame Use lame's internal file io routines default
1560 =sndfile Use Erik de Castro Lopo's libsndfile
1561 (no stdin possible currently)
1562
1563 Some influential environment variables:
1564 PKG_CONFIG path to pkg-config utility
1565 PKG_CONFIG_PATH
1566 directories to add to pkg-config's search path
1567 PKG_CONFIG_LIBDIR
1568 path overriding pkg-config's built-in search path
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 LT_SYS_LIBRARY_PATH
1577 User-defined run-time library search path.
1578 CPP C preprocessor
1579 SNDFILE_CFLAGS
1580 C compiler flags for SNDFILE, overriding pkg-config
1581 SNDFILE_LIBS
1582 linker flags for SNDFILE, overriding pkg-config
1583 mpg123_CFLAGS
1584 C compiler flags for mpg123, overriding pkg-config
1585 mpg123_LIBS linker flags for mpg123, overriding pkg-config
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <[email protected]>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for configure.gnu first; this name is used for a wrapper for
1637 # Metaconfig's "Configure" on case-insensitive file systems.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 lame configure 3.101
1655 generated by GNU Autoconf 2.71
1656
1657 Copyright (C) 2021 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1662 fi
1663
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1667
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest.beam
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 printf "%s\n" "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext
1694 then :
1695 ac_retval=0
1696 else $as_nop
1697 printf "%s\n" "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 printf "%s\n" "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }
1736 then :
1737 ac_retval=0
1738 else $as_nop
1739 printf "%s\n" "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_link
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 printf %s "checking for $2... " >&6; }
1763 if eval test \${$3+y}
1764 then :
1765 printf %s "(cached) " >&6
1766 else $as_nop
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"
1773 then :
1774 eval "$3=yes"
1775 else $as_nop
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 printf "%s\n" "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else $as_nop
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below. */
1807
1808 #include <limits.h>
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main (void)
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"
1834 then :
1835 eval "$3=yes"
1836 else $as_nop
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1840 conftest$ac_exeext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 printf "%s\n" "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1852 # executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 printf "%s\n" "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }
1877 then :
1878 ac_retval=0
1879 else $as_nop
1880 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1881 printf "%s\n" "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=$ac_status
1885 fi
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_run
1891
1892 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893 # --------------------------------------------
1894 # Tries to find the compile-time value of EXPR in a program that includes
1895 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1896 # computed
1897 ac_fn_c_compute_int ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if test "$cross_compiling" = yes; then
1901 # Depending upon the size, compute the lo and hi bounds.
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main (void)
1907 {
1908 static int test_array [1 - 2 * !(($2) >= 0)];
1909 test_array [0] = 0;
1910 return test_array [0];
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"
1917 then :
1918 ac_lo=0 ac_mid=0
1919 while :; do
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main (void)
1925 {
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0;
1928 return test_array [0];
1929
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"
1935 then :
1936 ac_hi=$ac_mid; break
1937 else $as_nop
1938 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1939 if test $ac_lo -le $ac_mid; then
1940 ac_lo= ac_hi=
1941 break
1942 fi
1943 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 done
1947 else $as_nop
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main (void)
1953 {
1954 static int test_array [1 - 2 * !(($2) < 0)];
1955 test_array [0] = 0;
1956 return test_array [0];
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"
1963 then :
1964 ac_hi=-1 ac_mid=-1
1965 while :; do
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 int
1970 main (void)
1971 {
1972 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1973 test_array [0] = 0;
1974 return test_array [0];
1975
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"
1981 then :
1982 ac_lo=$ac_mid; break
1983 else $as_nop
1984 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1985 if test $ac_mid -le $ac_hi; then
1986 ac_lo= ac_hi=
1987 break
1988 fi
1989 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1992 done
1993 else $as_nop
1994 ac_lo= ac_hi=
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1999 # Binary search between lo and hi bounds.
2000 while test "x$ac_lo" != "x$ac_hi"; do
2001 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main (void)
2007 {
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 test_array [0] = 0;
2010 return test_array [0];
2011
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"
2017 then :
2018 ac_hi=$ac_mid
2019 else $as_nop
2020 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2023 done
2024 case $ac_lo in #((
2025 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026 '') ac_retval=1 ;;
2027 esac
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 static long int longval (void) { return $2; }
2033 static unsigned long int ulongval (void) { return $2; }
2034 #include <stdio.h>
2035 #include <stdlib.h>
2036 int
2037 main (void)
2038 {
2039
2040 FILE *f = fopen ("conftest.val", "w");
2041 if (! f)
2042 return 1;
2043 if (($2) < 0)
2044 {
2045 long int i = longval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%ld", i);
2049 }
2050 else
2051 {
2052 unsigned long int i = ulongval ();
2053 if (i != ($2))
2054 return 1;
2055 fprintf (f, "%lu", i);
2056 }
2057 /* Do not output a trailing newline, as this causes \r\n confusion
2058 on some platforms. */
2059 return ferror (f) || fclose (f) != 0;
2060
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_run "$LINENO"
2066 then :
2067 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2068 else $as_nop
2069 ac_retval=1
2070 fi
2071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2072 conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 rm -f conftest.val
2074
2075 fi
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 as_fn_set_status $ac_retval
2078
2079 } # ac_fn_c_compute_int
2080
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 printf %s "checking for $2... " >&6; }
2090 if eval test \${$3+y}
2091 then :
2092 printf %s "(cached) " >&6
2093 else $as_nop
2094 eval "$3=no"
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 int
2099 main (void)
2100 {
2101 if (sizeof ($2))
2102 return 0;
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"
2108 then :
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 $4
2112 int
2113 main (void)
2114 {
2115 if (sizeof (($2)))
2116 return 0;
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"
2122 then :
2123
2124 else $as_nop
2125 eval "$3=yes"
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 fi
2131 eval ac_res=\$$3
2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 printf "%s\n" "$ac_res" >&6; }
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135
2136 } # ac_fn_c_check_type
2137
2138 # ac_fn_c_try_cpp LINENO
2139 # ----------------------
2140 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_c_try_cpp ()
2142 {
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 if { { ac_try="$ac_cpp conftest.$ac_ext"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 printf "%s\n" "$ac_try_echo"; } >&5
2151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } > conftest.i && {
2160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2161 test ! -s conftest.err
2162 }
2163 then :
2164 ac_retval=0
2165 else $as_nop
2166 printf "%s\n" "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170 fi
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 as_fn_set_status $ac_retval
2173
2174 } # ac_fn_c_try_cpp
2175 ac_configure_args_raw=
2176 for ac_arg
2177 do
2178 case $ac_arg in
2179 *\'*)
2180 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 as_fn_append ac_configure_args_raw " '$ac_arg'"
2183 done
2184
2185 case $ac_configure_args_raw in
2186 *$as_nl*)
2187 ac_safe_unquote= ;;
2188 *)
2189 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2190 ac_unsafe_a="$ac_unsafe_z#~"
2191 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2192 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2193 esac
2194
2195 cat >config.log <<_ACEOF
2196 This file contains any messages produced by compilers while
2197 running configure, to aid debugging if configure makes a mistake.
2198
2199 It was created by lame $as_me 3.101, which was
2200 generated by GNU Autoconf 2.71. Invocation command line was
2201
2202 $ $0$ac_configure_args_raw
2203
2204 _ACEOF
2205 exec 5>>config.log
2206 {
2207 cat <<_ASUNAME
2208 ## --------- ##
2209 ## Platform. ##
2210 ## --------- ##
2211
2212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217
2218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2220
2221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2224 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2228
2229 _ASUNAME
2230
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234 IFS=$as_save_IFS
2235 case $as_dir in #(((
2236 '') as_dir=./ ;;
2237 */) ;;
2238 *) as_dir=$as_dir/ ;;
2239 esac
2240 printf "%s\n" "PATH: $as_dir"
2241 done
2242 IFS=$as_save_IFS
2243
2244 } >&5
2245
2246 cat >&5 <<_ACEOF
2247
2248
2249 ## ----------- ##
2250 ## Core tests. ##
2251 ## ----------- ##
2252
2253 _ACEOF
2254
2255
2256 # Keep a trace of the command line.
2257 # Strip out --no-create and --no-recursion so they do not pile up.
2258 # Strip out --silent because we don't want to record it for future runs.
2259 # Also quote any args containing shell meta-characters.
2260 # Make two passes to allow for proper duplicate-argument suppression.
2261 ac_configure_args=
2262 ac_configure_args0=
2263 ac_configure_args1=
2264 ac_must_keep_next=false
2265 for ac_pass in 1 2
2266 do
2267 for ac_arg
2268 do
2269 case $ac_arg in
2270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272 | -silent | --silent | --silen | --sile | --sil)
2273 continue ;;
2274 *\'*)
2275 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 esac
2277 case $ac_pass in
2278 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2279 2)
2280 as_fn_append ac_configure_args1 " '$ac_arg'"
2281 if test $ac_must_keep_next = true; then
2282 ac_must_keep_next=false # Got value, back to normal.
2283 else
2284 case $ac_arg in
2285 *=* | --config-cache | -C | -disable-* | --disable-* \
2286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288 | -with-* | --with-* | -without-* | --without-* | --x)
2289 case "$ac_configure_args0 " in
2290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291 esac
2292 ;;
2293 -* ) ac_must_keep_next=true ;;
2294 esac
2295 fi
2296 as_fn_append ac_configure_args " '$ac_arg'"
2297 ;;
2298 esac
2299 done
2300 done
2301 { ac_configure_args0=; unset ac_configure_args0;}
2302 { ac_configure_args1=; unset ac_configure_args1;}
2303
2304 # When interrupted or exit'd, cleanup temporary files, and complete
2305 # config.log. We remove comments because anyway the quotes in there
2306 # would cause problems or look ugly.
2307 # WARNING: Use '\'' to represent an apostrophe within the trap.
2308 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309 trap 'exit_status=$?
2310 # Sanitize IFS.
2311 IFS=" "" $as_nl"
2312 # Save into config.log some information that might help in debugging.
2313 {
2314 echo
2315
2316 printf "%s\n" "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319 echo
2320 # The following way of writing the cache mishandles newlines in values,
2321 (
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in #(
2325 *${as_nl}*)
2326 case $ac_var in #(
2327 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329 esac
2330 case $ac_var in #(
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2334 esac ;;
2335 esac
2336 done
2337 (set) 2>&1 |
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
2340 sed -n \
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343 ;; #(
2344 *)
2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346 ;;
2347 esac |
2348 sort
2349 )
2350 echo
2351
2352 printf "%s\n" "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355 echo
2356 for ac_var in $ac_subst_vars
2357 do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 printf "%s\n" "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2365
2366 if test -n "$ac_subst_files"; then
2367 printf "%s\n" "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370 echo
2371 for ac_var in $ac_subst_files
2372 do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in
2375 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 esac
2377 printf "%s\n" "$ac_var='\''$ac_val'\''"
2378 done | sort
2379 echo
2380 fi
2381
2382 if test -s confdefs.h; then
2383 printf "%s\n" "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386 echo
2387 cat confdefs.h
2388 echo
2389 fi
2390 test "$ac_signal" != 0 &&
2391 printf "%s\n" "$as_me: caught signal $ac_signal"
2392 printf "%s\n" "$as_me: exit $exit_status"
2393 } >&5
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396 exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 printf "%s\n" "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2411
2412 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2413
2414 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2415
2416 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2417
2418 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2419
2420 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2421
2422
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2425 if test -n "$CONFIG_SITE"; then
2426 ac_site_files="$CONFIG_SITE"
2427 elif test "x$prefix" != xNONE; then
2428 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2429 else
2430 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2431 fi
2432
2433 for ac_site_file in $ac_site_files
2434 do
2435 case $ac_site_file in #(
2436 */*) :
2437 ;; #(
2438 *) :
2439 ac_site_file=./$ac_site_file ;;
2440 esac
2441 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2443 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2444 sed 's/^/| /' "$ac_site_file" >&5
2445 . "$ac_site_file" \
2446 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2448 as_fn_error $? "failed to load site script $ac_site_file
2449 See \`config.log' for more details" "$LINENO" 5; }
2450 fi
2451 done
2452
2453 if test -r "$cache_file"; then
2454 # Some versions of bash will fail to source /dev/null (special files
2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2459 case $cache_file in
2460 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2461 *) . "./$cache_file";;
2462 esac
2463 fi
2464 else
2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2467 >$cache_file
2468 fi
2469
2470 # Test code for whether the C compiler supports C89 (global declarations)
2471 ac_c_conftest_c89_globals='
2472 /* Does the compiler advertise C89 conformance?
2473 Do not test the value of __STDC__, because some compilers set it to 0
2474 while being otherwise adequately conformant. */
2475 #if !defined __STDC__
2476 # error "Compiler does not advertise C89 conformance"
2477 #endif
2478
2479 #include <stddef.h>
2480 #include <stdarg.h>
2481 struct stat;
2482 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2483 struct buf { int x; };
2484 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2485 static char *e (p, i)
2486 char **p;
2487 int i;
2488 {
2489 return p[i];
2490 }
2491 static char *f (char * (*g) (char **, int), char **p, ...)
2492 {
2493 char *s;
2494 va_list v;
2495 va_start (v,p);
2496 s = g (p, va_arg (v,int));
2497 va_end (v);
2498 return s;
2499 }
2500
2501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2502 function prototypes and stuff, but not \xHH hex character constants.
2503 These do not provoke an error unfortunately, instead are silently treated
2504 as an "x". The following induces an error, until -std is added to get
2505 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2506 array size at least. It is necessary to write \x00 == 0 to get something
2507 that is true only with -std. */
2508 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2509
2510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2511 inside strings and character constants. */
2512 #define FOO(x) '\''x'\''
2513 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2514
2515 int test (int i, double x);
2516 struct s1 {int (*f) (int a);};
2517 struct s2 {int (*f) (double a);};
2518 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2519 int, int);'
2520
2521 # Test code for whether the C compiler supports C89 (body of main).
2522 ac_c_conftest_c89_main='
2523 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2524 '
2525
2526 # Test code for whether the C compiler supports C99 (global declarations)
2527 ac_c_conftest_c99_globals='
2528 // Does the compiler advertise C99 conformance?
2529 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2530 # error "Compiler does not advertise C99 conformance"
2531 #endif
2532
2533 #include <stdbool.h>
2534 extern int puts (const char *);
2535 extern int printf (const char *, ...);
2536 extern int dprintf (int, const char *, ...);
2537 extern void *malloc (size_t);
2538
2539 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2540 // dprintf is used instead of fprintf to avoid needing to declare
2541 // FILE and stderr.
2542 #define debug(...) dprintf (2, __VA_ARGS__)
2543 #define showlist(...) puts (#__VA_ARGS__)
2544 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2545 static void
2546 test_varargs_macros (void)
2547 {
2548 int x = 1234;
2549 int y = 5678;
2550 debug ("Flag");
2551 debug ("X = %d\n", x);
2552 showlist (The first, second, and third items.);
2553 report (x>y, "x is %d but y is %d", x, y);
2554 }
2555
2556 // Check long long types.
2557 #define BIG64 18446744073709551615ull
2558 #define BIG32 4294967295ul
2559 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2560 #if !BIG_OK
2561 #error "your preprocessor is broken"
2562 #endif
2563 #if BIG_OK
2564 #else
2565 #error "your preprocessor is broken"
2566 #endif
2567 static long long int bignum = -9223372036854775807LL;
2568 static unsigned long long int ubignum = BIG64;
2569
2570 struct incomplete_array
2571 {
2572 int datasize;
2573 double data[];
2574 };
2575
2576 struct named_init {
2577 int number;
2578 const wchar_t *name;
2579 double average;
2580 };
2581
2582 typedef const char *ccp;
2583
2584 static inline int
2585 test_restrict (ccp restrict text)
2586 {
2587 // See if C++-style comments work.
2588 // Iterate through items via the restricted pointer.
2589 // Also check for declarations in for loops.
2590 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2591 continue;
2592 return 0;
2593 }
2594
2595 // Check varargs and va_copy.
2596 static bool
2597 test_varargs (const char *format, ...)
2598 {
2599 va_list args;
2600 va_start (args, format);
2601 va_list args_copy;
2602 va_copy (args_copy, args);
2603
2604 const char *str = "";
2605 int number = 0;
2606 float fnumber = 0;
2607
2608 while (*format)
2609 {
2610 switch (*format++)
2611 {
2612 case '\''s'\'': // string
2613 str = va_arg (args_copy, const char *);
2614 break;
2615 case '\''d'\'': // int
2616 number = va_arg (args_copy, int);
2617 break;
2618 case '\''f'\'': // float
2619 fnumber = va_arg (args_copy, double);
2620 break;
2621 default:
2622 break;
2623 }
2624 }
2625 va_end (args_copy);
2626 va_end (args);
2627
2628 return *str && number && fnumber;
2629 }
2630 '
2631
2632 # Test code for whether the C compiler supports C99 (body of main).
2633 ac_c_conftest_c99_main='
2634 // Check bool.
2635 _Bool success = false;
2636 success |= (argc != 0);
2637
2638 // Check restrict.
2639 if (test_restrict ("String literal") == 0)
2640 success = true;
2641 char *restrict newvar = "Another string";
2642
2643 // Check varargs.
2644 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2645 test_varargs_macros ();
2646
2647 // Check flexible array members.
2648 struct incomplete_array *ia =
2649 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2650 ia->datasize = 10;
2651 for (int i = 0; i < ia->datasize; ++i)
2652 ia->data[i] = i * 1.234;
2653
2654 // Check named initializers.
2655 struct named_init ni = {
2656 .number = 34,
2657 .name = L"Test wide string",
2658 .average = 543.34343,
2659 };
2660
2661 ni.number = 58;
2662
2663 int dynamic_array[ni.number];
2664 dynamic_array[0] = argv[0][0];
2665 dynamic_array[ni.number - 1] = 543;
2666
2667 // work around unused variable warnings
2668 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2669 || dynamic_array[ni.number - 1] != 543);
2670 '
2671
2672 # Test code for whether the C compiler supports C11 (global declarations)
2673 ac_c_conftest_c11_globals='
2674 // Does the compiler advertise C11 conformance?
2675 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2676 # error "Compiler does not advertise C11 conformance"
2677 #endif
2678
2679 // Check _Alignas.
2680 char _Alignas (double) aligned_as_double;
2681 char _Alignas (0) no_special_alignment;
2682 extern char aligned_as_int;
2683 char _Alignas (0) _Alignas (int) aligned_as_int;
2684
2685 // Check _Alignof.
2686 enum
2687 {
2688 int_alignment = _Alignof (int),
2689 int_array_alignment = _Alignof (int[100]),
2690 char_alignment = _Alignof (char)
2691 };
2692 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2693
2694 // Check _Noreturn.
2695 int _Noreturn does_not_return (void) { for (;;) continue; }
2696
2697 // Check _Static_assert.
2698 struct test_static_assert
2699 {
2700 int x;
2701 _Static_assert (sizeof (int) <= sizeof (long int),
2702 "_Static_assert does not work in struct");
2703 long int y;
2704 };
2705
2706 // Check UTF-8 literals.
2707 #define u8 syntax error!
2708 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2709
2710 // Check duplicate typedefs.
2711 typedef long *long_ptr;
2712 typedef long int *long_ptr;
2713 typedef long_ptr long_ptr;
2714
2715 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2716 struct anonymous
2717 {
2718 union {
2719 struct { int i; int j; };
2720 struct { int k; long int l; } w;
2721 };
2722 int m;
2723 } v1;
2724 '
2725
2726 # Test code for whether the C compiler supports C11 (body of main).
2727 ac_c_conftest_c11_main='
2728 _Static_assert ((offsetof (struct anonymous, i)
2729 == offsetof (struct anonymous, w.k)),
2730 "Anonymous union alignment botch");
2731 v1.i = 2;
2732 v1.w.k = 5;
2733 ok |= v1.i != 5;
2734 '
2735
2736 # Test code for whether the C compiler supports C11 (complete).
2737 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2738 ${ac_c_conftest_c99_globals}
2739 ${ac_c_conftest_c11_globals}
2740
2741 int
2742 main (int argc, char **argv)
2743 {
2744 int ok = 0;
2745 ${ac_c_conftest_c89_main}
2746 ${ac_c_conftest_c99_main}
2747 ${ac_c_conftest_c11_main}
2748 return ok;
2749 }
2750 "
2751
2752 # Test code for whether the C compiler supports C99 (complete).
2753 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2754 ${ac_c_conftest_c99_globals}
2755
2756 int
2757 main (int argc, char **argv)
2758 {
2759 int ok = 0;
2760 ${ac_c_conftest_c89_main}
2761 ${ac_c_conftest_c99_main}
2762 return ok;
2763 }
2764 "
2765
2766 # Test code for whether the C compiler supports C89 (complete).
2767 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2768
2769 int
2770 main (int argc, char **argv)
2771 {
2772 int ok = 0;
2773 ${ac_c_conftest_c89_main}
2774 return ok;
2775 }
2776 "
2777
2778 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2779 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2780 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2781 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2782 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2783 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2784 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2785 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2786 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2787 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2788 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2789 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2790
2791 # Auxiliary files required by this configure script.
2792 ac_aux_files="config.rpath ltmain.sh compile missing install-sh config.guess config.sub"
2793
2794 # Locations in which to look for auxiliary files.
2795 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2796
2797 # Search for a directory containing all of the required auxiliary files,
2798 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2799 # If we don't find one directory that contains all the files we need,
2800 # we report the set of missing files from the *first* directory in
2801 # $ac_aux_dir_candidates and give up.
2802 ac_missing_aux_files=""
2803 ac_first_candidate=:
2804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 as_found=false
2807 for as_dir in $ac_aux_dir_candidates
2808 do
2809 IFS=$as_save_IFS
2810 case $as_dir in #(((
2811 '') as_dir=./ ;;
2812 */) ;;
2813 *) as_dir=$as_dir/ ;;
2814 esac
2815 as_found=:
2816
2817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2818 ac_aux_dir_found=yes
2819 ac_install_sh=
2820 for ac_aux in $ac_aux_files
2821 do
2822 # As a special case, if "install-sh" is required, that requirement
2823 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2824 # and $ac_install_sh is set appropriately for whichever one is found.
2825 if test x"$ac_aux" = x"install-sh"
2826 then
2827 if test -f "${as_dir}install-sh"; then
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2829 ac_install_sh="${as_dir}install-sh -c"
2830 elif test -f "${as_dir}install.sh"; then
2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2832 ac_install_sh="${as_dir}install.sh -c"
2833 elif test -f "${as_dir}shtool"; then
2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2835 ac_install_sh="${as_dir}shtool install -c"
2836 else
2837 ac_aux_dir_found=no
2838 if $ac_first_candidate; then
2839 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2840 else
2841 break
2842 fi
2843 fi
2844 else
2845 if test -f "${as_dir}${ac_aux}"; then
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2847 else
2848 ac_aux_dir_found=no
2849 if $ac_first_candidate; then
2850 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2851 else
2852 break
2853 fi
2854 fi
2855 fi
2856 done
2857 if test "$ac_aux_dir_found" = yes; then
2858 ac_aux_dir="$as_dir"
2859 break
2860 fi
2861 ac_first_candidate=false
2862
2863 as_found=false
2864 done
2865 IFS=$as_save_IFS
2866 if $as_found
2867 then :
2868
2869 else $as_nop
2870 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2871 fi
2872
2873
2874 # These three variables are undocumented and unsupported,
2875 # and are intended to be withdrawn in a future Autoconf release.
2876 # They can cause serious problems if a builder's source tree is in a directory
2877 # whose full name contains unusual characters.
2878 if test -f "${ac_aux_dir}config.guess"; then
2879 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2880 fi
2881 if test -f "${ac_aux_dir}config.sub"; then
2882 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2883 fi
2884 if test -f "$ac_aux_dir/configure"; then
2885 ac_configure="$SHELL ${ac_aux_dir}configure"
2886 fi
2887
2888 # Check that the precious variables saved in the cache have kept the same
2889 # value.
2890 ac_cache_corrupted=false
2891 for ac_var in $ac_precious_vars; do
2892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2893 eval ac_new_set=\$ac_env_${ac_var}_set
2894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2895 eval ac_new_val=\$ac_env_${ac_var}_value
2896 case $ac_old_set,$ac_new_set in
2897 set,)
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2899 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2901 ,set)
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2903 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2904 ac_cache_corrupted=: ;;
2905 ,);;
2906 *)
2907 if test "x$ac_old_val" != "x$ac_new_val"; then
2908 # differences in whitespace do not lead to failure.
2909 ac_old_val_w=`echo x $ac_old_val`
2910 ac_new_val_w=`echo x $ac_new_val`
2911 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2913 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2914 ac_cache_corrupted=:
2915 else
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2917 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2918 eval $ac_var=\$ac_old_val
2919 fi
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2921 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2923 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2924 fi;;
2925 esac
2926 # Pass precious variables to config.status.
2927 if test "$ac_new_set" = set; then
2928 case $ac_new_val in
2929 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2930 *) ac_arg=$ac_var=$ac_new_val ;;
2931 esac
2932 case " $ac_configure_args " in
2933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2934 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2935 esac
2936 fi
2937 done
2938 if $ac_cache_corrupted; then
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2942 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2943 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2944 and start over" "$LINENO" 5
2945 fi
2946 ## -------------------- ##
2947 ## Main body of script. ##
2948 ## -------------------- ##
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955
2956
2957
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964
2965
2966
2967
2968
2969 # Make sure we can run config.sub.
2970 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2971 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2972
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2974 printf %s "checking build system type... " >&6; }
2975 if test ${ac_cv_build+y}
2976 then :
2977 printf %s "(cached) " >&6
2978 else $as_nop
2979 ac_build_alias=$build_alias
2980 test "x$ac_build_alias" = x &&
2981 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2982 test "x$ac_build_alias" = x &&
2983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2984 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2985 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2986
2987 fi
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2989 printf "%s\n" "$ac_cv_build" >&6; }
2990 case $ac_cv_build in
2991 *-*-*) ;;
2992 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2993 esac
2994 build=$ac_cv_build
2995 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_build
2997 shift
2998 build_cpu=$1
2999 build_vendor=$2
3000 shift; shift
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3003 build_os=$*
3004 IFS=$ac_save_IFS
3005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3006
3007
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3009 printf %s "checking host system type... " >&6; }
3010 if test ${ac_cv_host+y}
3011 then :
3012 printf %s "(cached) " >&6
3013 else $as_nop
3014 if test "x$host_alias" = x; then
3015 ac_cv_host=$ac_cv_build
3016 else
3017 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3018 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3019 fi
3020
3021 fi
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3023 printf "%s\n" "$ac_cv_host" >&6; }
3024 case $ac_cv_host in
3025 *-*-*) ;;
3026 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3027 esac
3028 host=$ac_cv_host
3029 ac_save_IFS=$IFS; IFS='-'
3030 set x $ac_cv_host
3031 shift
3032 host_cpu=$1
3033 host_vendor=$2
3034 shift; shift
3035 # Remember, the first character of IFS is used to create $*,
3036 # except with old shells:
3037 host_os=$*
3038 IFS=$ac_save_IFS
3039 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3040
3041
3042
3043 am__api_version='1.16'
3044
3045
3046 # Find a good install program. We prefer a C program (faster),
3047 # so one script is as good as another. But avoid the broken or
3048 # incompatible versions:
3049 # SysV /etc/install, /usr/sbin/install
3050 # SunOS /usr/etc/install
3051 # IRIX /sbin/install
3052 # AIX /bin/install
3053 # AmigaOS /C/install, which installs bootblocks on floppy discs
3054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3057 # OS/2's system install, which has a completely different semantic
3058 # ./install, which can be erroneously created by make from ./install.sh.
3059 # Reject install programs that cannot install multiple files.
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3061 printf %s "checking for a BSD-compatible install... " >&6; }
3062 if test -z "$INSTALL"; then
3063 if test ${ac_cv_path_install+y}
3064 then :
3065 printf %s "(cached) " >&6
3066 else $as_nop
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 case $as_dir in #(((
3072 '') as_dir=./ ;;
3073 */) ;;
3074 *) as_dir=$as_dir/ ;;
3075 esac
3076 # Account for fact that we put trailing slashes in our PATH walk.
3077 case $as_dir in #((
3078 ./ | /[cC]/* | \
3079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3081 /usr/ucb/* ) ;;
3082 *)
3083 # OSF1 and SCO ODT 3.0 have their own names for install.
3084 # Don't use installbsd from OSF since it installs stuff as root
3085 # by default.
3086 for ac_prog in ginstall scoinst install; do
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3089 if test $ac_prog = install &&
3090 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3091 # AIX install. It has an incompatible calling convention.
3092 :
3093 elif test $ac_prog = install &&
3094 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # program-specific install script used by HP pwplus--don't use.
3096 :
3097 else
3098 rm -rf conftest.one conftest.two conftest.dir
3099 echo one > conftest.one
3100 echo two > conftest.two
3101 mkdir conftest.dir
3102 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3103 test -s conftest.one && test -s conftest.two &&
3104 test -s conftest.dir/conftest.one &&
3105 test -s conftest.dir/conftest.two
3106 then
3107 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3108 break 3
3109 fi
3110 fi
3111 fi
3112 done
3113 done
3114 ;;
3115 esac
3116
3117 done
3118 IFS=$as_save_IFS
3119
3120 rm -rf conftest.one conftest.two conftest.dir
3121
3122 fi
3123 if test ${ac_cv_path_install+y}; then
3124 INSTALL=$ac_cv_path_install
3125 else
3126 # As a last resort, use the slow shell script. Don't cache a
3127 # value for INSTALL within a source directory, because that will
3128 # break other packages using the cache if that directory is
3129 # removed, or if the value is a relative name.
3130 INSTALL=$ac_install_sh
3131 fi
3132 fi
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3134 printf "%s\n" "$INSTALL" >&6; }
3135
3136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137 # It thinks the first close brace ends the variable substitution.
3138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3139
3140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3141
3142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3143
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3145 printf %s "checking whether build environment is sane... " >&6; }
3146 # Reject unsafe characters in $srcdir or the absolute working directory
3147 # name. Accept space and tab only in the latter.
3148 am_lf='
3149 '
3150 case `pwd` in
3151 *[\\\"\#\$\&\'\`$am_lf]*)
3152 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3153 esac
3154 case $srcdir in
3155 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3156 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3157 esac
3158
3159 # Do 'set' in a subshell so we don't clobber the current shell's
3160 # arguments. Must try -L first in case configure is actually a
3161 # symlink; some systems play weird games with the mod time of symlinks
3162 # (eg FreeBSD returns the mod time of the symlink's containing
3163 # directory).
3164 if (
3165 am_has_slept=no
3166 for am_try in 1 2; do
3167 echo "timestamp, slept: $am_has_slept" > conftest.file
3168 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3169 if test "$*" = "X"; then
3170 # -L didn't work.
3171 set X `ls -t "$srcdir/configure" conftest.file`
3172 fi
3173 if test "$*" != "X $srcdir/configure conftest.file" \
3174 && test "$*" != "X conftest.file $srcdir/configure"; then
3175
3176 # If neither matched, then we have a broken ls. This can happen
3177 # if, for instance, CONFIG_SHELL is bash and it inherits a
3178 # broken ls alias from the environment. This has actually
3179 # happened. Such a system could not be considered "sane".
3180 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3181 alias in your environment" "$LINENO" 5
3182 fi
3183 if test "$2" = conftest.file || test $am_try -eq 2; then
3184 break
3185 fi
3186 # Just in case.
3187 sleep 1
3188 am_has_slept=yes
3189 done
3190 test "$2" = conftest.file
3191 )
3192 then
3193 # Ok.
3194 :
3195 else
3196 as_fn_error $? "newly created file is older than distributed files!
3197 Check your system clock" "$LINENO" 5
3198 fi
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 printf "%s\n" "yes" >&6; }
3201 # If we didn't sleep, we still need to ensure time stamps of config.status and
3202 # generated files are strictly newer.
3203 am_sleep_pid=
3204 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3205 ( sleep 1 ) &
3206 am_sleep_pid=$!
3207 fi
3208
3209 rm -f conftest.file
3210
3211 test "$program_prefix" != NONE &&
3212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3213 # Use a double $ so make ignores it.
3214 test "$program_suffix" != NONE &&
3215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3216 # Double any \ or $.
3217 # By default was `s,x,x', remove it if useless.
3218 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3219 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3220
3221
3222 # Expand $ac_aux_dir to an absolute path.
3223 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3224
3225
3226 if test x"${MISSING+set}" != xset; then
3227 MISSING="\${SHELL} '$am_aux_dir/missing'"
3228 fi
3229 # Use eval to expand $SHELL
3230 if eval "$MISSING --is-lightweight"; then
3231 am_missing_run="$MISSING "
3232 else
3233 am_missing_run=
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3235 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3236 fi
3237
3238 if test x"${install_sh+set}" != xset; then
3239 case $am_aux_dir in
3240 *\ * | *\ *)
3241 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3242 *)
3243 install_sh="\${SHELL} $am_aux_dir/install-sh"
3244 esac
3245 fi
3246
3247 # Installed binaries are usually stripped using 'strip' when the user
3248 # run "make install-strip". However 'strip' might not be the right
3249 # tool to use in cross-compilation environments, therefore Automake
3250 # will honor the 'STRIP' environment variable to overrule this program.
3251 if test "$cross_compiling" != no; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}strip; ac_word=$2
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 printf %s "checking for $ac_word... " >&6; }
3257 if test ${ac_cv_prog_STRIP+y}
3258 then :
3259 printf %s "(cached) " >&6
3260 else $as_nop
3261 if test -n "$STRIP"; then
3262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 case $as_dir in #(((
3269 '') as_dir=./ ;;
3270 */) ;;
3271 *) as_dir=$as_dir/ ;;
3272 esac
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 STRIP=$ac_cv_prog_STRIP
3286 if test -n "$STRIP"; then
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3288 printf "%s\n" "$STRIP" >&6; }
3289 else
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 printf "%s\n" "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$ac_cv_prog_STRIP"; then
3297 ac_ct_STRIP=$STRIP
3298 # Extract the first word of "strip", so it can be a program name with args.
3299 set dummy strip; ac_word=$2
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 printf %s "checking for $ac_word... " >&6; }
3302 if test ${ac_cv_prog_ac_ct_STRIP+y}
3303 then :
3304 printf %s "(cached) " >&6
3305 else $as_nop
3306 if test -n "$ac_ct_STRIP"; then
3307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 case $as_dir in #(((
3314 '') as_dir=./ ;;
3315 */) ;;
3316 *) as_dir=$as_dir/ ;;
3317 esac
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324 done
3325 done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 printf "%s\n" "$ac_ct_STRIP" >&6; }
3334 else
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 printf "%s\n" "no" >&6; }
3337 fi
3338
3339 if test "x$ac_ct_STRIP" = x; then
3340 STRIP=":"
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348 STRIP=$ac_ct_STRIP
3349 fi
3350 else
3351 STRIP="$ac_cv_prog_STRIP"
3352 fi
3353
3354 fi
3355 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3356
3357
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3359 printf %s "checking for a race-free mkdir -p... " >&6; }
3360 if test -z "$MKDIR_P"; then
3361 if test ${ac_cv_path_mkdir+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3367 do
3368 IFS=$as_save_IFS
3369 case $as_dir in #(((
3370 '') as_dir=./ ;;
3371 */) ;;
3372 *) as_dir=$as_dir/ ;;
3373 esac
3374 for ac_prog in mkdir gmkdir; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3377 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3378 'mkdir ('*'coreutils) '* | \
3379 'BusyBox '* | \
3380 'mkdir (fileutils) '4.1*)
3381 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3382 break 3;;
3383 esac
3384 done
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390
3391 test -d ./--version && rmdir ./--version
3392 if test ${ac_cv_path_mkdir+y}; then
3393 MKDIR_P="$ac_cv_path_mkdir -p"
3394 else
3395 # As a last resort, use the slow shell script. Don't cache a
3396 # value for MKDIR_P within a source directory, because that will
3397 # break other packages using the cache if that directory is
3398 # removed, or if the value is a relative name.
3399 MKDIR_P="$ac_install_sh -d"
3400 fi
3401 fi
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3403 printf "%s\n" "$MKDIR_P" >&6; }
3404
3405 for ac_prog in gawk mawk nawk awk
3406 do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 printf %s "checking for $ac_word... " >&6; }
3411 if test ${ac_cv_prog_AWK+y}
3412 then :
3413 printf %s "(cached) " >&6
3414 else $as_nop
3415 if test -n "$AWK"; then
3416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 case $as_dir in #(((
3423 '') as_dir=./ ;;
3424 */) ;;
3425 *) as_dir=$as_dir/ ;;
3426 esac
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_AWK="$ac_prog"
3430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 AWK=$ac_cv_prog_AWK
3440 if test -n "$AWK"; then
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3442 printf "%s\n" "$AWK" >&6; }
3443 else
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 printf "%s\n" "no" >&6; }
3446 fi
3447
3448
3449 test -n "$AWK" && break
3450 done
3451
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3453 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3454 set x ${MAKE-make}
3455 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3456 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3457 then :
3458 printf %s "(cached) " >&6
3459 else $as_nop
3460 cat >conftest.make <<\_ACEOF
3461 SHELL = /bin/sh
3462 all:
3463 @echo '@@@%%%=$(MAKE)=@@@%%%'
3464 _ACEOF
3465 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3466 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3467 *@@@%%%=?*=@@@%%%*)
3468 eval ac_cv_prog_make_${ac_make}_set=yes;;
3469 *)
3470 eval ac_cv_prog_make_${ac_make}_set=no;;
3471 esac
3472 rm -f conftest.make
3473 fi
3474 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476 printf "%s\n" "yes" >&6; }
3477 SET_MAKE=
3478 else
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 printf "%s\n" "no" >&6; }
3481 SET_MAKE="MAKE=${MAKE-make}"
3482 fi
3483
3484 rm -rf .tst 2>/dev/null
3485 mkdir .tst 2>/dev/null
3486 if test -d .tst; then
3487 am__leading_dot=.
3488 else
3489 am__leading_dot=_
3490 fi
3491 rmdir .tst 2>/dev/null
3492
3493 # Check whether --enable-silent-rules was given.
3494 if test ${enable_silent_rules+y}
3495 then :
3496 enableval=$enable_silent_rules;
3497 fi
3498
3499 case $enable_silent_rules in # (((
3500 yes) AM_DEFAULT_VERBOSITY=0;;
3501 no) AM_DEFAULT_VERBOSITY=1;;
3502 *) AM_DEFAULT_VERBOSITY=1;;
3503 esac
3504 am_make=${MAKE-make}
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506 printf %s "checking whether $am_make supports nested variables... " >&6; }
3507 if test ${am_cv_make_support_nested_variables+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else $as_nop
3511 if printf "%s\n" 'TRUE=$(BAR$(V))
3512 BAR0=false
3513 BAR1=true
3514 V=1
3515 am__doit:
3516 @$(TRUE)
3517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518 am_cv_make_support_nested_variables=yes
3519 else
3520 am_cv_make_support_nested_variables=no
3521 fi
3522 fi
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3524 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3525 if test $am_cv_make_support_nested_variables = yes; then
3526 AM_V='$(V)'
3527 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3528 else
3529 AM_V=$AM_DEFAULT_VERBOSITY
3530 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3531 fi
3532 AM_BACKSLASH='\'
3533
3534 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3535 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3536 # is not polluted with repeated "-I."
3537 am__isrc=' -I$(srcdir)'
3538 # test to see if srcdir already configured
3539 if test -f $srcdir/config.status; then
3540 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3541 fi
3542 fi
3543
3544 # test whether we have cygpath
3545 if test -z "$CYGPATH_W"; then
3546 if (cygpath --version) >/dev/null 2>/dev/null; then
3547 CYGPATH_W='cygpath -w'
3548 else
3549 CYGPATH_W=echo
3550 fi
3551 fi
3552
3553
3554 # Define the identity of the package.
3555 PACKAGE='lame'
3556 VERSION='3.101'
3557
3558
3559 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3560
3561
3562 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3563
3564 # Some tools Automake needs.
3565
3566 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3567
3568
3569 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3570
3571
3572 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3573
3574
3575 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3576
3577
3578 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3579
3580 # For better backward compatibility. To be removed once Automake 1.9.x
3581 # dies out for good. For more background, see:
3582 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3583 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3584 mkdir_p='$(MKDIR_P)'
3585
3586 # We need awk for the "check" target (and possibly the TAP driver). The
3587 # system "awk" is bad on some platforms.
3588 # Always define AMTAR for backward compatibility. Yes, it's still used
3589 # in the wild :-( We should find a proper way to deprecate it ...
3590 AMTAR='$${TAR-tar}'
3591
3592
3593 # We'll loop over all known methods to create a tar archive until one works.
3594 _am_tools='gnutar pax cpio none'
3595
3596 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3597
3598
3599
3600
3601
3602 # Variables for tags utilities; see am/tags.am
3603 if test -z "$CTAGS"; then
3604 CTAGS=ctags
3605 fi
3606
3607 if test -z "$ETAGS"; then
3608 ETAGS=etags
3609 fi
3610
3611 if test -z "$CSCOPE"; then
3612 CSCOPE=cscope
3613 fi
3614
3615
3616
3617 # POSIX will say in a future version that running "rm -f" with no argument
3618 # is OK; and we want to be able to make that assumption in our Makefile
3619 # recipes. So use an aggressive probe to check that the usage we want is
3620 # actually supported "in the wild" to an acceptable degree.
3621 # See automake bug#10828.
3622 # To make any issue more visible, cause the running configure to be aborted
3623 # by default if the 'rm' program in use doesn't match our expectations; the
3624 # user can still override this though.
3625 if rm -f && rm -fr && rm -rf; then : OK; else
3626 cat >&2 <<'END'
3627 Oops!
3628
3629 Your 'rm' program seems unable to run without file operands specified
3630 on the command line, even when the '-f' option is present. This is contrary
3631 to the behaviour of most rm programs out there, and not conforming with
3632 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3633
3634 Please tell [email protected] about your system, including the value
3635 of your $PATH and any error possibly output before this message. This
3636 can help us improve future automake versions.
3637
3638 END
3639 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3640 echo 'Configuration will proceed anyway, since you have set the' >&2
3641 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3642 echo >&2
3643 else
3644 cat >&2 <<'END'
3645 Aborting the configuration process, to ensure you take notice of the issue.
3646
3647 You can download and install GNU coreutils to get an 'rm' implementation
3648 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3649
3650 If you want to complete the configuration process using your problematic
3651 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3652 to "yes", and re-run configure.
3653
3654 END
3655 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3656 fi
3657 fi
3658
3659 ac_config_headers="$ac_config_headers config.h"
3660
3661
3662
3663
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3665 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3666 # Check whether --enable-maintainer-mode was given.
3667 if test ${enable_maintainer_mode+y}
3668 then :
3669 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3670 else $as_nop
3671 USE_MAINTAINER_MODE=no
3672 fi
3673
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3675 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3676 if test $USE_MAINTAINER_MODE = yes; then
3677 MAINTAINER_MODE_TRUE=
3678 MAINTAINER_MODE_FALSE='#'
3679 else
3680 MAINTAINER_MODE_TRUE='#'
3681 MAINTAINER_MODE_FALSE=
3682 fi
3683
3684 MAINT=$MAINTAINER_MODE_TRUE
3685
3686
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3688 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3689 cat > confinc.mk << 'END'
3690 am__doit:
3691 @echo this is the am__doit target >confinc.out
3692 .PHONY: am__doit
3693 END
3694 am__include="#"
3695 am__quote=
3696 # BSD make does it like this.
3697 echo '.include "confinc.mk" # ignored' > confmf.BSD
3698 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3699 echo 'include confinc.mk # ignored' > confmf.GNU
3700 _am_result=no
3701 for s in GNU BSD; do
3702 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3703 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }
3707 case $?:`cat confinc.out 2>/dev/null` in #(
3708 '0:this is the am__doit target') :
3709 case $s in #(
3710 BSD) :
3711 am__include='.include' am__quote='"' ;; #(
3712 *) :
3713 am__include='include' am__quote='' ;;
3714 esac ;; #(
3715 *) :
3716 ;;
3717 esac
3718 if test "$am__include" != "#"; then
3719 _am_result="yes ($s style)"
3720 break
3721 fi
3722 done
3723 rm -f confinc.* confmf.*
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3725 printf "%s\n" "${_am_result}" >&6; }
3726
3727
3728
3729
3730
3731
3732
3733
3734 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3735 if test -n "$ac_tool_prefix"; then
3736 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 printf %s "checking for $ac_word... " >&6; }
3740 if test ${ac_cv_path_PKG_CONFIG+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
3744 case $PKG_CONFIG in
3745 [\\/]* | ?:[\\/]*)
3746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3747 ;;
3748 *)
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 case $as_dir in #(((
3754 '') as_dir=./ ;;
3755 */) ;;
3756 *) as_dir=$as_dir/ ;;
3757 esac
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3760 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 ;;
3769 esac
3770 fi
3771 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3772 if test -n "$PKG_CONFIG"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3774 printf "%s\n" "$PKG_CONFIG" >&6; }
3775 else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3778 fi
3779
3780
3781 fi
3782 if test -z "$ac_cv_path_PKG_CONFIG"; then
3783 ac_pt_PKG_CONFIG=$PKG_CONFIG
3784 # Extract the first word of "pkg-config", so it can be a program name with args.
3785 set dummy pkg-config; ac_word=$2
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 printf %s "checking for $ac_word... " >&6; }
3788 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else $as_nop
3792 case $ac_pt_PKG_CONFIG in
3793 [\\/]* | ?:[\\/]*)
3794 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3795 ;;
3796 *)
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 case $as_dir in #(((
3802 '') as_dir=./ ;;
3803 */) ;;
3804 *) as_dir=$as_dir/ ;;
3805 esac
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3808 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812 done
3813 done
3814 IFS=$as_save_IFS
3815
3816 ;;
3817 esac
3818 fi
3819 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3820 if test -n "$ac_pt_PKG_CONFIG"; then
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3822 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3823 else
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 printf "%s\n" "no" >&6; }
3826 fi
3827
3828 if test "x$ac_pt_PKG_CONFIG" = x; then
3829 PKG_CONFIG=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 PKG_CONFIG=$ac_pt_PKG_CONFIG
3838 fi
3839 else
3840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3841 fi
3842
3843 fi
3844 if test -n "$PKG_CONFIG"; then
3845 _pkg_min_version=0.9.0
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3847 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3848 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3850 printf "%s\n" "yes" >&6; }
3851 else
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 PKG_CONFIG=""
3855 fi
3856 fi
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867 DEPDIR="${am__leading_dot}deps"
3868
3869 ac_config_commands="$ac_config_commands depfiles"
3870
3871 # Check whether --enable-dependency-tracking was given.
3872 if test ${enable_dependency_tracking+y}
3873 then :
3874 enableval=$enable_dependency_tracking;
3875 fi
3876
3877 if test "x$enable_dependency_tracking" != xno; then
3878 am_depcomp="$ac_aux_dir/depcomp"
3879 AMDEPBACKSLASH='\'
3880 am__nodep='_no'
3881 fi
3882 if test "x$enable_dependency_tracking" != xno; then
3883 AMDEP_TRUE=
3884 AMDEP_FALSE='#'
3885 else
3886 AMDEP_TRUE='#'
3887 AMDEP_FALSE=
3888 fi
3889
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 printf %s "checking for $ac_word... " >&6; }
3901 if test ${ac_cv_prog_CC+y}
3902 then :
3903 printf %s "(cached) " >&6
3904 else $as_nop
3905 if test -n "$CC"; then
3906 ac_cv_prog_CC="$CC" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 case $as_dir in #(((
3913 '') as_dir=./ ;;
3914 */) ;;
3915 *) as_dir=$as_dir/ ;;
3916 esac
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923 done
3924 done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 CC=$ac_cv_prog_CC
3930 if test -n "$CC"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 printf "%s\n" "$CC" >&6; }
3933 else
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3936 fi
3937
3938
3939 fi
3940 if test -z "$ac_cv_prog_CC"; then
3941 ac_ct_CC=$CC
3942 # Extract the first word of "gcc", so it can be a program name with args.
3943 set dummy gcc; ac_word=$2
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 printf %s "checking for $ac_word... " >&6; }
3946 if test ${ac_cv_prog_ac_ct_CC+y}
3947 then :
3948 printf %s "(cached) " >&6
3949 else $as_nop
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 case $as_dir in #(((
3958 '') as_dir=./ ;;
3959 */) ;;
3960 *) as_dir=$as_dir/ ;;
3961 esac
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_ac_ct_CC="gcc"
3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3975 if test -n "$ac_ct_CC"; then
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3977 printf "%s\n" "$ac_ct_CC" >&6; }
3978 else
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 printf "%s\n" "no" >&6; }
3981 fi
3982
3983 if test "x$ac_ct_CC" = x; then
3984 CC=""
3985 else
3986 case $cross_compiling:$ac_tool_warned in
3987 yes:)
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3991 esac
3992 CC=$ac_ct_CC
3993 fi
3994 else
3995 CC="$ac_cv_prog_CC"
3996 fi
3997
3998 if test -z "$CC"; then
3999 if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}cc; ac_word=$2
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 printf %s "checking for $ac_word... " >&6; }
4004 if test ${ac_cv_prog_CC+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else $as_nop
4008 if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014 IFS=$as_save_IFS
4015 case $as_dir in #(((
4016 '') as_dir=./ ;;
4017 */) ;;
4018 *) as_dir=$as_dir/ ;;
4019 esac
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_CC="${ac_tool_prefix}cc"
4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028 IFS=$as_save_IFS
4029
4030 fi
4031 fi
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 printf "%s\n" "$CC" >&6; }
4036 else
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4039 fi
4040
4041
4042 fi
4043 fi
4044 if test -z "$CC"; then
4045 # Extract the first word of "cc", so it can be a program name with args.
4046 set dummy cc; ac_word=$2
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 printf %s "checking for $ac_word... " >&6; }
4049 if test ${ac_cv_prog_CC+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 ac_prog_rejected=no
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060 IFS=$as_save_IFS
4061 case $as_dir in #(((
4062 '') as_dir=./ ;;
4063 */) ;;
4064 *) as_dir=$as_dir/ ;;
4065 esac
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4068 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4069 ac_prog_rejected=yes
4070 continue
4071 fi
4072 ac_cv_prog_CC="cc"
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 if test $ac_prog_rejected = yes; then
4081 # We found a bogon in the path, so make sure we never use it.
4082 set dummy $ac_cv_prog_CC
4083 shift
4084 if test $# != 0; then
4085 # We chose a different compiler from the bogus one.
4086 # However, it has the same basename, so the bogon will be chosen
4087 # first if we set CC to just the basename; use the full file name.
4088 shift
4089 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4090 fi
4091 fi
4092 fi
4093 fi
4094 CC=$ac_cv_prog_CC
4095 if test -n "$CC"; then
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4097 printf "%s\n" "$CC" >&6; }
4098 else
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 printf "%s\n" "no" >&6; }
4101 fi
4102
4103
4104 fi
4105 if test -z "$CC"; then
4106 if test -n "$ac_tool_prefix"; then
4107 for ac_prog in cl.exe
4108 do
4109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 printf %s "checking for $ac_word... " >&6; }
4113 if test ${ac_cv_prog_CC+y}
4114 then :
4115 printf %s "(cached) " >&6
4116 else $as_nop
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 case $as_dir in #(((
4125 '') as_dir=./ ;;
4126 */) ;;
4127 *) as_dir=$as_dir/ ;;
4128 esac
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 CC=$ac_cv_prog_CC
4142 if test -n "$CC"; then
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144 printf "%s\n" "$CC" >&6; }
4145 else
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 printf "%s\n" "no" >&6; }
4148 fi
4149
4150
4151 test -n "$CC" && break
4152 done
4153 fi
4154 if test -z "$CC"; then
4155 ac_ct_CC=$CC
4156 for ac_prog in cl.exe
4157 do
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 printf %s "checking for $ac_word... " >&6; }
4162 if test ${ac_cv_prog_ac_ct_CC+y}
4163 then :
4164 printf %s "(cached) " >&6
4165 else $as_nop
4166 if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 case $as_dir in #(((
4174 '') as_dir=./ ;;
4175 */) ;;
4176 *) as_dir=$as_dir/ ;;
4177 esac
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_CC="$ac_prog"
4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184 done
4185 done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4193 printf "%s\n" "$ac_ct_CC" >&6; }
4194 else
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 printf "%s\n" "no" >&6; }
4197 fi
4198
4199
4200 test -n "$ac_ct_CC" && break
4201 done
4202
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4213 fi
4214 fi
4215
4216 fi
4217 if test -z "$CC"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}clang; ac_word=$2
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 printf %s "checking for $ac_word... " >&6; }
4223 if test ${ac_cv_prog_CC+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else $as_nop
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 case $as_dir in #(((
4235 '') as_dir=./ ;;
4236 */) ;;
4237 *) as_dir=$as_dir/ ;;
4238 esac
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_CC="${ac_tool_prefix}clang"
4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 printf "%s\n" "$CC" >&6; }
4255 else
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 printf "%s\n" "no" >&6; }
4258 fi
4259
4260
4261 fi
4262 if test -z "$ac_cv_prog_CC"; then
4263 ac_ct_CC=$CC
4264 # Extract the first word of "clang", so it can be a program name with args.
4265 set dummy clang; ac_word=$2
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 printf %s "checking for $ac_word... " >&6; }
4268 if test ${ac_cv_prog_ac_ct_CC+y}
4269 then :
4270 printf %s "(cached) " >&6
4271 else $as_nop
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 case $as_dir in #(((
4280 '') as_dir=./ ;;
4281 */) ;;
4282 *) as_dir=$as_dir/ ;;
4283 esac
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_ac_ct_CC="clang"
4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4299 printf "%s\n" "$ac_ct_CC" >&6; }
4300 else
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 printf "%s\n" "no" >&6; }
4303 fi
4304
4305 if test "x$ac_ct_CC" = x; then
4306 CC=""
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CC=$ac_ct_CC
4315 fi
4316 else
4317 CC="$ac_cv_prog_CC"
4318 fi
4319
4320 fi
4321
4322
4323 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "no acceptable C compiler found in \$PATH
4326 See \`config.log' for more details" "$LINENO" 5; }
4327
4328 # Provide some information about the compiler.
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4330 set X $ac_compile
4331 ac_compiler=$2
4332 for ac_option in --version -v -V -qversion -version; do
4333 { { ac_try="$ac_compiler $ac_option >&5"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf "%s\n" "$ac_try_echo"; } >&5
4340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4341 ac_status=$?
4342 if test -s conftest.err; then
4343 sed '10a\
4344 ... rest of stderr output deleted ...
4345 10q' conftest.err >conftest.er1
4346 cat conftest.er1 >&5
4347 fi
4348 rm -f conftest.er1 conftest.err
4349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4351 done
4352
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355
4356 int
4357 main (void)
4358 {
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 ac_clean_files_save=$ac_clean_files
4365 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4366 # Try to create an executable without -o first, disregard a.out.
4367 # It will help us diagnose broken compilers, and finding out an intuition
4368 # of exeext.
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4370 printf %s "checking whether the C compiler works... " >&6; }
4371 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4372
4373 # The possible output files:
4374 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4375
4376 ac_rmfiles=
4377 for ac_file in $ac_files
4378 do
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4381 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4382 esac
4383 done
4384 rm -f $ac_rmfiles
4385
4386 if { { ac_try="$ac_link_default"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 printf "%s\n" "$ac_try_echo"; } >&5
4393 (eval "$ac_link_default") 2>&5
4394 ac_status=$?
4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }
4397 then :
4398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4401 # so that the user can short-circuit this test for compilers unknown to
4402 # Autoconf.
4403 for ac_file in $ac_files ''
4404 do
4405 test -f "$ac_file" || continue
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4408 ;;
4409 [ab].out )
4410 # We found the default executable, but exeext='' is most
4411 # certainly right.
4412 break;;
4413 *.* )
4414 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4415 then :; else
4416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417 fi
4418 # We set ac_cv_exeext here because the later test for it is not
4419 # safe: cross compilers may not add the suffix if given an `-o'
4420 # argument, so we may need to know it at that point already.
4421 # Even if this section looks crufty: it has the advantage of
4422 # actually working.
4423 break;;
4424 * )
4425 break;;
4426 esac
4427 done
4428 test "$ac_cv_exeext" = no && ac_cv_exeext=
4429
4430 else $as_nop
4431 ac_file=''
4432 fi
4433 if test -z "$ac_file"
4434 then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 printf "%s\n" "no" >&6; }
4437 printf "%s\n" "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4442 as_fn_error 77 "C compiler cannot create executables
4443 See \`config.log' for more details" "$LINENO" 5; }
4444 else $as_nop
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4446 printf "%s\n" "yes" >&6; }
4447 fi
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4449 printf %s "checking for C compiler default output file name... " >&6; }
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4451 printf "%s\n" "$ac_file" >&6; }
4452 ac_exeext=$ac_cv_exeext
4453
4454 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4455 ac_clean_files=$ac_clean_files_save
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4457 printf %s "checking for suffix of executables... " >&6; }
4458 if { { ac_try="$ac_link"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465 (eval "$ac_link") 2>&5
4466 ac_status=$?
4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 then :
4470 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4472 # work properly (i.e., refer to `conftest.exe'), while it won't with
4473 # `rm'.
4474 for ac_file in conftest.exe conftest conftest.*; do
4475 test -f "$ac_file" || continue
4476 case $ac_file in
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 break;;
4480 * ) break;;
4481 esac
4482 done
4483 else $as_nop
4484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4486 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4487 See \`config.log' for more details" "$LINENO" 5; }
4488 fi
4489 rm -f conftest conftest$ac_cv_exeext
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4491 printf "%s\n" "$ac_cv_exeext" >&6; }
4492
4493 rm -f conftest.$ac_ext
4494 EXEEXT=$ac_cv_exeext
4495 ac_exeext=$EXEEXT
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <stdio.h>
4499 int
4500 main (void)
4501 {
4502 FILE *f = fopen ("conftest.out", "w");
4503 return ferror (f) || fclose (f) != 0;
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 ac_clean_files="$ac_clean_files conftest.out"
4510 # Check that the compiler produces executables we can run. If not, either
4511 # the compiler is broken, or we cross compile.
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4513 printf %s "checking whether we are cross compiling... " >&6; }
4514 if test "$cross_compiling" != yes; then
4515 { { ac_try="$ac_link"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 printf "%s\n" "$ac_try_echo"; } >&5
4522 (eval "$ac_link") 2>&5
4523 ac_status=$?
4524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4526 if { ac_try='./conftest$ac_cv_exeext'
4527 { { case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 printf "%s\n" "$ac_try_echo"; } >&5
4533 (eval "$ac_try") 2>&5
4534 ac_status=$?
4535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; }; then
4537 cross_compiling=no
4538 else
4539 if test "$cross_compiling" = maybe; then
4540 cross_compiling=yes
4541 else
4542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4543 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4544 as_fn_error 77 "cannot run C compiled programs.
4545 If you meant to cross compile, use \`--host'.
4546 See \`config.log' for more details" "$LINENO" 5; }
4547 fi
4548 fi
4549 fi
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4551 printf "%s\n" "$cross_compiling" >&6; }
4552
4553 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4554 ac_clean_files=$ac_clean_files_save
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4556 printf %s "checking for suffix of object files... " >&6; }
4557 if test ${ac_cv_objext+y}
4558 then :
4559 printf %s "(cached) " >&6
4560 else $as_nop
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563
4564 int
4565 main (void)
4566 {
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.o conftest.obj
4573 if { { ac_try="$ac_compile"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4579 printf "%s\n" "$ac_try_echo"; } >&5
4580 (eval "$ac_compile") 2>&5
4581 ac_status=$?
4582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }
4584 then :
4585 for ac_file in conftest.o conftest.obj conftest.*; do
4586 test -f "$ac_file" || continue;
4587 case $ac_file in
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4590 break;;
4591 esac
4592 done
4593 else $as_nop
4594 printf "%s\n" "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "cannot compute suffix of object files: cannot compile
4600 See \`config.log' for more details" "$LINENO" 5; }
4601 fi
4602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4603 fi
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4605 printf "%s\n" "$ac_cv_objext" >&6; }
4606 OBJEXT=$ac_cv_objext
4607 ac_objext=$OBJEXT
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4609 printf %s "checking whether the compiler supports GNU C... " >&6; }
4610 if test ${ac_cv_c_compiler_gnu+y}
4611 then :
4612 printf %s "(cached) " >&6
4613 else $as_nop
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main (void)
4619 {
4620 #ifndef __GNUC__
4621 choke me
4622 #endif
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"
4629 then :
4630 ac_compiler_gnu=yes
4631 else $as_nop
4632 ac_compiler_gnu=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4639 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641
4642 if test $ac_compiler_gnu = yes; then
4643 GCC=yes
4644 else
4645 GCC=
4646 fi
4647 ac_test_CFLAGS=${CFLAGS+y}
4648 ac_save_CFLAGS=$CFLAGS
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4650 printf %s "checking whether $CC accepts -g... " >&6; }
4651 if test ${ac_cv_prog_cc_g+y}
4652 then :
4653 printf %s "(cached) " >&6
4654 else $as_nop
4655 ac_save_c_werror_flag=$ac_c_werror_flag
4656 ac_c_werror_flag=yes
4657 ac_cv_prog_cc_g=no
4658 CFLAGS="-g"
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main (void)
4664 {
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"
4671 then :
4672 ac_cv_prog_cc_g=yes
4673 else $as_nop
4674 CFLAGS=""
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677
4678 int
4679 main (void)
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"
4687 then :
4688
4689 else $as_nop
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691 CFLAGS="-g"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694
4695 int
4696 main (void)
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"
4704 then :
4705 ac_cv_prog_cc_g=yes
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4712 ac_c_werror_flag=$ac_save_c_werror_flag
4713 fi
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4715 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4716 if test $ac_test_CFLAGS; then
4717 CFLAGS=$ac_save_CFLAGS
4718 elif test $ac_cv_prog_cc_g = yes; then
4719 if test "$GCC" = yes; then
4720 CFLAGS="-g -O2"
4721 else
4722 CFLAGS="-g"
4723 fi
4724 else
4725 if test "$GCC" = yes; then
4726 CFLAGS="-O2"
4727 else
4728 CFLAGS=
4729 fi
4730 fi
4731 ac_prog_cc_stdc=no
4732 if test x$ac_prog_cc_stdc = xno
4733 then :
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4735 printf %s "checking for $CC option to enable C11 features... " >&6; }
4736 if test ${ac_cv_prog_cc_c11+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else $as_nop
4740 ac_cv_prog_cc_c11=no
4741 ac_save_CC=$CC
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 $ac_c_conftest_c11_program
4745 _ACEOF
4746 for ac_arg in '' -std=gnu11
4747 do
4748 CC="$ac_save_CC $ac_arg"
4749 if ac_fn_c_try_compile "$LINENO"
4750 then :
4751 ac_cv_prog_cc_c11=$ac_arg
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.beam
4754 test "x$ac_cv_prog_cc_c11" != "xno" && break
4755 done
4756 rm -f conftest.$ac_ext
4757 CC=$ac_save_CC
4758 fi
4759
4760 if test "x$ac_cv_prog_cc_c11" = xno
4761 then :
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763 printf "%s\n" "unsupported" >&6; }
4764 else $as_nop
4765 if test "x$ac_cv_prog_cc_c11" = x
4766 then :
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 printf "%s\n" "none needed" >&6; }
4769 else $as_nop
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4771 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4772 CC="$CC $ac_cv_prog_cc_c11"
4773 fi
4774 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4775 ac_prog_cc_stdc=c11
4776 fi
4777 fi
4778 if test x$ac_prog_cc_stdc = xno
4779 then :
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4781 printf %s "checking for $CC option to enable C99 features... " >&6; }
4782 if test ${ac_cv_prog_cc_c99+y}
4783 then :
4784 printf %s "(cached) " >&6
4785 else $as_nop
4786 ac_cv_prog_cc_c99=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 $ac_c_conftest_c99_program
4791 _ACEOF
4792 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4793 do
4794 CC="$ac_save_CC $ac_arg"
4795 if ac_fn_c_try_compile "$LINENO"
4796 then :
4797 ac_cv_prog_cc_c99=$ac_arg
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.beam
4800 test "x$ac_cv_prog_cc_c99" != "xno" && break
4801 done
4802 rm -f conftest.$ac_ext
4803 CC=$ac_save_CC
4804 fi
4805
4806 if test "x$ac_cv_prog_cc_c99" = xno
4807 then :
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4809 printf "%s\n" "unsupported" >&6; }
4810 else $as_nop
4811 if test "x$ac_cv_prog_cc_c99" = x
4812 then :
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4814 printf "%s\n" "none needed" >&6; }
4815 else $as_nop
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4817 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4818 CC="$CC $ac_cv_prog_cc_c99"
4819 fi
4820 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4821 ac_prog_cc_stdc=c99
4822 fi
4823 fi
4824 if test x$ac_prog_cc_stdc = xno
4825 then :
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4827 printf %s "checking for $CC option to enable C89 features... " >&6; }
4828 if test ${ac_cv_prog_cc_c89+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else $as_nop
4832 ac_cv_prog_cc_c89=no
4833 ac_save_CC=$CC
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836 $ac_c_conftest_c89_program
4837 _ACEOF
4838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4839 do
4840 CC="$ac_save_CC $ac_arg"
4841 if ac_fn_c_try_compile "$LINENO"
4842 then :
4843 ac_cv_prog_cc_c89=$ac_arg
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.beam
4846 test "x$ac_cv_prog_cc_c89" != "xno" && break
4847 done
4848 rm -f conftest.$ac_ext
4849 CC=$ac_save_CC
4850 fi
4851
4852 if test "x$ac_cv_prog_cc_c89" = xno
4853 then :
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4855 printf "%s\n" "unsupported" >&6; }
4856 else $as_nop
4857 if test "x$ac_cv_prog_cc_c89" = x
4858 then :
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4860 printf "%s\n" "none needed" >&6; }
4861 else $as_nop
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4863 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4864 CC="$CC $ac_cv_prog_cc_c89"
4865 fi
4866 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4867 ac_prog_cc_stdc=c89
4868 fi
4869 fi
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4884 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4885 if test ${am_cv_prog_cc_c_o+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891
4892 int
4893 main (void)
4894 {
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 # Make sure it works both with $CC and with simple cc.
4901 # Following AC_PROG_CC_C_O, we do the test twice because some
4902 # compilers refuse to overwrite an existing .o file with -o,
4903 # though they will create one.
4904 am_cv_prog_cc_c_o=yes
4905 for am_i in 1 2; do
4906 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4907 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } \
4911 && test -f conftest2.$ac_objext; then
4912 : OK
4913 else
4914 am_cv_prog_cc_c_o=no
4915 break
4916 fi
4917 done
4918 rm -f core conftest*
4919 unset am_i
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4922 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4923 if test "$am_cv_prog_cc_c_o" != yes; then
4924 # Losing compiler, so override with the script.
4925 # FIXME: It is wrong to rewrite CC.
4926 # But if we don't then we get into trouble of one sort or another.
4927 # A longer-term fix would be to have automake use am__CC in this case,
4928 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4929 CC="$am_aux_dir/compile $CC"
4930 fi
4931 ac_ext=c
4932 ac_cpp='$CPP $CPPFLAGS'
4933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936
4937
4938 depcc="$CC" am_compiler_list=
4939
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4941 printf %s "checking dependency style of $depcc... " >&6; }
4942 if test ${am_cv_CC_dependencies_compiler_type+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4947 # We make a subdir and do the tests there. Otherwise we can end up
4948 # making bogus files that we don't know about and never remove. For
4949 # instance it was reported that on HP-UX the gcc test will end up
4950 # making a dummy file named 'D' -- because '-MD' means "put the output
4951 # in D".
4952 rm -rf conftest.dir
4953 mkdir conftest.dir
4954 # Copy depcomp to subdir because otherwise we won't find it if we're
4955 # using a relative directory.
4956 cp "$am_depcomp" conftest.dir
4957 cd conftest.dir
4958 # We will build objects and dependencies in a subdirectory because
4959 # it helps to detect inapplicable dependency modes. For instance
4960 # both Tru64's cc and ICC support -MD to output dependencies as a
4961 # side effect of compilation, but ICC will put the dependencies in
4962 # the current directory while Tru64 will put them in the object
4963 # directory.
4964 mkdir sub
4965
4966 am_cv_CC_dependencies_compiler_type=none
4967 if test "$am_compiler_list" = ""; then
4968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4969 fi
4970 am__universal=false
4971 case " $depcc " in #(
4972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4973 esac
4974
4975 for depmode in $am_compiler_list; do
4976 # Setup a source with many dependencies, because some compilers
4977 # like to wrap large dependency lists on column 80 (with \), and
4978 # we should not choose a depcomp mode which is confused by this.
4979 #
4980 # We need to recreate these files for each test, as the compiler may
4981 # overwrite some of them when testing with obscure command lines.
4982 # This happens at least with the AIX C compiler.
4983 : > sub/conftest.c
4984 for i in 1 2 3 4 5 6; do
4985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4986 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4987 # Solaris 10 /bin/sh.
4988 echo '/* dummy */' > sub/conftst$i.h
4989 done
4990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4991
4992 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4993 # mode. It turns out that the SunPro C++ compiler does not properly
4994 # handle '-M -o', and we need to detect this. Also, some Intel
4995 # versions had trouble with output in subdirs.
4996 am__obj=sub/conftest.${OBJEXT-o}
4997 am__minus_obj="-o $am__obj"
4998 case $depmode in
4999 gcc)
5000 # This depmode causes a compiler race in universal mode.
5001 test "$am__universal" = false || continue
5002 ;;
5003 nosideeffect)
5004 # After this tag, mechanisms are not by side-effect, so they'll
5005 # only be used when explicitly requested.
5006 if test "x$enable_dependency_tracking" = xyes; then
5007 continue
5008 else
5009 break
5010 fi
5011 ;;
5012 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5013 # This compiler won't grok '-c -o', but also, the minuso test has
5014 # not run yet. These depmodes are late enough in the game, and
5015 # so weak that their functioning should not be impacted.
5016 am__obj=conftest.${OBJEXT-o}
5017 am__minus_obj=
5018 ;;
5019 none) break ;;
5020 esac
5021 if depmode=$depmode \
5022 source=sub/conftest.c object=$am__obj \
5023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5025 >/dev/null 2>conftest.err &&
5026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5030 # icc doesn't choke on unknown options, it will just issue warnings
5031 # or remarks (even with -Werror). So we grep stderr for any message
5032 # that says an option was ignored or not supported.
5033 # When given -MP, icc 7.0 and 7.1 complain thusly:
5034 # icc: Command line warning: ignoring option '-M'; no argument required
5035 # The diagnosis changed in icc 8.0:
5036 # icc: Command line remark: option '-MP' not supported
5037 if (grep 'ignoring option' conftest.err ||
5038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5039 am_cv_CC_dependencies_compiler_type=$depmode
5040 break
5041 fi
5042 fi
5043 done
5044
5045 cd ..
5046 rm -rf conftest.dir
5047 else
5048 am_cv_CC_dependencies_compiler_type=none
5049 fi
5050
5051 fi
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5053 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5055
5056 if
5057 test "x$enable_dependency_tracking" != xno \
5058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5059 am__fastdepCC_TRUE=
5060 am__fastdepCC_FALSE='#'
5061 else
5062 am__fastdepCC_TRUE='#'
5063 am__fastdepCC_FALSE=
5064 fi
5065
5066
5067
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5069 printf %s "checking for library containing strerror... " >&6; }
5070 if test ${ac_cv_search_strerror+y}
5071 then :
5072 printf %s "(cached) " >&6
5073 else $as_nop
5074 ac_func_search_save_LIBS=$LIBS
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077
5078 /* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
5081 char strerror ();
5082 int
5083 main (void)
5084 {
5085 return strerror ();
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 for ac_lib in '' cposix
5091 do
5092 if test -z "$ac_lib"; then
5093 ac_res="none required"
5094 else
5095 ac_res=-l$ac_lib
5096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5097 fi
5098 if ac_fn_c_try_link "$LINENO"
5099 then :
5100 ac_cv_search_strerror=$ac_res
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5103 conftest$ac_exeext
5104 if test ${ac_cv_search_strerror+y}
5105 then :
5106 break
5107 fi
5108 done
5109 if test ${ac_cv_search_strerror+y}
5110 then :
5111
5112 else $as_nop
5113 ac_cv_search_strerror=no
5114 fi
5115 rm conftest.$ac_ext
5116 LIBS=$ac_func_search_save_LIBS
5117 fi
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5119 printf "%s\n" "$ac_cv_search_strerror" >&6; }
5120 ac_res=$ac_cv_search_strerror
5121 if test "$ac_res" != no
5122 then :
5123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5124
5125 fi
5126
5127 ac_header= ac_cache=
5128 for ac_item in $ac_header_c_list
5129 do
5130 if test $ac_cache; then
5131 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5132 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5133 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5134 fi
5135 ac_header= ac_cache=
5136 elif test $ac_header; then
5137 ac_cache=$ac_item
5138 else
5139 ac_header=$ac_item
5140 fi
5141 done
5142
5143
5144
5145
5146
5147
5148
5149
5150 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5151 then :
5152
5153 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5154
5155 fi
5156
5157
5158
5159
5160
5161
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5163 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5164 if test ${ac_cv_safe_to_define___extensions__+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else $as_nop
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170
5171 # define __EXTENSIONS__ 1
5172 $ac_includes_default
5173 int
5174 main (void)
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"
5182 then :
5183 ac_cv_safe_to_define___extensions__=yes
5184 else $as_nop
5185 ac_cv_safe_to_define___extensions__=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5190 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5191
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5193 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5194 if test ${ac_cv_should_define__xopen_source+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else $as_nop
5198 ac_cv_should_define__xopen_source=no
5199 if test $ac_cv_header_wchar_h = yes
5200 then :
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203
5204 #include <wchar.h>
5205 mbstate_t x;
5206 int
5207 main (void)
5208 {
5209
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"
5215 then :
5216
5217 else $as_nop
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220
5221 #define _XOPEN_SOURCE 500
5222 #include <wchar.h>
5223 mbstate_t x;
5224 int
5225 main (void)
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"
5233 then :
5234 ac_cv_should_define__xopen_source=yes
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5237 fi
5238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5239 fi
5240 fi
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5242 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5243
5244 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5245
5246 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5247
5248 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5251
5252 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5253
5254 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5255
5256 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5257
5258 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5259
5260 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5261
5262 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5263
5264 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5265
5266 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5267
5268 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5269
5270 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5271
5272 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5273
5274 if test $ac_cv_header_minix_config_h = yes
5275 then :
5276 MINIX=yes
5277 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5278
5279 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5280
5281 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5282
5283 else $as_nop
5284 MINIX=
5285 fi
5286 if test $ac_cv_safe_to_define___extensions__ = yes
5287 then :
5288 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5289
5290 fi
5291 if test $ac_cv_should_define__xopen_source = yes
5292 then :
5293 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5294
5295 fi
5296
5297 case $host_os in
5298 *cygwin* ) CYGWIN=yes;;
5299 * ) CYGWIN=no;;
5300 esac
5301
5302 # AC_DISABLE_SHARED
5303 case `pwd` in
5304 *\ * | *\ *)
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5306 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5307 esac
5308
5309
5310
5311 macro_version='2.4.7'
5312 macro_revision='2.4.7'
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 ltmain=$ac_aux_dir/ltmain.sh
5328
5329 # Backslashify metacharacters that are still active within
5330 # double-quoted strings.
5331 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5332
5333 # Same as above, but do not quote variable references.
5334 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5335
5336 # Sed substitution to delay expansion of an escaped shell variable in a
5337 # double_quote_subst'ed string.
5338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5339
5340 # Sed substitution to delay expansion of an escaped single quote.
5341 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5342
5343 # Sed substitution to avoid accidental globbing in evaled expressions
5344 no_glob_subst='s/\*/\\\*/g'
5345
5346 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5347 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5348 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5349
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5351 printf %s "checking how to print strings... " >&6; }
5352 # Test print first, because it will be a builtin if present.
5353 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5354 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5355 ECHO='print -r --'
5356 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5357 ECHO='printf %s\n'
5358 else
5359 # Use this function as a fallback that always works.
5360 func_fallback_echo ()
5361 {
5362 eval 'cat <<_LTECHO_EOF
5363 $1
5364 _LTECHO_EOF'
5365 }
5366 ECHO='func_fallback_echo'
5367 fi
5368
5369 # func_echo_all arg...
5370 # Invoke $ECHO with all args, space-separated.
5371 func_echo_all ()
5372 {
5373 $ECHO ""
5374 }
5375
5376 case $ECHO in
5377 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5378 printf "%s\n" "printf" >&6; } ;;
5379 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5380 printf "%s\n" "print -r" >&6; } ;;
5381 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5382 printf "%s\n" "cat" >&6; } ;;
5383 esac
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5399 printf %s "checking for a sed that does not truncate output... " >&6; }
5400 if test ${ac_cv_path_SED+y}
5401 then :
5402 printf %s "(cached) " >&6
5403 else $as_nop
5404 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5405 for ac_i in 1 2 3 4 5 6 7; do
5406 ac_script="$ac_script$as_nl$ac_script"
5407 done
5408 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5409 { ac_script=; unset ac_script;}
5410 if test -z "$SED"; then
5411 ac_path_SED_found=false
5412 # Loop through the user's path and test for each of PROGNAME-LIST
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 case $as_dir in #(((
5418 '') as_dir=./ ;;
5419 */) ;;
5420 *) as_dir=$as_dir/ ;;
5421 esac
5422 for ac_prog in sed gsed
5423 do
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5426 as_fn_executable_p "$ac_path_SED" || continue
5427 # Check for GNU ac_path_SED and select it if it is found.
5428 # Check for GNU $ac_path_SED
5429 case `"$ac_path_SED" --version 2>&1` in
5430 *GNU*)
5431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5432 *)
5433 ac_count=0
5434 printf %s 0123456789 >"conftest.in"
5435 while :
5436 do
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 printf "%s\n" '' >> "conftest.nl"
5441 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5443 as_fn_arith $ac_count + 1 && ac_count=$as_val
5444 if test $ac_count -gt ${ac_path_SED_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_SED="$ac_path_SED"
5447 ac_path_SED_max=$ac_count
5448 fi
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5451 done
5452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5453 esac
5454
5455 $ac_path_SED_found && break 3
5456 done
5457 done
5458 done
5459 IFS=$as_save_IFS
5460 if test -z "$ac_cv_path_SED"; then
5461 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5462 fi
5463 else
5464 ac_cv_path_SED=$SED
5465 fi
5466
5467 fi
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5469 printf "%s\n" "$ac_cv_path_SED" >&6; }
5470 SED="$ac_cv_path_SED"
5471 rm -f conftest.sed
5472
5473 test -z "$SED" && SED=sed
5474 Xsed="$SED -e 1s/^X//"
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5487 printf %s "checking for grep that handles long lines and -e... " >&6; }
5488 if test ${ac_cv_path_GREP+y}
5489 then :
5490 printf %s "(cached) " >&6
5491 else $as_nop
5492 if test -z "$GREP"; then
5493 ac_path_GREP_found=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497 do
5498 IFS=$as_save_IFS
5499 case $as_dir in #(((
5500 '') as_dir=./ ;;
5501 */) ;;
5502 *) as_dir=$as_dir/ ;;
5503 esac
5504 for ac_prog in grep ggrep
5505 do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5508 as_fn_executable_p "$ac_path_GREP" || continue
5509 # Check for GNU ac_path_GREP and select it if it is found.
5510 # Check for GNU $ac_path_GREP
5511 case `"$ac_path_GREP" --version 2>&1` in
5512 *GNU*)
5513 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5514 *)
5515 ac_count=0
5516 printf %s 0123456789 >"conftest.in"
5517 while :
5518 do
5519 cat "conftest.in" "conftest.in" >"conftest.tmp"
5520 mv "conftest.tmp" "conftest.in"
5521 cp "conftest.in" "conftest.nl"
5522 printf "%s\n" 'GREP' >> "conftest.nl"
5523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525 as_fn_arith $ac_count + 1 && ac_count=$as_val
5526 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5527 # Best one so far, save it but keep looking for a better one
5528 ac_cv_path_GREP="$ac_path_GREP"
5529 ac_path_GREP_max=$ac_count
5530 fi
5531 # 10*(2^10) chars as input seems more than enough
5532 test $ac_count -gt 10 && break
5533 done
5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535 esac
5536
5537 $ac_path_GREP_found && break 3
5538 done
5539 done
5540 done
5541 IFS=$as_save_IFS
5542 if test -z "$ac_cv_path_GREP"; then
5543 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5544 fi
5545 else
5546 ac_cv_path_GREP=$GREP
5547 fi
5548
5549 fi
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5551 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5552 GREP="$ac_cv_path_GREP"
5553
5554
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5556 printf %s "checking for egrep... " >&6; }
5557 if test ${ac_cv_path_EGREP+y}
5558 then :
5559 printf %s "(cached) " >&6
5560 else $as_nop
5561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5562 then ac_cv_path_EGREP="$GREP -E"
5563 else
5564 if test -z "$EGREP"; then
5565 ac_path_EGREP_found=false
5566 # Loop through the user's path and test for each of PROGNAME-LIST
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5569 do
5570 IFS=$as_save_IFS
5571 case $as_dir in #(((
5572 '') as_dir=./ ;;
5573 */) ;;
5574 *) as_dir=$as_dir/ ;;
5575 esac
5576 for ac_prog in egrep
5577 do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5580 as_fn_executable_p "$ac_path_EGREP" || continue
5581 # Check for GNU ac_path_EGREP and select it if it is found.
5582 # Check for GNU $ac_path_EGREP
5583 case `"$ac_path_EGREP" --version 2>&1` in
5584 *GNU*)
5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5586 *)
5587 ac_count=0
5588 printf %s 0123456789 >"conftest.in"
5589 while :
5590 do
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 printf "%s\n" 'EGREP' >> "conftest.nl"
5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_EGREP="$ac_path_EGREP"
5601 ac_path_EGREP_max=$ac_count
5602 fi
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5608
5609 $ac_path_EGREP_found && break 3
5610 done
5611 done
5612 done
5613 IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_EGREP"; then
5615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5616 fi
5617 else
5618 ac_cv_path_EGREP=$EGREP
5619 fi
5620
5621 fi
5622 fi
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5624 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5626
5627
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5629 printf %s "checking for fgrep... " >&6; }
5630 if test ${ac_cv_path_FGREP+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else $as_nop
5634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5635 then ac_cv_path_FGREP="$GREP -F"
5636 else
5637 if test -z "$FGREP"; then
5638 ac_path_FGREP_found=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 do
5643 IFS=$as_save_IFS
5644 case $as_dir in #(((
5645 '') as_dir=./ ;;
5646 */) ;;
5647 *) as_dir=$as_dir/ ;;
5648 esac
5649 for ac_prog in fgrep
5650 do
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5653 as_fn_executable_p "$ac_path_FGREP" || continue
5654 # Check for GNU ac_path_FGREP and select it if it is found.
5655 # Check for GNU $ac_path_FGREP
5656 case `"$ac_path_FGREP" --version 2>&1` in
5657 *GNU*)
5658 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5659 *)
5660 ac_count=0
5661 printf %s 0123456789 >"conftest.in"
5662 while :
5663 do
5664 cat "conftest.in" "conftest.in" >"conftest.tmp"
5665 mv "conftest.tmp" "conftest.in"
5666 cp "conftest.in" "conftest.nl"
5667 printf "%s\n" 'FGREP' >> "conftest.nl"
5668 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5670 as_fn_arith $ac_count + 1 && ac_count=$as_val
5671 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5672 # Best one so far, save it but keep looking for a better one
5673 ac_cv_path_FGREP="$ac_path_FGREP"
5674 ac_path_FGREP_max=$ac_count
5675 fi
5676 # 10*(2^10) chars as input seems more than enough
5677 test $ac_count -gt 10 && break
5678 done
5679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5680 esac
5681
5682 $ac_path_FGREP_found && break 3
5683 done
5684 done
5685 done
5686 IFS=$as_save_IFS
5687 if test -z "$ac_cv_path_FGREP"; then
5688 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5689 fi
5690 else
5691 ac_cv_path_FGREP=$FGREP
5692 fi
5693
5694 fi
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5697 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5698 FGREP="$ac_cv_path_FGREP"
5699
5700
5701 test -z "$GREP" && GREP=grep
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 # Check whether --with-gnu-ld was given.
5722 if test ${with_gnu_ld+y}
5723 then :
5724 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5725 else $as_nop
5726 with_gnu_ld=no
5727 fi
5728
5729 ac_prog=ld
5730 if test yes = "$GCC"; then
5731 # Check if gcc -print-prog-name=ld gives a path.
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5733 printf %s "checking for ld used by $CC... " >&6; }
5734 case $host in
5735 *-*-mingw*)
5736 # gcc leaves a trailing carriage return, which upsets mingw
5737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5738 *)
5739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5740 esac
5741 case $ac_prog in
5742 # Accept absolute paths.
5743 [\\/]* | ?:[\\/]*)
5744 re_direlt='/[^/][^/]*/\.\./'
5745 # Canonicalize the pathname of ld
5746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5749 done
5750 test -z "$LD" && LD=$ac_prog
5751 ;;
5752 "")
5753 # If it fails, then pretend we aren't using GCC.
5754 ac_prog=ld
5755 ;;
5756 *)
5757 # If it is relative, then search for the first ld in PATH.
5758 with_gnu_ld=unknown
5759 ;;
5760 esac
5761 elif test yes = "$with_gnu_ld"; then
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5763 printf %s "checking for GNU ld... " >&6; }
5764 else
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5766 printf %s "checking for non-GNU ld... " >&6; }
5767 fi
5768 if test ${lt_cv_path_LD+y}
5769 then :
5770 printf %s "(cached) " >&6
5771 else $as_nop
5772 if test -z "$LD"; then
5773 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5774 for ac_dir in $PATH; do
5775 IFS=$lt_save_ifs
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5778 lt_cv_path_LD=$ac_dir/$ac_prog
5779 # Check to see if the program is GNU ld. I'd rather use --version,
5780 # but apparently some variants of GNU ld only accept -v.
5781 # Break only if it was the GNU/non-GNU ld that we prefer.
5782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5783 *GNU* | *'with BFD'*)
5784 test no != "$with_gnu_ld" && break
5785 ;;
5786 *)
5787 test yes != "$with_gnu_ld" && break
5788 ;;
5789 esac
5790 fi
5791 done
5792 IFS=$lt_save_ifs
5793 else
5794 lt_cv_path_LD=$LD # Let the user override the test with a path.
5795 fi
5796 fi
5797
5798 LD=$lt_cv_path_LD
5799 if test -n "$LD"; then
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5801 printf "%s\n" "$LD" >&6; }
5802 else
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 printf "%s\n" "no" >&6; }
5805 fi
5806 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5808 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5809 if test ${lt_cv_prog_gnu_ld+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else $as_nop
5813 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5814 case `$LD -v 2>&1 </dev/null` in
5815 *GNU* | *'with BFD'*)
5816 lt_cv_prog_gnu_ld=yes
5817 ;;
5818 *)
5819 lt_cv_prog_gnu_ld=no
5820 ;;
5821 esac
5822 fi
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5824 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5825 with_gnu_ld=$lt_cv_prog_gnu_ld
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5836 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5837 if test ${lt_cv_path_NM+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 if test -n "$NM"; then
5842 # Let the user override the test.
5843 lt_cv_path_NM=$NM
5844 else
5845 lt_nm_to_check=${ac_tool_prefix}nm
5846 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5847 lt_nm_to_check="$lt_nm_to_check nm"
5848 fi
5849 for lt_tmp_nm in $lt_nm_to_check; do
5850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5851 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5852 IFS=$lt_save_ifs
5853 test -z "$ac_dir" && ac_dir=.
5854 tmp_nm=$ac_dir/$lt_tmp_nm
5855 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5856 # Check to see if the nm accepts a BSD-compat flag.
5857 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5858 # nm: unknown option "B" ignored
5859 # Tru64's nm complains that /dev/null is an invalid object file
5860 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5861 case $build_os in
5862 mingw*) lt_bad_file=conftest.nm/nofile ;;
5863 *) lt_bad_file=/dev/null ;;
5864 esac
5865 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5866 *$lt_bad_file* | *'Invalid file or object type'*)
5867 lt_cv_path_NM="$tmp_nm -B"
5868 break 2
5869 ;;
5870 *)
5871 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5872 */dev/null*)
5873 lt_cv_path_NM="$tmp_nm -p"
5874 break 2
5875 ;;
5876 *)
5877 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5878 continue # so that we can try to find one that supports BSD flags
5879 ;;
5880 esac
5881 ;;
5882 esac
5883 fi
5884 done
5885 IFS=$lt_save_ifs
5886 done
5887 : ${lt_cv_path_NM=no}
5888 fi
5889 fi
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5891 printf "%s\n" "$lt_cv_path_NM" >&6; }
5892 if test no != "$lt_cv_path_NM"; then
5893 NM=$lt_cv_path_NM
5894 else
5895 # Didn't find any BSD compatible name lister, look for dumpbin.
5896 if test -n "$DUMPBIN"; then :
5897 # Let the user override the test.
5898 else
5899 if test -n "$ac_tool_prefix"; then
5900 for ac_prog in dumpbin "link -dump"
5901 do
5902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 printf %s "checking for $ac_word... " >&6; }
5906 if test ${ac_cv_prog_DUMPBIN+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else $as_nop
5910 if test -n "$DUMPBIN"; then
5911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916 IFS=$as_save_IFS
5917 case $as_dir in #(((
5918 '') as_dir=./ ;;
5919 */) ;;
5920 *) as_dir=$as_dir/ ;;
5921 esac
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 DUMPBIN=$ac_cv_prog_DUMPBIN
5935 if test -n "$DUMPBIN"; then
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5937 printf "%s\n" "$DUMPBIN" >&6; }
5938 else
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 printf "%s\n" "no" >&6; }
5941 fi
5942
5943
5944 test -n "$DUMPBIN" && break
5945 done
5946 fi
5947 if test -z "$DUMPBIN"; then
5948 ac_ct_DUMPBIN=$DUMPBIN
5949 for ac_prog in dumpbin "link -dump"
5950 do
5951 # Extract the first word of "$ac_prog", so it can be a program name with args.
5952 set dummy $ac_prog; ac_word=$2
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 printf %s "checking for $ac_word... " >&6; }
5955 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else $as_nop
5959 if test -n "$ac_ct_DUMPBIN"; then
5960 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965 IFS=$as_save_IFS
5966 case $as_dir in #(((
5967 '') as_dir=./ ;;
5968 */) ;;
5969 *) as_dir=$as_dir/ ;;
5970 esac
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5984 if test -n "$ac_ct_DUMPBIN"; then
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5986 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5987 else
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 printf "%s\n" "no" >&6; }
5990 fi
5991
5992
5993 test -n "$ac_ct_DUMPBIN" && break
5994 done
5995
5996 if test "x$ac_ct_DUMPBIN" = x; then
5997 DUMPBIN=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 DUMPBIN=$ac_ct_DUMPBIN
6006 fi
6007 fi
6008
6009 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6010 *COFF*)
6011 DUMPBIN="$DUMPBIN -symbols -headers"
6012 ;;
6013 *)
6014 DUMPBIN=:
6015 ;;
6016 esac
6017 fi
6018
6019 if test : != "$DUMPBIN"; then
6020 NM=$DUMPBIN
6021 fi
6022 fi
6023 test -z "$NM" && NM=nm
6024
6025
6026
6027
6028
6029
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6031 printf %s "checking the name lister ($NM) interface... " >&6; }
6032 if test ${lt_cv_nm_interface+y}
6033 then :
6034 printf %s "(cached) " >&6
6035 else $as_nop
6036 lt_cv_nm_interface="BSD nm"
6037 echo "int some_variable = 0;" > conftest.$ac_ext
6038 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6039 (eval "$ac_compile" 2>conftest.err)
6040 cat conftest.err >&5
6041 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6042 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6043 cat conftest.err >&5
6044 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6045 cat conftest.out >&5
6046 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6047 lt_cv_nm_interface="MS dumpbin"
6048 fi
6049 rm -f conftest*
6050 fi
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6052 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6053
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6055 printf %s "checking whether ln -s works... " >&6; }
6056 LN_S=$as_ln_s
6057 if test "$LN_S" = "ln -s"; then
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6059 printf "%s\n" "yes" >&6; }
6060 else
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6062 printf "%s\n" "no, using $LN_S" >&6; }
6063 fi
6064
6065 # find the maximum length of command line arguments
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6067 printf %s "checking the maximum length of command line arguments... " >&6; }
6068 if test ${lt_cv_sys_max_cmd_len+y}
6069 then :
6070 printf %s "(cached) " >&6
6071 else $as_nop
6072 i=0
6073 teststring=ABCD
6074
6075 case $build_os in
6076 msdosdjgpp*)
6077 # On DJGPP, this test can blow up pretty badly due to problems in libc
6078 # (any single argument exceeding 2000 bytes causes a buffer overrun
6079 # during glob expansion). Even if it were fixed, the result of this
6080 # check would be larger than it should be.
6081 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6082 ;;
6083
6084 gnu*)
6085 # Under GNU Hurd, this test is not required because there is
6086 # no limit to the length of command line arguments.
6087 # Libtool will interpret -1 as no limit whatsoever
6088 lt_cv_sys_max_cmd_len=-1;
6089 ;;
6090
6091 cygwin* | mingw* | cegcc*)
6092 # On Win9x/ME, this test blows up -- it succeeds, but takes
6093 # about 5 minutes as the teststring grows exponentially.
6094 # Worse, since 9x/ME are not pre-emptively multitasking,
6095 # you end up with a "frozen" computer, even though with patience
6096 # the test eventually succeeds (with a max line length of 256k).
6097 # Instead, let's just punt: use the minimum linelength reported by
6098 # all of the supported platforms: 8192 (on NT/2K/XP).
6099 lt_cv_sys_max_cmd_len=8192;
6100 ;;
6101
6102 mint*)
6103 # On MiNT this can take a long time and run out of memory.
6104 lt_cv_sys_max_cmd_len=8192;
6105 ;;
6106
6107 amigaos*)
6108 # On AmigaOS with pdksh, this test takes hours, literally.
6109 # So we just punt and use a minimum line length of 8192.
6110 lt_cv_sys_max_cmd_len=8192;
6111 ;;
6112
6113 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6114 # This has been around since 386BSD, at least. Likely further.
6115 if test -x /sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6117 elif test -x /usr/sbin/sysctl; then
6118 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6119 else
6120 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6121 fi
6122 # And add a safety zone
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 ;;
6126
6127 interix*)
6128 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6129 lt_cv_sys_max_cmd_len=196608
6130 ;;
6131
6132 os2*)
6133 # The test takes a long time on OS/2.
6134 lt_cv_sys_max_cmd_len=8192
6135 ;;
6136
6137 osf*)
6138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6140 # nice to cause kernel panics so lets avoid the loop below.
6141 # First set a reasonable default.
6142 lt_cv_sys_max_cmd_len=16384
6143 #
6144 if test -x /sbin/sysconfig; then
6145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6146 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6147 esac
6148 fi
6149 ;;
6150 sco3.2v5*)
6151 lt_cv_sys_max_cmd_len=102400
6152 ;;
6153 sysv5* | sco5v6* | sysv4.2uw2*)
6154 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6155 if test -n "$kargmax"; then
6156 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6157 else
6158 lt_cv_sys_max_cmd_len=32768
6159 fi
6160 ;;
6161 *)
6162 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6163 if test -n "$lt_cv_sys_max_cmd_len" && \
6164 test undefined != "$lt_cv_sys_max_cmd_len"; then
6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6167 else
6168 # Make teststring a little bigger before we do anything with it.
6169 # a 1K string should be a reasonable start.
6170 for i in 1 2 3 4 5 6 7 8; do
6171 teststring=$teststring$teststring
6172 done
6173 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6174 # If test is not a shell built-in, we'll probably end up computing a
6175 # maximum length that is only half of the actual maximum length, but
6176 # we can't tell.
6177 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6178 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6179 test 17 != "$i" # 1/2 MB should be enough
6180 do
6181 i=`expr $i + 1`
6182 teststring=$teststring$teststring
6183 done
6184 # Only check the string length outside the loop.
6185 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6186 teststring=
6187 # Add a significant safety factor because C++ compilers can tack on
6188 # massive amounts of additional arguments before passing them to the
6189 # linker. It appears as though 1/2 is a usable value.
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6191 fi
6192 ;;
6193 esac
6194
6195 fi
6196
6197 if test -n "$lt_cv_sys_max_cmd_len"; then
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6199 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6200 else
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6202 printf "%s\n" "none" >&6; }
6203 fi
6204 max_cmd_len=$lt_cv_sys_max_cmd_len
6205
6206
6207
6208
6209
6210
6211 : ${CP="cp -f"}
6212 : ${MV="mv -f"}
6213 : ${RM="rm -f"}
6214
6215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6216 lt_unset=unset
6217 else
6218 lt_unset=false
6219 fi
6220
6221
6222
6223
6224
6225 # test EBCDIC or ASCII
6226 case `echo X|tr X '\101'` in
6227 A) # ASCII based system
6228 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6229 lt_SP2NL='tr \040 \012'
6230 lt_NL2SP='tr \015\012 \040\040'
6231 ;;
6232 *) # EBCDIC based system
6233 lt_SP2NL='tr \100 \n'
6234 lt_NL2SP='tr \r\n \100\100'
6235 ;;
6236 esac
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6247 printf %s "checking how to convert $build file names to $host format... " >&6; }
6248 if test ${lt_cv_to_host_file_cmd+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else $as_nop
6252 case $host in
6253 *-*-mingw* )
6254 case $build in
6255 *-*-mingw* ) # actually msys
6256 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6257 ;;
6258 *-*-cygwin* )
6259 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6260 ;;
6261 * ) # otherwise, assume *nix
6262 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6263 ;;
6264 esac
6265 ;;
6266 *-*-cygwin* )
6267 case $build in
6268 *-*-mingw* ) # actually msys
6269 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6270 ;;
6271 *-*-cygwin* )
6272 lt_cv_to_host_file_cmd=func_convert_file_noop
6273 ;;
6274 * ) # otherwise, assume *nix
6275 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6276 ;;
6277 esac
6278 ;;
6279 * ) # unhandled hosts (and "normal" native builds)
6280 lt_cv_to_host_file_cmd=func_convert_file_noop
6281 ;;
6282 esac
6283
6284 fi
6285
6286 to_host_file_cmd=$lt_cv_to_host_file_cmd
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6288 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6289
6290
6291
6292
6293
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6295 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6296 if test ${lt_cv_to_tool_file_cmd+y}
6297 then :
6298 printf %s "(cached) " >&6
6299 else $as_nop
6300 #assume ordinary cross tools, or native build.
6301 lt_cv_to_tool_file_cmd=func_convert_file_noop
6302 case $host in
6303 *-*-mingw* )
6304 case $build in
6305 *-*-mingw* ) # actually msys
6306 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6307 ;;
6308 esac
6309 ;;
6310 esac
6311
6312 fi
6313
6314 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6316 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6317
6318
6319
6320
6321
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6323 printf %s "checking for $LD option to reload object files... " >&6; }
6324 if test ${lt_cv_ld_reload_flag+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else $as_nop
6328 lt_cv_ld_reload_flag='-r'
6329 fi
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6331 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6332 reload_flag=$lt_cv_ld_reload_flag
6333 case $reload_flag in
6334 "" | " "*) ;;
6335 *) reload_flag=" $reload_flag" ;;
6336 esac
6337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6338 case $host_os in
6339 cygwin* | mingw* | pw32* | cegcc*)
6340 if test yes != "$GCC"; then
6341 reload_cmds=false
6342 fi
6343 ;;
6344 darwin*)
6345 if test yes = "$GCC"; then
6346 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6347 else
6348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6349 fi
6350 ;;
6351 esac
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 if test -n "$ac_tool_prefix"; then
6362 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6363 set dummy ${ac_tool_prefix}file; ac_word=$2
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 printf %s "checking for $ac_word... " >&6; }
6366 if test ${ac_cv_prog_FILECMD+y}
6367 then :
6368 printf %s "(cached) " >&6
6369 else $as_nop
6370 if test -n "$FILECMD"; then
6371 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 case $as_dir in #(((
6378 '') as_dir=./ ;;
6379 */) ;;
6380 *) as_dir=$as_dir/ ;;
6381 esac
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392 fi
6393 fi
6394 FILECMD=$ac_cv_prog_FILECMD
6395 if test -n "$FILECMD"; then
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6397 printf "%s\n" "$FILECMD" >&6; }
6398 else
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 printf "%s\n" "no" >&6; }
6401 fi
6402
6403
6404 fi
6405 if test -z "$ac_cv_prog_FILECMD"; then
6406 ac_ct_FILECMD=$FILECMD
6407 # Extract the first word of "file", so it can be a program name with args.
6408 set dummy file; ac_word=$2
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 printf %s "checking for $ac_word... " >&6; }
6411 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6412 then :
6413 printf %s "(cached) " >&6
6414 else $as_nop
6415 if test -n "$ac_ct_FILECMD"; then
6416 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_FILECMD="file"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6440 if test -n "$ac_ct_FILECMD"; then
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6442 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6443 else
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 printf "%s\n" "no" >&6; }
6446 fi
6447
6448 if test "x$ac_ct_FILECMD" = x; then
6449 FILECMD=":"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6456 esac
6457 FILECMD=$ac_ct_FILECMD
6458 fi
6459 else
6460 FILECMD="$ac_cv_prog_FILECMD"
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 printf %s "checking for $ac_word... " >&6; }
6474 if test ${ac_cv_prog_OBJDUMP+y}
6475 then :
6476 printf %s "(cached) " >&6
6477 else $as_nop
6478 if test -n "$OBJDUMP"; then
6479 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 case $as_dir in #(((
6486 '') as_dir=./ ;;
6487 */) ;;
6488 *) as_dir=$as_dir/ ;;
6489 esac
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 OBJDUMP=$ac_cv_prog_OBJDUMP
6503 if test -n "$OBJDUMP"; then
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6505 printf "%s\n" "$OBJDUMP" >&6; }
6506 else
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 printf "%s\n" "no" >&6; }
6509 fi
6510
6511
6512 fi
6513 if test -z "$ac_cv_prog_OBJDUMP"; then
6514 ac_ct_OBJDUMP=$OBJDUMP
6515 # Extract the first word of "objdump", so it can be a program name with args.
6516 set dummy objdump; ac_word=$2
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 printf %s "checking for $ac_word... " >&6; }
6519 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else $as_nop
6523 if test -n "$ac_ct_OBJDUMP"; then
6524 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 case $as_dir in #(((
6531 '') as_dir=./ ;;
6532 */) ;;
6533 *) as_dir=$as_dir/ ;;
6534 esac
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6548 if test -n "$ac_ct_OBJDUMP"; then
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6550 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6551 else
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 printf "%s\n" "no" >&6; }
6554 fi
6555
6556 if test "x$ac_ct_OBJDUMP" = x; then
6557 OBJDUMP="false"
6558 else
6559 case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565 OBJDUMP=$ac_ct_OBJDUMP
6566 fi
6567 else
6568 OBJDUMP="$ac_cv_prog_OBJDUMP"
6569 fi
6570
6571 test -z "$OBJDUMP" && OBJDUMP=objdump
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6582 printf %s "checking how to recognize dependent libraries... " >&6; }
6583 if test ${lt_cv_deplibs_check_method+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else $as_nop
6587 lt_cv_file_magic_cmd='$MAGIC_CMD'
6588 lt_cv_file_magic_test_file=
6589 lt_cv_deplibs_check_method='unknown'
6590 # Need to set the preceding variable on all platforms that support
6591 # interlibrary dependencies.
6592 # 'none' -- dependencies not supported.
6593 # 'unknown' -- same as none, but documents that we really don't know.
6594 # 'pass_all' -- all dependencies passed with no checks.
6595 # 'test_compile' -- check by making test program.
6596 # 'file_magic [[regex]]' -- check by looking for files in library path
6597 # that responds to the $file_magic_cmd with a given extended regex.
6598 # If you have 'file' or equivalent on your system and you're not sure
6599 # whether 'pass_all' will *always* work, you probably want this one.
6600
6601 case $host_os in
6602 aix[4-9]*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 beos*)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 bsdi[45]*)
6611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6612 lt_cv_file_magic_cmd='$FILECMD -L'
6613 lt_cv_file_magic_test_file=/shlib/libc.so
6614 ;;
6615
6616 cygwin*)
6617 # func_win32_libid is a shell function defined in ltmain.sh
6618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6619 lt_cv_file_magic_cmd='func_win32_libid'
6620 ;;
6621
6622 mingw* | pw32*)
6623 # Base MSYS/MinGW do not provide the 'file' command needed by
6624 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6625 # unless we find 'file', for example because we are cross-compiling.
6626 if ( file / ) >/dev/null 2>&1; then
6627 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6628 lt_cv_file_magic_cmd='func_win32_libid'
6629 else
6630 # Keep this pattern in sync with the one in func_win32_libid.
6631 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6632 lt_cv_file_magic_cmd='$OBJDUMP -f'
6633 fi
6634 ;;
6635
6636 cegcc*)
6637 # use the weaker test based on 'objdump'. See mingw*.
6638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6639 lt_cv_file_magic_cmd='$OBJDUMP -f'
6640 ;;
6641
6642 darwin* | rhapsody*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645
6646 freebsd* | dragonfly* | midnightbsd*)
6647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6648 case $host_cpu in
6649 i*86 )
6650 # Not sure whether the presence of OpenBSD here was a mistake.
6651 # Let's accept both of them until this is cleared up.
6652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6653 lt_cv_file_magic_cmd=$FILECMD
6654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6655 ;;
6656 esac
6657 else
6658 lt_cv_deplibs_check_method=pass_all
6659 fi
6660 ;;
6661
6662 haiku*)
6663 lt_cv_deplibs_check_method=pass_all
6664 ;;
6665
6666 hpux10.20* | hpux11*)
6667 lt_cv_file_magic_cmd=$FILECMD
6668 case $host_cpu in
6669 ia64*)
6670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6672 ;;
6673 hppa*64*)
6674 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]'
6675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6676 ;;
6677 *)
6678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6679 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6680 ;;
6681 esac
6682 ;;
6683
6684 interix[3-9]*)
6685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6687 ;;
6688
6689 irix5* | irix6* | nonstopux*)
6690 case $LD in
6691 *-32|*"-32 ") libmagic=32-bit;;
6692 *-n32|*"-n32 ") libmagic=N32;;
6693 *-64|*"-64 ") libmagic=64-bit;;
6694 *) libmagic=never-match;;
6695 esac
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699 # This must be glibc/ELF.
6700 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704 netbsd*)
6705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6707 else
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6709 fi
6710 ;;
6711
6712 newos6*)
6713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6714 lt_cv_file_magic_cmd=$FILECMD
6715 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6716 ;;
6717
6718 *nto* | *qnx*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
6721
6722 openbsd* | bitrig*)
6723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6725 else
6726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6727 fi
6728 ;;
6729
6730 osf3* | osf4* | osf5*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734 rdos*)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737
6738 solaris*)
6739 lt_cv_deplibs_check_method=pass_all
6740 ;;
6741
6742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746 sysv4 | sysv4.3*)
6747 case $host_vendor in
6748 motorola)
6749 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]'
6750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6751 ;;
6752 ncr)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755 sequent)
6756 lt_cv_file_magic_cmd='/bin/file'
6757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6758 ;;
6759 sni)
6760 lt_cv_file_magic_cmd='/bin/file'
6761 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6762 lt_cv_file_magic_test_file=/lib/libc.so
6763 ;;
6764 siemens)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767 pc)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770 esac
6771 ;;
6772
6773 tpf*)
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776 os2*)
6777 lt_cv_deplibs_check_method=pass_all
6778 ;;
6779 esac
6780
6781 fi
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6783 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6784
6785 file_magic_glob=
6786 want_nocaseglob=no
6787 if test "$build" = "$host"; then
6788 case $host_os in
6789 mingw* | pw32*)
6790 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6791 want_nocaseglob=yes
6792 else
6793 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6794 fi
6795 ;;
6796 esac
6797 fi
6798
6799 file_magic_cmd=$lt_cv_file_magic_cmd
6800 deplibs_check_method=$lt_cv_deplibs_check_method
6801 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 printf %s "checking for $ac_word... " >&6; }
6829 if test ${ac_cv_prog_DLLTOOL+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else $as_nop
6833 if test -n "$DLLTOOL"; then
6834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839 IFS=$as_save_IFS
6840 case $as_dir in #(((
6841 '') as_dir=./ ;;
6842 */) ;;
6843 *) as_dir=$as_dir/ ;;
6844 esac
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 DLLTOOL=$ac_cv_prog_DLLTOOL
6858 if test -n "$DLLTOOL"; then
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6860 printf "%s\n" "$DLLTOOL" >&6; }
6861 else
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 printf "%s\n" "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_DLLTOOL"; then
6869 ac_ct_DLLTOOL=$DLLTOOL
6870 # Extract the first word of "dlltool", so it can be a program name with args.
6871 set dummy dlltool; ac_word=$2
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else $as_nop
6878 if test -n "$ac_ct_DLLTOOL"; then
6879 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6903 if test -n "$ac_ct_DLLTOOL"; then
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6905 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6906 else
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 printf "%s\n" "no" >&6; }
6909 fi
6910
6911 if test "x$ac_ct_DLLTOOL" = x; then
6912 DLLTOOL="false"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 DLLTOOL=$ac_ct_DLLTOOL
6921 fi
6922 else
6923 DLLTOOL="$ac_cv_prog_DLLTOOL"
6924 fi
6925
6926 test -z "$DLLTOOL" && DLLTOOL=dlltool
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6938 printf %s "checking how to associate runtime and link libraries... " >&6; }
6939 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6940 then :
6941 printf %s "(cached) " >&6
6942 else $as_nop
6943 lt_cv_sharedlib_from_linklib_cmd='unknown'
6944
6945 case $host_os in
6946 cygwin* | mingw* | pw32* | cegcc*)
6947 # two different shell functions defined in ltmain.sh;
6948 # decide which one to use based on capabilities of $DLLTOOL
6949 case `$DLLTOOL --help 2>&1` in
6950 *--identify-strict*)
6951 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6952 ;;
6953 *)
6954 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6955 ;;
6956 esac
6957 ;;
6958 *)
6959 # fallback: assume linklib IS sharedlib
6960 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6961 ;;
6962 esac
6963
6964 fi
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6966 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6967 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6968 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "$ac_tool_prefix"; then
6977 for ac_prog in ar
6978 do
6979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 printf %s "checking for $ac_word... " >&6; }
6983 if test ${ac_cv_prog_AR+y}
6984 then :
6985 printf %s "(cached) " >&6
6986 else $as_nop
6987 if test -n "$AR"; then
6988 ac_cv_prog_AR="$AR" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993 IFS=$as_save_IFS
6994 case $as_dir in #(((
6995 '') as_dir=./ ;;
6996 */) ;;
6997 *) as_dir=$as_dir/ ;;
6998 esac
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 AR=$ac_cv_prog_AR
7012 if test -n "$AR"; then
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7014 printf "%s\n" "$AR" >&6; }
7015 else
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 printf "%s\n" "no" >&6; }
7018 fi
7019
7020
7021 test -n "$AR" && break
7022 done
7023 fi
7024 if test -z "$AR"; then
7025 ac_ct_AR=$AR
7026 for ac_prog in ar
7027 do
7028 # Extract the first word of "$ac_prog", so it can be a program name with args.
7029 set dummy $ac_prog; ac_word=$2
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 printf %s "checking for $ac_word... " >&6; }
7032 if test ${ac_cv_prog_ac_ct_AR+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else $as_nop
7036 if test -n "$ac_ct_AR"; then
7037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 case $as_dir in #(((
7044 '') as_dir=./ ;;
7045 */) ;;
7046 *) as_dir=$as_dir/ ;;
7047 esac
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_AR="$ac_prog"
7051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7061 if test -n "$ac_ct_AR"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7063 printf "%s\n" "$ac_ct_AR" >&6; }
7064 else
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069
7070 test -n "$ac_ct_AR" && break
7071 done
7072
7073 if test "x$ac_ct_AR" = x; then
7074 AR="false"
7075 else
7076 case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082 AR=$ac_ct_AR
7083 fi
7084 fi
7085
7086 : ${AR=ar}
7087
7088
7089
7090
7091
7092
7093 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7094 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7095 # higher priority because thats what people were doing historically (setting
7096 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7097 # variable obsoleted/removed.
7098
7099 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7100 lt_ar_flags=$AR_FLAGS
7101
7102
7103
7104
7105
7106
7107 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7108 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7109
7110
7111
7112
7113
7114
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7116 printf %s "checking for archiver @FILE support... " >&6; }
7117 if test ${lt_cv_ar_at_file+y}
7118 then :
7119 printf %s "(cached) " >&6
7120 else $as_nop
7121 lt_cv_ar_at_file=no
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124
7125 int
7126 main (void)
7127 {
7128
7129 ;
7130 return 0;
7131 }
7132 _ACEOF
7133 if ac_fn_c_try_compile "$LINENO"
7134 then :
7135 echo conftest.$ac_objext > conftest.lst
7136 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7138 (eval $lt_ar_try) 2>&5
7139 ac_status=$?
7140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }
7142 if test 0 -eq "$ac_status"; then
7143 # Ensure the archiver fails upon bogus file names.
7144 rm -f conftest.$ac_objext libconftest.a
7145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7146 (eval $lt_ar_try) 2>&5
7147 ac_status=$?
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150 if test 0 -ne "$ac_status"; then
7151 lt_cv_ar_at_file=@
7152 fi
7153 fi
7154 rm -f conftest.* libconftest.a
7155
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7158
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7161 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7162
7163 if test no = "$lt_cv_ar_at_file"; then
7164 archiver_list_spec=
7165 else
7166 archiver_list_spec=$lt_cv_ar_at_file
7167 fi
7168
7169
7170
7171
7172
7173
7174
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}strip; ac_word=$2
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 printf %s "checking for $ac_word... " >&6; }
7180 if test ${ac_cv_prog_STRIP+y}
7181 then :
7182 printf %s "(cached) " >&6
7183 else $as_nop
7184 if test -n "$STRIP"; then
7185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 case $as_dir in #(((
7192 '') as_dir=./ ;;
7193 */) ;;
7194 *) as_dir=$as_dir/ ;;
7195 esac
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 STRIP=$ac_cv_prog_STRIP
7209 if test -n "$STRIP"; then
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7211 printf "%s\n" "$STRIP" >&6; }
7212 else
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 printf "%s\n" "no" >&6; }
7215 fi
7216
7217
7218 fi
7219 if test -z "$ac_cv_prog_STRIP"; then
7220 ac_ct_STRIP=$STRIP
7221 # Extract the first word of "strip", so it can be a program name with args.
7222 set dummy strip; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_prog_ac_ct_STRIP+y}
7226 then :
7227 printf %s "(cached) " >&6
7228 else $as_nop
7229 if test -n "$ac_ct_STRIP"; then
7230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 case $as_dir in #(((
7237 '') as_dir=./ ;;
7238 */) ;;
7239 *) as_dir=$as_dir/ ;;
7240 esac
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_ac_ct_STRIP="strip"
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7254 if test -n "$ac_ct_STRIP"; then
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7256 printf "%s\n" "$ac_ct_STRIP" >&6; }
7257 else
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 printf "%s\n" "no" >&6; }
7260 fi
7261
7262 if test "x$ac_ct_STRIP" = x; then
7263 STRIP=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 STRIP=$ac_ct_STRIP
7272 fi
7273 else
7274 STRIP="$ac_cv_prog_STRIP"
7275 fi
7276
7277 test -z "$STRIP" && STRIP=:
7278
7279
7280
7281
7282
7283
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 printf %s "checking for $ac_word... " >&6; }
7289 if test ${ac_cv_prog_RANLIB+y}
7290 then :
7291 printf %s "(cached) " >&6
7292 else $as_nop
7293 if test -n "$RANLIB"; then
7294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 case $as_dir in #(((
7301 '') as_dir=./ ;;
7302 */) ;;
7303 *) as_dir=$as_dir/ ;;
7304 esac
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 RANLIB=$ac_cv_prog_RANLIB
7318 if test -n "$RANLIB"; then
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7320 printf "%s\n" "$RANLIB" >&6; }
7321 else
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 printf "%s\n" "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_RANLIB"; then
7329 ac_ct_RANLIB=$RANLIB
7330 # Extract the first word of "ranlib", so it can be a program name with args.
7331 set dummy ranlib; ac_word=$2
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 printf %s "checking for $ac_word... " >&6; }
7334 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7335 then :
7336 printf %s "(cached) " >&6
7337 else $as_nop
7338 if test -n "$ac_ct_RANLIB"; then
7339 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344 IFS=$as_save_IFS
7345 case $as_dir in #(((
7346 '') as_dir=./ ;;
7347 */) ;;
7348 *) as_dir=$as_dir/ ;;
7349 esac
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_ac_ct_RANLIB="ranlib"
7353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7363 if test -n "$ac_ct_RANLIB"; then
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7365 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7366 else
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 printf "%s\n" "no" >&6; }
7369 fi
7370
7371 if test "x$ac_ct_RANLIB" = x; then
7372 RANLIB=":"
7373 else
7374 case $cross_compiling:$ac_tool_warned in
7375 yes:)
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7378 ac_tool_warned=yes ;;
7379 esac
7380 RANLIB=$ac_ct_RANLIB
7381 fi
7382 else
7383 RANLIB="$ac_cv_prog_RANLIB"
7384 fi
7385
7386 test -z "$RANLIB" && RANLIB=:
7387
7388
7389
7390
7391
7392
7393 # Determine commands to create old-style static archives.
7394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7395 old_postinstall_cmds='chmod 644 $oldlib'
7396 old_postuninstall_cmds=
7397
7398 if test -n "$RANLIB"; then
7399 case $host_os in
7400 bitrig* | openbsd*)
7401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7402 ;;
7403 *)
7404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7405 ;;
7406 esac
7407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7408 fi
7409
7410 case $host_os in
7411 darwin*)
7412 lock_old_archive_extraction=yes ;;
7413 *)
7414 lock_old_archive_extraction=no ;;
7415 esac
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 # If no C compiler was specified, use CC.
7456 LTCC=${LTCC-"$CC"}
7457
7458 # If no C compiler flags were specified, use CFLAGS.
7459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7460
7461 # Allow CC to be a program name with arguments.
7462 compiler=$CC
7463
7464
7465 # Check for command to grab the raw symbol name followed by C symbol from nm.
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7467 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7468 if test ${lt_cv_sys_global_symbol_pipe+y}
7469 then :
7470 printf %s "(cached) " >&6
7471 else $as_nop
7472
7473 # These are sane defaults that work on at least a few old systems.
7474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7475
7476 # Character class describing NM global symbol codes.
7477 symcode='[BCDEGRST]'
7478
7479 # Regexp to match symbols that can be accessed directly from C.
7480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7481
7482 # Define system-specific variables.
7483 case $host_os in
7484 aix*)
7485 symcode='[BCDT]'
7486 ;;
7487 cygwin* | mingw* | pw32* | cegcc*)
7488 symcode='[ABCDGISTW]'
7489 ;;
7490 hpux*)
7491 if test ia64 = "$host_cpu"; then
7492 symcode='[ABCDEGRST]'
7493 fi
7494 ;;
7495 irix* | nonstopux*)
7496 symcode='[BCDEGRST]'
7497 ;;
7498 osf*)
7499 symcode='[BCDEGQRST]'
7500 ;;
7501 solaris*)
7502 symcode='[BDRT]'
7503 ;;
7504 sco3.2v5*)
7505 symcode='[DT]'
7506 ;;
7507 sysv4.2uw2*)
7508 symcode='[DT]'
7509 ;;
7510 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7511 symcode='[ABDT]'
7512 ;;
7513 sysv4)
7514 symcode='[DFNSTU]'
7515 ;;
7516 esac
7517
7518 # If we're using GNU nm, then use its standard symbol codes.
7519 case `$NM -V 2>&1` in
7520 *GNU* | *'with BFD'*)
7521 symcode='[ABCDGIRSTW]' ;;
7522 esac
7523
7524 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7525 # Gets list of data symbols to import.
7526 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7527 # Adjust the below global symbol transforms to fixup imported variables.
7528 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7529 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7530 lt_c_name_lib_hook="\
7531 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7532 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7533 else
7534 # Disable hooks by default.
7535 lt_cv_sys_global_symbol_to_import=
7536 lt_cdecl_hook=
7537 lt_c_name_hook=
7538 lt_c_name_lib_hook=
7539 fi
7540
7541 # Transform an extracted symbol line into a proper C declaration.
7542 # Some systems (esp. on ia64) link data and code symbols differently,
7543 # so use this general approach.
7544 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7545 $lt_cdecl_hook\
7546 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7547 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7548
7549 # Transform an extracted symbol line into symbol name and symbol address
7550 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7551 $lt_c_name_hook\
7552 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7553 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7554
7555 # Transform an extracted symbol line into symbol name with lib prefix and
7556 # symbol address.
7557 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7558 $lt_c_name_lib_hook\
7559 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7560 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7561 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7562
7563 # Handle CRLF in mingw tool chain
7564 opt_cr=
7565 case $build_os in
7566 mingw*)
7567 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7568 ;;
7569 esac
7570
7571 # Try without a prefix underscore, then with it.
7572 for ac_symprfx in "" "_"; do
7573
7574 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7575 symxfrm="\\1 $ac_symprfx\\2 \\2"
7576
7577 # Write the raw and C identifiers.
7578 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7579 # Fake it for dumpbin and say T for any non-static function,
7580 # D for any global variable and I for any imported variable.
7581 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7582 # which start with @ or ?.
7583 lt_cv_sys_global_symbol_pipe="$AWK '"\
7584 " {last_section=section; section=\$ 3};"\
7585 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7586 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7587 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7588 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7589 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7590 " \$ 0!~/External *\|/{next};"\
7591 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7592 " {if(hide[section]) next};"\
7593 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7594 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7595 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7596 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7597 " ' prfx=^$ac_symprfx"
7598 else
7599 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7600 fi
7601 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7602
7603 # Check to see that the pipe works correctly.
7604 pipe_works=no
7605
7606 rm -f conftest*
7607 cat > conftest.$ac_ext <<_LT_EOF
7608 #ifdef __cplusplus
7609 extern "C" {
7610 #endif
7611 char nm_test_var;
7612 void nm_test_func(void);
7613 void nm_test_func(void){}
7614 #ifdef __cplusplus
7615 }
7616 #endif
7617 int main(){nm_test_var='a';nm_test_func();return(0);}
7618 _LT_EOF
7619
7620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7621 (eval $ac_compile) 2>&5
7622 ac_status=$?
7623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7624 test $ac_status = 0; }; then
7625 # Now try to grab the symbols.
7626 nlist=conftest.nm
7627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7628 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7629 ac_status=$?
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631 test $ac_status = 0; } && test -s "$nlist"; then
7632 # Try sorting and uniquifying the output.
7633 if sort "$nlist" | uniq > "$nlist"T; then
7634 mv -f "$nlist"T "$nlist"
7635 else
7636 rm -f "$nlist"T
7637 fi
7638
7639 # Make sure that we snagged all the symbols we need.
7640 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7641 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7642 cat <<_LT_EOF > conftest.$ac_ext
7643 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7644 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7645 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7646 relocations are performed -- see ld's documentation on pseudo-relocs. */
7647 # define LT_DLSYM_CONST
7648 #elif defined __osf__
7649 /* This system does not cope well with relocations in const data. */
7650 # define LT_DLSYM_CONST
7651 #else
7652 # define LT_DLSYM_CONST const
7653 #endif
7654
7655 #ifdef __cplusplus
7656 extern "C" {
7657 #endif
7658
7659 _LT_EOF
7660 # Now generate the symbol file.
7661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7662
7663 cat <<_LT_EOF >> conftest.$ac_ext
7664
7665 /* The mapping between symbol names and symbols. */
7666 LT_DLSYM_CONST struct {
7667 const char *name;
7668 void *address;
7669 }
7670 lt__PROGRAM__LTX_preloaded_symbols[] =
7671 {
7672 { "@PROGRAM@", (void *) 0 },
7673 _LT_EOF
7674 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7675 cat <<\_LT_EOF >> conftest.$ac_ext
7676 {0, (void *) 0}
7677 };
7678
7679 /* This works around a problem in FreeBSD linker */
7680 #ifdef FREEBSD_WORKAROUND
7681 static const void *lt_preloaded_setup() {
7682 return lt__PROGRAM__LTX_preloaded_symbols;
7683 }
7684 #endif
7685
7686 #ifdef __cplusplus
7687 }
7688 #endif
7689 _LT_EOF
7690 # Now try linking the two files.
7691 mv conftest.$ac_objext conftstm.$ac_objext
7692 lt_globsym_save_LIBS=$LIBS
7693 lt_globsym_save_CFLAGS=$CFLAGS
7694 LIBS=conftstm.$ac_objext
7695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7697 (eval $ac_link) 2>&5
7698 ac_status=$?
7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7701 pipe_works=yes
7702 fi
7703 LIBS=$lt_globsym_save_LIBS
7704 CFLAGS=$lt_globsym_save_CFLAGS
7705 else
7706 echo "cannot find nm_test_func in $nlist" >&5
7707 fi
7708 else
7709 echo "cannot find nm_test_var in $nlist" >&5
7710 fi
7711 else
7712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7713 fi
7714 else
7715 echo "$progname: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7717 fi
7718 rm -rf conftest* conftst*
7719
7720 # Do not use the global_symbol_pipe unless it works.
7721 if test yes = "$pipe_works"; then
7722 break
7723 else
7724 lt_cv_sys_global_symbol_pipe=
7725 fi
7726 done
7727
7728 fi
7729
7730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7731 lt_cv_sys_global_symbol_to_cdecl=
7732 fi
7733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7735 printf "%s\n" "failed" >&6; }
7736 else
7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7738 printf "%s\n" "ok" >&6; }
7739 fi
7740
7741 # Response file support.
7742 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7743 nm_file_list_spec='@'
7744 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7745 nm_file_list_spec='@'
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7785 printf %s "checking for sysroot... " >&6; }
7786
7787 # Check whether --with-sysroot was given.
7788 if test ${with_sysroot+y}
7789 then :
7790 withval=$with_sysroot;
7791 else $as_nop
7792 with_sysroot=no
7793 fi
7794
7795
7796 lt_sysroot=
7797 case $with_sysroot in #(
7798 yes)
7799 if test yes = "$GCC"; then
7800 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7801 fi
7802 ;; #(
7803 /*)
7804 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7805 ;; #(
7806 no|'')
7807 ;; #(
7808 *)
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7810 printf "%s\n" "$with_sysroot" >&6; }
7811 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7812 ;;
7813 esac
7814
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7816 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7817
7818
7819
7820
7821
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7823 printf %s "checking for a working dd... " >&6; }
7824 if test ${ac_cv_path_lt_DD+y}
7825 then :
7826 printf %s "(cached) " >&6
7827 else $as_nop
7828 printf 0123456789abcdef0123456789abcdef >conftest.i
7829 cat conftest.i conftest.i >conftest2.i
7830 : ${lt_DD:=$DD}
7831 if test -z "$lt_DD"; then
7832 ac_path_lt_DD_found=false
7833 # Loop through the user's path and test for each of PROGNAME-LIST
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837 IFS=$as_save_IFS
7838 case $as_dir in #(((
7839 '') as_dir=./ ;;
7840 */) ;;
7841 *) as_dir=$as_dir/ ;;
7842 esac
7843 for ac_prog in dd
7844 do
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7847 as_fn_executable_p "$ac_path_lt_DD" || continue
7848 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7849 cmp -s conftest.i conftest.out \
7850 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7851 fi
7852 $ac_path_lt_DD_found && break 3
7853 done
7854 done
7855 done
7856 IFS=$as_save_IFS
7857 if test -z "$ac_cv_path_lt_DD"; then
7858 :
7859 fi
7860 else
7861 ac_cv_path_lt_DD=$lt_DD
7862 fi
7863
7864 rm -f conftest.i conftest2.i conftest.out
7865 fi
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7867 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7868
7869
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7871 printf %s "checking how to truncate binary pipes... " >&6; }
7872 if test ${lt_cv_truncate_bin+y}
7873 then :
7874 printf %s "(cached) " >&6
7875 else $as_nop
7876 printf 0123456789abcdef0123456789abcdef >conftest.i
7877 cat conftest.i conftest.i >conftest2.i
7878 lt_cv_truncate_bin=
7879 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7880 cmp -s conftest.i conftest.out \
7881 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7882 fi
7883 rm -f conftest.i conftest2.i conftest.out
7884 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7885 fi
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7887 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7888
7889
7890
7891
7892
7893
7894
7895 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7896 func_cc_basename ()
7897 {
7898 for cc_temp in $*""; do
7899 case $cc_temp in
7900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7902 \-*) ;;
7903 *) break;;
7904 esac
7905 done
7906 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7907 }
7908
7909 # Check whether --enable-libtool-lock was given.
7910 if test ${enable_libtool_lock+y}
7911 then :
7912 enableval=$enable_libtool_lock;
7913 fi
7914
7915 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7916
7917 # Some flags need to be propagated to the compiler or linker for good
7918 # libtool support.
7919 case $host in
7920 ia64-*-hpux*)
7921 # Find out what ABI is being produced by ac_compile, and set mode
7922 # options accordingly.
7923 echo 'int i;' > conftest.$ac_ext
7924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7925 (eval $ac_compile) 2>&5
7926 ac_status=$?
7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928 test $ac_status = 0; }; then
7929 case `$FILECMD conftest.$ac_objext` in
7930 *ELF-32*)
7931 HPUX_IA64_MODE=32
7932 ;;
7933 *ELF-64*)
7934 HPUX_IA64_MODE=64
7935 ;;
7936 esac
7937 fi
7938 rm -rf conftest*
7939 ;;
7940 *-*-irix6*)
7941 # Find out what ABI is being produced by ac_compile, and set linker
7942 # options accordingly.
7943 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7945 (eval $ac_compile) 2>&5
7946 ac_status=$?
7947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7948 test $ac_status = 0; }; then
7949 if test yes = "$lt_cv_prog_gnu_ld"; then
7950 case `$FILECMD conftest.$ac_objext` in
7951 *32-bit*)
7952 LD="${LD-ld} -melf32bsmip"
7953 ;;
7954 *N32*)
7955 LD="${LD-ld} -melf32bmipn32"
7956 ;;
7957 *64-bit*)
7958 LD="${LD-ld} -melf64bmip"
7959 ;;
7960 esac
7961 else
7962 case `$FILECMD conftest.$ac_objext` in
7963 *32-bit*)
7964 LD="${LD-ld} -32"
7965 ;;
7966 *N32*)
7967 LD="${LD-ld} -n32"
7968 ;;
7969 *64-bit*)
7970 LD="${LD-ld} -64"
7971 ;;
7972 esac
7973 fi
7974 fi
7975 rm -rf conftest*
7976 ;;
7977
7978 mips64*-*linux*)
7979 # Find out what ABI is being produced by ac_compile, and set linker
7980 # options accordingly.
7981 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983 (eval $ac_compile) 2>&5
7984 ac_status=$?
7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; }; then
7987 emul=elf
7988 case `$FILECMD conftest.$ac_objext` in
7989 *32-bit*)
7990 emul="${emul}32"
7991 ;;
7992 *64-bit*)
7993 emul="${emul}64"
7994 ;;
7995 esac
7996 case `$FILECMD conftest.$ac_objext` in
7997 *MSB*)
7998 emul="${emul}btsmip"
7999 ;;
8000 *LSB*)
8001 emul="${emul}ltsmip"
8002 ;;
8003 esac
8004 case `$FILECMD conftest.$ac_objext` in
8005 *N32*)
8006 emul="${emul}n32"
8007 ;;
8008 esac
8009 LD="${LD-ld} -m $emul"
8010 fi
8011 rm -rf conftest*
8012 ;;
8013
8014 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8015 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8016 # Find out what ABI is being produced by ac_compile, and set linker
8017 # options accordingly. Note that the listed cases only cover the
8018 # situations where additional linker options are needed (such as when
8019 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8020 # vice versa); the common cases where no linker options are needed do
8021 # not appear in the list.
8022 echo 'int i;' > conftest.$ac_ext
8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8024 (eval $ac_compile) 2>&5
8025 ac_status=$?
8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8027 test $ac_status = 0; }; then
8028 case `$FILECMD conftest.o` in
8029 *32-bit*)
8030 case $host in
8031 x86_64-*kfreebsd*-gnu)
8032 LD="${LD-ld} -m elf_i386_fbsd"
8033 ;;
8034 x86_64-*linux*)
8035 case `$FILECMD conftest.o` in
8036 *x86-64*)
8037 LD="${LD-ld} -m elf32_x86_64"
8038 ;;
8039 *)
8040 LD="${LD-ld} -m elf_i386"
8041 ;;
8042 esac
8043 ;;
8044 powerpc64le-*linux*)
8045 LD="${LD-ld} -m elf32lppclinux"
8046 ;;
8047 powerpc64-*linux*)
8048 LD="${LD-ld} -m elf32ppclinux"
8049 ;;
8050 s390x-*linux*)
8051 LD="${LD-ld} -m elf_s390"
8052 ;;
8053 sparc64-*linux*)
8054 LD="${LD-ld} -m elf32_sparc"
8055 ;;
8056 esac
8057 ;;
8058 *64-bit*)
8059 case $host in
8060 x86_64-*kfreebsd*-gnu)
8061 LD="${LD-ld} -m elf_x86_64_fbsd"
8062 ;;
8063 x86_64-*linux*)
8064 LD="${LD-ld} -m elf_x86_64"
8065 ;;
8066 powerpcle-*linux*)
8067 LD="${LD-ld} -m elf64lppc"
8068 ;;
8069 powerpc-*linux*)
8070 LD="${LD-ld} -m elf64ppc"
8071 ;;
8072 s390*-*linux*|s390*-*tpf*)
8073 LD="${LD-ld} -m elf64_s390"
8074 ;;
8075 sparc*-*linux*)
8076 LD="${LD-ld} -m elf64_sparc"
8077 ;;
8078 esac
8079 ;;
8080 esac
8081 fi
8082 rm -rf conftest*
8083 ;;
8084
8085 *-*-sco3.2v5*)
8086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8087 SAVE_CFLAGS=$CFLAGS
8088 CFLAGS="$CFLAGS -belf"
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8090 printf %s "checking whether the C compiler needs -belf... " >&6; }
8091 if test ${lt_cv_cc_needs_belf+y}
8092 then :
8093 printf %s "(cached) " >&6
8094 else $as_nop
8095 ac_ext=c
8096 ac_cpp='$CPP $CPPFLAGS'
8097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103
8104 int
8105 main (void)
8106 {
8107
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"
8113 then :
8114 lt_cv_cc_needs_belf=yes
8115 else $as_nop
8116 lt_cv_cc_needs_belf=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8119 conftest$ac_exeext conftest.$ac_ext
8120 ac_ext=c
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126 fi
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8128 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8129 if test yes != "$lt_cv_cc_needs_belf"; then
8130 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8131 CFLAGS=$SAVE_CFLAGS
8132 fi
8133 ;;
8134 *-*solaris*)
8135 # Find out what ABI is being produced by ac_compile, and set linker
8136 # options accordingly.
8137 echo 'int i;' > conftest.$ac_ext
8138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8139 (eval $ac_compile) 2>&5
8140 ac_status=$?
8141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142 test $ac_status = 0; }; then
8143 case `$FILECMD conftest.o` in
8144 *64-bit*)
8145 case $lt_cv_prog_gnu_ld in
8146 yes*)
8147 case $host in
8148 i?86-*-solaris*|x86_64-*-solaris*)
8149 LD="${LD-ld} -m elf_x86_64"
8150 ;;
8151 sparc*-*-solaris*)
8152 LD="${LD-ld} -m elf64_sparc"
8153 ;;
8154 esac
8155 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8156 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8157 LD=${LD-ld}_sol2
8158 fi
8159 ;;
8160 *)
8161 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8162 LD="${LD-ld} -64"
8163 fi
8164 ;;
8165 esac
8166 ;;
8167 esac
8168 fi
8169 rm -rf conftest*
8170 ;;
8171 esac
8172
8173 need_locks=$enable_libtool_lock
8174
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}mt; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else $as_nop
8184 if test -n "$MANIFEST_TOOL"; then
8185 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 case $as_dir in #(((
8192 '') as_dir=./ ;;
8193 */) ;;
8194 *) as_dir=$as_dir/ ;;
8195 esac
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8209 if test -n "$MANIFEST_TOOL"; then
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8211 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8212 else
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 printf "%s\n" "no" >&6; }
8215 fi
8216
8217
8218 fi
8219 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8220 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8221 # Extract the first word of "mt", so it can be a program name with args.
8222 set dummy mt; ac_word=$2
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 printf %s "checking for $ac_word... " >&6; }
8225 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8226 then :
8227 printf %s "(cached) " >&6
8228 else $as_nop
8229 if test -n "$ac_ct_MANIFEST_TOOL"; then
8230 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235 IFS=$as_save_IFS
8236 case $as_dir in #(((
8237 '') as_dir=./ ;;
8238 */) ;;
8239 *) as_dir=$as_dir/ ;;
8240 esac
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8254 if test -n "$ac_ct_MANIFEST_TOOL"; then
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8256 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8257 else
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 printf "%s\n" "no" >&6; }
8260 fi
8261
8262 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8263 MANIFEST_TOOL=":"
8264 else
8265 case $cross_compiling:$ac_tool_warned in
8266 yes:)
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8268 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8269 ac_tool_warned=yes ;;
8270 esac
8271 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8272 fi
8273 else
8274 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8275 fi
8276
8277 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8279 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8280 if test ${lt_cv_path_mainfest_tool+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 lt_cv_path_mainfest_tool=no
8285 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8286 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8287 cat conftest.err >&5
8288 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8289 lt_cv_path_mainfest_tool=yes
8290 fi
8291 rm -f conftest*
8292 fi
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8294 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8295 if test yes != "$lt_cv_path_mainfest_tool"; then
8296 MANIFEST_TOOL=:
8297 fi
8298
8299
8300
8301
8302
8303
8304 case $host_os in
8305 rhapsody* | darwin*)
8306 if test -n "$ac_tool_prefix"; then
8307 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 printf %s "checking for $ac_word... " >&6; }
8311 if test ${ac_cv_prog_DSYMUTIL+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else $as_nop
8315 if test -n "$DSYMUTIL"; then
8316 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 case $as_dir in #(((
8323 '') as_dir=./ ;;
8324 */) ;;
8325 *) as_dir=$as_dir/ ;;
8326 esac
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337 fi
8338 fi
8339 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8340 if test -n "$DSYMUTIL"; then
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8342 printf "%s\n" "$DSYMUTIL" >&6; }
8343 else
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 printf "%s\n" "no" >&6; }
8346 fi
8347
8348
8349 fi
8350 if test -z "$ac_cv_prog_DSYMUTIL"; then
8351 ac_ct_DSYMUTIL=$DSYMUTIL
8352 # Extract the first word of "dsymutil", so it can be a program name with args.
8353 set dummy dsymutil; ac_word=$2
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 printf %s "checking for $ac_word... " >&6; }
8356 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8357 then :
8358 printf %s "(cached) " >&6
8359 else $as_nop
8360 if test -n "$ac_ct_DSYMUTIL"; then
8361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 case $as_dir in #(((
8368 '') as_dir=./ ;;
8369 */) ;;
8370 *) as_dir=$as_dir/ ;;
8371 esac
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8374 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8385 if test -n "$ac_ct_DSYMUTIL"; then
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8387 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8388 else
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 printf "%s\n" "no" >&6; }
8391 fi
8392
8393 if test "x$ac_ct_DSYMUTIL" = x; then
8394 DSYMUTIL=":"
8395 else
8396 case $cross_compiling:$ac_tool_warned in
8397 yes:)
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400 ac_tool_warned=yes ;;
8401 esac
8402 DSYMUTIL=$ac_ct_DSYMUTIL
8403 fi
8404 else
8405 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8406 fi
8407
8408 if test -n "$ac_tool_prefix"; then
8409 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8410 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 printf %s "checking for $ac_word... " >&6; }
8413 if test ${ac_cv_prog_NMEDIT+y}
8414 then :
8415 printf %s "(cached) " >&6
8416 else $as_nop
8417 if test -n "$NMEDIT"; then
8418 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 case $as_dir in #(((
8425 '') as_dir=./ ;;
8426 */) ;;
8427 *) as_dir=$as_dir/ ;;
8428 esac
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435 done
8436 done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 NMEDIT=$ac_cv_prog_NMEDIT
8442 if test -n "$NMEDIT"; then
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8444 printf "%s\n" "$NMEDIT" >&6; }
8445 else
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 printf "%s\n" "no" >&6; }
8448 fi
8449
8450
8451 fi
8452 if test -z "$ac_cv_prog_NMEDIT"; then
8453 ac_ct_NMEDIT=$NMEDIT
8454 # Extract the first word of "nmedit", so it can be a program name with args.
8455 set dummy nmedit; ac_word=$2
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 printf %s "checking for $ac_word... " >&6; }
8458 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8459 then :
8460 printf %s "(cached) " >&6
8461 else $as_nop
8462 if test -n "$ac_ct_NMEDIT"; then
8463 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468 IFS=$as_save_IFS
8469 case $as_dir in #(((
8470 '') as_dir=./ ;;
8471 */) ;;
8472 *) as_dir=$as_dir/ ;;
8473 esac
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480 done
8481 done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8487 if test -n "$ac_ct_NMEDIT"; then
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8489 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8490 else
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 printf "%s\n" "no" >&6; }
8493 fi
8494
8495 if test "x$ac_ct_NMEDIT" = x; then
8496 NMEDIT=":"
8497 else
8498 case $cross_compiling:$ac_tool_warned in
8499 yes:)
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8501 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8502 ac_tool_warned=yes ;;
8503 esac
8504 NMEDIT=$ac_ct_NMEDIT
8505 fi
8506 else
8507 NMEDIT="$ac_cv_prog_NMEDIT"
8508 fi
8509
8510 if test -n "$ac_tool_prefix"; then
8511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 printf %s "checking for $ac_word... " >&6; }
8515 if test ${ac_cv_prog_LIPO+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else $as_nop
8519 if test -n "$LIPO"; then
8520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 case $as_dir in #(((
8527 '') as_dir=./ ;;
8528 */) ;;
8529 *) as_dir=$as_dir/ ;;
8530 esac
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8533 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537 done
8538 done
8539 IFS=$as_save_IFS
8540
8541 fi
8542 fi
8543 LIPO=$ac_cv_prog_LIPO
8544 if test -n "$LIPO"; then
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8546 printf "%s\n" "$LIPO" >&6; }
8547 else
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 printf "%s\n" "no" >&6; }
8550 fi
8551
8552
8553 fi
8554 if test -z "$ac_cv_prog_LIPO"; then
8555 ac_ct_LIPO=$LIPO
8556 # Extract the first word of "lipo", so it can be a program name with args.
8557 set dummy lipo; ac_word=$2
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 printf %s "checking for $ac_word... " >&6; }
8560 if test ${ac_cv_prog_ac_ct_LIPO+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 if test -n "$ac_ct_LIPO"; then
8565 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 case $as_dir in #(((
8572 '') as_dir=./ ;;
8573 */) ;;
8574 *) as_dir=$as_dir/ ;;
8575 esac
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_ac_ct_LIPO="lipo"
8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8589 if test -n "$ac_ct_LIPO"; then
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8591 printf "%s\n" "$ac_ct_LIPO" >&6; }
8592 else
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 printf "%s\n" "no" >&6; }
8595 fi
8596
8597 if test "x$ac_ct_LIPO" = x; then
8598 LIPO=":"
8599 else
8600 case $cross_compiling:$ac_tool_warned in
8601 yes:)
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8605 esac
8606 LIPO=$ac_ct_LIPO
8607 fi
8608 else
8609 LIPO="$ac_cv_prog_LIPO"
8610 fi
8611
8612 if test -n "$ac_tool_prefix"; then
8613 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8614 set dummy ${ac_tool_prefix}otool; ac_word=$2
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 printf %s "checking for $ac_word... " >&6; }
8617 if test ${ac_cv_prog_OTOOL+y}
8618 then :
8619 printf %s "(cached) " >&6
8620 else $as_nop
8621 if test -n "$OTOOL"; then
8622 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 case $as_dir in #(((
8629 '') as_dir=./ ;;
8630 */) ;;
8631 *) as_dir=$as_dir/ ;;
8632 esac
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639 done
8640 done
8641 IFS=$as_save_IFS
8642
8643 fi
8644 fi
8645 OTOOL=$ac_cv_prog_OTOOL
8646 if test -n "$OTOOL"; then
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8648 printf "%s\n" "$OTOOL" >&6; }
8649 else
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 printf "%s\n" "no" >&6; }
8652 fi
8653
8654
8655 fi
8656 if test -z "$ac_cv_prog_OTOOL"; then
8657 ac_ct_OTOOL=$OTOOL
8658 # Extract the first word of "otool", so it can be a program name with args.
8659 set dummy otool; ac_word=$2
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 printf %s "checking for $ac_word... " >&6; }
8662 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8663 then :
8664 printf %s "(cached) " >&6
8665 else $as_nop
8666 if test -n "$ac_ct_OTOOL"; then
8667 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8671 do
8672 IFS=$as_save_IFS
8673 case $as_dir in #(((
8674 '') as_dir=./ ;;
8675 */) ;;
8676 *) as_dir=$as_dir/ ;;
8677 esac
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8680 ac_cv_prog_ac_ct_OTOOL="otool"
8681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684 done
8685 done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8691 if test -n "$ac_ct_OTOOL"; then
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8693 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8694 else
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 printf "%s\n" "no" >&6; }
8697 fi
8698
8699 if test "x$ac_ct_OTOOL" = x; then
8700 OTOOL=":"
8701 else
8702 case $cross_compiling:$ac_tool_warned in
8703 yes:)
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8706 ac_tool_warned=yes ;;
8707 esac
8708 OTOOL=$ac_ct_OTOOL
8709 fi
8710 else
8711 OTOOL="$ac_cv_prog_OTOOL"
8712 fi
8713
8714 if test -n "$ac_tool_prefix"; then
8715 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8716 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 printf %s "checking for $ac_word... " >&6; }
8719 if test ${ac_cv_prog_OTOOL64+y}
8720 then :
8721 printf %s "(cached) " >&6
8722 else $as_nop
8723 if test -n "$OTOOL64"; then
8724 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 case $as_dir in #(((
8731 '') as_dir=./ ;;
8732 */) ;;
8733 *) as_dir=$as_dir/ ;;
8734 esac
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 fi
8746 fi
8747 OTOOL64=$ac_cv_prog_OTOOL64
8748 if test -n "$OTOOL64"; then
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8750 printf "%s\n" "$OTOOL64" >&6; }
8751 else
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 printf "%s\n" "no" >&6; }
8754 fi
8755
8756
8757 fi
8758 if test -z "$ac_cv_prog_OTOOL64"; then
8759 ac_ct_OTOOL64=$OTOOL64
8760 # Extract the first word of "otool64", so it can be a program name with args.
8761 set dummy otool64; ac_word=$2
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 printf %s "checking for $ac_word... " >&6; }
8764 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8765 then :
8766 printf %s "(cached) " >&6
8767 else $as_nop
8768 if test -n "$ac_ct_OTOOL64"; then
8769 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 case $as_dir in #(((
8776 '') as_dir=./ ;;
8777 */) ;;
8778 *) as_dir=$as_dir/ ;;
8779 esac
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_ac_ct_OTOOL64="otool64"
8783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786 done
8787 done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8793 if test -n "$ac_ct_OTOOL64"; then
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8795 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8796 else
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 printf "%s\n" "no" >&6; }
8799 fi
8800
8801 if test "x$ac_ct_OTOOL64" = x; then
8802 OTOOL64=":"
8803 else
8804 case $cross_compiling:$ac_tool_warned in
8805 yes:)
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8809 esac
8810 OTOOL64=$ac_ct_OTOOL64
8811 fi
8812 else
8813 OTOOL64="$ac_cv_prog_OTOOL64"
8814 fi
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8843 printf %s "checking for -single_module linker flag... " >&6; }
8844 if test ${lt_cv_apple_cc_single_mod+y}
8845 then :
8846 printf %s "(cached) " >&6
8847 else $as_nop
8848 lt_cv_apple_cc_single_mod=no
8849 if test -z "$LT_MULTI_MODULE"; then
8850 # By default we will add the -single_module flag. You can override
8851 # by either setting the environment variable LT_MULTI_MODULE
8852 # non-empty at configure time, or by adding -multi_module to the
8853 # link flags.
8854 rm -rf libconftest.dylib*
8855 echo "int foo(void){return 1;}" > conftest.c
8856 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8857 -dynamiclib -Wl,-single_module conftest.c" >&5
8858 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8859 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8860 _lt_result=$?
8861 # If there is a non-empty error log, and "single_module"
8862 # appears in it, assume the flag caused a linker warning
8863 if test -s conftest.err && $GREP single_module conftest.err; then
8864 cat conftest.err >&5
8865 # Otherwise, if the output was created with a 0 exit code from
8866 # the compiler, it worked.
8867 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8868 lt_cv_apple_cc_single_mod=yes
8869 else
8870 cat conftest.err >&5
8871 fi
8872 rm -rf libconftest.dylib*
8873 rm -f conftest.*
8874 fi
8875 fi
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8877 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8878
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8880 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8881 if test ${lt_cv_ld_exported_symbols_list+y}
8882 then :
8883 printf %s "(cached) " >&6
8884 else $as_nop
8885 lt_cv_ld_exported_symbols_list=no
8886 save_LDFLAGS=$LDFLAGS
8887 echo "_main" > conftest.sym
8888 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891
8892 int
8893 main (void)
8894 {
8895
8896 ;
8897 return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"
8901 then :
8902 lt_cv_ld_exported_symbols_list=yes
8903 else $as_nop
8904 lt_cv_ld_exported_symbols_list=no
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LDFLAGS=$save_LDFLAGS
8909
8910 fi
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8912 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8913
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8915 printf %s "checking for -force_load linker flag... " >&6; }
8916 if test ${lt_cv_ld_force_load+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else $as_nop
8920 lt_cv_ld_force_load=no
8921 cat > conftest.c << _LT_EOF
8922 int forced_loaded() { return 2;}
8923 _LT_EOF
8924 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8925 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8926 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8927 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8928 echo "$RANLIB libconftest.a" >&5
8929 $RANLIB libconftest.a 2>&5
8930 cat > conftest.c << _LT_EOF
8931 int main() { return 0;}
8932 _LT_EOF
8933 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8934 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8935 _lt_result=$?
8936 if test -s conftest.err && $GREP force_load conftest.err; then
8937 cat conftest.err >&5
8938 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8939 lt_cv_ld_force_load=yes
8940 else
8941 cat conftest.err >&5
8942 fi
8943 rm -f conftest.err libconftest.a conftest conftest.c
8944 rm -rf conftest.dSYM
8945
8946 fi
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8948 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8949 case $host_os in
8950 rhapsody* | darwin1.[012])
8951 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8952 darwin1.*)
8953 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8954 darwin*)
8955 case $MACOSX_DEPLOYMENT_TARGET,$host in
8956 10.[012],*|,*powerpc*-darwin[5-8]*)
8957 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8958 *)
8959 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8960 esac
8961 ;;
8962 esac
8963 if test yes = "$lt_cv_apple_cc_single_mod"; then
8964 _lt_dar_single_mod='$single_module'
8965 fi
8966 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8967 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8968 else
8969 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8970 fi
8971 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8972 _lt_dsymutil='~$DSYMUTIL $lib || :'
8973 else
8974 _lt_dsymutil=
8975 fi
8976 ;;
8977 esac
8978
8979 # func_munge_path_list VARIABLE PATH
8980 # -----------------------------------
8981 # VARIABLE is name of variable containing _space_ separated list of
8982 # directories to be munged by the contents of PATH, which is string
8983 # having a format:
8984 # "DIR[:DIR]:"
8985 # string "DIR[ DIR]" will be prepended to VARIABLE
8986 # ":DIR[:DIR]"
8987 # string "DIR[ DIR]" will be appended to VARIABLE
8988 # "DIRP[:DIRP]::[DIRA:]DIRA"
8989 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8990 # "DIRA[ DIRA]" will be appended to VARIABLE
8991 # "DIR[:DIR]"
8992 # VARIABLE will be replaced by "DIR[ DIR]"
8993 func_munge_path_list ()
8994 {
8995 case x$2 in
8996 x)
8997 ;;
8998 *:)
8999 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9000 ;;
9001 x:*)
9002 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9003 ;;
9004 *::*)
9005 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9006 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9007 ;;
9008 *)
9009 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9010 ;;
9011 esac
9012 }
9013
9014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9015 "
9016 if test "x$ac_cv_header_dlfcn_h" = xyes
9017 then :
9018 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9019
9020 fi
9021
9022
9023
9024
9025
9026 # Set options
9027
9028
9029
9030 enable_dlopen=no
9031
9032
9033 enable_win32_dll=no
9034
9035
9036 # Check whether --enable-shared was given.
9037 if test ${enable_shared+y}
9038 then :
9039 enableval=$enable_shared; p=${PACKAGE-default}
9040 case $enableval in
9041 yes) enable_shared=yes ;;
9042 no) enable_shared=no ;;
9043 *)
9044 enable_shared=no
9045 # Look at the argument we got. We use all the common list separators.
9046 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9047 for pkg in $enableval; do
9048 IFS=$lt_save_ifs
9049 if test "X$pkg" = "X$p"; then
9050 enable_shared=yes
9051 fi
9052 done
9053 IFS=$lt_save_ifs
9054 ;;
9055 esac
9056 else $as_nop
9057 enable_shared=yes
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068 # Check whether --enable-static was given.
9069 if test ${enable_static+y}
9070 then :
9071 enableval=$enable_static; p=${PACKAGE-default}
9072 case $enableval in
9073 yes) enable_static=yes ;;
9074 no) enable_static=no ;;
9075 *)
9076 enable_static=no
9077 # Look at the argument we got. We use all the common list separators.
9078 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9079 for pkg in $enableval; do
9080 IFS=$lt_save_ifs
9081 if test "X$pkg" = "X$p"; then
9082 enable_static=yes
9083 fi
9084 done
9085 IFS=$lt_save_ifs
9086 ;;
9087 esac
9088 else $as_nop
9089 enable_static=yes
9090 fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 # Check whether --with-pic was given.
9102 if test ${with_pic+y}
9103 then :
9104 withval=$with_pic; lt_p=${PACKAGE-default}
9105 case $withval in
9106 yes|no) pic_mode=$withval ;;
9107 *)
9108 pic_mode=default
9109 # Look at the argument we got. We use all the common list separators.
9110 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9111 for lt_pkg in $withval; do
9112 IFS=$lt_save_ifs
9113 if test "X$lt_pkg" = "X$lt_p"; then
9114 pic_mode=yes
9115 fi
9116 done
9117 IFS=$lt_save_ifs
9118 ;;
9119 esac
9120 else $as_nop
9121 pic_mode=default
9122 fi
9123
9124
9125
9126
9127
9128
9129
9130
9131 # Check whether --enable-fast-install was given.
9132 if test ${enable_fast_install+y}
9133 then :
9134 enableval=$enable_fast_install; p=${PACKAGE-default}
9135 case $enableval in
9136 yes) enable_fast_install=yes ;;
9137 no) enable_fast_install=no ;;
9138 *)
9139 enable_fast_install=no
9140 # Look at the argument we got. We use all the common list separators.
9141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9142 for pkg in $enableval; do
9143 IFS=$lt_save_ifs
9144 if test "X$pkg" = "X$p"; then
9145 enable_fast_install=yes
9146 fi
9147 done
9148 IFS=$lt_save_ifs
9149 ;;
9150 esac
9151 else $as_nop
9152 enable_fast_install=yes
9153 fi
9154
9155
9156
9157
9158
9159
9160
9161
9162 shared_archive_member_spec=
9163 case $host,$enable_shared in
9164 power*-*-aix[5-9]*,yes)
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9166 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9167
9168 # Check whether --with-aix-soname was given.
9169 if test ${with_aix_soname+y}
9170 then :
9171 withval=$with_aix_soname; case $withval in
9172 aix|svr4|both)
9173 ;;
9174 *)
9175 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9176 ;;
9177 esac
9178 lt_cv_with_aix_soname=$with_aix_soname
9179 else $as_nop
9180 if test ${lt_cv_with_aix_soname+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else $as_nop
9184 lt_cv_with_aix_soname=aix
9185 fi
9186
9187 with_aix_soname=$lt_cv_with_aix_soname
9188 fi
9189
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9191 printf "%s\n" "$with_aix_soname" >&6; }
9192 if test aix != "$with_aix_soname"; then
9193 # For the AIX way of multilib, we name the shared archive member
9194 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9195 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9196 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9197 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9198 if test 64 = "${OBJECT_MODE-32}"; then
9199 shared_archive_member_spec=shr_64
9200 else
9201 shared_archive_member_spec=shr
9202 fi
9203 fi
9204 ;;
9205 *)
9206 with_aix_soname=aix
9207 ;;
9208 esac
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219 # This can be used to rebuild libtool when needed
9220 LIBTOOL_DEPS=$ltmain
9221
9222 # Always use our own libtool.
9223 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254 test -z "$LN_S" && LN_S="ln -s"
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 if test -n "${ZSH_VERSION+set}"; then
9270 setopt NO_GLOB_SUBST
9271 fi
9272
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9274 printf %s "checking for objdir... " >&6; }
9275 if test ${lt_cv_objdir+y}
9276 then :
9277 printf %s "(cached) " >&6
9278 else $as_nop
9279 rm -f .libs 2>/dev/null
9280 mkdir .libs 2>/dev/null
9281 if test -d .libs; then
9282 lt_cv_objdir=.libs
9283 else
9284 # MS-DOS does not allow filenames that begin with a dot.
9285 lt_cv_objdir=_libs
9286 fi
9287 rmdir .libs 2>/dev/null
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9290 printf "%s\n" "$lt_cv_objdir" >&6; }
9291 objdir=$lt_cv_objdir
9292
9293
9294
9295
9296
9297 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9298
9299
9300
9301
9302 case $host_os in
9303 aix3*)
9304 # AIX sometimes has problems with the GCC collect2 program. For some
9305 # reason, if we set the COLLECT_NAMES environment variable, the problems
9306 # vanish in a puff of smoke.
9307 if test set != "${COLLECT_NAMES+set}"; then
9308 COLLECT_NAMES=
9309 export COLLECT_NAMES
9310 fi
9311 ;;
9312 esac
9313
9314 # Global variables:
9315 ofile=libtool
9316 can_build_shared=yes
9317
9318 # All known linkers require a '.a' archive for static linking (except MSVC and
9319 # ICC, which need '.lib').
9320 libext=a
9321
9322 with_gnu_ld=$lt_cv_prog_gnu_ld
9323
9324 old_CC=$CC
9325 old_CFLAGS=$CFLAGS
9326
9327 # Set sane defaults for various variables
9328 test -z "$CC" && CC=cc
9329 test -z "$LTCC" && LTCC=$CC
9330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9331 test -z "$LD" && LD=ld
9332 test -z "$ac_objext" && ac_objext=o
9333
9334 func_cc_basename $compiler
9335 cc_basename=$func_cc_basename_result
9336
9337
9338 # Only perform the check for file, if the check method requires it
9339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9340 case $deplibs_check_method in
9341 file_magic*)
9342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9344 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9345 if test ${lt_cv_path_MAGIC_CMD+y}
9346 then :
9347 printf %s "(cached) " >&6
9348 else $as_nop
9349 case $MAGIC_CMD in
9350 [\\/*] | ?:[\\/]*)
9351 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9352 ;;
9353 *)
9354 lt_save_MAGIC_CMD=$MAGIC_CMD
9355 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9357 for ac_dir in $ac_dummy; do
9358 IFS=$lt_save_ifs
9359 test -z "$ac_dir" && ac_dir=.
9360 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9361 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9362 if test -n "$file_magic_test_file"; then
9363 case $deplibs_check_method in
9364 "file_magic "*)
9365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9366 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9368 $EGREP "$file_magic_regex" > /dev/null; then
9369 :
9370 else
9371 cat <<_LT_EOF 1>&2
9372
9373 *** Warning: the command libtool uses to detect shared libraries,
9374 *** $file_magic_cmd, produces output that libtool cannot recognize.
9375 *** The result is that libtool may fail to recognize shared libraries
9376 *** as such. This will affect the creation of libtool libraries that
9377 *** depend on shared libraries, but programs linked with such libtool
9378 *** libraries will work regardless of this problem. Nevertheless, you
9379 *** may want to report the problem to your system manager and/or to
9380 *** [email protected]
9381
9382 _LT_EOF
9383 fi ;;
9384 esac
9385 fi
9386 break
9387 fi
9388 done
9389 IFS=$lt_save_ifs
9390 MAGIC_CMD=$lt_save_MAGIC_CMD
9391 ;;
9392 esac
9393 fi
9394
9395 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9396 if test -n "$MAGIC_CMD"; then
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 printf "%s\n" "$MAGIC_CMD" >&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
9406
9407
9408 if test -z "$lt_cv_path_MAGIC_CMD"; then
9409 if test -n "$ac_tool_prefix"; then
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9411 printf %s "checking for file... " >&6; }
9412 if test ${lt_cv_path_MAGIC_CMD+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else $as_nop
9416 case $MAGIC_CMD in
9417 [\\/*] | ?:[\\/]*)
9418 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9419 ;;
9420 *)
9421 lt_save_MAGIC_CMD=$MAGIC_CMD
9422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9424 for ac_dir in $ac_dummy; do
9425 IFS=$lt_save_ifs
9426 test -z "$ac_dir" && ac_dir=.
9427 if test -f "$ac_dir/file"; then
9428 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9429 if test -n "$file_magic_test_file"; then
9430 case $deplibs_check_method in
9431 "file_magic "*)
9432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9433 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9435 $EGREP "$file_magic_regex" > /dev/null; then
9436 :
9437 else
9438 cat <<_LT_EOF 1>&2
9439
9440 *** Warning: the command libtool uses to detect shared libraries,
9441 *** $file_magic_cmd, produces output that libtool cannot recognize.
9442 *** The result is that libtool may fail to recognize shared libraries
9443 *** as such. This will affect the creation of libtool libraries that
9444 *** depend on shared libraries, but programs linked with such libtool
9445 *** libraries will work regardless of this problem. Nevertheless, you
9446 *** may want to report the problem to your system manager and/or to
9447 *** [email protected]
9448
9449 _LT_EOF
9450 fi ;;
9451 esac
9452 fi
9453 break
9454 fi
9455 done
9456 IFS=$lt_save_ifs
9457 MAGIC_CMD=$lt_save_MAGIC_CMD
9458 ;;
9459 esac
9460 fi
9461
9462 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9463 if test -n "$MAGIC_CMD"; then
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9465 printf "%s\n" "$MAGIC_CMD" >&6; }
9466 else
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 printf "%s\n" "no" >&6; }
9469 fi
9470
9471
9472 else
9473 MAGIC_CMD=:
9474 fi
9475 fi
9476
9477 fi
9478 ;;
9479 esac
9480
9481 # Use C for the default configuration in the libtool script
9482
9483 lt_save_CC=$CC
9484 ac_ext=c
9485 ac_cpp='$CPP $CPPFLAGS'
9486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9489
9490
9491 # Source file extension for C test sources.
9492 ac_ext=c
9493
9494 # Object file extension for compiled C test sources.
9495 objext=o
9496 objext=$objext
9497
9498 # Code to be used in simple compile tests
9499 lt_simple_compile_test_code="int some_variable = 0;"
9500
9501 # Code to be used in simple link tests
9502 lt_simple_link_test_code='int main(){return(0);}'
9503
9504
9505
9506
9507
9508
9509
9510 # If no C compiler was specified, use CC.
9511 LTCC=${LTCC-"$CC"}
9512
9513 # If no C compiler flags were specified, use CFLAGS.
9514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9515
9516 # Allow CC to be a program name with arguments.
9517 compiler=$CC
9518
9519 # Save the default compiler, since it gets overwritten when the other
9520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9521 compiler_DEFAULT=$CC
9522
9523 # save warnings/boilerplate of simple test code
9524 ac_outfile=conftest.$ac_objext
9525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9527 _lt_compiler_boilerplate=`cat conftest.err`
9528 $RM conftest*
9529
9530 ac_outfile=conftest.$ac_objext
9531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9533 _lt_linker_boilerplate=`cat conftest.err`
9534 $RM -r conftest*
9535
9536
9537 ## CAVEAT EMPTOR:
9538 ## There is no encapsulation within the following macros, do not change
9539 ## the running order or otherwise move them around unless you know exactly
9540 ## what you are doing...
9541 if test -n "$compiler"; then
9542
9543 lt_prog_compiler_no_builtin_flag=
9544
9545 if test yes = "$GCC"; then
9546 case $cc_basename in
9547 nvcc*)
9548 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9549 *)
9550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9551 esac
9552
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9554 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9555 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9556 then :
9557 printf %s "(cached) " >&6
9558 else $as_nop
9559 lt_cv_prog_compiler_rtti_exceptions=no
9560 ac_outfile=conftest.$ac_objext
9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9563 # Insert the option either (1) after the last *FLAGS variable, or
9564 # (2) before a word containing "conftest.", or (3) at the end.
9565 # Note that $ac_compile itself does not contain backslashes and begins
9566 # with a dollar sign (not a hyphen), so the echo should work correctly.
9567 # The option is referenced via a variable to avoid confusing sed.
9568 lt_compile=`echo "$ac_compile" | $SED \
9569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9571 -e 's:$: $lt_compiler_flag:'`
9572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9573 (eval "$lt_compile" 2>conftest.err)
9574 ac_status=$?
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 if (exit $ac_status) && test -s "$ac_outfile"; then
9578 # The compiler can only warn and ignore the option if not recognized
9579 # So say no if there are warnings other than the usual output.
9580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9583 lt_cv_prog_compiler_rtti_exceptions=yes
9584 fi
9585 fi
9586 $RM conftest*
9587
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9590 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9591
9592 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9593 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9594 else
9595 :
9596 fi
9597
9598 fi
9599
9600
9601
9602
9603
9604
9605 lt_prog_compiler_wl=
9606 lt_prog_compiler_pic=
9607 lt_prog_compiler_static=
9608
9609
9610 if test yes = "$GCC"; then
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_static='-static'
9613
9614 case $host_os in
9615 aix*)
9616 # All AIX code is PIC.
9617 if test ia64 = "$host_cpu"; then
9618 # AIX 5 now supports IA64 processor
9619 lt_prog_compiler_static='-Bstatic'
9620 fi
9621 lt_prog_compiler_pic='-fPIC'
9622 ;;
9623
9624 amigaos*)
9625 case $host_cpu in
9626 powerpc)
9627 # see comment about AmigaOS4 .so support
9628 lt_prog_compiler_pic='-fPIC'
9629 ;;
9630 m68k)
9631 # FIXME: we need at least 68020 code to build shared libraries, but
9632 # adding the '-m68020' flag to GCC prevents building anything better,
9633 # like '-m68040'.
9634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9635 ;;
9636 esac
9637 ;;
9638
9639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9640 # PIC is the default for these OSes.
9641 ;;
9642
9643 mingw* | cygwin* | pw32* | os2* | cegcc*)
9644 # This hack is so that the source file can tell whether it is being
9645 # built for inclusion in a dll (and should export symbols for example).
9646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9647 # (--disable-auto-import) libraries
9648 lt_prog_compiler_pic='-DDLL_EXPORT'
9649 case $host_os in
9650 os2*)
9651 lt_prog_compiler_static='$wl-static'
9652 ;;
9653 esac
9654 ;;
9655
9656 darwin* | rhapsody*)
9657 # PIC is the default on this platform
9658 # Common symbols not allowed in MH_DYLIB files
9659 lt_prog_compiler_pic='-fno-common'
9660 ;;
9661
9662 haiku*)
9663 # PIC is the default for Haiku.
9664 # The "-static" flag exists, but is broken.
9665 lt_prog_compiler_static=
9666 ;;
9667
9668 hpux*)
9669 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9670 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9671 # sets the default TLS model and affects inlining.
9672 case $host_cpu in
9673 hppa*64*)
9674 # +Z the default
9675 ;;
9676 *)
9677 lt_prog_compiler_pic='-fPIC'
9678 ;;
9679 esac
9680 ;;
9681
9682 interix[3-9]*)
9683 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9684 # Instead, we relocate shared libraries at runtime.
9685 ;;
9686
9687 msdosdjgpp*)
9688 # Just because we use GCC doesn't mean we suddenly get shared libraries
9689 # on systems that don't support them.
9690 lt_prog_compiler_can_build_shared=no
9691 enable_shared=no
9692 ;;
9693
9694 *nto* | *qnx*)
9695 # QNX uses GNU C++, but need to define -shared option too, otherwise
9696 # it will coredump.
9697 lt_prog_compiler_pic='-fPIC -shared'
9698 ;;
9699
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 lt_prog_compiler_pic=-Kconform_pic
9703 fi
9704 ;;
9705
9706 *)
9707 lt_prog_compiler_pic='-fPIC'
9708 ;;
9709 esac
9710
9711 case $cc_basename in
9712 nvcc*) # Cuda Compiler Driver 2.2
9713 lt_prog_compiler_wl='-Xlinker '
9714 if test -n "$lt_prog_compiler_pic"; then
9715 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9716 fi
9717 ;;
9718 esac
9719 else
9720 # PORTME Check for flag to pass linker flags through the system compiler.
9721 case $host_os in
9722 aix*)
9723 lt_prog_compiler_wl='-Wl,'
9724 if test ia64 = "$host_cpu"; then
9725 # AIX 5 now supports IA64 processor
9726 lt_prog_compiler_static='-Bstatic'
9727 else
9728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9729 fi
9730 ;;
9731
9732 darwin* | rhapsody*)
9733 # PIC is the default on this platform
9734 # Common symbols not allowed in MH_DYLIB files
9735 lt_prog_compiler_pic='-fno-common'
9736 case $cc_basename in
9737 nagfor*)
9738 # NAG Fortran compiler
9739 lt_prog_compiler_wl='-Wl,-Wl,,'
9740 lt_prog_compiler_pic='-PIC'
9741 lt_prog_compiler_static='-Bstatic'
9742 ;;
9743 esac
9744 ;;
9745
9746 mingw* | cygwin* | pw32* | os2* | cegcc*)
9747 # This hack is so that the source file can tell whether it is being
9748 # built for inclusion in a dll (and should export symbols for example).
9749 lt_prog_compiler_pic='-DDLL_EXPORT'
9750 case $host_os in
9751 os2*)
9752 lt_prog_compiler_static='$wl-static'
9753 ;;
9754 esac
9755 ;;
9756
9757 hpux9* | hpux10* | hpux11*)
9758 lt_prog_compiler_wl='-Wl,'
9759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9760 # not for PA HP-UX.
9761 case $host_cpu in
9762 hppa*64*|ia64*)
9763 # +Z the default
9764 ;;
9765 *)
9766 lt_prog_compiler_pic='+Z'
9767 ;;
9768 esac
9769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9770 lt_prog_compiler_static='$wl-a ${wl}archive'
9771 ;;
9772
9773 irix5* | irix6* | nonstopux*)
9774 lt_prog_compiler_wl='-Wl,'
9775 # PIC (with -KPIC) is the default.
9776 lt_prog_compiler_static='-non_shared'
9777 ;;
9778
9779 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9780 case $cc_basename in
9781 # old Intel for x86_64, which still supported -KPIC.
9782 ecc*)
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-KPIC'
9785 lt_prog_compiler_static='-static'
9786 ;;
9787 # icc used to be incompatible with GCC.
9788 # ICC 10 doesn't accept -KPIC any more.
9789 icc* | ifort*)
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='-fPIC'
9792 lt_prog_compiler_static='-static'
9793 ;;
9794 # Lahey Fortran 8.1.
9795 lf95*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='--shared'
9798 lt_prog_compiler_static='--static'
9799 ;;
9800 nagfor*)
9801 # NAG Fortran compiler
9802 lt_prog_compiler_wl='-Wl,-Wl,,'
9803 lt_prog_compiler_pic='-PIC'
9804 lt_prog_compiler_static='-Bstatic'
9805 ;;
9806 tcc*)
9807 # Fabrice Bellard et al's Tiny C Compiler
9808 lt_prog_compiler_wl='-Wl,'
9809 lt_prog_compiler_pic='-fPIC'
9810 lt_prog_compiler_static='-static'
9811 ;;
9812 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9813 # Portland Group compilers (*not* the Pentium gcc compiler,
9814 # which looks to be a dead project)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-fpic'
9817 lt_prog_compiler_static='-Bstatic'
9818 ;;
9819 ccc*)
9820 lt_prog_compiler_wl='-Wl,'
9821 # All Alpha code is PIC.
9822 lt_prog_compiler_static='-non_shared'
9823 ;;
9824 xl* | bgxl* | bgf* | mpixl*)
9825 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9826 lt_prog_compiler_wl='-Wl,'
9827 lt_prog_compiler_pic='-qpic'
9828 lt_prog_compiler_static='-qstaticlink'
9829 ;;
9830 *)
9831 case `$CC -V 2>&1 | $SED 5q` in
9832 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9833 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9834 lt_prog_compiler_pic='-KPIC'
9835 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_wl=''
9837 ;;
9838 *Sun\ F* | *Sun*Fortran*)
9839 lt_prog_compiler_pic='-KPIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 lt_prog_compiler_wl='-Qoption ld '
9842 ;;
9843 *Sun\ C*)
9844 # Sun C 5.9
9845 lt_prog_compiler_pic='-KPIC'
9846 lt_prog_compiler_static='-Bstatic'
9847 lt_prog_compiler_wl='-Wl,'
9848 ;;
9849 *Intel*\ [CF]*Compiler*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-fPIC'
9852 lt_prog_compiler_static='-static'
9853 ;;
9854 *Portland\ Group*)
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='-fpic'
9857 lt_prog_compiler_static='-Bstatic'
9858 ;;
9859 esac
9860 ;;
9861 esac
9862 ;;
9863
9864 newsos6)
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 ;;
9868
9869 *nto* | *qnx*)
9870 # QNX uses GNU C++, but need to define -shared option too, otherwise
9871 # it will coredump.
9872 lt_prog_compiler_pic='-fPIC -shared'
9873 ;;
9874
9875 osf3* | osf4* | osf5*)
9876 lt_prog_compiler_wl='-Wl,'
9877 # All OSF/1 code is PIC.
9878 lt_prog_compiler_static='-non_shared'
9879 ;;
9880
9881 rdos*)
9882 lt_prog_compiler_static='-non_shared'
9883 ;;
9884
9885 solaris*)
9886 lt_prog_compiler_pic='-KPIC'
9887 lt_prog_compiler_static='-Bstatic'
9888 case $cc_basename in
9889 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9890 lt_prog_compiler_wl='-Qoption ld ';;
9891 *)
9892 lt_prog_compiler_wl='-Wl,';;
9893 esac
9894 ;;
9895
9896 sunos4*)
9897 lt_prog_compiler_wl='-Qoption ld '
9898 lt_prog_compiler_pic='-PIC'
9899 lt_prog_compiler_static='-Bstatic'
9900 ;;
9901
9902 sysv4 | sysv4.2uw2* | sysv4.3*)
9903 lt_prog_compiler_wl='-Wl,'
9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
9906 ;;
9907
9908 sysv4*MP*)
9909 if test -d /usr/nec; then
9910 lt_prog_compiler_pic='-Kconform_pic'
9911 lt_prog_compiler_static='-Bstatic'
9912 fi
9913 ;;
9914
9915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-KPIC'
9918 lt_prog_compiler_static='-Bstatic'
9919 ;;
9920
9921 unicos*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_can_build_shared=no
9924 ;;
9925
9926 uts4*)
9927 lt_prog_compiler_pic='-pic'
9928 lt_prog_compiler_static='-Bstatic'
9929 ;;
9930
9931 *)
9932 lt_prog_compiler_can_build_shared=no
9933 ;;
9934 esac
9935 fi
9936
9937 case $host_os in
9938 # For platforms that do not support PIC, -DPIC is meaningless:
9939 *djgpp*)
9940 lt_prog_compiler_pic=
9941 ;;
9942 *)
9943 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9944 ;;
9945 esac
9946
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9948 printf %s "checking for $compiler option to produce PIC... " >&6; }
9949 if test ${lt_cv_prog_compiler_pic+y}
9950 then :
9951 printf %s "(cached) " >&6
9952 else $as_nop
9953 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9954 fi
9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9956 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9958
9959 #
9960 # Check to make sure the PIC flag actually works.
9961 #
9962 if test -n "$lt_prog_compiler_pic"; then
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if test ${lt_cv_prog_compiler_pic_works+y}
9966 then :
9967 printf %s "(cached) " >&6
9968 else $as_nop
9969 lt_cv_prog_compiler_pic_works=no
9970 ac_outfile=conftest.$ac_objext
9971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9973 # Insert the option either (1) after the last *FLAGS variable, or
9974 # (2) before a word containing "conftest.", or (3) at the end.
9975 # Note that $ac_compile itself does not contain backslashes and begins
9976 # with a dollar sign (not a hyphen), so the echo should work correctly.
9977 # The option is referenced via a variable to avoid confusing sed.
9978 lt_compile=`echo "$ac_compile" | $SED \
9979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9981 -e 's:$: $lt_compiler_flag:'`
9982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9983 (eval "$lt_compile" 2>conftest.err)
9984 ac_status=$?
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 if (exit $ac_status) && test -s "$ac_outfile"; then
9988 # The compiler can only warn and ignore the option if not recognized
9989 # So say no if there are warnings other than the usual output.
9990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9993 lt_cv_prog_compiler_pic_works=yes
9994 fi
9995 fi
9996 $RM conftest*
9997
9998 fi
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10000 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10001
10002 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10003 case $lt_prog_compiler_pic in
10004 "" | " "*) ;;
10005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10006 esac
10007 else
10008 lt_prog_compiler_pic=
10009 lt_prog_compiler_can_build_shared=no
10010 fi
10011
10012 fi
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024 #
10025 # Check to make sure the static flag actually works.
10026 #
10027 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10029 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10030 if test ${lt_cv_prog_compiler_static_works+y}
10031 then :
10032 printf %s "(cached) " >&6
10033 else $as_nop
10034 lt_cv_prog_compiler_static_works=no
10035 save_LDFLAGS=$LDFLAGS
10036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039 # The linker can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 if test -s conftest.err; then
10042 # Append any errors to the config.log.
10043 cat conftest.err 1>&5
10044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler_static_works=yes
10048 fi
10049 else
10050 lt_cv_prog_compiler_static_works=yes
10051 fi
10052 fi
10053 $RM -r conftest*
10054 LDFLAGS=$save_LDFLAGS
10055
10056 fi
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10058 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10059
10060 if test yes = "$lt_cv_prog_compiler_static_works"; then
10061 :
10062 else
10063 lt_prog_compiler_static=
10064 fi
10065
10066
10067
10068
10069
10070
10071
10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10073 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10074 if test ${lt_cv_prog_compiler_c_o+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else $as_nop
10078 lt_cv_prog_compiler_c_o=no
10079 $RM -r conftest 2>/dev/null
10080 mkdir conftest
10081 cd conftest
10082 mkdir out
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084
10085 lt_compiler_flag="-o out/conftest2.$ac_objext"
10086 # Insert the option either (1) after the last *FLAGS variable, or
10087 # (2) before a word containing "conftest.", or (3) at the end.
10088 # Note that $ac_compile itself does not contain backslashes and begins
10089 # with a dollar sign (not a hyphen), so the echo should work correctly.
10090 lt_compile=`echo "$ac_compile" | $SED \
10091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093 -e 's:$: $lt_compiler_flag:'`
10094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10095 (eval "$lt_compile" 2>out/conftest.err)
10096 ac_status=$?
10097 cat out/conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10100 then
10101 # The compiler can only warn and ignore the option if not recognized
10102 # So say no if there are warnings
10103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10106 lt_cv_prog_compiler_c_o=yes
10107 fi
10108 fi
10109 chmod u+w . 2>&5
10110 $RM conftest*
10111 # SGI C++ compiler will create directory out/ii_files/ for
10112 # template instantiation
10113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10114 $RM out/* && rmdir out
10115 cd ..
10116 $RM -r conftest
10117 $RM conftest*
10118
10119 fi
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10121 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10122
10123
10124
10125
10126
10127
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10129 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10130 if test ${lt_cv_prog_compiler_c_o+y}
10131 then :
10132 printf %s "(cached) " >&6
10133 else $as_nop
10134 lt_cv_prog_compiler_c_o=no
10135 $RM -r conftest 2>/dev/null
10136 mkdir conftest
10137 cd conftest
10138 mkdir out
10139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10140
10141 lt_compiler_flag="-o out/conftest2.$ac_objext"
10142 # Insert the option either (1) after the last *FLAGS variable, or
10143 # (2) before a word containing "conftest.", or (3) at the end.
10144 # Note that $ac_compile itself does not contain backslashes and begins
10145 # with a dollar sign (not a hyphen), so the echo should work correctly.
10146 lt_compile=`echo "$ac_compile" | $SED \
10147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10149 -e 's:$: $lt_compiler_flag:'`
10150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10151 (eval "$lt_compile" 2>out/conftest.err)
10152 ac_status=$?
10153 cat out/conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10156 then
10157 # The compiler can only warn and ignore the option if not recognized
10158 # So say no if there are warnings
10159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10162 lt_cv_prog_compiler_c_o=yes
10163 fi
10164 fi
10165 chmod u+w . 2>&5
10166 $RM conftest*
10167 # SGI C++ compiler will create directory out/ii_files/ for
10168 # template instantiation
10169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10170 $RM out/* && rmdir out
10171 cd ..
10172 $RM -r conftest
10173 $RM conftest*
10174
10175 fi
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10177 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10178
10179
10180
10181
10182 hard_links=nottested
10183 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10184 # do not overwrite the value of need_locks provided by the user
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10186 printf %s "checking if we can lock with hard links... " >&6; }
10187 hard_links=yes
10188 $RM conftest*
10189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10190 touch conftest.a
10191 ln conftest.a conftest.b 2>&5 || hard_links=no
10192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10194 printf "%s\n" "$hard_links" >&6; }
10195 if test no = "$hard_links"; then
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10197 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10198 need_locks=warn
10199 fi
10200 else
10201 need_locks=no
10202 fi
10203
10204
10205
10206
10207
10208
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10210 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10211
10212 runpath_var=
10213 allow_undefined_flag=
10214 always_export_symbols=no
10215 archive_cmds=
10216 archive_expsym_cmds=
10217 compiler_needs_object=no
10218 enable_shared_with_static_runtimes=no
10219 export_dynamic_flag_spec=
10220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10221 hardcode_automatic=no
10222 hardcode_direct=no
10223 hardcode_direct_absolute=no
10224 hardcode_libdir_flag_spec=
10225 hardcode_libdir_separator=
10226 hardcode_minus_L=no
10227 hardcode_shlibpath_var=unsupported
10228 inherit_rpath=no
10229 link_all_deplibs=unknown
10230 module_cmds=
10231 module_expsym_cmds=
10232 old_archive_from_new_cmds=
10233 old_archive_from_expsyms_cmds=
10234 thread_safe_flag_spec=
10235 whole_archive_flag_spec=
10236 # include_expsyms should be a list of space-separated symbols to be *always*
10237 # included in the symbol list
10238 include_expsyms=
10239 # exclude_expsyms can be an extended regexp of symbols to exclude
10240 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10241 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10242 # as well as any symbol that contains 'd'.
10243 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10244 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10245 # platforms (ab)use it in PIC code, but their linkers get confused if
10246 # the symbol is explicitly referenced. Since portable code cannot
10247 # rely on this symbol name, it's probably fine to never include it in
10248 # preloaded symbol tables.
10249 # Exclude shared library initialization/finalization symbols.
10250 extract_expsyms_cmds=
10251
10252 case $host_os in
10253 cygwin* | mingw* | pw32* | cegcc*)
10254 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10255 # When not using gcc, we currently assume that we are using
10256 # Microsoft Visual C++ or Intel C++ Compiler.
10257 if test yes != "$GCC"; then
10258 with_gnu_ld=no
10259 fi
10260 ;;
10261 interix*)
10262 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10263 with_gnu_ld=yes
10264 ;;
10265 openbsd* | bitrig*)
10266 with_gnu_ld=no
10267 ;;
10268 esac
10269
10270 ld_shlibs=yes
10271
10272 # On some targets, GNU ld is compatible enough with the native linker
10273 # that we're better off using the native interface for both.
10274 lt_use_gnu_ld_interface=no
10275 if test yes = "$with_gnu_ld"; then
10276 case $host_os in
10277 aix*)
10278 # The AIX port of GNU ld has always aspired to compatibility
10279 # with the native linker. However, as the warning in the GNU ld
10280 # block says, versions before 2.19.5* couldn't really create working
10281 # shared libraries, regardless of the interface used.
10282 case `$LD -v 2>&1` in
10283 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10284 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10285 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10286 *)
10287 lt_use_gnu_ld_interface=yes
10288 ;;
10289 esac
10290 ;;
10291 *)
10292 lt_use_gnu_ld_interface=yes
10293 ;;
10294 esac
10295 fi
10296
10297 if test yes = "$lt_use_gnu_ld_interface"; then
10298 # If archive_cmds runs LD, not CC, wlarc should be empty
10299 wlarc='$wl'
10300
10301 # Set some defaults for GNU ld with shared library support. These
10302 # are reset later if shared libraries are not supported. Putting them
10303 # here allows them to be overridden if necessary.
10304 runpath_var=LD_RUN_PATH
10305 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10306 export_dynamic_flag_spec='$wl--export-dynamic'
10307 # ancient GNU ld didn't support --whole-archive et. al.
10308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10309 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10310 else
10311 whole_archive_flag_spec=
10312 fi
10313 supports_anon_versioning=no
10314 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10315 *GNU\ gold*) supports_anon_versioning=yes ;;
10316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10319 *\ 2.11.*) ;; # other 2.11 versions
10320 *) supports_anon_versioning=yes ;;
10321 esac
10322
10323 # See if GNU ld supports shared libraries.
10324 case $host_os in
10325 aix[3-9]*)
10326 # On AIX/PPC, the GNU linker is very broken
10327 if test ia64 != "$host_cpu"; then
10328 ld_shlibs=no
10329 cat <<_LT_EOF 1>&2
10330
10331 *** Warning: the GNU linker, at least up to release 2.19, is reported
10332 *** to be unable to reliably create shared libraries on AIX.
10333 *** Therefore, libtool is disabling shared libraries support. If you
10334 *** really care for shared libraries, you may want to install binutils
10335 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10336 *** You will then need to restart the configuration process.
10337
10338 _LT_EOF
10339 fi
10340 ;;
10341
10342 amigaos*)
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 beos*)
10358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10359 allow_undefined_flag=unsupported
10360 # Joseph Beckenbach <[email protected]> says some releases of gcc
10361 # support --undefined. This deserves some investigation. FIXME
10362 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10363 else
10364 ld_shlibs=no
10365 fi
10366 ;;
10367
10368 cygwin* | mingw* | pw32* | cegcc*)
10369 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10370 # as there is no search path for DLLs.
10371 hardcode_libdir_flag_spec='-L$libdir'
10372 export_dynamic_flag_spec='$wl--export-all-symbols'
10373 allow_undefined_flag=unsupported
10374 always_export_symbols=no
10375 enable_shared_with_static_runtimes=yes
10376 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'
10377 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10378
10379 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10381 # If the export-symbols file already is a .def file, use it as
10382 # is; otherwise, prepend EXPORTS...
10383 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10384 cp $export_symbols $output_objdir/$soname.def;
10385 else
10386 echo EXPORTS > $output_objdir/$soname.def;
10387 cat $export_symbols >> $output_objdir/$soname.def;
10388 fi~
10389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10390 else
10391 ld_shlibs=no
10392 fi
10393 ;;
10394
10395 haiku*)
10396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10397 link_all_deplibs=yes
10398 ;;
10399
10400 os2*)
10401 hardcode_libdir_flag_spec='-L$libdir'
10402 hardcode_minus_L=yes
10403 allow_undefined_flag=unsupported
10404 shrext_cmds=.dll
10405 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10408 $ECHO EXPORTS >> $output_objdir/$libname.def~
10409 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10411 emximp -o $lib $output_objdir/$libname.def'
10412 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10415 $ECHO EXPORTS >> $output_objdir/$libname.def~
10416 prefix_cmds="$SED"~
10417 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10418 prefix_cmds="$prefix_cmds -e 1d";
10419 fi~
10420 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10421 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10423 emximp -o $lib $output_objdir/$libname.def'
10424 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10425 enable_shared_with_static_runtimes=yes
10426 file_list_spec='@'
10427 ;;
10428
10429 interix[3-9]*)
10430 hardcode_direct=no
10431 hardcode_shlibpath_var=no
10432 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10433 export_dynamic_flag_spec='$wl-E'
10434 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10435 # Instead, shared libraries are loaded at an image base (0x10000000 by
10436 # default) and relocated if they conflict, which is a slow very memory
10437 # consuming and fragmenting process. To avoid this, we pick a random,
10438 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10439 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10441 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'
10442 ;;
10443
10444 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10445 tmp_diet=no
10446 if test linux-dietlibc = "$host_os"; then
10447 case $cc_basename in
10448 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10449 esac
10450 fi
10451 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10452 && test no = "$tmp_diet"
10453 then
10454 tmp_addflag=' $pic_flag'
10455 tmp_sharedflag='-shared'
10456 case $cc_basename,$host_cpu in
10457 pgcc*) # Portland Group C compiler
10458 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'
10459 tmp_addflag=' $pic_flag'
10460 ;;
10461 pgf77* | pgf90* | pgf95* | pgfortran*)
10462 # Portland Group f77 and f90 compilers
10463 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'
10464 tmp_addflag=' $pic_flag -Mnomain' ;;
10465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10466 tmp_addflag=' -i_dynamic' ;;
10467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10468 tmp_addflag=' -i_dynamic -nofor_main' ;;
10469 ifc* | ifort*) # Intel Fortran compiler
10470 tmp_addflag=' -nofor_main' ;;
10471 lf95*) # Lahey Fortran 8.1
10472 whole_archive_flag_spec=
10473 tmp_sharedflag='--shared' ;;
10474 nagfor*) # NAGFOR 5.3
10475 tmp_sharedflag='-Wl,-shared' ;;
10476 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10477 tmp_sharedflag='-qmkshrobj'
10478 tmp_addflag= ;;
10479 nvcc*) # Cuda Compiler Driver 2.2
10480 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'
10481 compiler_needs_object=yes
10482 ;;
10483 esac
10484 case `$CC -V 2>&1 | $SED 5q` in
10485 *Sun\ C*) # Sun C 5.9
10486 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'
10487 compiler_needs_object=yes
10488 tmp_sharedflag='-G' ;;
10489 *Sun\ F*) # Sun Fortran 8.3
10490 tmp_sharedflag='-G' ;;
10491 esac
10492 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10493
10494 if test yes = "$supports_anon_versioning"; then
10495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10496 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10497 echo "local: *; };" >> $output_objdir/$libname.ver~
10498 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10499 fi
10500
10501 case $cc_basename in
10502 tcc*)
10503 export_dynamic_flag_spec='-rdynamic'
10504 ;;
10505 xlf* | bgf* | bgxlf* | mpixlf*)
10506 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10507 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10509 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10510 if test yes = "$supports_anon_versioning"; then
10511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10512 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10513 echo "local: *; };" >> $output_objdir/$libname.ver~
10514 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10515 fi
10516 ;;
10517 esac
10518 else
10519 ld_shlibs=no
10520 fi
10521 ;;
10522
10523 netbsd*)
10524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10525 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10526 wlarc=
10527 else
10528 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10529 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10530 fi
10531 ;;
10532
10533 solaris*)
10534 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10535 ld_shlibs=no
10536 cat <<_LT_EOF 1>&2
10537
10538 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10539 *** create shared libraries on Solaris systems. Therefore, libtool
10540 *** is disabling shared libraries support. We urge you to upgrade GNU
10541 *** binutils to release 2.9.1 or newer. Another option is to modify
10542 *** your PATH or compiler configuration so that the native linker is
10543 *** used, and then restart.
10544
10545 _LT_EOF
10546 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10549 else
10550 ld_shlibs=no
10551 fi
10552 ;;
10553
10554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10555 case `$LD -v 2>&1` in
10556 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10557 ld_shlibs=no
10558 cat <<_LT_EOF 1>&2
10559
10560 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10561 *** reliably create shared libraries on SCO systems. Therefore, libtool
10562 *** is disabling shared libraries support. We urge you to upgrade GNU
10563 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10564 *** your PATH or compiler configuration so that the native linker is
10565 *** used, and then restart.
10566
10567 _LT_EOF
10568 ;;
10569 *)
10570 # For security reasons, it is highly recommended that you always
10571 # use absolute paths for naming shared libraries, and exclude the
10572 # DT_RUNPATH tag from executables and libraries. But doing so
10573 # requires that you compile everything twice, which is a pain.
10574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10578 else
10579 ld_shlibs=no
10580 fi
10581 ;;
10582 esac
10583 ;;
10584
10585 sunos4*)
10586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 wlarc=
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10590 ;;
10591
10592 *)
10593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10596 else
10597 ld_shlibs=no
10598 fi
10599 ;;
10600 esac
10601
10602 if test no = "$ld_shlibs"; then
10603 runpath_var=
10604 hardcode_libdir_flag_spec=
10605 export_dynamic_flag_spec=
10606 whole_archive_flag_spec=
10607 fi
10608 else
10609 # PORTME fill in a description of your system's linker (not GNU ld)
10610 case $host_os in
10611 aix3*)
10612 allow_undefined_flag=unsupported
10613 always_export_symbols=yes
10614 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'
10615 # Note: this linker hardcodes the directories in LIBPATH if there
10616 # are no directories specified by -L.
10617 hardcode_minus_L=yes
10618 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10619 # Neither direct hardcoding nor static linking is supported with a
10620 # broken collect2.
10621 hardcode_direct=unsupported
10622 fi
10623 ;;
10624
10625 aix[4-9]*)
10626 if test ia64 = "$host_cpu"; then
10627 # On IA64, the linker does run time linking by default, so we don't
10628 # have to do anything special.
10629 aix_use_runtimelinking=no
10630 exp_sym_flag='-Bexport'
10631 no_entry_flag=
10632 else
10633 # If we're using GNU nm, then we don't want the "-C" option.
10634 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10635 # Without the "-l" option, or with the "-B" option, AIX nm treats
10636 # weak defined symbols like other global defined symbols, whereas
10637 # GNU nm marks them as "W".
10638 # While the 'weak' keyword is ignored in the Export File, we need
10639 # it in the Import File for the 'aix-soname' feature, so we have
10640 # to replace the "-B" option with "-P" for AIX nm.
10641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10642 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'
10643 else
10644 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 == "L") || (\$ 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'
10645 fi
10646 aix_use_runtimelinking=no
10647
10648 # Test if we are trying to use run time linking or normal
10649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10650 # have runtime linking enabled, and use it for executables.
10651 # For shared libraries, we enable/disable runtime linking
10652 # depending on the kind of the shared library created -
10653 # when "with_aix_soname,aix_use_runtimelinking" is:
10654 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10655 # "aix,yes" lib.so shared, rtl:yes, for executables
10656 # lib.a static archive
10657 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10658 # lib.a(lib.so.V) shared, rtl:no, for executables
10659 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10660 # lib.a(lib.so.V) shared, rtl:no
10661 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10662 # lib.a static archive
10663 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10664 for ld_flag in $LDFLAGS; do
10665 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10666 aix_use_runtimelinking=yes
10667 break
10668 fi
10669 done
10670 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10671 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10672 # so we don't have lib.a shared libs to link our executables.
10673 # We have to force runtime linking in this case.
10674 aix_use_runtimelinking=yes
10675 LDFLAGS="$LDFLAGS -Wl,-brtl"
10676 fi
10677 ;;
10678 esac
10679
10680 exp_sym_flag='-bexport'
10681 no_entry_flag='-bnoentry'
10682 fi
10683
10684 # When large executables or shared objects are built, AIX ld can
10685 # have problems creating the table of contents. If linking a library
10686 # or program results in "error TOC overflow" add -mminimal-toc to
10687 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10688 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10689
10690 archive_cmds=''
10691 hardcode_direct=yes
10692 hardcode_direct_absolute=yes
10693 hardcode_libdir_separator=':'
10694 link_all_deplibs=yes
10695 file_list_spec='$wl-f,'
10696 case $with_aix_soname,$aix_use_runtimelinking in
10697 aix,*) ;; # traditional, no import file
10698 svr4,* | *,yes) # use import file
10699 # The Import File defines what to hardcode.
10700 hardcode_direct=no
10701 hardcode_direct_absolute=no
10702 ;;
10703 esac
10704
10705 if test yes = "$GCC"; then
10706 case $host_os in aix4.[012]|aix4.[012].*)
10707 # We only want to do this on AIX 4.2 and lower, the check
10708 # below for broken collect2 doesn't work under 4.3+
10709 collect2name=`$CC -print-prog-name=collect2`
10710 if test -f "$collect2name" &&
10711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10712 then
10713 # We have reworked collect2
10714 :
10715 else
10716 # We have old collect2
10717 hardcode_direct=unsupported
10718 # It fails to find uninstalled libraries when the uninstalled
10719 # path is not listed in the libpath. Setting hardcode_minus_L
10720 # to unsupported forces relinking
10721 hardcode_minus_L=yes
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_libdir_separator=
10724 fi
10725 ;;
10726 esac
10727 shared_flag='-shared'
10728 if test yes = "$aix_use_runtimelinking"; then
10729 shared_flag="$shared_flag "'$wl-G'
10730 fi
10731 # Need to ensure runtime linking is disabled for the traditional
10732 # shared library, or the linker may eventually find shared libraries
10733 # /with/ Import File - we do not want to mix them.
10734 shared_flag_aix='-shared'
10735 shared_flag_svr4='-shared $wl-G'
10736 else
10737 # not using gcc
10738 if test ia64 = "$host_cpu"; then
10739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10740 # chokes on -Wl,-G. The following line is correct:
10741 shared_flag='-G'
10742 else
10743 if test yes = "$aix_use_runtimelinking"; then
10744 shared_flag='$wl-G'
10745 else
10746 shared_flag='$wl-bM:SRE'
10747 fi
10748 shared_flag_aix='$wl-bM:SRE'
10749 shared_flag_svr4='$wl-G'
10750 fi
10751 fi
10752
10753 export_dynamic_flag_spec='$wl-bexpall'
10754 # It seems that -bexpall does not export symbols beginning with
10755 # underscore (_), so it is better to generate a list of symbols to export.
10756 always_export_symbols=yes
10757 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10758 # Warning - without using the other runtime loading flags (-brtl),
10759 # -berok will link without error, but may produce a broken library.
10760 allow_undefined_flag='-berok'
10761 # Determine the default libpath from the value encoded in an
10762 # empty executable.
10763 if test set = "${lt_cv_aix_libpath+set}"; then
10764 aix_libpath=$lt_cv_aix_libpath
10765 else
10766 if test ${lt_cv_aix_libpath_+y}
10767 then :
10768 printf %s "(cached) " >&6
10769 else $as_nop
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772
10773 int
10774 main (void)
10775 {
10776
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"
10782 then :
10783
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10786 /^0/ {
10787 s/^0 *\([^ ]*\) *$/\1/
10788 p
10789 }
10790 }'
10791 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$lt_cv_aix_libpath_"; then
10794 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795 fi
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$lt_cv_aix_libpath_"; then
10800 lt_cv_aix_libpath_=/usr/lib:/lib
10801 fi
10802
10803 fi
10804
10805 aix_libpath=$lt_cv_aix_libpath_
10806 fi
10807
10808 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10809 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
10810 else
10811 if test ia64 = "$host_cpu"; then
10812 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10813 allow_undefined_flag="-z nodefs"
10814 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"
10815 else
10816 # Determine the default libpath from the value encoded in an
10817 # empty executable.
10818 if test set = "${lt_cv_aix_libpath+set}"; then
10819 aix_libpath=$lt_cv_aix_libpath
10820 else
10821 if test ${lt_cv_aix_libpath_+y}
10822 then :
10823 printf %s "(cached) " >&6
10824 else $as_nop
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827
10828 int
10829 main (void)
10830 {
10831
10832 ;
10833 return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"
10837 then :
10838
10839 lt_aix_libpath_sed='
10840 /Import File Strings/,/^$/ {
10841 /^0/ {
10842 s/^0 *\([^ ]*\) *$/\1/
10843 p
10844 }
10845 }'
10846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10847 # Check for a 64-bit object if we didn't find anything.
10848 if test -z "$lt_cv_aix_libpath_"; then
10849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 fi
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10853 conftest$ac_exeext conftest.$ac_ext
10854 if test -z "$lt_cv_aix_libpath_"; then
10855 lt_cv_aix_libpath_=/usr/lib:/lib
10856 fi
10857
10858 fi
10859
10860 aix_libpath=$lt_cv_aix_libpath_
10861 fi
10862
10863 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10864 # Warning - without using the other run time loading flags,
10865 # -berok will link without error, but may produce a broken library.
10866 no_undefined_flag=' $wl-bernotok'
10867 allow_undefined_flag=' $wl-berok'
10868 if test yes = "$with_gnu_ld"; then
10869 # We only use this code for GNU lds that support --whole-archive.
10870 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10871 else
10872 # Exported symbols can be pulled into shared objects from archives
10873 whole_archive_flag_spec='$convenience'
10874 fi
10875 archive_cmds_need_lc=yes
10876 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10877 # -brtl affects multiple linker settings, -berok does not and is overridden later
10878 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10879 if test svr4 != "$with_aix_soname"; then
10880 # This is similar to how AIX traditionally builds its shared libraries.
10881 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'
10882 fi
10883 if test aix != "$with_aix_soname"; then
10884 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'
10885 else
10886 # used by -dlpreopen to get the symbols
10887 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10888 fi
10889 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10890 fi
10891 fi
10892 ;;
10893
10894 amigaos*)
10895 case $host_cpu in
10896 powerpc)
10897 # see comment about AmigaOS4 .so support
10898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10899 archive_expsym_cmds=''
10900 ;;
10901 m68k)
10902 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)'
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_minus_L=yes
10905 ;;
10906 esac
10907 ;;
10908
10909 bsdi[45]*)
10910 export_dynamic_flag_spec=-rdynamic
10911 ;;
10912
10913 cygwin* | mingw* | pw32* | cegcc*)
10914 # When not using gcc, we currently assume that we are using
10915 # Microsoft Visual C++ or Intel C++ Compiler.
10916 # hardcode_libdir_flag_spec is actually meaningless, as there is
10917 # no search path for DLLs.
10918 case $cc_basename in
10919 cl* | icl*)
10920 # Native MSVC or ICC
10921 hardcode_libdir_flag_spec=' '
10922 allow_undefined_flag=unsupported
10923 always_export_symbols=yes
10924 file_list_spec='@'
10925 # Tell ltmain to make .lib files, not .a files.
10926 libext=lib
10927 # Tell ltmain to make .dll files, not .so files.
10928 shrext_cmds=.dll
10929 # FIXME: Setting linknames here is a bad hack.
10930 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10932 cp "$export_symbols" "$output_objdir/$soname.def";
10933 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10934 else
10935 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10936 fi~
10937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10938 linknames='
10939 # The linker will not automatically build a static lib if we build a DLL.
10940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10941 enable_shared_with_static_runtimes=yes
10942 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10944 # Don't use ranlib
10945 old_postinstall_cmds='chmod 644 $oldlib'
10946 postlink_cmds='lt_outputfile="@OUTPUT@"~
10947 lt_tool_outputfile="@TOOL_OUTPUT@"~
10948 case $lt_outputfile in
10949 *.exe|*.EXE) ;;
10950 *)
10951 lt_outputfile=$lt_outputfile.exe
10952 lt_tool_outputfile=$lt_tool_outputfile.exe
10953 ;;
10954 esac~
10955 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10957 $RM "$lt_outputfile.manifest";
10958 fi'
10959 ;;
10960 *)
10961 # Assume MSVC and ICC wrapper
10962 hardcode_libdir_flag_spec=' '
10963 allow_undefined_flag=unsupported
10964 # Tell ltmain to make .lib files, not .a files.
10965 libext=lib
10966 # Tell ltmain to make .dll files, not .so files.
10967 shrext_cmds=.dll
10968 # FIXME: Setting linknames here is a bad hack.
10969 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10970 # The linker will automatically build a .lib file if we build a DLL.
10971 old_archive_from_new_cmds='true'
10972 # FIXME: Should let the user specify the lib program.
10973 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10974 enable_shared_with_static_runtimes=yes
10975 ;;
10976 esac
10977 ;;
10978
10979 darwin* | rhapsody*)
10980
10981
10982 archive_cmds_need_lc=no
10983 hardcode_direct=no
10984 hardcode_automatic=yes
10985 hardcode_shlibpath_var=unsupported
10986 if test yes = "$lt_cv_ld_force_load"; then
10987 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\"`'
10988
10989 else
10990 whole_archive_flag_spec=''
10991 fi
10992 link_all_deplibs=yes
10993 allow_undefined_flag=$_lt_dar_allow_undefined
10994 case $cc_basename in
10995 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10996 *) _lt_dar_can_shared=$GCC ;;
10997 esac
10998 if test yes = "$_lt_dar_can_shared"; then
10999 output_verbose_link_cmd=func_echo_all
11000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11002 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"
11003 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"
11004
11005 else
11006 ld_shlibs=no
11007 fi
11008
11009 ;;
11010
11011 dgux*)
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_libdir_flag_spec='-L$libdir'
11014 hardcode_shlibpath_var=no
11015 ;;
11016
11017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11018 # support. Future versions do this automatically, but an explicit c++rt0.o
11019 # does not break anything, and helps significantly (at the cost of a little
11020 # extra space).
11021 freebsd2.2*)
11022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11023 hardcode_libdir_flag_spec='-R$libdir'
11024 hardcode_direct=yes
11025 hardcode_shlibpath_var=no
11026 ;;
11027
11028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11029 freebsd2.*)
11030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11031 hardcode_direct=yes
11032 hardcode_minus_L=yes
11033 hardcode_shlibpath_var=no
11034 ;;
11035
11036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11037 freebsd* | dragonfly* | midnightbsd*)
11038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11039 hardcode_libdir_flag_spec='-R$libdir'
11040 hardcode_direct=yes
11041 hardcode_shlibpath_var=no
11042 ;;
11043
11044 hpux9*)
11045 if test yes = "$GCC"; then
11046 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'
11047 else
11048 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'
11049 fi
11050 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11051 hardcode_libdir_separator=:
11052 hardcode_direct=yes
11053
11054 # hardcode_minus_L: Not really in the search PATH,
11055 # but as the default location of the library.
11056 hardcode_minus_L=yes
11057 export_dynamic_flag_spec='$wl-E'
11058 ;;
11059
11060 hpux10*)
11061 if test yes,no = "$GCC,$with_gnu_ld"; then
11062 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063 else
11064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11065 fi
11066 if test no = "$with_gnu_ld"; then
11067 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11068 hardcode_libdir_separator=:
11069 hardcode_direct=yes
11070 hardcode_direct_absolute=yes
11071 export_dynamic_flag_spec='$wl-E'
11072 # hardcode_minus_L: Not really in the search PATH,
11073 # but as the default location of the library.
11074 hardcode_minus_L=yes
11075 fi
11076 ;;
11077
11078 hpux11*)
11079 if test yes,no = "$GCC,$with_gnu_ld"; then
11080 case $host_cpu in
11081 hppa*64*)
11082 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 ;;
11084 ia64*)
11085 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11086 ;;
11087 *)
11088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11089 ;;
11090 esac
11091 else
11092 case $host_cpu in
11093 hppa*64*)
11094 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 ;;
11096 ia64*)
11097 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11098 ;;
11099 *)
11100
11101 # Older versions of the 11.00 compiler do not understand -b yet
11102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11104 printf %s "checking if $CC understands -b... " >&6; }
11105 if test ${lt_cv_prog_compiler__b+y}
11106 then :
11107 printf %s "(cached) " >&6
11108 else $as_nop
11109 lt_cv_prog_compiler__b=no
11110 save_LDFLAGS=$LDFLAGS
11111 LDFLAGS="$LDFLAGS -b"
11112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11114 # The linker can only warn and ignore the option if not recognized
11115 # So say no if there are warnings
11116 if test -s conftest.err; then
11117 # Append any errors to the config.log.
11118 cat conftest.err 1>&5
11119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11121 if diff conftest.exp conftest.er2 >/dev/null; then
11122 lt_cv_prog_compiler__b=yes
11123 fi
11124 else
11125 lt_cv_prog_compiler__b=yes
11126 fi
11127 fi
11128 $RM -r conftest*
11129 LDFLAGS=$save_LDFLAGS
11130
11131 fi
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11133 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11134
11135 if test yes = "$lt_cv_prog_compiler__b"; then
11136 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137 else
11138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11139 fi
11140
11141 ;;
11142 esac
11143 fi
11144 if test no = "$with_gnu_ld"; then
11145 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11146 hardcode_libdir_separator=:
11147
11148 case $host_cpu in
11149 hppa*64*|ia64*)
11150 hardcode_direct=no
11151 hardcode_shlibpath_var=no
11152 ;;
11153 *)
11154 hardcode_direct=yes
11155 hardcode_direct_absolute=yes
11156 export_dynamic_flag_spec='$wl-E'
11157
11158 # hardcode_minus_L: Not really in the search PATH,
11159 # but as the default location of the library.
11160 hardcode_minus_L=yes
11161 ;;
11162 esac
11163 fi
11164 ;;
11165
11166 irix5* | irix6* | nonstopux*)
11167 if test yes = "$GCC"; then
11168 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'
11169 # Try to use the -exported_symbol ld option, if it does not
11170 # work, assume that -exports_file does not work either and
11171 # implicitly export all symbols.
11172 # This should be the same for all languages, so no per-tag cache variable.
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11174 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11175 if test ${lt_cv_irix_exported_symbol+y}
11176 then :
11177 printf %s "(cached) " >&6
11178 else $as_nop
11179 save_LDFLAGS=$LDFLAGS
11180 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 int foo (void) { return 0; }
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"
11186 then :
11187 lt_cv_irix_exported_symbol=yes
11188 else $as_nop
11189 lt_cv_irix_exported_symbol=no
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11192 conftest$ac_exeext conftest.$ac_ext
11193 LDFLAGS=$save_LDFLAGS
11194 fi
11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11196 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11197 if test yes = "$lt_cv_irix_exported_symbol"; then
11198 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'
11199 fi
11200 else
11201 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'
11202 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'
11203 fi
11204 archive_cmds_need_lc='no'
11205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11206 hardcode_libdir_separator=:
11207 inherit_rpath=yes
11208 link_all_deplibs=yes
11209 ;;
11210
11211 linux*)
11212 case $cc_basename in
11213 tcc*)
11214 # Fabrice Bellard et al's Tiny C Compiler
11215 ld_shlibs=yes
11216 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11217 ;;
11218 esac
11219 ;;
11220
11221 netbsd*)
11222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11224 else
11225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11226 fi
11227 hardcode_libdir_flag_spec='-R$libdir'
11228 hardcode_direct=yes
11229 hardcode_shlibpath_var=no
11230 ;;
11231
11232 newsos6)
11233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11234 hardcode_direct=yes
11235 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11236 hardcode_libdir_separator=:
11237 hardcode_shlibpath_var=no
11238 ;;
11239
11240 *nto* | *qnx*)
11241 ;;
11242
11243 openbsd* | bitrig*)
11244 if test -f /usr/libexec/ld.so; then
11245 hardcode_direct=yes
11246 hardcode_shlibpath_var=no
11247 hardcode_direct_absolute=yes
11248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11251 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11252 export_dynamic_flag_spec='$wl-E'
11253 else
11254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11255 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11256 fi
11257 else
11258 ld_shlibs=no
11259 fi
11260 ;;
11261
11262 os2*)
11263 hardcode_libdir_flag_spec='-L$libdir'
11264 hardcode_minus_L=yes
11265 allow_undefined_flag=unsupported
11266 shrext_cmds=.dll
11267 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11268 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11269 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11270 $ECHO EXPORTS >> $output_objdir/$libname.def~
11271 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11273 emximp -o $lib $output_objdir/$libname.def'
11274 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11275 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11276 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11277 $ECHO EXPORTS >> $output_objdir/$libname.def~
11278 prefix_cmds="$SED"~
11279 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11280 prefix_cmds="$prefix_cmds -e 1d";
11281 fi~
11282 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11283 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11284 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11285 emximp -o $lib $output_objdir/$libname.def'
11286 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11287 enable_shared_with_static_runtimes=yes
11288 file_list_spec='@'
11289 ;;
11290
11291 osf3*)
11292 if test yes = "$GCC"; then
11293 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11294 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'
11295 else
11296 allow_undefined_flag=' -expect_unresolved \*'
11297 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'
11298 fi
11299 archive_cmds_need_lc='no'
11300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11301 hardcode_libdir_separator=:
11302 ;;
11303
11304 osf4* | osf5*) # as osf3* with the addition of -msym flag
11305 if test yes = "$GCC"; then
11306 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11307 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'
11308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11309 else
11310 allow_undefined_flag=' -expect_unresolved \*'
11311 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'
11312 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~
11313 $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'
11314
11315 # Both c and cxx compiler support -rpath directly
11316 hardcode_libdir_flag_spec='-rpath $libdir'
11317 fi
11318 archive_cmds_need_lc='no'
11319 hardcode_libdir_separator=:
11320 ;;
11321
11322 solaris*)
11323 no_undefined_flag=' -z defs'
11324 if test yes = "$GCC"; then
11325 wlarc='$wl'
11326 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11328 $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'
11329 else
11330 case `$CC -V 2>&1` in
11331 *"Compilers 5.0"*)
11332 wlarc=''
11333 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11335 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11336 ;;
11337 *)
11338 wlarc='$wl'
11339 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11341 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11342 ;;
11343 esac
11344 fi
11345 hardcode_libdir_flag_spec='-R$libdir'
11346 hardcode_shlibpath_var=no
11347 case $host_os in
11348 solaris2.[0-5] | solaris2.[0-5].*) ;;
11349 *)
11350 # The compiler driver will combine and reorder linker options,
11351 # but understands '-z linker_flag'. GCC discards it without '$wl',
11352 # but is careful enough not to reorder.
11353 # Supported since Solaris 2.6 (maybe 2.5.1?)
11354 if test yes = "$GCC"; then
11355 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11356 else
11357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11358 fi
11359 ;;
11360 esac
11361 link_all_deplibs=yes
11362 ;;
11363
11364 sunos4*)
11365 if test sequent = "$host_vendor"; then
11366 # Use $CC to link under sequent, because it throws in some extra .o
11367 # files that make .init and .fini sections work.
11368 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11369 else
11370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11371 fi
11372 hardcode_libdir_flag_spec='-L$libdir'
11373 hardcode_direct=yes
11374 hardcode_minus_L=yes
11375 hardcode_shlibpath_var=no
11376 ;;
11377
11378 sysv4)
11379 case $host_vendor in
11380 sni)
11381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382 hardcode_direct=yes # is this really true???
11383 ;;
11384 siemens)
11385 ## LD is ld it makes a PLAMLIB
11386 ## CC just makes a GrossModule.
11387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11388 reload_cmds='$CC -r -o $output$reload_objs'
11389 hardcode_direct=no
11390 ;;
11391 motorola)
11392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11394 ;;
11395 esac
11396 runpath_var='LD_RUN_PATH'
11397 hardcode_shlibpath_var=no
11398 ;;
11399
11400 sysv4.3*)
11401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402 hardcode_shlibpath_var=no
11403 export_dynamic_flag_spec='-Bexport'
11404 ;;
11405
11406 sysv4*MP*)
11407 if test -d /usr/nec; then
11408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11409 hardcode_shlibpath_var=no
11410 runpath_var=LD_RUN_PATH
11411 hardcode_runpath_var=yes
11412 ld_shlibs=yes
11413 fi
11414 ;;
11415
11416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11417 no_undefined_flag='$wl-z,text'
11418 archive_cmds_need_lc=no
11419 hardcode_shlibpath_var=no
11420 runpath_var='LD_RUN_PATH'
11421
11422 if test yes = "$GCC"; then
11423 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425 else
11426 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428 fi
11429 ;;
11430
11431 sysv5* | sco3.2v5* | sco5v6*)
11432 # Note: We CANNOT use -z defs as we might desire, because we do not
11433 # link with -lc, and that would cause any symbols used from libc to
11434 # always be unresolved, which means just about no library would
11435 # ever link correctly. If we're not using GNU ld we use -z text
11436 # though, which does catch some bad symbols but isn't as heavy-handed
11437 # as -z defs.
11438 no_undefined_flag='$wl-z,text'
11439 allow_undefined_flag='$wl-z,nodefs'
11440 archive_cmds_need_lc=no
11441 hardcode_shlibpath_var=no
11442 hardcode_libdir_flag_spec='$wl-R,$libdir'
11443 hardcode_libdir_separator=':'
11444 link_all_deplibs=yes
11445 export_dynamic_flag_spec='$wl-Bexport'
11446 runpath_var='LD_RUN_PATH'
11447
11448 if test yes = "$GCC"; then
11449 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11450 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11451 else
11452 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11453 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11454 fi
11455 ;;
11456
11457 uts4*)
11458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11459 hardcode_libdir_flag_spec='-L$libdir'
11460 hardcode_shlibpath_var=no
11461 ;;
11462
11463 *)
11464 ld_shlibs=no
11465 ;;
11466 esac
11467
11468 if test sni = "$host_vendor"; then
11469 case $host in
11470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11471 export_dynamic_flag_spec='$wl-Blargedynsym'
11472 ;;
11473 esac
11474 fi
11475 fi
11476
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11478 printf "%s\n" "$ld_shlibs" >&6; }
11479 test no = "$ld_shlibs" && can_build_shared=no
11480
11481 with_gnu_ld=$with_gnu_ld
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497 #
11498 # Do we need to explicitly link libc?
11499 #
11500 case "x$archive_cmds_need_lc" in
11501 x|xyes)
11502 # Assume -lc should be added
11503 archive_cmds_need_lc=yes
11504
11505 if test yes,yes = "$GCC,$enable_shared"; then
11506 case $archive_cmds in
11507 *'~'*)
11508 # FIXME: we may have to deal with multi-command sequences.
11509 ;;
11510 '$CC '*)
11511 # Test whether the compiler implicitly links with -lc since on some
11512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11513 # to ld, don't add -lc before -lgcc.
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11515 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11516 if test ${lt_cv_archive_cmds_need_lc+y}
11517 then :
11518 printf %s "(cached) " >&6
11519 else $as_nop
11520 $RM conftest*
11521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11522
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11524 (eval $ac_compile) 2>&5
11525 ac_status=$?
11526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; } 2>conftest.err; then
11528 soname=conftest
11529 lib=conftest
11530 libobjs=conftest.$ac_objext
11531 deplibs=
11532 wl=$lt_prog_compiler_wl
11533 pic_flag=$lt_prog_compiler_pic
11534 compiler_flags=-v
11535 linker_flags=-v
11536 verstring=
11537 output_objdir=.
11538 libname=conftest
11539 lt_save_allow_undefined_flag=$allow_undefined_flag
11540 allow_undefined_flag=
11541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11542 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11543 ac_status=$?
11544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11545 test $ac_status = 0; }
11546 then
11547 lt_cv_archive_cmds_need_lc=no
11548 else
11549 lt_cv_archive_cmds_need_lc=yes
11550 fi
11551 allow_undefined_flag=$lt_save_allow_undefined_flag
11552 else
11553 cat conftest.err 1>&5
11554 fi
11555 $RM conftest*
11556
11557 fi
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11559 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11560 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11561 ;;
11562 esac
11563 fi
11564 ;;
11565 esac
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11719 printf %s "checking dynamic linker characteristics... " >&6; }
11720
11721 if test yes = "$GCC"; then
11722 case $host_os in
11723 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11724 *) lt_awk_arg='/^libraries:/' ;;
11725 esac
11726 case $host_os in
11727 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11728 *) lt_sed_strip_eq='s|=/|/|g' ;;
11729 esac
11730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11731 case $lt_search_path_spec in
11732 *\;*)
11733 # if the path contains ";" then we assume it to be the separator
11734 # otherwise default to the standard path separator (i.e. ":") - it is
11735 # assumed that no part of a normal pathname contains ";" but that should
11736 # okay in the real world where ";" in dirpaths is itself problematic.
11737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11738 ;;
11739 *)
11740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11741 ;;
11742 esac
11743 # Ok, now we have the path, separated by spaces, we can step through it
11744 # and add multilib dir if necessary...
11745 lt_tmp_lt_search_path_spec=
11746 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11747 # ...but if some path component already ends with the multilib dir we assume
11748 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11749 case "$lt_multi_os_dir; $lt_search_path_spec " in
11750 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11751 lt_multi_os_dir=
11752 ;;
11753 esac
11754 for lt_sys_path in $lt_search_path_spec; do
11755 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11757 elif test -n "$lt_multi_os_dir"; then
11758 test -d "$lt_sys_path" && \
11759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11760 fi
11761 done
11762 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11763 BEGIN {RS = " "; FS = "/|\n";} {
11764 lt_foo = "";
11765 lt_count = 0;
11766 for (lt_i = NF; lt_i > 0; lt_i--) {
11767 if ($lt_i != "" && $lt_i != ".") {
11768 if ($lt_i == "..") {
11769 lt_count++;
11770 } else {
11771 if (lt_count == 0) {
11772 lt_foo = "/" $lt_i lt_foo;
11773 } else {
11774 lt_count--;
11775 }
11776 }
11777 }
11778 }
11779 if (lt_foo != "") { lt_freq[lt_foo]++; }
11780 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11781 }'`
11782 # AWK program above erroneously prepends '/' to C:/dos/paths
11783 # for these hosts.
11784 case $host_os in
11785 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11786 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11787 esac
11788 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11789 else
11790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11791 fi
11792 library_names_spec=
11793 libname_spec='lib$name'
11794 soname_spec=
11795 shrext_cmds=.so
11796 postinstall_cmds=
11797 postuninstall_cmds=
11798 finish_cmds=
11799 finish_eval=
11800 shlibpath_var=
11801 shlibpath_overrides_runpath=unknown
11802 version_type=none
11803 dynamic_linker="$host_os ld.so"
11804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11805 need_lib_prefix=unknown
11806 hardcode_into_libs=no
11807
11808 # when you set need_version to no, make sure it does not cause -set_version
11809 # flags to be left without arguments
11810 need_version=unknown
11811
11812
11813
11814 case $host_os in
11815 aix3*)
11816 version_type=linux # correct to gnu/linux during the next big refactor
11817 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11818 shlibpath_var=LIBPATH
11819
11820 # AIX 3 has no versioning support, so we append a major version to the name.
11821 soname_spec='$libname$release$shared_ext$major'
11822 ;;
11823
11824 aix[4-9]*)
11825 version_type=linux # correct to gnu/linux during the next big refactor
11826 need_lib_prefix=no
11827 need_version=no
11828 hardcode_into_libs=yes
11829 if test ia64 = "$host_cpu"; then
11830 # AIX 5 supports IA64
11831 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 else
11834 # With GCC up to 2.95.x, collect2 would create an import file
11835 # for dependence libraries. The import file would start with
11836 # the line '#! .'. This would cause the generated library to
11837 # depend on '.', always an invalid library. This was fixed in
11838 # development snapshots of GCC prior to 3.0.
11839 case $host_os in
11840 aix4 | aix4.[01] | aix4.[01].*)
11841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11842 echo ' yes '
11843 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11844 :
11845 else
11846 can_build_shared=no
11847 fi
11848 ;;
11849 esac
11850 # Using Import Files as archive members, it is possible to support
11851 # filename-based versioning of shared library archives on AIX. While
11852 # this would work for both with and without runtime linking, it will
11853 # prevent static linking of such archives. So we do filename-based
11854 # shared library versioning with .so extension only, which is used
11855 # when both runtime linking and shared linking is enabled.
11856 # Unfortunately, runtime linking may impact performance, so we do
11857 # not want this to be the default eventually. Also, we use the
11858 # versioned .so libs for executables only if there is the -brtl
11859 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11860 # To allow for filename-based versioning support, we need to create
11861 # libNAME.so.V as an archive file, containing:
11862 # *) an Import File, referring to the versioned filename of the
11863 # archive as well as the shared archive member, telling the
11864 # bitwidth (32 or 64) of that shared object, and providing the
11865 # list of exported symbols of that shared object, eventually
11866 # decorated with the 'weak' keyword
11867 # *) the shared object with the F_LOADONLY flag set, to really avoid
11868 # it being seen by the linker.
11869 # At run time we better use the real file rather than another symlink,
11870 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11871
11872 case $with_aix_soname,$aix_use_runtimelinking in
11873 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11874 # soname into executable. Probably we can add versioning support to
11875 # collect2, so additional links can be useful in future.
11876 aix,yes) # traditional libtool
11877 dynamic_linker='AIX unversionable lib.so'
11878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11879 # instead of lib<name>.a to let people know that these are not
11880 # typical AIX shared libraries.
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882 ;;
11883 aix,no) # traditional AIX only
11884 dynamic_linker='AIX lib.a(lib.so.V)'
11885 # We preserve .a as extension for shared libraries through AIX4.2
11886 # and later when we are not doing run time linking.
11887 library_names_spec='$libname$release.a $libname.a'
11888 soname_spec='$libname$release$shared_ext$major'
11889 ;;
11890 svr4,*) # full svr4 only
11891 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11892 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11893 # We do not specify a path in Import Files, so LIBPATH fires.
11894 shlibpath_overrides_runpath=yes
11895 ;;
11896 *,yes) # both, prefer svr4
11897 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11898 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11899 # unpreferred sharedlib libNAME.a needs extra handling
11900 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"'
11901 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"'
11902 # We do not specify a path in Import Files, so LIBPATH fires.
11903 shlibpath_overrides_runpath=yes
11904 ;;
11905 *,no) # both, prefer aix
11906 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11907 library_names_spec='$libname$release.a $libname.a'
11908 soname_spec='$libname$release$shared_ext$major'
11909 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11910 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)'
11911 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"'
11912 ;;
11913 esac
11914 shlibpath_var=LIBPATH
11915 fi
11916 ;;
11917
11918 amigaos*)
11919 case $host_cpu in
11920 powerpc)
11921 # Since July 2007 AmigaOS4 officially supports .so libraries.
11922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924 ;;
11925 m68k)
11926 library_names_spec='$libname.ixlibrary $libname.a'
11927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11928 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'
11929 ;;
11930 esac
11931 ;;
11932
11933 beos*)
11934 library_names_spec='$libname$shared_ext'
11935 dynamic_linker="$host_os ld.so"
11936 shlibpath_var=LIBRARY_PATH
11937 ;;
11938
11939 bsdi[45]*)
11940 version_type=linux # correct to gnu/linux during the next big refactor
11941 need_version=no
11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11943 soname_spec='$libname$release$shared_ext$major'
11944 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11947 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11948 # the default ld.so.conf also contains /usr/contrib/lib and
11949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11950 # libtool to hard-code these into programs
11951 ;;
11952
11953 cygwin* | mingw* | pw32* | cegcc*)
11954 version_type=windows
11955 shrext_cmds=.dll
11956 need_version=no
11957 need_lib_prefix=no
11958
11959 case $GCC,$cc_basename in
11960 yes,*)
11961 # gcc
11962 library_names_spec='$libname.dll.a'
11963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11964 postinstall_cmds='base_file=`basename \$file`~
11965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11966 dldir=$destdir/`dirname \$dlpath`~
11967 test -d \$dldir || mkdir -p \$dldir~
11968 $install_prog $dir/$dlname \$dldir/$dlname~
11969 chmod a+x \$dldir/$dlname~
11970 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11971 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11972 fi'
11973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11974 dlpath=$dir/\$dldll~
11975 $RM \$dlpath'
11976 shlibpath_overrides_runpath=yes
11977
11978 case $host_os in
11979 cygwin*)
11980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11981 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11982
11983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11984 ;;
11985 mingw* | cegcc*)
11986 # MinGW DLLs use traditional 'lib' prefix
11987 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11988 ;;
11989 pw32*)
11990 # pw32 DLLs use 'pw' prefix rather than 'lib'
11991 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11992 ;;
11993 esac
11994 dynamic_linker='Win32 ld.exe'
11995 ;;
11996
11997 *,cl* | *,icl*)
11998 # Native MSVC or ICC
11999 libname_spec='$name'
12000 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12001 library_names_spec='$libname.dll.lib'
12002
12003 case $build_os in
12004 mingw*)
12005 sys_lib_search_path_spec=
12006 lt_save_ifs=$IFS
12007 IFS=';'
12008 for lt_path in $LIB
12009 do
12010 IFS=$lt_save_ifs
12011 # Let DOS variable expansion print the short 8.3 style file name.
12012 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12013 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12014 done
12015 IFS=$lt_save_ifs
12016 # Convert to MSYS style.
12017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12018 ;;
12019 cygwin*)
12020 # Convert to unix form, then to dos form, then back to unix form
12021 # but this time dos style (no spaces!) so that the unix form looks
12022 # like /cygdrive/c/PROGRA~1:/cygdr...
12023 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12024 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12025 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12026 ;;
12027 *)
12028 sys_lib_search_path_spec=$LIB
12029 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12030 # It is most probably a Windows format PATH.
12031 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12032 else
12033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12034 fi
12035 # FIXME: find the short name or the path components, as spaces are
12036 # common. (e.g. "Program Files" -> "PROGRA~1")
12037 ;;
12038 esac
12039
12040 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12041 postinstall_cmds='base_file=`basename \$file`~
12042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12043 dldir=$destdir/`dirname \$dlpath`~
12044 test -d \$dldir || mkdir -p \$dldir~
12045 $install_prog $dir/$dlname \$dldir/$dlname'
12046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12047 dlpath=$dir/\$dldll~
12048 $RM \$dlpath'
12049 shlibpath_overrides_runpath=yes
12050 dynamic_linker='Win32 link.exe'
12051 ;;
12052
12053 *)
12054 # Assume MSVC and ICC wrapper
12055 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12056 dynamic_linker='Win32 ld.exe'
12057 ;;
12058 esac
12059 # FIXME: first we should search . and the directory the executable is in
12060 shlibpath_var=PATH
12061 ;;
12062
12063 darwin* | rhapsody*)
12064 dynamic_linker="$host_os dyld"
12065 version_type=darwin
12066 need_lib_prefix=no
12067 need_version=no
12068 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12069 soname_spec='$libname$release$major$shared_ext'
12070 shlibpath_overrides_runpath=yes
12071 shlibpath_var=DYLD_LIBRARY_PATH
12072 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12073
12074 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12075 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12076 ;;
12077
12078 dgux*)
12079 version_type=linux # correct to gnu/linux during the next big refactor
12080 need_lib_prefix=no
12081 need_version=no
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 ;;
12086
12087 freebsd* | dragonfly* | midnightbsd*)
12088 # DragonFly does not have aout. When/if they implement a new
12089 # versioning mechanism, adjust this.
12090 if test -x /usr/bin/objformat; then
12091 objformat=`/usr/bin/objformat`
12092 else
12093 case $host_os in
12094 freebsd[23].*) objformat=aout ;;
12095 *) objformat=elf ;;
12096 esac
12097 fi
12098 version_type=freebsd-$objformat
12099 case $version_type in
12100 freebsd-elf*)
12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12102 soname_spec='$libname$release$shared_ext$major'
12103 need_version=no
12104 need_lib_prefix=no
12105 ;;
12106 freebsd-*)
12107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12108 need_version=yes
12109 ;;
12110 esac
12111 shlibpath_var=LD_LIBRARY_PATH
12112 case $host_os in
12113 freebsd2.*)
12114 shlibpath_overrides_runpath=yes
12115 ;;
12116 freebsd3.[01]* | freebsdelf3.[01]*)
12117 shlibpath_overrides_runpath=yes
12118 hardcode_into_libs=yes
12119 ;;
12120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12122 shlibpath_overrides_runpath=no
12123 hardcode_into_libs=yes
12124 ;;
12125 *) # from 4.6 on, and DragonFly
12126 shlibpath_overrides_runpath=yes
12127 hardcode_into_libs=yes
12128 ;;
12129 esac
12130 ;;
12131
12132 haiku*)
12133 version_type=linux # correct to gnu/linux during the next big refactor
12134 need_lib_prefix=no
12135 need_version=no
12136 dynamic_linker="$host_os runtime_loader"
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 shlibpath_var=LIBRARY_PATH
12140 shlibpath_overrides_runpath=no
12141 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12142 hardcode_into_libs=yes
12143 ;;
12144
12145 hpux9* | hpux10* | hpux11*)
12146 # Give a soname corresponding to the major version so that dld.sl refuses to
12147 # link against other versions.
12148 version_type=sunos
12149 need_lib_prefix=no
12150 need_version=no
12151 case $host_cpu in
12152 ia64*)
12153 shrext_cmds='.so'
12154 hardcode_into_libs=yes
12155 dynamic_linker="$host_os dld.so"
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12159 soname_spec='$libname$release$shared_ext$major'
12160 if test 32 = "$HPUX_IA64_MODE"; then
12161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12162 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12163 else
12164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12165 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12166 fi
12167 ;;
12168 hppa*64*)
12169 shrext_cmds='.sl'
12170 hardcode_into_libs=yes
12171 dynamic_linker="$host_os dld.sl"
12172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175 soname_spec='$libname$release$shared_ext$major'
12176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12178 ;;
12179 *)
12180 shrext_cmds='.sl'
12181 dynamic_linker="$host_os dld.sl"
12182 shlibpath_var=SHLIB_PATH
12183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12185 soname_spec='$libname$release$shared_ext$major'
12186 ;;
12187 esac
12188 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12189 postinstall_cmds='chmod 555 $lib'
12190 # or fails outright, so override atomically:
12191 install_override_mode=555
12192 ;;
12193
12194 interix[3-9]*)
12195 version_type=linux # correct to gnu/linux during the next big refactor
12196 need_lib_prefix=no
12197 need_version=no
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12201 shlibpath_var=LD_LIBRARY_PATH
12202 shlibpath_overrides_runpath=no
12203 hardcode_into_libs=yes
12204 ;;
12205
12206 irix5* | irix6* | nonstopux*)
12207 case $host_os in
12208 nonstopux*) version_type=nonstopux ;;
12209 *)
12210 if test yes = "$lt_cv_prog_gnu_ld"; then
12211 version_type=linux # correct to gnu/linux during the next big refactor
12212 else
12213 version_type=irix
12214 fi ;;
12215 esac
12216 need_lib_prefix=no
12217 need_version=no
12218 soname_spec='$libname$release$shared_ext$major'
12219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12220 case $host_os in
12221 irix5* | nonstopux*)
12222 libsuff= shlibsuff=
12223 ;;
12224 *)
12225 case $LD in # libtool.m4 will add one of these switches to LD
12226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12227 libsuff= shlibsuff= libmagic=32-bit;;
12228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12229 libsuff=32 shlibsuff=N32 libmagic=N32;;
12230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12232 *) libsuff= shlibsuff= libmagic=never-match;;
12233 esac
12234 ;;
12235 esac
12236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12237 shlibpath_overrides_runpath=no
12238 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12239 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12240 hardcode_into_libs=yes
12241 ;;
12242
12243 # No shared lib support for Linux oldld, aout, or coff.
12244 linux*oldld* | linux*aout* | linux*coff*)
12245 dynamic_linker=no
12246 ;;
12247
12248 linux*android*)
12249 version_type=none # Android doesn't support versioned libraries.
12250 need_lib_prefix=no
12251 need_version=no
12252 library_names_spec='$libname$release$shared_ext'
12253 soname_spec='$libname$release$shared_ext'
12254 finish_cmds=
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=yes
12257
12258 # This implies no fast_install, which is unacceptable.
12259 # Some rework will be needed to allow for fast_install
12260 # before this can be enabled.
12261 hardcode_into_libs=yes
12262
12263 dynamic_linker='Android linker'
12264 # Don't embed -rpath directories since the linker doesn't support them.
12265 hardcode_libdir_flag_spec='-L$libdir'
12266 ;;
12267
12268 # This must be glibc/ELF.
12269 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 need_lib_prefix=no
12272 need_version=no
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=no
12278
12279 # Some binutils ld are patched to set DT_RUNPATH
12280 if test ${lt_cv_shlibpath_overrides_runpath+y}
12281 then :
12282 printf %s "(cached) " >&6
12283 else $as_nop
12284 lt_cv_shlibpath_overrides_runpath=no
12285 save_LDFLAGS=$LDFLAGS
12286 save_libdir=$libdir
12287 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12288 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 int
12293 main (void)
12294 {
12295
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_link "$LINENO"
12301 then :
12302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12303 then :
12304 lt_cv_shlibpath_overrides_runpath=yes
12305 fi
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LDFLAGS=$save_LDFLAGS
12310 libdir=$save_libdir
12311
12312 fi
12313
12314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12315
12316 # This implies no fast_install, which is unacceptable.
12317 # Some rework will be needed to allow for fast_install
12318 # before this can be enabled.
12319 hardcode_into_libs=yes
12320
12321 # Ideally, we could use ldconfig to report *all* directores which are
12322 # searched for libraries, however this is still not possible. Aside from not
12323 # being certain /sbin/ldconfig is available, command
12324 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12325 # even though it is searched at run-time. Try to do the best guess by
12326 # appending ld.so.conf contents (and includes) to the search path.
12327 if test -f /etc/ld.so.conf; then
12328 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' ' '`
12329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12330 fi
12331
12332 # We used to test for /lib/ld.so.1 and disable shared libraries on
12333 # powerpc, because MkLinux only supported shared libraries with the
12334 # GNU dynamic linker. Since this was broken with cross compilers,
12335 # most powerpc-linux boxes support dynamic linking these days and
12336 # people can always --disable-shared, the test was removed, and we
12337 # assume the GNU/Linux dynamic linker is in use.
12338 dynamic_linker='GNU/Linux ld.so'
12339 ;;
12340
12341 netbsd*)
12342 version_type=sunos
12343 need_lib_prefix=no
12344 need_version=no
12345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12348 dynamic_linker='NetBSD (a.out) ld.so'
12349 else
12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351 soname_spec='$libname$release$shared_ext$major'
12352 dynamic_linker='NetBSD ld.elf_so'
12353 fi
12354 shlibpath_var=LD_LIBRARY_PATH
12355 shlibpath_overrides_runpath=yes
12356 hardcode_into_libs=yes
12357 ;;
12358
12359 newsos6)
12360 version_type=linux # correct to gnu/linux during the next big refactor
12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=yes
12364 ;;
12365
12366 *nto* | *qnx*)
12367 version_type=qnx
12368 need_lib_prefix=no
12369 need_version=no
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 shlibpath_overrides_runpath=no
12374 hardcode_into_libs=yes
12375 dynamic_linker='ldqnx.so'
12376 ;;
12377
12378 openbsd* | bitrig*)
12379 version_type=sunos
12380 sys_lib_dlsearch_path_spec=/usr/lib
12381 need_lib_prefix=no
12382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12383 need_version=no
12384 else
12385 need_version=yes
12386 fi
12387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 shlibpath_overrides_runpath=yes
12391 ;;
12392
12393 os2*)
12394 libname_spec='$name'
12395 version_type=windows
12396 shrext_cmds=.dll
12397 need_version=no
12398 need_lib_prefix=no
12399 # OS/2 can only load a DLL with a base name of 8 characters or less.
12400 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12401 v=$($ECHO $release$versuffix | tr -d .-);
12402 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12403 $ECHO $n$v`$shared_ext'
12404 library_names_spec='${libname}_dll.$libext'
12405 dynamic_linker='OS/2 ld.exe'
12406 shlibpath_var=BEGINLIBPATH
12407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12409 postinstall_cmds='base_file=`basename \$file`~
12410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12411 dldir=$destdir/`dirname \$dlpath`~
12412 test -d \$dldir || mkdir -p \$dldir~
12413 $install_prog $dir/$dlname \$dldir/$dlname~
12414 chmod a+x \$dldir/$dlname~
12415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12417 fi'
12418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12419 dlpath=$dir/\$dldll~
12420 $RM \$dlpath'
12421 ;;
12422
12423 osf3* | osf4* | osf5*)
12424 version_type=osf
12425 need_lib_prefix=no
12426 need_version=no
12427 soname_spec='$libname$release$shared_ext$major'
12428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12432 ;;
12433
12434 rdos*)
12435 dynamic_linker=no
12436 ;;
12437
12438 solaris*)
12439 version_type=linux # correct to gnu/linux during the next big refactor
12440 need_lib_prefix=no
12441 need_version=no
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443 soname_spec='$libname$release$shared_ext$major'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 shlibpath_overrides_runpath=yes
12446 hardcode_into_libs=yes
12447 # ldd complains unless libraries are executable
12448 postinstall_cmds='chmod +x $lib'
12449 ;;
12450
12451 sunos4*)
12452 version_type=sunos
12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12455 shlibpath_var=LD_LIBRARY_PATH
12456 shlibpath_overrides_runpath=yes
12457 if test yes = "$with_gnu_ld"; then
12458 need_lib_prefix=no
12459 fi
12460 need_version=yes
12461 ;;
12462
12463 sysv4 | sysv4.3*)
12464 version_type=linux # correct to gnu/linux during the next big refactor
12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12466 soname_spec='$libname$release$shared_ext$major'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 case $host_vendor in
12469 sni)
12470 shlibpath_overrides_runpath=no
12471 need_lib_prefix=no
12472 runpath_var=LD_RUN_PATH
12473 ;;
12474 siemens)
12475 need_lib_prefix=no
12476 ;;
12477 motorola)
12478 need_lib_prefix=no
12479 need_version=no
12480 shlibpath_overrides_runpath=no
12481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12482 ;;
12483 esac
12484 ;;
12485
12486 sysv4*MP*)
12487 if test -d /usr/nec; then
12488 version_type=linux # correct to gnu/linux during the next big refactor
12489 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12490 soname_spec='$libname$shared_ext.$major'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 fi
12493 ;;
12494
12495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12496 version_type=sco
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12500 soname_spec='$libname$release$shared_ext$major'
12501 shlibpath_var=LD_LIBRARY_PATH
12502 shlibpath_overrides_runpath=yes
12503 hardcode_into_libs=yes
12504 if test yes = "$with_gnu_ld"; then
12505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12506 else
12507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12508 case $host_os in
12509 sco3.2v5*)
12510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12511 ;;
12512 esac
12513 fi
12514 sys_lib_dlsearch_path_spec='/usr/lib'
12515 ;;
12516
12517 tpf*)
12518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 need_lib_prefix=no
12521 need_version=no
12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=no
12525 hardcode_into_libs=yes
12526 ;;
12527
12528 uts4*)
12529 version_type=linux # correct to gnu/linux during the next big refactor
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531 soname_spec='$libname$release$shared_ext$major'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 ;;
12534
12535 *)
12536 dynamic_linker=no
12537 ;;
12538 esac
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12540 printf "%s\n" "$dynamic_linker" >&6; }
12541 test no = "$dynamic_linker" && can_build_shared=no
12542
12543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12544 if test yes = "$GCC"; then
12545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12546 fi
12547
12548 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12549 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12550 fi
12551
12552 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12553 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12554 fi
12555
12556 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12557 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12558
12559 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12560 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12561
12562 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12563 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12662 printf %s "checking how to hardcode library paths into programs... " >&6; }
12663 hardcode_action=
12664 if test -n "$hardcode_libdir_flag_spec" ||
12665 test -n "$runpath_var" ||
12666 test yes = "$hardcode_automatic"; then
12667
12668 # We can hardcode non-existent directories.
12669 if test no != "$hardcode_direct" &&
12670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671 # have to relink, otherwise we might link with an installed library
12672 # when we should be linking with a yet-to-be-installed one
12673 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12674 test no != "$hardcode_minus_L"; then
12675 # Linking always hardcodes the temporary library directory.
12676 hardcode_action=relink
12677 else
12678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679 hardcode_action=immediate
12680 fi
12681 else
12682 # We cannot hardcode anything, or else we can only hardcode existing
12683 # directories.
12684 hardcode_action=unsupported
12685 fi
12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12687 printf "%s\n" "$hardcode_action" >&6; }
12688
12689 if test relink = "$hardcode_action" ||
12690 test yes = "$inherit_rpath"; then
12691 # Fast installation is not supported
12692 enable_fast_install=no
12693 elif test yes = "$shlibpath_overrides_runpath" ||
12694 test no = "$enable_shared"; then
12695 # Fast installation is not necessary
12696 enable_fast_install=needless
12697 fi
12698
12699
12700
12701
12702
12703
12704 if test yes != "$enable_dlopen"; then
12705 enable_dlopen=unknown
12706 enable_dlopen_self=unknown
12707 enable_dlopen_self_static=unknown
12708 else
12709 lt_cv_dlopen=no
12710 lt_cv_dlopen_libs=
12711
12712 case $host_os in
12713 beos*)
12714 lt_cv_dlopen=load_add_on
12715 lt_cv_dlopen_libs=
12716 lt_cv_dlopen_self=yes
12717 ;;
12718
12719 mingw* | pw32* | cegcc*)
12720 lt_cv_dlopen=LoadLibrary
12721 lt_cv_dlopen_libs=
12722 ;;
12723
12724 cygwin*)
12725 lt_cv_dlopen=dlopen
12726 lt_cv_dlopen_libs=
12727 ;;
12728
12729 darwin*)
12730 # if libdl is installed we need to link against it
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12732 printf %s "checking for dlopen in -ldl... " >&6; }
12733 if test ${ac_cv_lib_dl_dlopen+y}
12734 then :
12735 printf %s "(cached) " >&6
12736 else $as_nop
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-ldl $LIBS"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741
12742 /* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12745 char dlopen ();
12746 int
12747 main (void)
12748 {
12749 return dlopen ();
12750 ;
12751 return 0;
12752 }
12753 _ACEOF
12754 if ac_fn_c_try_link "$LINENO"
12755 then :
12756 ac_cv_lib_dl_dlopen=yes
12757 else $as_nop
12758 ac_cv_lib_dl_dlopen=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12763 fi
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12765 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12766 if test "x$ac_cv_lib_dl_dlopen" = xyes
12767 then :
12768 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12769 else $as_nop
12770
12771 lt_cv_dlopen=dyld
12772 lt_cv_dlopen_libs=
12773 lt_cv_dlopen_self=yes
12774
12775 fi
12776
12777 ;;
12778
12779 tpf*)
12780 # Don't try to run any link tests for TPF. We know it's impossible
12781 # because TPF is a cross-compiler, and we know how we open DSOs.
12782 lt_cv_dlopen=dlopen
12783 lt_cv_dlopen_libs=
12784 lt_cv_dlopen_self=no
12785 ;;
12786
12787 *)
12788 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12789 if test "x$ac_cv_func_shl_load" = xyes
12790 then :
12791 lt_cv_dlopen=shl_load
12792 else $as_nop
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12794 printf %s "checking for shl_load in -ldld... " >&6; }
12795 if test ${ac_cv_lib_dld_shl_load+y}
12796 then :
12797 printf %s "(cached) " >&6
12798 else $as_nop
12799 ac_check_lib_save_LIBS=$LIBS
12800 LIBS="-ldld $LIBS"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807 char shl_load ();
12808 int
12809 main (void)
12810 {
12811 return shl_load ();
12812 ;
12813 return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"
12817 then :
12818 ac_cv_lib_dld_shl_load=yes
12819 else $as_nop
12820 ac_cv_lib_dld_shl_load=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12827 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12828 if test "x$ac_cv_lib_dld_shl_load" = xyes
12829 then :
12830 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12831 else $as_nop
12832 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12833 if test "x$ac_cv_func_dlopen" = xyes
12834 then :
12835 lt_cv_dlopen=dlopen
12836 else $as_nop
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12838 printf %s "checking for dlopen in -ldl... " >&6; }
12839 if test ${ac_cv_lib_dl_dlopen+y}
12840 then :
12841 printf %s "(cached) " >&6
12842 else $as_nop
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-ldl $LIBS"
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847
12848 /* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12851 char dlopen ();
12852 int
12853 main (void)
12854 {
12855 return dlopen ();
12856 ;
12857 return 0;
12858 }
12859 _ACEOF
12860 if ac_fn_c_try_link "$LINENO"
12861 then :
12862 ac_cv_lib_dl_dlopen=yes
12863 else $as_nop
12864 ac_cv_lib_dl_dlopen=no
12865 fi
12866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12871 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12872 if test "x$ac_cv_lib_dl_dlopen" = xyes
12873 then :
12874 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12875 else $as_nop
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12877 printf %s "checking for dlopen in -lsvld... " >&6; }
12878 if test ${ac_cv_lib_svld_dlopen+y}
12879 then :
12880 printf %s "(cached) " >&6
12881 else $as_nop
12882 ac_check_lib_save_LIBS=$LIBS
12883 LIBS="-lsvld $LIBS"
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886
12887 /* Override any GCC internal prototype to avoid an error.
12888 Use char because int might match the return type of a GCC
12889 builtin and then its argument prototype would still apply. */
12890 char dlopen ();
12891 int
12892 main (void)
12893 {
12894 return dlopen ();
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"
12900 then :
12901 ac_cv_lib_svld_dlopen=yes
12902 else $as_nop
12903 ac_cv_lib_svld_dlopen=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12908 fi
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12910 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12911 if test "x$ac_cv_lib_svld_dlopen" = xyes
12912 then :
12913 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12914 else $as_nop
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12916 printf %s "checking for dld_link in -ldld... " >&6; }
12917 if test ${ac_cv_lib_dld_dld_link+y}
12918 then :
12919 printf %s "(cached) " >&6
12920 else $as_nop
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-ldld $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 char dld_link ();
12930 int
12931 main (void)
12932 {
12933 return dld_link ();
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"
12939 then :
12940 ac_cv_lib_dld_dld_link=yes
12941 else $as_nop
12942 ac_cv_lib_dld_dld_link=no
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12947 fi
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12949 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12950 if test "x$ac_cv_lib_dld_dld_link" = xyes
12951 then :
12952 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12953 fi
12954
12955
12956 fi
12957
12958
12959 fi
12960
12961
12962 fi
12963
12964
12965 fi
12966
12967
12968 fi
12969
12970 ;;
12971 esac
12972
12973 if test no = "$lt_cv_dlopen"; then
12974 enable_dlopen=no
12975 else
12976 enable_dlopen=yes
12977 fi
12978
12979 case $lt_cv_dlopen in
12980 dlopen)
12981 save_CPPFLAGS=$CPPFLAGS
12982 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12983
12984 save_LDFLAGS=$LDFLAGS
12985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12986
12987 save_LIBS=$LIBS
12988 LIBS="$lt_cv_dlopen_libs $LIBS"
12989
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12991 printf %s "checking whether a program can dlopen itself... " >&6; }
12992 if test ${lt_cv_dlopen_self+y}
12993 then :
12994 printf %s "(cached) " >&6
12995 else $as_nop
12996 if test yes = "$cross_compiling"; then :
12997 lt_cv_dlopen_self=cross
12998 else
12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000 lt_status=$lt_dlunknown
13001 cat > conftest.$ac_ext <<_LT_EOF
13002 #line $LINENO "configure"
13003 #include "confdefs.h"
13004
13005 #if HAVE_DLFCN_H
13006 #include <dlfcn.h>
13007 #endif
13008
13009 #include <stdio.h>
13010
13011 #ifdef RTLD_GLOBAL
13012 # define LT_DLGLOBAL RTLD_GLOBAL
13013 #else
13014 # ifdef DL_GLOBAL
13015 # define LT_DLGLOBAL DL_GLOBAL
13016 # else
13017 # define LT_DLGLOBAL 0
13018 # endif
13019 #endif
13020
13021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022 find out it does not work in some platform. */
13023 #ifndef LT_DLLAZY_OR_NOW
13024 # ifdef RTLD_LAZY
13025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13026 # else
13027 # ifdef DL_LAZY
13028 # define LT_DLLAZY_OR_NOW DL_LAZY
13029 # else
13030 # ifdef RTLD_NOW
13031 # define LT_DLLAZY_OR_NOW RTLD_NOW
13032 # else
13033 # ifdef DL_NOW
13034 # define LT_DLLAZY_OR_NOW DL_NOW
13035 # else
13036 # define LT_DLLAZY_OR_NOW 0
13037 # endif
13038 # endif
13039 # endif
13040 # endif
13041 #endif
13042
13043 /* When -fvisibility=hidden is used, assume the code has been annotated
13044 correspondingly for the symbols needed. */
13045 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13046 int fnord () __attribute__((visibility("default")));
13047 #endif
13048
13049 int fnord () { return 42; }
13050 int main ()
13051 {
13052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13053 int status = $lt_dlunknown;
13054
13055 if (self)
13056 {
13057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13058 else
13059 {
13060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13061 else puts (dlerror ());
13062 }
13063 /* dlclose (self); */
13064 }
13065 else
13066 puts (dlerror ());
13067
13068 return status;
13069 }
13070 _LT_EOF
13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 (eval $ac_link) 2>&5
13073 ac_status=$?
13074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13076 (./conftest; exit; ) >&5 2>/dev/null
13077 lt_status=$?
13078 case x$lt_status in
13079 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13080 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13081 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13082 esac
13083 else :
13084 # compilation failed
13085 lt_cv_dlopen_self=no
13086 fi
13087 fi
13088 rm -fr conftest*
13089
13090
13091 fi
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13093 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13094
13095 if test yes = "$lt_cv_dlopen_self"; then
13096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13098 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13099 if test ${lt_cv_dlopen_self_static+y}
13100 then :
13101 printf %s "(cached) " >&6
13102 else $as_nop
13103 if test yes = "$cross_compiling"; then :
13104 lt_cv_dlopen_self_static=cross
13105 else
13106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13107 lt_status=$lt_dlunknown
13108 cat > conftest.$ac_ext <<_LT_EOF
13109 #line $LINENO "configure"
13110 #include "confdefs.h"
13111
13112 #if HAVE_DLFCN_H
13113 #include <dlfcn.h>
13114 #endif
13115
13116 #include <stdio.h>
13117
13118 #ifdef RTLD_GLOBAL
13119 # define LT_DLGLOBAL RTLD_GLOBAL
13120 #else
13121 # ifdef DL_GLOBAL
13122 # define LT_DLGLOBAL DL_GLOBAL
13123 # else
13124 # define LT_DLGLOBAL 0
13125 # endif
13126 #endif
13127
13128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13129 find out it does not work in some platform. */
13130 #ifndef LT_DLLAZY_OR_NOW
13131 # ifdef RTLD_LAZY
13132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13133 # else
13134 # ifdef DL_LAZY
13135 # define LT_DLLAZY_OR_NOW DL_LAZY
13136 # else
13137 # ifdef RTLD_NOW
13138 # define LT_DLLAZY_OR_NOW RTLD_NOW
13139 # else
13140 # ifdef DL_NOW
13141 # define LT_DLLAZY_OR_NOW DL_NOW
13142 # else
13143 # define LT_DLLAZY_OR_NOW 0
13144 # endif
13145 # endif
13146 # endif
13147 # endif
13148 #endif
13149
13150 /* When -fvisibility=hidden is used, assume the code has been annotated
13151 correspondingly for the symbols needed. */
13152 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13153 int fnord () __attribute__((visibility("default")));
13154 #endif
13155
13156 int fnord () { return 42; }
13157 int main ()
13158 {
13159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13160 int status = $lt_dlunknown;
13161
13162 if (self)
13163 {
13164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13165 else
13166 {
13167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13168 else puts (dlerror ());
13169 }
13170 /* dlclose (self); */
13171 }
13172 else
13173 puts (dlerror ());
13174
13175 return status;
13176 }
13177 _LT_EOF
13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13179 (eval $ac_link) 2>&5
13180 ac_status=$?
13181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13183 (./conftest; exit; ) >&5 2>/dev/null
13184 lt_status=$?
13185 case x$lt_status in
13186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13188 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13189 esac
13190 else :
13191 # compilation failed
13192 lt_cv_dlopen_self_static=no
13193 fi
13194 fi
13195 rm -fr conftest*
13196
13197
13198 fi
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13200 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13201 fi
13202
13203 CPPFLAGS=$save_CPPFLAGS
13204 LDFLAGS=$save_LDFLAGS
13205 LIBS=$save_LIBS
13206 ;;
13207 esac
13208
13209 case $lt_cv_dlopen_self in
13210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13211 *) enable_dlopen_self=unknown ;;
13212 esac
13213
13214 case $lt_cv_dlopen_self_static in
13215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13216 *) enable_dlopen_self_static=unknown ;;
13217 esac
13218 fi
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236 striplib=
13237 old_striplib=
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13239 printf %s "checking whether stripping libraries is possible... " >&6; }
13240 if test -z "$STRIP"; then
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 printf "%s\n" "no" >&6; }
13243 else
13244 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13245 old_striplib="$STRIP --strip-debug"
13246 striplib="$STRIP --strip-unneeded"
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248 printf "%s\n" "yes" >&6; }
13249 else
13250 case $host_os in
13251 darwin*)
13252 # FIXME - insert some real tests, host_os isn't really good enough
13253 striplib="$STRIP -x"
13254 old_striplib="$STRIP -S"
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 printf "%s\n" "yes" >&6; }
13257 ;;
13258 freebsd*)
13259 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13260 old_striplib="$STRIP --strip-debug"
13261 striplib="$STRIP --strip-unneeded"
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13263 printf "%s\n" "yes" >&6; }
13264 else
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 printf "%s\n" "no" >&6; }
13267 fi
13268 ;;
13269 *)
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 printf "%s\n" "no" >&6; }
13272 ;;
13273 esac
13274 fi
13275 fi
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288 # Report what library types will actually be built
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13290 printf %s "checking if libtool supports shared libraries... " >&6; }
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13292 printf "%s\n" "$can_build_shared" >&6; }
13293
13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13295 printf %s "checking whether to build shared libraries... " >&6; }
13296 test no = "$can_build_shared" && enable_shared=no
13297
13298 # On AIX, shared libraries and static libraries use the same namespace, and
13299 # are all built from PIC.
13300 case $host_os in
13301 aix3*)
13302 test yes = "$enable_shared" && enable_static=no
13303 if test -n "$RANLIB"; then
13304 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13305 postinstall_cmds='$RANLIB $lib'
13306 fi
13307 ;;
13308
13309 aix[4-9]*)
13310 if test ia64 != "$host_cpu"; then
13311 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13312 yes,aix,yes) ;; # shared object as lib.so file only
13313 yes,svr4,*) ;; # shared object as lib.so archive member only
13314 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13315 esac
13316 fi
13317 ;;
13318 esac
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13320 printf "%s\n" "$enable_shared" >&6; }
13321
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13323 printf %s "checking whether to build static libraries... " >&6; }
13324 # Make sure either enable_shared or enable_static is yes.
13325 test yes = "$enable_shared" || enable_static=yes
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13327 printf "%s\n" "$enable_static" >&6; }
13328
13329
13330
13331
13332 fi
13333 ac_ext=c
13334 ac_cpp='$CPP $CPPFLAGS'
13335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13338
13339 CC=$lt_save_CC
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355 ac_config_commands="$ac_config_commands libtool"
13356
13357
13358
13359
13360 # Only expand once:
13361
13362
13363
13364 CFLAGS="${ac_save_CFLAGS}"
13365
13366 # increase this when the shared lib becomes totally incompatible
13367 LIB_MAJOR_VERSION=0
13368
13369 # increase this when changes are made, but they are upward compatible
13370 # to previous versions
13371 LIB_MINOR_VERSION=0
13372
13373 if test "${ac_cv_cygwin}" = "yes"; then
13374 if test "${CC}" != "gcc"; then
13375 as_fn_error $? "Please use
13376 CC=gcc ./configure
13377 Abort this configure run and add \"CC=gcc\" or you will
13378 see errors and no lame.exe will be build." "$LINENO" 5
13379 fi
13380 fi
13381
13382 ac_ext=c
13383 ac_cpp='$CPP $CPPFLAGS'
13384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13387 if test -n "$ac_tool_prefix"; then
13388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 printf %s "checking for $ac_word... " >&6; }
13392 if test ${ac_cv_prog_CC+y}
13393 then :
13394 printf %s "(cached) " >&6
13395 else $as_nop
13396 if test -n "$CC"; then
13397 ac_cv_prog_CC="$CC" # Let the user override the test.
13398 else
13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13401 do
13402 IFS=$as_save_IFS
13403 case $as_dir in #(((
13404 '') as_dir=./ ;;
13405 */) ;;
13406 *) as_dir=$as_dir/ ;;
13407 esac
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414 done
13415 done
13416 IFS=$as_save_IFS
13417
13418 fi
13419 fi
13420 CC=$ac_cv_prog_CC
13421 if test -n "$CC"; then
13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13423 printf "%s\n" "$CC" >&6; }
13424 else
13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 printf "%s\n" "no" >&6; }
13427 fi
13428
13429
13430 fi
13431 if test -z "$ac_cv_prog_CC"; then
13432 ac_ct_CC=$CC
13433 # Extract the first word of "gcc", so it can be a program name with args.
13434 set dummy gcc; ac_word=$2
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 printf %s "checking for $ac_word... " >&6; }
13437 if test ${ac_cv_prog_ac_ct_CC+y}
13438 then :
13439 printf %s "(cached) " >&6
13440 else $as_nop
13441 if test -n "$ac_ct_CC"; then
13442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447 IFS=$as_save_IFS
13448 case $as_dir in #(((
13449 '') as_dir=./ ;;
13450 */) ;;
13451 *) as_dir=$as_dir/ ;;
13452 esac
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_ac_ct_CC="gcc"
13456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13466 if test -n "$ac_ct_CC"; then
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13468 printf "%s\n" "$ac_ct_CC" >&6; }
13469 else
13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 printf "%s\n" "no" >&6; }
13472 fi
13473
13474 if test "x$ac_ct_CC" = x; then
13475 CC=""
13476 else
13477 case $cross_compiling:$ac_tool_warned in
13478 yes:)
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13482 esac
13483 CC=$ac_ct_CC
13484 fi
13485 else
13486 CC="$ac_cv_prog_CC"
13487 fi
13488
13489 if test -z "$CC"; then
13490 if test -n "$ac_tool_prefix"; then
13491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}cc; ac_word=$2
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 printf %s "checking for $ac_word... " >&6; }
13495 if test ${ac_cv_prog_CC+y}
13496 then :
13497 printf %s "(cached) " >&6
13498 else $as_nop
13499 if test -n "$CC"; then
13500 ac_cv_prog_CC="$CC" # Let the user override the test.
13501 else
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13504 do
13505 IFS=$as_save_IFS
13506 case $as_dir in #(((
13507 '') as_dir=./ ;;
13508 */) ;;
13509 *) as_dir=$as_dir/ ;;
13510 esac
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13513 ac_cv_prog_CC="${ac_tool_prefix}cc"
13514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13515 break 2
13516 fi
13517 done
13518 done
13519 IFS=$as_save_IFS
13520
13521 fi
13522 fi
13523 CC=$ac_cv_prog_CC
13524 if test -n "$CC"; then
13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13526 printf "%s\n" "$CC" >&6; }
13527 else
13528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 printf "%s\n" "no" >&6; }
13530 fi
13531
13532
13533 fi
13534 fi
13535 if test -z "$CC"; then
13536 # Extract the first word of "cc", so it can be a program name with args.
13537 set dummy cc; ac_word=$2
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539 printf %s "checking for $ac_word... " >&6; }
13540 if test ${ac_cv_prog_CC+y}
13541 then :
13542 printf %s "(cached) " >&6
13543 else $as_nop
13544 if test -n "$CC"; then
13545 ac_cv_prog_CC="$CC" # Let the user override the test.
13546 else
13547 ac_prog_rejected=no
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551 IFS=$as_save_IFS
13552 case $as_dir in #(((
13553 '') as_dir=./ ;;
13554 */) ;;
13555 *) as_dir=$as_dir/ ;;
13556 esac
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13559 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13560 ac_prog_rejected=yes
13561 continue
13562 fi
13563 ac_cv_prog_CC="cc"
13564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13565 break 2
13566 fi
13567 done
13568 done
13569 IFS=$as_save_IFS
13570
13571 if test $ac_prog_rejected = yes; then
13572 # We found a bogon in the path, so make sure we never use it.
13573 set dummy $ac_cv_prog_CC
13574 shift
13575 if test $# != 0; then
13576 # We chose a different compiler from the bogus one.
13577 # However, it has the same basename, so the bogon will be chosen
13578 # first if we set CC to just the basename; use the full file name.
13579 shift
13580 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13581 fi
13582 fi
13583 fi
13584 fi
13585 CC=$ac_cv_prog_CC
13586 if test -n "$CC"; then
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13588 printf "%s\n" "$CC" >&6; }
13589 else
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 printf "%s\n" "no" >&6; }
13592 fi
13593
13594
13595 fi
13596 if test -z "$CC"; then
13597 if test -n "$ac_tool_prefix"; then
13598 for ac_prog in cl.exe
13599 do
13600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 printf %s "checking for $ac_word... " >&6; }
13604 if test ${ac_cv_prog_CC+y}
13605 then :
13606 printf %s "(cached) " >&6
13607 else $as_nop
13608 if test -n "$CC"; then
13609 ac_cv_prog_CC="$CC" # Let the user override the test.
13610 else
13611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612 for as_dir in $PATH
13613 do
13614 IFS=$as_save_IFS
13615 case $as_dir in #(((
13616 '') as_dir=./ ;;
13617 */) ;;
13618 *) as_dir=$as_dir/ ;;
13619 esac
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626 done
13627 done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 CC=$ac_cv_prog_CC
13633 if test -n "$CC"; then
13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13635 printf "%s\n" "$CC" >&6; }
13636 else
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 printf "%s\n" "no" >&6; }
13639 fi
13640
13641
13642 test -n "$CC" && break
13643 done
13644 fi
13645 if test -z "$CC"; then
13646 ac_ct_CC=$CC
13647 for ac_prog in cl.exe
13648 do
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 printf %s "checking for $ac_word... " >&6; }
13653 if test ${ac_cv_prog_ac_ct_CC+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else $as_nop
13657 if test -n "$ac_ct_CC"; then
13658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13659 else
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663 IFS=$as_save_IFS
13664 case $as_dir in #(((
13665 '') as_dir=./ ;;
13666 */) ;;
13667 *) as_dir=$as_dir/ ;;
13668 esac
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13671 ac_cv_prog_ac_ct_CC="$ac_prog"
13672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13673 break 2
13674 fi
13675 done
13676 done
13677 IFS=$as_save_IFS
13678
13679 fi
13680 fi
13681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13682 if test -n "$ac_ct_CC"; then
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13684 printf "%s\n" "$ac_ct_CC" >&6; }
13685 else
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 printf "%s\n" "no" >&6; }
13688 fi
13689
13690
13691 test -n "$ac_ct_CC" && break
13692 done
13693
13694 if test "x$ac_ct_CC" = x; then
13695 CC=""
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698 yes:)
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701 ac_tool_warned=yes ;;
13702 esac
13703 CC=$ac_ct_CC
13704 fi
13705 fi
13706
13707 fi
13708 if test -z "$CC"; then
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13711 set dummy ${ac_tool_prefix}clang; ac_word=$2
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 printf %s "checking for $ac_word... " >&6; }
13714 if test ${ac_cv_prog_CC+y}
13715 then :
13716 printf %s "(cached) " >&6
13717 else $as_nop
13718 if test -n "$CC"; then
13719 ac_cv_prog_CC="$CC" # Let the user override the test.
13720 else
13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722 for as_dir in $PATH
13723 do
13724 IFS=$as_save_IFS
13725 case $as_dir in #(((
13726 '') as_dir=./ ;;
13727 */) ;;
13728 *) as_dir=$as_dir/ ;;
13729 esac
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_CC="${ac_tool_prefix}clang"
13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 CC=$ac_cv_prog_CC
13743 if test -n "$CC"; then
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13745 printf "%s\n" "$CC" >&6; }
13746 else
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 printf "%s\n" "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 if test -z "$ac_cv_prog_CC"; then
13754 ac_ct_CC=$CC
13755 # Extract the first word of "clang", so it can be a program name with args.
13756 set dummy clang; ac_word=$2
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 printf %s "checking for $ac_word... " >&6; }
13759 if test ${ac_cv_prog_ac_ct_CC+y}
13760 then :
13761 printf %s "(cached) " >&6
13762 else $as_nop
13763 if test -n "$ac_ct_CC"; then
13764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13768 do
13769 IFS=$as_save_IFS
13770 case $as_dir in #(((
13771 '') as_dir=./ ;;
13772 */) ;;
13773 *) as_dir=$as_dir/ ;;
13774 esac
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13777 ac_cv_prog_ac_ct_CC="clang"
13778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13779 break 2
13780 fi
13781 done
13782 done
13783 IFS=$as_save_IFS
13784
13785 fi
13786 fi
13787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13788 if test -n "$ac_ct_CC"; then
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13790 printf "%s\n" "$ac_ct_CC" >&6; }
13791 else
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 printf "%s\n" "no" >&6; }
13794 fi
13795
13796 if test "x$ac_ct_CC" = x; then
13797 CC=""
13798 else
13799 case $cross_compiling:$ac_tool_warned in
13800 yes:)
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13803 ac_tool_warned=yes ;;
13804 esac
13805 CC=$ac_ct_CC
13806 fi
13807 else
13808 CC="$ac_cv_prog_CC"
13809 fi
13810
13811 fi
13812
13813
13814 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13815 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13816 as_fn_error $? "no acceptable C compiler found in \$PATH
13817 See \`config.log' for more details" "$LINENO" 5; }
13818
13819 # Provide some information about the compiler.
13820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13821 set X $ac_compile
13822 ac_compiler=$2
13823 for ac_option in --version -v -V -qversion -version; do
13824 { { ac_try="$ac_compiler $ac_option >&5"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13830 printf "%s\n" "$ac_try_echo"; } >&5
13831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13832 ac_status=$?
13833 if test -s conftest.err; then
13834 sed '10a\
13835 ... rest of stderr output deleted ...
13836 10q' conftest.err >conftest.er1
13837 cat conftest.er1 >&5
13838 fi
13839 rm -f conftest.er1 conftest.err
13840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }
13842 done
13843
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13845 printf %s "checking whether the compiler supports GNU C... " >&6; }
13846 if test ${ac_cv_c_compiler_gnu+y}
13847 then :
13848 printf %s "(cached) " >&6
13849 else $as_nop
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852
13853 int
13854 main (void)
13855 {
13856 #ifndef __GNUC__
13857 choke me
13858 #endif
13859
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"
13865 then :
13866 ac_compiler_gnu=yes
13867 else $as_nop
13868 ac_compiler_gnu=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13872
13873 fi
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13875 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877
13878 if test $ac_compiler_gnu = yes; then
13879 GCC=yes
13880 else
13881 GCC=
13882 fi
13883 ac_test_CFLAGS=${CFLAGS+y}
13884 ac_save_CFLAGS=$CFLAGS
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13886 printf %s "checking whether $CC accepts -g... " >&6; }
13887 if test ${ac_cv_prog_cc_g+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else $as_nop
13891 ac_save_c_werror_flag=$ac_c_werror_flag
13892 ac_c_werror_flag=yes
13893 ac_cv_prog_cc_g=no
13894 CFLAGS="-g"
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897
13898 int
13899 main (void)
13900 {
13901
13902 ;
13903 return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_c_try_compile "$LINENO"
13907 then :
13908 ac_cv_prog_cc_g=yes
13909 else $as_nop
13910 CFLAGS=""
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13913
13914 int
13915 main (void)
13916 {
13917
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"
13923 then :
13924
13925 else $as_nop
13926 ac_c_werror_flag=$ac_save_c_werror_flag
13927 CFLAGS="-g"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 int
13932 main (void)
13933 {
13934
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_compile "$LINENO"
13940 then :
13941 ac_cv_prog_cc_g=yes
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13948 ac_c_werror_flag=$ac_save_c_werror_flag
13949 fi
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13951 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13952 if test $ac_test_CFLAGS; then
13953 CFLAGS=$ac_save_CFLAGS
13954 elif test $ac_cv_prog_cc_g = yes; then
13955 if test "$GCC" = yes; then
13956 CFLAGS="-g -O2"
13957 else
13958 CFLAGS="-g"
13959 fi
13960 else
13961 if test "$GCC" = yes; then
13962 CFLAGS="-O2"
13963 else
13964 CFLAGS=
13965 fi
13966 fi
13967 ac_prog_cc_stdc=no
13968 if test x$ac_prog_cc_stdc = xno
13969 then :
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13971 printf %s "checking for $CC option to enable C11 features... " >&6; }
13972 if test ${ac_cv_prog_cc_c11+y}
13973 then :
13974 printf %s "(cached) " >&6
13975 else $as_nop
13976 ac_cv_prog_cc_c11=no
13977 ac_save_CC=$CC
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980 $ac_c_conftest_c11_program
13981 _ACEOF
13982 for ac_arg in '' -std=gnu11
13983 do
13984 CC="$ac_save_CC $ac_arg"
13985 if ac_fn_c_try_compile "$LINENO"
13986 then :
13987 ac_cv_prog_cc_c11=$ac_arg
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.beam
13990 test "x$ac_cv_prog_cc_c11" != "xno" && break
13991 done
13992 rm -f conftest.$ac_ext
13993 CC=$ac_save_CC
13994 fi
13995
13996 if test "x$ac_cv_prog_cc_c11" = xno
13997 then :
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13999 printf "%s\n" "unsupported" >&6; }
14000 else $as_nop
14001 if test "x$ac_cv_prog_cc_c11" = x
14002 then :
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14004 printf "%s\n" "none needed" >&6; }
14005 else $as_nop
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14007 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14008 CC="$CC $ac_cv_prog_cc_c11"
14009 fi
14010 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14011 ac_prog_cc_stdc=c11
14012 fi
14013 fi
14014 if test x$ac_prog_cc_stdc = xno
14015 then :
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14017 printf %s "checking for $CC option to enable C99 features... " >&6; }
14018 if test ${ac_cv_prog_cc_c99+y}
14019 then :
14020 printf %s "(cached) " >&6
14021 else $as_nop
14022 ac_cv_prog_cc_c99=no
14023 ac_save_CC=$CC
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026 $ac_c_conftest_c99_program
14027 _ACEOF
14028 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14029 do
14030 CC="$ac_save_CC $ac_arg"
14031 if ac_fn_c_try_compile "$LINENO"
14032 then :
14033 ac_cv_prog_cc_c99=$ac_arg
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.beam
14036 test "x$ac_cv_prog_cc_c99" != "xno" && break
14037 done
14038 rm -f conftest.$ac_ext
14039 CC=$ac_save_CC
14040 fi
14041
14042 if test "x$ac_cv_prog_cc_c99" = xno
14043 then :
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14045 printf "%s\n" "unsupported" >&6; }
14046 else $as_nop
14047 if test "x$ac_cv_prog_cc_c99" = x
14048 then :
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14050 printf "%s\n" "none needed" >&6; }
14051 else $as_nop
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14053 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14054 CC="$CC $ac_cv_prog_cc_c99"
14055 fi
14056 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14057 ac_prog_cc_stdc=c99
14058 fi
14059 fi
14060 if test x$ac_prog_cc_stdc = xno
14061 then :
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14063 printf %s "checking for $CC option to enable C89 features... " >&6; }
14064 if test ${ac_cv_prog_cc_c89+y}
14065 then :
14066 printf %s "(cached) " >&6
14067 else $as_nop
14068 ac_cv_prog_cc_c89=no
14069 ac_save_CC=$CC
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 $ac_c_conftest_c89_program
14073 _ACEOF
14074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14075 do
14076 CC="$ac_save_CC $ac_arg"
14077 if ac_fn_c_try_compile "$LINENO"
14078 then :
14079 ac_cv_prog_cc_c89=$ac_arg
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext conftest.beam
14082 test "x$ac_cv_prog_cc_c89" != "xno" && break
14083 done
14084 rm -f conftest.$ac_ext
14085 CC=$ac_save_CC
14086 fi
14087
14088 if test "x$ac_cv_prog_cc_c89" = xno
14089 then :
14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14091 printf "%s\n" "unsupported" >&6; }
14092 else $as_nop
14093 if test "x$ac_cv_prog_cc_c89" = x
14094 then :
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14096 printf "%s\n" "none needed" >&6; }
14097 else $as_nop
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14099 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14100 CC="$CC $ac_cv_prog_cc_c89"
14101 fi
14102 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14103 ac_prog_cc_stdc=c89
14104 fi
14105 fi
14106
14107 ac_ext=c
14108 ac_cpp='$CPP $CPPFLAGS'
14109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112
14113
14114 ac_ext=c
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14120 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14121 if test ${am_cv_prog_cc_c_o+y}
14122 then :
14123 printf %s "(cached) " >&6
14124 else $as_nop
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127
14128 int
14129 main (void)
14130 {
14131
14132 ;
14133 return 0;
14134 }
14135 _ACEOF
14136 # Make sure it works both with $CC and with simple cc.
14137 # Following AC_PROG_CC_C_O, we do the test twice because some
14138 # compilers refuse to overwrite an existing .o file with -o,
14139 # though they will create one.
14140 am_cv_prog_cc_c_o=yes
14141 for am_i in 1 2; do
14142 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14143 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } \
14147 && test -f conftest2.$ac_objext; then
14148 : OK
14149 else
14150 am_cv_prog_cc_c_o=no
14151 break
14152 fi
14153 done
14154 rm -f core conftest*
14155 unset am_i
14156 fi
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14158 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14159 if test "$am_cv_prog_cc_c_o" != yes; then
14160 # Losing compiler, so override with the script.
14161 # FIXME: It is wrong to rewrite CC.
14162 # But if we don't then we get into trouble of one sort or another.
14163 # A longer-term fix would be to have automake use am__CC in this case,
14164 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14165 CC="$am_aux_dir/compile $CC"
14166 fi
14167 ac_ext=c
14168 ac_cpp='$CPP $CPPFLAGS'
14169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14172
14173
14174 depcc="$CC" am_compiler_list=
14175
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14177 printf %s "checking dependency style of $depcc... " >&6; }
14178 if test ${am_cv_CC_dependencies_compiler_type+y}
14179 then :
14180 printf %s "(cached) " >&6
14181 else $as_nop
14182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14183 # We make a subdir and do the tests there. Otherwise we can end up
14184 # making bogus files that we don't know about and never remove. For
14185 # instance it was reported that on HP-UX the gcc test will end up
14186 # making a dummy file named 'D' -- because '-MD' means "put the output
14187 # in D".
14188 rm -rf conftest.dir
14189 mkdir conftest.dir
14190 # Copy depcomp to subdir because otherwise we won't find it if we're
14191 # using a relative directory.
14192 cp "$am_depcomp" conftest.dir
14193 cd conftest.dir
14194 # We will build objects and dependencies in a subdirectory because
14195 # it helps to detect inapplicable dependency modes. For instance
14196 # both Tru64's cc and ICC support -MD to output dependencies as a
14197 # side effect of compilation, but ICC will put the dependencies in
14198 # the current directory while Tru64 will put them in the object
14199 # directory.
14200 mkdir sub
14201
14202 am_cv_CC_dependencies_compiler_type=none
14203 if test "$am_compiler_list" = ""; then
14204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14205 fi
14206 am__universal=false
14207 case " $depcc " in #(
14208 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14209 esac
14210
14211 for depmode in $am_compiler_list; do
14212 # Setup a source with many dependencies, because some compilers
14213 # like to wrap large dependency lists on column 80 (with \), and
14214 # we should not choose a depcomp mode which is confused by this.
14215 #
14216 # We need to recreate these files for each test, as the compiler may
14217 # overwrite some of them when testing with obscure command lines.
14218 # This happens at least with the AIX C compiler.
14219 : > sub/conftest.c
14220 for i in 1 2 3 4 5 6; do
14221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14222 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14223 # Solaris 10 /bin/sh.
14224 echo '/* dummy */' > sub/conftst$i.h
14225 done
14226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14227
14228 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14229 # mode. It turns out that the SunPro C++ compiler does not properly
14230 # handle '-M -o', and we need to detect this. Also, some Intel
14231 # versions had trouble with output in subdirs.
14232 am__obj=sub/conftest.${OBJEXT-o}
14233 am__minus_obj="-o $am__obj"
14234 case $depmode in
14235 gcc)
14236 # This depmode causes a compiler race in universal mode.
14237 test "$am__universal" = false || continue
14238 ;;
14239 nosideeffect)
14240 # After this tag, mechanisms are not by side-effect, so they'll
14241 # only be used when explicitly requested.
14242 if test "x$enable_dependency_tracking" = xyes; then
14243 continue
14244 else
14245 break
14246 fi
14247 ;;
14248 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14249 # This compiler won't grok '-c -o', but also, the minuso test has
14250 # not run yet. These depmodes are late enough in the game, and
14251 # so weak that their functioning should not be impacted.
14252 am__obj=conftest.${OBJEXT-o}
14253 am__minus_obj=
14254 ;;
14255 none) break ;;
14256 esac
14257 if depmode=$depmode \
14258 source=sub/conftest.c object=$am__obj \
14259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14260 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14261 >/dev/null 2>conftest.err &&
14262 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14263 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14264 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14265 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14266 # icc doesn't choke on unknown options, it will just issue warnings
14267 # or remarks (even with -Werror). So we grep stderr for any message
14268 # that says an option was ignored or not supported.
14269 # When given -MP, icc 7.0 and 7.1 complain thusly:
14270 # icc: Command line warning: ignoring option '-M'; no argument required
14271 # The diagnosis changed in icc 8.0:
14272 # icc: Command line remark: option '-MP' not supported
14273 if (grep 'ignoring option' conftest.err ||
14274 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14275 am_cv_CC_dependencies_compiler_type=$depmode
14276 break
14277 fi
14278 fi
14279 done
14280
14281 cd ..
14282 rm -rf conftest.dir
14283 else
14284 am_cv_CC_dependencies_compiler_type=none
14285 fi
14286
14287 fi
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14289 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14290 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14291
14292 if
14293 test "x$enable_dependency_tracking" != xno \
14294 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14295 am__fastdepCC_TRUE=
14296 am__fastdepCC_FALSE='#'
14297 else
14298 am__fastdepCC_TRUE='#'
14299 am__fastdepCC_FALSE=
14300 fi
14301
14302
14303
14304 if test "x${GCC}" = "xyes"; then
14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler" >&5
14306 printf %s "checking compiler... " >&6; }
14307 COMPILER_TYPE="`${CC} --version | head -1 | sed -e '1,$s/version.*//g'`"
14308 case "${COMPILER_TYPE}" in
14309 *gcc*)
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
14311 printf "%s\n" "gcc" >&6; }
14312 HAVE_GCC=yes
14313 HAVE_CLANG=no
14314 ;;
14315 *clang*)
14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang" >&5
14317 printf "%s\n" "clang" >&6; }
14318 HAVE_CLANG=yes
14319 HAVE_GCC=no
14320 ;;
14321 *)
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14323 printf "%s\n" "unknown" >&6; }
14324 HAVE_GCC=no
14325 HAVE_CLANG=no
14326 ;;
14327 esac
14328
14329 if test "${HAVE_GCC}" = "yes"; then
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of GCC" >&5
14331 printf %s "checking version of GCC... " >&6; }
14332 GCC_version="`${CC} --version | sed -n '1s/^[^ ]* (.*) //;s/ .*$//;1p'`"
14333 case "${GCC_version}" in
14334 [0-9]*[0-9]*)
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GCC_version}" >&5
14336 printf "%s\n" "${GCC_version}" >&6; }
14337 ;;
14338 *)
14339 # probably not gcc...
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown compiler version pattern" >&5
14341 printf "%s\n" "unknown compiler version pattern" >&6; }
14342 HAVE_GCC=no
14343 ;;
14344 esac
14345 fi
14346
14347 if test "${HAVE_CLANG}" = "yes"; then
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of clang" >&5
14349 printf %s "checking version of clang... " >&6; }
14350 CLANG_version="`${CC} --version | sed -n 's/.*clang version //;s/ .*$//;1p'`"
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CLANG_version}" >&5
14352 printf "%s\n" "${CLANG_version}" >&6; }
14353 fi
14354 fi
14355
14356
14357
14358 ac_fn_c_check_header_compile "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
14359 if test "x$ac_cv_header_dmalloc_h" = xyes
14360 then :
14361
14362 fi
14363
14364 if test "${ac_cv_header_dmalloc_h}" = "yes"; then
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
14366 printf %s "checking if malloc debugging is wanted... " >&6; }
14367
14368 # Check whether --with-dmalloc was given.
14369 if test ${with_dmalloc+y}
14370 then :
14371 withval=$with_dmalloc; if test "$withval" = yes; then
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14373 printf "%s\n" "yes" >&6; }
14374
14375 printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
14376
14377 LIBS="$LIBS -ldmalloc"
14378 LDFLAGS="$LDFLAGS -g"
14379 else
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 printf "%s\n" "no" >&6; }
14382 fi
14383 else $as_nop
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 printf "%s\n" "no" >&6; }
14386 fi
14387
14388
14389 fi
14390
14391 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
14392 if test "x$ac_cv_header_errno_h" = xyes
14393 then :
14394 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
14395
14396 fi
14397 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14398 if test "x$ac_cv_header_fcntl_h" = xyes
14399 then :
14400 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14401
14402 fi
14403 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14404 if test "x$ac_cv_header_limits_h" = xyes
14405 then :
14406 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14407
14408 fi
14409 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14410 if test "x$ac_cv_header_stdint_h" = xyes
14411 then :
14412 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14413
14414 fi
14415 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14416 if test "x$ac_cv_header_string_h" = xyes
14417 then :
14418 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14419
14420 fi
14421 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
14422 if test "x$ac_cv_header_sys_soundcard_h" = xyes
14423 then :
14424 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
14425
14426 fi
14427 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14428 if test "x$ac_cv_header_sys_time_h" = xyes
14429 then :
14430 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14431
14432 fi
14433 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14434 if test "x$ac_cv_header_unistd_h" = xyes
14435 then :
14436 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14437
14438 fi
14439 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
14440 if test "x$ac_cv_header_linux_soundcard_h" = xyes
14441 then :
14442 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
14443
14444 fi
14445
14446
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
14448 printf %s "checking working SSE intrinsics... " >&6; }
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 #include <xmmintrin.h>
14452 int
14453 main (void)
14454 {
14455 _mm_sfence();
14456 ;
14457 return 0;
14458 }
14459 _ACEOF
14460 if ac_fn_c_try_compile "$LINENO"
14461 then :
14462
14463 printf "%s\n" "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
14464
14465 ac_cv_header_xmmintrin_h=yes
14466 else $as_nop
14467 ac_cv_header_xmmintrin_h=no
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
14471 printf "%s\n" "${ac_cv_header_xmmintrin_h}" >&6; }
14472
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14474 printf %s "checking for an ANSI C-conforming const... " >&6; }
14475 if test ${ac_cv_c_const+y}
14476 then :
14477 printf %s "(cached) " >&6
14478 else $as_nop
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481
14482 int
14483 main (void)
14484 {
14485
14486 #ifndef __cplusplus
14487 /* Ultrix mips cc rejects this sort of thing. */
14488 typedef int charset[2];
14489 const charset cs = { 0, 0 };
14490 /* SunOS 4.1.1 cc rejects this. */
14491 char const *const *pcpcc;
14492 char **ppc;
14493 /* NEC SVR4.0.2 mips cc rejects this. */
14494 struct point {int x, y;};
14495 static struct point const zero = {0,0};
14496 /* IBM XL C 1.02.0.0 rejects this.
14497 It does not let you subtract one const X* pointer from another in
14498 an arm of an if-expression whose if-part is not a constant
14499 expression */
14500 const char *g = "string";
14501 pcpcc = &g + (g ? g-g : 0);
14502 /* HPUX 7.0 cc rejects these. */
14503 ++pcpcc;
14504 ppc = (char**) pcpcc;
14505 pcpcc = (char const *const *) ppc;
14506 { /* SCO 3.2v4 cc rejects this sort of thing. */
14507 char tx;
14508 char *t = &tx;
14509 char const *s = 0 ? (char *) 0 : (char const *) 0;
14510
14511 *t++ = 0;
14512 if (s) return 0;
14513 }
14514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14515 int x[] = {25, 17};
14516 const int *foo = &x[0];
14517 ++foo;
14518 }
14519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14520 typedef const int *iptr;
14521 iptr p = 0;
14522 ++p;
14523 }
14524 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14526 struct s { int j; const int *ap[3]; } bx;
14527 struct s *b = &bx; b->j = 5;
14528 }
14529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14530 const int foo = 10;
14531 if (!foo) return 0;
14532 }
14533 return !cs[0] && !zero.x;
14534 #endif
14535
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"
14541 then :
14542 ac_cv_c_const=yes
14543 else $as_nop
14544 ac_cv_c_const=no
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547 fi
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14549 printf "%s\n" "$ac_cv_c_const" >&6; }
14550 if test $ac_cv_c_const = no; then
14551
14552 printf "%s\n" "#define const /**/" >>confdefs.h
14553
14554 fi
14555
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14557 printf %s "checking for inline... " >&6; }
14558 if test ${ac_cv_c_inline+y}
14559 then :
14560 printf %s "(cached) " >&6
14561 else $as_nop
14562 ac_cv_c_inline=no
14563 for ac_kw in inline __inline__ __inline; do
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #ifndef __cplusplus
14567 typedef int foo_t;
14568 static $ac_kw foo_t static_foo (void) {return 0; }
14569 $ac_kw foo_t foo (void) {return 0; }
14570 #endif
14571
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"
14574 then :
14575 ac_cv_c_inline=$ac_kw
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14578 test "$ac_cv_c_inline" != no && break
14579 done
14580
14581 fi
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14583 printf "%s\n" "$ac_cv_c_inline" >&6; }
14584
14585 case $ac_cv_c_inline in
14586 inline | yes) ;;
14587 *)
14588 case $ac_cv_c_inline in
14589 no) ac_val=;;
14590 *) ac_val=$ac_cv_c_inline;;
14591 esac
14592 cat >>confdefs.h <<_ACEOF
14593 #ifndef __cplusplus
14594 #define inline $ac_val
14595 #endif
14596 _ACEOF
14597 ;;
14598 esac
14599
14600 if test ${cross_compiling} = "no"; then
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14602 printf %s "checking whether byte ordering is bigendian... " >&6; }
14603 if test ${ac_cv_c_bigendian+y}
14604 then :
14605 printf %s "(cached) " >&6
14606 else $as_nop
14607 ac_cv_c_bigendian=unknown
14608 # See if we're dealing with a universal compiler.
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 #ifndef __APPLE_CC__
14612 not a universal capable compiler
14613 #endif
14614 typedef int dummy;
14615
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"
14618 then :
14619
14620 # Check for potential -arch flags. It is not universal unless
14621 # there are at least two -arch flags with different values.
14622 ac_arch=
14623 ac_prev=
14624 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14625 if test -n "$ac_prev"; then
14626 case $ac_word in
14627 i?86 | x86_64 | ppc | ppc64)
14628 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14629 ac_arch=$ac_word
14630 else
14631 ac_cv_c_bigendian=universal
14632 break
14633 fi
14634 ;;
14635 esac
14636 ac_prev=
14637 elif test "x$ac_word" = "x-arch"; then
14638 ac_prev=arch
14639 fi
14640 done
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643 if test $ac_cv_c_bigendian = unknown; then
14644 # See if sys/param.h defines the BYTE_ORDER macro.
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <sys/types.h>
14648 #include <sys/param.h>
14649
14650 int
14651 main (void)
14652 {
14653 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14655 && LITTLE_ENDIAN)
14656 bogus endian macros
14657 #endif
14658
14659 ;
14660 return 0;
14661 }
14662 _ACEOF
14663 if ac_fn_c_try_compile "$LINENO"
14664 then :
14665 # It does; now see whether it defined to BIG_ENDIAN or not.
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <sys/types.h>
14669 #include <sys/param.h>
14670
14671 int
14672 main (void)
14673 {
14674 #if BYTE_ORDER != BIG_ENDIAN
14675 not big endian
14676 #endif
14677
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 if ac_fn_c_try_compile "$LINENO"
14683 then :
14684 ac_cv_c_bigendian=yes
14685 else $as_nop
14686 ac_cv_c_bigendian=no
14687 fi
14688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14691 fi
14692 if test $ac_cv_c_bigendian = unknown; then
14693 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696 #include <limits.h>
14697
14698 int
14699 main (void)
14700 {
14701 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14702 bogus endian macros
14703 #endif
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_compile "$LINENO"
14710 then :
14711 # It does; now see whether it defined to _BIG_ENDIAN or not.
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 #include <limits.h>
14715
14716 int
14717 main (void)
14718 {
14719 #ifndef _BIG_ENDIAN
14720 not big endian
14721 #endif
14722
14723 ;
14724 return 0;
14725 }
14726 _ACEOF
14727 if ac_fn_c_try_compile "$LINENO"
14728 then :
14729 ac_cv_c_bigendian=yes
14730 else $as_nop
14731 ac_cv_c_bigendian=no
14732 fi
14733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14736 fi
14737 if test $ac_cv_c_bigendian = unknown; then
14738 # Compile a test program.
14739 if test "$cross_compiling" = yes
14740 then :
14741 # Try to guess by grepping values from an object file.
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 unsigned short int ascii_mm[] =
14745 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14746 unsigned short int ascii_ii[] =
14747 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14748 int use_ascii (int i) {
14749 return ascii_mm[i] + ascii_ii[i];
14750 }
14751 unsigned short int ebcdic_ii[] =
14752 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14753 unsigned short int ebcdic_mm[] =
14754 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14755 int use_ebcdic (int i) {
14756 return ebcdic_mm[i] + ebcdic_ii[i];
14757 }
14758 extern int foo;
14759
14760 int
14761 main (void)
14762 {
14763 return use_ascii (foo) == use_ebcdic (foo);
14764 ;
14765 return 0;
14766 }
14767 _ACEOF
14768 if ac_fn_c_try_compile "$LINENO"
14769 then :
14770 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14771 ac_cv_c_bigendian=yes
14772 fi
14773 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14774 if test "$ac_cv_c_bigendian" = unknown; then
14775 ac_cv_c_bigendian=no
14776 else
14777 # finding both strings is unlikely to happen, but who knows?
14778 ac_cv_c_bigendian=unknown
14779 fi
14780 fi
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14783 else $as_nop
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 $ac_includes_default
14787 int
14788 main (void)
14789 {
14790
14791 /* Are we little or big endian? From Harbison&Steele. */
14792 union
14793 {
14794 long int l;
14795 char c[sizeof (long int)];
14796 } u;
14797 u.l = 1;
14798 return u.c[sizeof (long int) - 1] == 1;
14799
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_run "$LINENO"
14805 then :
14806 ac_cv_c_bigendian=no
14807 else $as_nop
14808 ac_cv_c_bigendian=yes
14809 fi
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811 conftest.$ac_objext conftest.beam conftest.$ac_ext
14812 fi
14813
14814 fi
14815 fi
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14817 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
14818 case $ac_cv_c_bigendian in #(
14819 yes)
14820 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
14821 ;; #(
14822 no)
14823 ;; #(
14824 universal)
14825
14826 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14827
14828 ;; #(
14829 *)
14830 as_fn_error $? "unknown endianness
14831 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14832 esac
14833
14834 fi
14835
14836 # Check whether --enable-largefile was given.
14837 if test ${enable_largefile+y}
14838 then :
14839 enableval=$enable_largefile;
14840 fi
14841
14842 if test "$enable_largefile" != no; then
14843
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14845 printf %s "checking for special C compiler options needed for large files... " >&6; }
14846 if test ${ac_cv_sys_largefile_CC+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 ac_cv_sys_largefile_CC=no
14851 if test "$GCC" != yes; then
14852 ac_save_CC=$CC
14853 while :; do
14854 # IRIX 6.2 and later do not support large files by default,
14855 # so use the C compiler's -n32 option if that helps.
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14858 #include <sys/types.h>
14859 /* Check that off_t can represent 2**63 - 1 correctly.
14860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14861 since some C++ compilers masquerading as C compilers
14862 incorrectly reject 9223372036854775807. */
14863 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14865 && LARGE_OFF_T % 2147483647 == 1)
14866 ? 1 : -1];
14867 int
14868 main (void)
14869 {
14870
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 if ac_fn_c_try_compile "$LINENO"
14876 then :
14877 break
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext conftest.beam
14880 CC="$CC -n32"
14881 if ac_fn_c_try_compile "$LINENO"
14882 then :
14883 ac_cv_sys_largefile_CC=' -n32'; break
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.beam
14886 break
14887 done
14888 CC=$ac_save_CC
14889 rm -f conftest.$ac_ext
14890 fi
14891 fi
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14893 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14894 if test "$ac_cv_sys_largefile_CC" != no; then
14895 CC=$CC$ac_cv_sys_largefile_CC
14896 fi
14897
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14899 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14900 if test ${ac_cv_sys_file_offset_bits+y}
14901 then :
14902 printf %s "(cached) " >&6
14903 else $as_nop
14904 while :; do
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14907 #include <sys/types.h>
14908 /* Check that off_t can represent 2**63 - 1 correctly.
14909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14910 since some C++ compilers masquerading as C compilers
14911 incorrectly reject 9223372036854775807. */
14912 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14914 && LARGE_OFF_T % 2147483647 == 1)
14915 ? 1 : -1];
14916 int
14917 main (void)
14918 {
14919
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 if ac_fn_c_try_compile "$LINENO"
14925 then :
14926 ac_cv_sys_file_offset_bits=no; break
14927 fi
14928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 #define _FILE_OFFSET_BITS 64
14932 #include <sys/types.h>
14933 /* Check that off_t can represent 2**63 - 1 correctly.
14934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14935 since some C++ compilers masquerading as C compilers
14936 incorrectly reject 9223372036854775807. */
14937 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14939 && LARGE_OFF_T % 2147483647 == 1)
14940 ? 1 : -1];
14941 int
14942 main (void)
14943 {
14944
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_compile "$LINENO"
14950 then :
14951 ac_cv_sys_file_offset_bits=64; break
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 ac_cv_sys_file_offset_bits=unknown
14955 break
14956 done
14957 fi
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14959 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14960 case $ac_cv_sys_file_offset_bits in #(
14961 no | unknown) ;;
14962 *)
14963 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14964 ;;
14965 esac
14966 rm -rf conftest*
14967 if test $ac_cv_sys_file_offset_bits = unknown; then
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14969 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14970 if test ${ac_cv_sys_large_files+y}
14971 then :
14972 printf %s "(cached) " >&6
14973 else $as_nop
14974 while :; do
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 #include <sys/types.h>
14978 /* Check that off_t can represent 2**63 - 1 correctly.
14979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14980 since some C++ compilers masquerading as C compilers
14981 incorrectly reject 9223372036854775807. */
14982 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14984 && LARGE_OFF_T % 2147483647 == 1)
14985 ? 1 : -1];
14986 int
14987 main (void)
14988 {
14989
14990 ;
14991 return 0;
14992 }
14993 _ACEOF
14994 if ac_fn_c_try_compile "$LINENO"
14995 then :
14996 ac_cv_sys_large_files=no; break
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #define _LARGE_FILES 1
15002 #include <sys/types.h>
15003 /* Check that off_t can represent 2**63 - 1 correctly.
15004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15005 since some C++ compilers masquerading as C compilers
15006 incorrectly reject 9223372036854775807. */
15007 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15009 && LARGE_OFF_T % 2147483647 == 1)
15010 ? 1 : -1];
15011 int
15012 main (void)
15013 {
15014
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"
15020 then :
15021 ac_cv_sys_large_files=1; break
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15024 ac_cv_sys_large_files=unknown
15025 break
15026 done
15027 fi
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15029 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
15030 case $ac_cv_sys_large_files in #(
15031 no | unknown) ;;
15032 *)
15033 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
15034 ;;
15035 esac
15036 rm -rf conftest*
15037 fi
15038 fi
15039
15040
15041 # The cast to long int works around a bug in the HP C Compiler
15042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15044 # This bug is HP SR number 8606223364.
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15046 printf %s "checking size of short... " >&6; }
15047 if test ${ac_cv_sizeof_short+y}
15048 then :
15049 printf %s "(cached) " >&6
15050 else $as_nop
15051 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
15052 then :
15053
15054 else $as_nop
15055 if test "$ac_cv_type_short" = yes; then
15056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15058 as_fn_error 77 "cannot compute sizeof (short)
15059 See \`config.log' for more details" "$LINENO" 5; }
15060 else
15061 ac_cv_sizeof_short=0
15062 fi
15063 fi
15064
15065 fi
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15067 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
15068
15069
15070
15071 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
15072
15073
15074 # The cast to long int works around a bug in the HP C Compiler
15075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15077 # This bug is HP SR number 8606223364.
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
15079 printf %s "checking size of unsigned short... " >&6; }
15080 if test ${ac_cv_sizeof_unsigned_short+y}
15081 then :
15082 printf %s "(cached) " >&6
15083 else $as_nop
15084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
15085 then :
15086
15087 else $as_nop
15088 if test "$ac_cv_type_unsigned_short" = yes; then
15089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15091 as_fn_error 77 "cannot compute sizeof (unsigned short)
15092 See \`config.log' for more details" "$LINENO" 5; }
15093 else
15094 ac_cv_sizeof_unsigned_short=0
15095 fi
15096 fi
15097
15098 fi
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
15100 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
15101
15102
15103
15104 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
15105
15106
15107 # The cast to long int works around a bug in the HP C Compiler
15108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15110 # This bug is HP SR number 8606223364.
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15112 printf %s "checking size of int... " >&6; }
15113 if test ${ac_cv_sizeof_int+y}
15114 then :
15115 printf %s "(cached) " >&6
15116 else $as_nop
15117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
15118 then :
15119
15120 else $as_nop
15121 if test "$ac_cv_type_int" = yes; then
15122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15123 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15124 as_fn_error 77 "cannot compute sizeof (int)
15125 See \`config.log' for more details" "$LINENO" 5; }
15126 else
15127 ac_cv_sizeof_int=0
15128 fi
15129 fi
15130
15131 fi
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15133 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
15134
15135
15136
15137 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
15138
15139
15140 # The cast to long int works around a bug in the HP C Compiler
15141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15143 # This bug is HP SR number 8606223364.
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15145 printf %s "checking size of unsigned int... " >&6; }
15146 if test ${ac_cv_sizeof_unsigned_int+y}
15147 then :
15148 printf %s "(cached) " >&6
15149 else $as_nop
15150 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
15151 then :
15152
15153 else $as_nop
15154 if test "$ac_cv_type_unsigned_int" = yes; then
15155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15157 as_fn_error 77 "cannot compute sizeof (unsigned int)
15158 See \`config.log' for more details" "$LINENO" 5; }
15159 else
15160 ac_cv_sizeof_unsigned_int=0
15161 fi
15162 fi
15163
15164 fi
15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15166 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15167
15168
15169
15170 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15171
15172
15173 # The cast to long int works around a bug in the HP C Compiler
15174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15176 # This bug is HP SR number 8606223364.
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15178 printf %s "checking size of long... " >&6; }
15179 if test ${ac_cv_sizeof_long+y}
15180 then :
15181 printf %s "(cached) " >&6
15182 else $as_nop
15183 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
15184 then :
15185
15186 else $as_nop
15187 if test "$ac_cv_type_long" = yes; then
15188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15190 as_fn_error 77 "cannot compute sizeof (long)
15191 See \`config.log' for more details" "$LINENO" 5; }
15192 else
15193 ac_cv_sizeof_long=0
15194 fi
15195 fi
15196
15197 fi
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15199 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
15200
15201
15202
15203 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
15204
15205
15206 # The cast to long int works around a bug in the HP C Compiler
15207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15209 # This bug is HP SR number 8606223364.
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15211 printf %s "checking size of unsigned long... " >&6; }
15212 if test ${ac_cv_sizeof_unsigned_long+y}
15213 then :
15214 printf %s "(cached) " >&6
15215 else $as_nop
15216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
15217 then :
15218
15219 else $as_nop
15220 if test "$ac_cv_type_unsigned_long" = yes; then
15221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15222 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15223 as_fn_error 77 "cannot compute sizeof (unsigned long)
15224 See \`config.log' for more details" "$LINENO" 5; }
15225 else
15226 ac_cv_sizeof_unsigned_long=0
15227 fi
15228 fi
15229
15230 fi
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15232 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15233
15234
15235
15236 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15237
15238
15239 # The cast to long int works around a bug in the HP C Compiler
15240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15242 # This bug is HP SR number 8606223364.
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15244 printf %s "checking size of long long... " >&6; }
15245 if test ${ac_cv_sizeof_long_long+y}
15246 then :
15247 printf %s "(cached) " >&6
15248 else $as_nop
15249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
15250 then :
15251
15252 else $as_nop
15253 if test "$ac_cv_type_long_long" = yes; then
15254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15256 as_fn_error 77 "cannot compute sizeof (long long)
15257 See \`config.log' for more details" "$LINENO" 5; }
15258 else
15259 ac_cv_sizeof_long_long=0
15260 fi
15261 fi
15262
15263 fi
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15265 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
15266
15267
15268
15269 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
15270
15271
15272 # The cast to long int works around a bug in the HP C Compiler
15273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15275 # This bug is HP SR number 8606223364.
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
15277 printf %s "checking size of unsigned long long... " >&6; }
15278 if test ${ac_cv_sizeof_unsigned_long_long+y}
15279 then :
15280 printf %s "(cached) " >&6
15281 else $as_nop
15282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
15283 then :
15284
15285 else $as_nop
15286 if test "$ac_cv_type_unsigned_long_long" = yes; then
15287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15289 as_fn_error 77 "cannot compute sizeof (unsigned long long)
15290 See \`config.log' for more details" "$LINENO" 5; }
15291 else
15292 ac_cv_sizeof_unsigned_long_long=0
15293 fi
15294 fi
15295
15296 fi
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
15298 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
15299
15300
15301
15302 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
15303
15304
15305 # The cast to long int works around a bug in the HP C Compiler
15306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15308 # This bug is HP SR number 8606223364.
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15310 printf %s "checking size of float... " >&6; }
15311 if test ${ac_cv_sizeof_float+y}
15312 then :
15313 printf %s "(cached) " >&6
15314 else $as_nop
15315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
15316 then :
15317
15318 else $as_nop
15319 if test "$ac_cv_type_float" = yes; then
15320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15321 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15322 as_fn_error 77 "cannot compute sizeof (float)
15323 See \`config.log' for more details" "$LINENO" 5; }
15324 else
15325 ac_cv_sizeof_float=0
15326 fi
15327 fi
15328
15329 fi
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15331 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
15332
15333
15334
15335 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
15336
15337
15338 # The cast to long int works around a bug in the HP C Compiler
15339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15341 # This bug is HP SR number 8606223364.
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15343 printf %s "checking size of double... " >&6; }
15344 if test ${ac_cv_sizeof_double+y}
15345 then :
15346 printf %s "(cached) " >&6
15347 else $as_nop
15348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
15349 then :
15350
15351 else $as_nop
15352 if test "$ac_cv_type_double" = yes; then
15353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15354 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15355 as_fn_error 77 "cannot compute sizeof (double)
15356 See \`config.log' for more details" "$LINENO" 5; }
15357 else
15358 ac_cv_sizeof_double=0
15359 fi
15360 fi
15361
15362 fi
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15364 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
15365
15366
15367
15368 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
15369
15370
15371
15372 if test $ac_cv_sizeof_short -eq 0 \
15373 -o $ac_cv_sizeof_unsigned_short -eq 0 \
15374 -o $ac_cv_sizeof_int -eq 0 \
15375 -o $ac_cv_sizeof_unsigned_int -eq 0 \
15376 -o $ac_cv_sizeof_long -eq 0 \
15377 -o $ac_cv_sizeof_unsigned_long -eq 0 \
15378 -o $ac_cv_sizeof_long_long -eq 0 \
15379 -o $ac_cv_sizeof_unsigned_long_long -eq 0 \
15380 -o $ac_cv_sizeof_float -eq 0 \
15381 -o $ac_cv_sizeof_double -eq 0; then
15382 echo '*** I have a problem determining the size of some variable types. Either'
15383 echo '*** you compiler is broken, or your system+compiler combination is not'
15384 echo '*** supportet by the "autoconf" framework we use to generate this'
15385 echo '*** configure script.'
15386 exit 1
15387 fi
15388
15389
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
15391 printf %s "checking for long double with more range or precision than double... " >&6; }
15392 if test ${ac_cv_type_long_double_wider+y}
15393 then :
15394 printf %s "(cached) " >&6
15395 else $as_nop
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #include <float.h>
15399 long double const a[] =
15400 {
15401 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
15402 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
15403 };
15404 long double
15405 f (long double x)
15406 {
15407 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
15408 + (x ? f (x) : 'c'));
15409 }
15410
15411 int
15412 main (void)
15413 {
15414 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
15415 + (DBL_MANT_DIG < LDBL_MANT_DIG)
15416 - (LDBL_MAX_EXP < DBL_MAX_EXP)
15417 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
15418 && (int) LDBL_EPSILON == 0
15419 )];
15420 test_array [0] = 0;
15421 return test_array [0];
15422
15423 ;
15424 return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_compile "$LINENO"
15428 then :
15429 ac_cv_type_long_double_wider=yes
15430 else $as_nop
15431 ac_cv_type_long_double_wider=no
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15434 fi
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
15436 printf "%s\n" "$ac_cv_type_long_double_wider" >&6; }
15437 if test $ac_cv_type_long_double_wider = yes; then
15438
15439 printf "%s\n" "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
15440
15441 fi
15442
15443 ac_cv_c_long_double=$ac_cv_type_long_double_wider
15444 if test $ac_cv_c_long_double = yes; then
15445
15446 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15447
15448 fi
15449
15450 if test "${ac_cv_c_long_double}" = "yes" ; then
15451 # The cast to long int works around a bug in the HP C Compiler
15452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15454 # This bug is HP SR number 8606223364.
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15456 printf %s "checking size of long double... " >&6; }
15457 if test ${ac_cv_sizeof_long_double+y}
15458 then :
15459 printf %s "(cached) " >&6
15460 else $as_nop
15461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
15462 then :
15463
15464 else $as_nop
15465 if test "$ac_cv_type_long_double" = yes; then
15466 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15467 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15468 as_fn_error 77 "cannot compute sizeof (long double)
15469 See \`config.log' for more details" "$LINENO" 5; }
15470 else
15471 ac_cv_sizeof_long_double=0
15472 fi
15473 fi
15474
15475 fi
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15477 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
15478
15479
15480
15481 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
15482
15483
15484 fi
15485
15486 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15487 if test "x$ac_cv_type_uint8_t" = xyes
15488 then :
15489
15490 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
15491
15492
15493 fi
15494 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15495 if test "x$ac_cv_type_int8_t" = xyes
15496 then :
15497
15498 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
15499
15500
15501 fi
15502 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15503 if test "x$ac_cv_type_uint16_t" = xyes
15504 then :
15505
15506 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
15507
15508
15509 fi
15510 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15511 if test "x$ac_cv_type_int16_t" = xyes
15512 then :
15513
15514 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
15515
15516
15517 fi
15518 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15519 if test "x$ac_cv_type_uint32_t" = xyes
15520 then :
15521
15522 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
15523
15524
15525 fi
15526 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15527 if test "x$ac_cv_type_int32_t" = xyes
15528 then :
15529
15530 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
15531
15532
15533 fi
15534 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
15535 if test "x$ac_cv_type_uint64_t" = xyes
15536 then :
15537
15538 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
15539
15540
15541 fi
15542 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
15543 if test "x$ac_cv_type_int64_t" = xyes
15544 then :
15545
15546 printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h
15547
15548
15549 fi
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560 if test "${HAVE_INT32_T}" = yes; then
15561 printf "%s\n" "#define A_UINT32_T unsigned int32_t" >>confdefs.h
15562
15563 else
15564 if test "${ac_cv_sizeof_unsigned_short}" = "4"; then
15565 printf "%s\n" "#define A_UINT32_T unsigned short" >>confdefs.h
15566
15567 else
15568 if test "${ac_cv_sizeof_unsigned_int}" = "4"; then
15569 printf "%s\n" "#define A_UINT32_T unsigned int" >>confdefs.h
15570
15571 else
15572 if test "${ac_cv_sizeof_unsigned_long}" = "4"; then
15573 printf "%s\n" "#define A_UINT32_T unsigned long" >>confdefs.h
15574
15575 else
15576 as_fn_error $? "CHECK_TYPE_uint32_t - please report to [email protected]" "$LINENO" 5
15577 fi
15578 fi
15579 fi
15580 fi
15581
15582
15583
15584 if test "${ac_cv_sizeof_short}" = "4"; then
15585 printf "%s\n" "#define A_INT32_T short" >>confdefs.h
15586
15587 else
15588 if test "${ac_cv_sizeof_int}" = "4"; then
15589 printf "%s\n" "#define A_INT32_T int" >>confdefs.h
15590
15591 else
15592 if test "${ac_cv_sizeof_long}" = "4"; then
15593 printf "%s\n" "#define A_INT32_T long" >>confdefs.h
15594
15595 else
15596 as_fn_error $? "CHECK_TYPE_int32_t - please report to [email protected]" "$LINENO" 5
15597 fi
15598 fi
15599 fi
15600
15601
15602
15603 if test "${HAVE_INT64_T}" = yes; then
15604 printf "%s\n" "#define A_UINT64_T unsigned int64_t" >>confdefs.h
15605
15606 else
15607 if test "${ac_cv_sizeof_unsigned_int}" = "8"; then
15608 printf "%s\n" "#define A_UINT64_T unsigned int" >>confdefs.h
15609
15610 else
15611 if test "${ac_cv_sizeof_unsigned_long}" = "8"; then
15612 printf "%s\n" "#define A_UINT64_T unsigned long" >>confdefs.h
15613
15614 else
15615 if test "${ac_cv_sizeof_unsigned_long_long}" = "8"; then
15616 printf "%s\n" "#define A_UINT64_T unsigned long long" >>confdefs.h
15617
15618 else
15619 as_fn_error $? "CHECK_TYPE_uint64_t - please report to [email protected]" "$LINENO" 5
15620 fi
15621 fi
15622 fi
15623 fi
15624
15625
15626
15627 if test "${ac_cv_sizeof_int}" = "8"; then
15628 printf "%s\n" "#define A_INT64_T int" >>confdefs.h
15629
15630 else
15631 if test "${ac_cv_sizeof_long}" = "8"; then
15632 printf "%s\n" "#define A_INT64_T long" >>confdefs.h
15633
15634 else
15635 if test "${ac_cv_sizeof_long_long}" = "8"; then
15636 printf "%s\n" "#define A_INT64_T long long" >>confdefs.h
15637
15638 else
15639 as_fn_error $? "CHECK_TYPE_int64_t - please report to [email protected]" "$LINENO" 5
15640 fi
15641 fi
15642 fi
15643
15644
15645
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IEEE854 compliant 80 bit floats" >&5
15647 printf %s "checking for IEEE854 compliant 80 bit floats... " >&6; }
15648 if test ${alex_cv_ieee854_float80+y}
15649 then :
15650 printf %s "(cached) " >&6
15651 else $as_nop
15652 if test "$cross_compiling" = yes
15653 then :
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't check for IEEE854 compliant 80 bit floats" >&5
15655 printf "%s\n" "$as_me: WARNING: can't check for IEEE854 compliant 80 bit floats" >&2;}
15656
15657 else $as_nop
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660
15661 int float2long_IEEE_compliance ( void )
15662 {
15663 struct {
15664 long padding; /* to prevent unaligned access */
15665 float f;
15666 } s;
15667 s.f = 12582912.; if ( *(long*)(&s.f) != 1262485504l ) return 0;
15668 s.f = 12615679.; if ( *(long*)(&s.f) != 1262518271l ) return 0;
15669 s.f = 13582912.; if ( *(long*)(&s.f) != 1263485504l ) return 0;
15670 s.f = 12550145.; if ( *(long*)(&s.f) != 1262452737l ) return 0;
15671 s.f = 11582912.; if ( *(long*)(&s.f) != 1261485504l ) return 0;
15672 return 1;
15673 }
15674
15675 int main(void)
15676 {
15677 int retval;
15678
15679 retval = float2long_IEEE_compliance();
15680
15681 /* no error return -> success */
15682 return !retval;
15683 }
15684
15685 _ACEOF
15686 if ac_fn_c_try_run "$LINENO"
15687 then :
15688 alex_cv_ieee854_float80=yes
15689 else $as_nop
15690 alex_cv_ieee854_float80=no
15691 fi
15692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15693 conftest.$ac_objext conftest.beam conftest.$ac_ext
15694 fi
15695
15696 fi
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $alex_cv_ieee854_float80" >&5
15698 printf "%s\n" "$alex_cv_ieee854_float80" >&6; }
15699 if test "${alex_cv_ieee854_float80}" = "yes" ; then
15700 if test "${ac_cv_c_long_double}" = "yes" ; then
15701 ac_fn_c_check_type "$LINENO" "ieee854_float80_t" "ac_cv_type_ieee854_float80_t" "$ac_includes_default"
15702 if test "x$ac_cv_type_ieee854_float80_t" = xyes
15703 then :
15704
15705 printf "%s\n" "#define HAVE_IEEE854_FLOAT80_T 1" >>confdefs.h
15706
15707 long double
15708 fi
15709
15710
15711
15712
15713 printf "%s\n" "#define HAVE_IEEE854_FLOAT80 1" >>confdefs.h
15714
15715 fi
15716 fi
15717 ac_fn_c_check_type "$LINENO" "ieee754_float64_t" "ac_cv_type_ieee754_float64_t" "$ac_includes_default"
15718 if test "x$ac_cv_type_ieee754_float64_t" = xyes
15719 then :
15720
15721 printf "%s\n" "#define HAVE_IEEE754_FLOAT64_T 1" >>confdefs.h
15722
15723
15724 fi
15725 ac_fn_c_check_type "$LINENO" "ieee754_float32_t" "ac_cv_type_ieee754_float32_t" "$ac_includes_default"
15726 if test "x$ac_cv_type_ieee754_float32_t" = xyes
15727 then :
15728
15729 printf "%s\n" "#define HAVE_IEEE754_FLOAT32_T 1" >>confdefs.h
15730
15731
15732 fi
15733
15734
15735
15736
15737
15738
15739
15740 printf "%s\n" "#define LAME_LIBRARY_BUILD 1" >>confdefs.h
15741
15742
15743
15744 if test ${cross_compiling} = "yes"; then
15745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15746 **************************************************************************
15747 * *
15748 * You are cross compiling: *
15749 * - I did not have a change to determine *
15750 * + the size of: *
15751 * - short *
15752 * - unsigned short *
15753 * - int *
15754 * - unsigned int *
15755 * - long *
15756 * - unsigned long *
15757 * - float *
15758 * - double *
15759 * - long double *
15760 * + the endianess of the system *
15761 * - You have to provide appropriate defines for them in config.h, e.g. *
15762 * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
15763 * + define WORDS_BIGENDIAN if your system is a big endian system *
15764 * *
15765 **************************************************************************" >&5
15766 printf "%s\n" "$as_me: WARNING:
15767 **************************************************************************
15768 * *
15769 * You are cross compiling: *
15770 * - I did not have a change to determine *
15771 * + the size of: *
15772 * - short *
15773 * - unsigned short *
15774 * - int *
15775 * - unsigned int *
15776 * - long *
15777 * - unsigned long *
15778 * - float *
15779 * - double *
15780 * - long double *
15781 * + the endianess of the system *
15782 * - You have to provide appropriate defines for them in config.h, e.g. *
15783 * + define SIZEOF_SHORT to 2 if the size of a short is 2 *
15784 * + define WORDS_BIGENDIAN if your system is a big endian system *
15785 * *
15786 **************************************************************************" >&2;}
15787 fi
15788
15789 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15790 if test "x$ac_cv_type_size_t" = xyes
15791 then :
15792
15793 else $as_nop
15794
15795 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15796
15797 fi
15798
15799
15800
15801 # Obsolete code to be removed.
15802 if test $ac_cv_header_sys_time_h = yes; then
15803
15804 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15805
15806 fi
15807 # End of obsolete code.
15808
15809
15810 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15811 # for constant arguments. Useless!
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15813 printf %s "checking for working alloca.h... " >&6; }
15814 if test ${ac_cv_working_alloca_h+y}
15815 then :
15816 printf %s "(cached) " >&6
15817 else $as_nop
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #include <alloca.h>
15821 int
15822 main (void)
15823 {
15824 char *p = (char *) alloca (2 * sizeof (int));
15825 if (p) return 0;
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_link "$LINENO"
15831 then :
15832 ac_cv_working_alloca_h=yes
15833 else $as_nop
15834 ac_cv_working_alloca_h=no
15835 fi
15836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15837 conftest$ac_exeext conftest.$ac_ext
15838 fi
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15840 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15841 if test $ac_cv_working_alloca_h = yes; then
15842
15843 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15844
15845 fi
15846
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15848 printf %s "checking for alloca... " >&6; }
15849 if test ${ac_cv_func_alloca_works+y}
15850 then :
15851 printf %s "(cached) " >&6
15852 else $as_nop
15853 if test $ac_cv_working_alloca_h = yes; then
15854 ac_cv_func_alloca_works=yes
15855 else
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <stdlib.h>
15859 #include <stddef.h>
15860 #ifndef alloca
15861 # ifdef __GNUC__
15862 # define alloca __builtin_alloca
15863 # elif defined _MSC_VER
15864 # include <malloc.h>
15865 # define alloca _alloca
15866 # else
15867 # ifdef __cplusplus
15868 extern "C"
15869 # endif
15870 void *alloca (size_t);
15871 # endif
15872 #endif
15873
15874 int
15875 main (void)
15876 {
15877 char *p = (char *) alloca (1);
15878 if (p) return 0;
15879 ;
15880 return 0;
15881 }
15882 _ACEOF
15883 if ac_fn_c_try_link "$LINENO"
15884 then :
15885 ac_cv_func_alloca_works=yes
15886 else $as_nop
15887 ac_cv_func_alloca_works=no
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15890 conftest$ac_exeext conftest.$ac_ext
15891 fi
15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15893 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15894 fi
15895
15896 if test $ac_cv_func_alloca_works = yes; then
15897
15898 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15899
15900 else
15901 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15902 # that cause trouble. Some versions do not even contain alloca or
15903 # contain a buggy version. If you still want to use their alloca,
15904 # use ar to extract alloca.o from them instead of compiling alloca.c.
15905
15906 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15907
15908 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
15909
15910
15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15912 printf %s "checking stack direction for C alloca... " >&6; }
15913 if test ${ac_cv_c_stack_direction+y}
15914 then :
15915 printf %s "(cached) " >&6
15916 else $as_nop
15917 if test "$cross_compiling" = yes
15918 then :
15919 ac_cv_c_stack_direction=0
15920 else $as_nop
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923 $ac_includes_default
15924 int
15925 find_stack_direction (int *addr, int depth)
15926 {
15927 int dir, dummy = 0;
15928 if (! addr)
15929 addr = &dummy;
15930 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15931 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15932 return dir + dummy;
15933 }
15934
15935 int
15936 main (int argc, char **argv)
15937 {
15938 return find_stack_direction (0, argc + !argv + 20) < 0;
15939 }
15940 _ACEOF
15941 if ac_fn_c_try_run "$LINENO"
15942 then :
15943 ac_cv_c_stack_direction=1
15944 else $as_nop
15945 ac_cv_c_stack_direction=-1
15946 fi
15947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948 conftest.$ac_objext conftest.beam conftest.$ac_ext
15949 fi
15950
15951 fi
15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15953 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
15954 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
15955
15956
15957 fi
15958
15959 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15960 if test "x$ac_cv_func_gettimeofday" = xyes
15961 then :
15962 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15963
15964 fi
15965 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
15966 if test "x$ac_cv_func_strtol" = xyes
15967 then :
15968 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
15969
15970 fi
15971
15972
15973 if test "X${ac_cv_func_strtol}" != "Xyes"; then
15974 as_fn_error $? "function strtol is mandatory" "$LINENO" 5
15975 fi
15976
15977 SOCKETFUNCTION=unknown
15978 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15979 if test "x$ac_cv_func_socket" = xyes
15980 then :
15981 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
15982
15983 fi
15984
15985 if test $ac_cv_func_socket = no; then
15986 # maybe it is in libsocket
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15988 printf %s "checking for socket in -lsocket... " >&6; }
15989 if test ${ac_cv_lib_socket_socket+y}
15990 then :
15991 printf %s "(cached) " >&6
15992 else $as_nop
15993 ac_check_lib_save_LIBS=$LIBS
15994 LIBS="-lsocket $LIBS"
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997
15998 /* Override any GCC internal prototype to avoid an error.
15999 Use char because int might match the return type of a GCC
16000 builtin and then its argument prototype would still apply. */
16001 char socket ();
16002 int
16003 main (void)
16004 {
16005 return socket ();
16006 ;
16007 return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"
16011 then :
16012 ac_cv_lib_socket_socket=yes
16013 else $as_nop
16014 ac_cv_lib_socket_socket=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16021 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
16022 if test "x$ac_cv_lib_socket_socket" = xyes
16023 then :
16024 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
16025
16026 LIBS="$LIBS -lsocket"
16027 fi
16028
16029 if test "X${ac_cv_lib_socket_socket}" != "Xyes"; then
16030 SOCKETFUNCTION=NO
16031 else
16032 case ${host_os} in
16033 *solaris*)
16034 LIBS="$LIBS -lnsl"
16035 ;;
16036 esac
16037 fi
16038 fi
16039
16040 CFLAGS=${CFLAGS}
16041 CONFIG_DEFS=${CONFIG_DEFS}
16042 NASM=
16043 INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)"
16044 FRONTEND_LDFLAGS=
16045 FRONTEND_CFLAGS=
16046 LIB_SOURCES=
16047 MAKEDEP="-M"
16048 RM_F="rm -f"
16049
16050 # Check whether --enable-nasm was given.
16051 if test ${enable_nasm+y}
16052 then :
16053 enableval=$enable_nasm; ASM_FOR_ARCH="i386"
16054 else $as_nop
16055 ASM_FOR_ARCH=""
16056 fi
16057
16058
16059 # Check whether --enable-ieeehack was given.
16060 if test ${enable_ieeehack+y}
16061 then :
16062 enableval=$enable_ieeehack; IEEE754_HACK="yes"
16063 else $as_nop
16064 IEEE754_HACK="no"
16065 fi
16066
16067 case ${IEEE754_HACK} in
16068 yes)
16069
16070 printf "%s\n" "#define TAKEHIRO_IEEE754_HACK 1" >>confdefs.h
16071
16072 ;;
16073 no)
16074
16075 printf "%s\n" "#define TAKEHIRO_IEEE754_HACK 0" >>confdefs.h
16076
16077 ;;
16078 esac
16079
16080
16081 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
16082 if test "x$ac_cv_header_termcap_h" = xyes
16083 then :
16084 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
16085
16086 fi
16087
16088 ac_fn_c_check_header_compile "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
16089 if test "x$ac_cv_header_ncurses_termcap_h" = xyes
16090 then :
16091 printf "%s\n" "#define HAVE_NCURSES_TERMCAP_H 1" >>confdefs.h
16092
16093 fi
16094
16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5
16096 printf %s "checking for initscr in -ltermcap... " >&6; }
16097 if test ${ac_cv_lib_termcap_initscr+y}
16098 then :
16099 printf %s "(cached) " >&6
16100 else $as_nop
16101 ac_check_lib_save_LIBS=$LIBS
16102 LIBS="-ltermcap $LIBS"
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105
16106 /* Override any GCC internal prototype to avoid an error.
16107 Use char because int might match the return type of a GCC
16108 builtin and then its argument prototype would still apply. */
16109 char initscr ();
16110 int
16111 main (void)
16112 {
16113 return initscr ();
16114 ;
16115 return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"
16119 then :
16120 ac_cv_lib_termcap_initscr=yes
16121 else $as_nop
16122 ac_cv_lib_termcap_initscr=no
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16125 conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16127 fi
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5
16129 printf "%s\n" "$ac_cv_lib_termcap_initscr" >&6; }
16130 if test "x$ac_cv_lib_termcap_initscr" = xyes
16131 then :
16132 HAVE_TERMCAP="termcap"
16133 fi
16134
16135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
16136 printf %s "checking for initscr in -lcurses... " >&6; }
16137 if test ${ac_cv_lib_curses_initscr+y}
16138 then :
16139 printf %s "(cached) " >&6
16140 else $as_nop
16141 ac_check_lib_save_LIBS=$LIBS
16142 LIBS="-lcurses $LIBS"
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16145
16146 /* Override any GCC internal prototype to avoid an error.
16147 Use char because int might match the return type of a GCC
16148 builtin and then its argument prototype would still apply. */
16149 char initscr ();
16150 int
16151 main (void)
16152 {
16153 return initscr ();
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"
16159 then :
16160 ac_cv_lib_curses_initscr=yes
16161 else $as_nop
16162 ac_cv_lib_curses_initscr=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16165 conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS
16167 fi
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
16169 printf "%s\n" "$ac_cv_lib_curses_initscr" >&6; }
16170 if test "x$ac_cv_lib_curses_initscr" = xyes
16171 then :
16172 HAVE_TERMCAP="curses"
16173 fi
16174
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16176 printf %s "checking for initscr in -lncurses... " >&6; }
16177 if test ${ac_cv_lib_ncurses_initscr+y}
16178 then :
16179 printf %s "(cached) " >&6
16180 else $as_nop
16181 ac_check_lib_save_LIBS=$LIBS
16182 LIBS="-lncurses $LIBS"
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185
16186 /* Override any GCC internal prototype to avoid an error.
16187 Use char because int might match the return type of a GCC
16188 builtin and then its argument prototype would still apply. */
16189 char initscr ();
16190 int
16191 main (void)
16192 {
16193 return initscr ();
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"
16199 then :
16200 ac_cv_lib_ncurses_initscr=yes
16201 else $as_nop
16202 ac_cv_lib_ncurses_initscr=no
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16205 conftest$ac_exeext conftest.$ac_ext
16206 LIBS=$ac_check_lib_save_LIBS
16207 fi
16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
16209 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
16210 if test "x$ac_cv_lib_ncurses_initscr" = xyes
16211 then :
16212 HAVE_TERMCAP="ncurses"
16213 fi
16214
16215 for ac_header in langinfo.h
16216 do :
16217 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
16218 if test "x$ac_cv_header_langinfo_h" = xyes
16219 then :
16220 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
16221 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
16222 if test "x$ac_cv_func_nl_langinfo" = xyes
16223 then :
16224 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
16225
16226 fi
16227
16228 fi
16229
16230 done
16231
16232
16233 if test "X$prefix" = "XNONE"; then
16234 acl_final_prefix="$ac_default_prefix"
16235 else
16236 acl_final_prefix="$prefix"
16237 fi
16238 if test "X$exec_prefix" = "XNONE"; then
16239 acl_final_exec_prefix='${prefix}'
16240 else
16241 acl_final_exec_prefix="$exec_prefix"
16242 fi
16243 acl_save_prefix="$prefix"
16244 prefix="$acl_final_prefix"
16245 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16246 prefix="$acl_save_prefix"
16247
16248
16249
16250 # Check whether --with-gnu-ld was given.
16251 if test ${with_gnu_ld+y}
16252 then :
16253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16254 else $as_nop
16255 with_gnu_ld=no
16256 fi
16257
16258 # Prepare PATH_SEPARATOR.
16259 # The user is always right.
16260 if test "${PATH_SEPARATOR+set}" != set; then
16261 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16262 # contains only /bin. Note that ksh looks also at the FPATH variable,
16263 # so we have to set that as well for the test.
16264 PATH_SEPARATOR=:
16265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16266 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16267 || PATH_SEPARATOR=';'
16268 }
16269 fi
16270
16271 if test -n "$LD"; then
16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
16273 printf %s "checking for ld... " >&6; }
16274 elif test "$GCC" = yes; then
16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16276 printf %s "checking for ld used by $CC... " >&6; }
16277 elif test "$with_gnu_ld" = yes; then
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16279 printf %s "checking for GNU ld... " >&6; }
16280 else
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16282 printf %s "checking for non-GNU ld... " >&6; }
16283 fi
16284 if test -n "$LD"; then
16285 # Let the user override the test with a path.
16286 :
16287 else
16288 if test ${acl_cv_path_LD+y}
16289 then :
16290 printf %s "(cached) " >&6
16291 else $as_nop
16292
16293 acl_cv_path_LD= # Final result of this test
16294 ac_prog=ld # Program to search in $PATH
16295 if test "$GCC" = yes; then
16296 # Check if gcc -print-prog-name=ld gives a path.
16297 case $host in
16298 *-*-mingw* | windows*)
16299 # gcc leaves a trailing carriage return which upsets mingw
16300 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16301 *)
16302 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
16303 esac
16304 case $acl_output in
16305 # Accept absolute paths.
16306 [\\/]* | ?:[\\/]*)
16307 re_direlt='/[^/][^/]*/\.\./'
16308 # Canonicalize the pathname of ld
16309 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
16310 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
16311 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
16312 done
16313 # Got the pathname. No search in PATH is needed.
16314 acl_cv_path_LD="$acl_output"
16315 ac_prog=
16316 ;;
16317 "")
16318 # If it fails, then pretend we aren't using GCC.
16319 ;;
16320 *)
16321 # If it is relative, then search for the first ld in PATH.
16322 with_gnu_ld=unknown
16323 ;;
16324 esac
16325 fi
16326 if test -n "$ac_prog"; then
16327 # Search for $ac_prog in $PATH.
16328 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16329 for ac_dir in $PATH; do
16330 IFS="$acl_save_ifs"
16331 test -z "$ac_dir" && ac_dir=.
16332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16333 acl_cv_path_LD="$ac_dir/$ac_prog"
16334 # Check to see if the program is GNU ld. I'd rather use --version,
16335 # but apparently some variants of GNU ld only accept -v.
16336 # Break only if it was the GNU/non-GNU ld that we prefer.
16337 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16338 *GNU* | *'with BFD'*)
16339 test "$with_gnu_ld" != no && break
16340 ;;
16341 *)
16342 test "$with_gnu_ld" != yes && break
16343 ;;
16344 esac
16345 fi
16346 done
16347 IFS="$acl_save_ifs"
16348 fi
16349 case $host in
16350 *-*-aix*)
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353 #if defined __powerpc64__ || defined __LP64__
16354 int ok;
16355 #else
16356 error fail
16357 #endif
16358
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"
16361 then :
16362 # The compiler produces 64-bit code. Add option '-b64' so that the
16363 # linker groks 64-bit object files.
16364 case "$acl_cv_path_LD " in
16365 *" -b64 "*) ;;
16366 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
16367 esac
16368
16369 fi
16370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16371 ;;
16372 sparc64-*-netbsd*)
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 #if defined __sparcv9 || defined __arch64__
16376 int ok;
16377 #else
16378 error fail
16379 #endif
16380
16381 _ACEOF
16382 if ac_fn_c_try_compile "$LINENO"
16383 then :
16384
16385 else $as_nop
16386 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
16387 # so that the linker groks 32-bit object files.
16388 case "$acl_cv_path_LD " in
16389 *" -m elf32_sparc "*) ;;
16390 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
16391 esac
16392
16393 fi
16394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16395 ;;
16396 esac
16397
16398 fi
16399
16400 LD="$acl_cv_path_LD"
16401 fi
16402 if test -n "$LD"; then
16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16404 printf "%s\n" "$LD" >&6; }
16405 else
16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 printf "%s\n" "no" >&6; }
16408 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16409 fi
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16411 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16412 if test ${acl_cv_prog_gnu_ld+y}
16413 then :
16414 printf %s "(cached) " >&6
16415 else $as_nop
16416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16417 case `$LD -v 2>&1 </dev/null` in
16418 *GNU* | *'with BFD'*)
16419 acl_cv_prog_gnu_ld=yes
16420 ;;
16421 *)
16422 acl_cv_prog_gnu_ld=no
16423 ;;
16424 esac
16425 fi
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16427 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
16428 with_gnu_ld=$acl_cv_prog_gnu_ld
16429
16430
16431
16432
16433
16434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16435 printf %s "checking for shared library run path origin... " >&6; }
16436 if test ${acl_cv_rpath+y}
16437 then :
16438 printf %s "(cached) " >&6
16439 else $as_nop
16440
16441 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16442 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16443 . ./conftest.sh
16444 rm -f ./conftest.sh
16445 acl_cv_rpath=done
16446
16447 fi
16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16449 printf "%s\n" "$acl_cv_rpath" >&6; }
16450 wl="$acl_cv_wl"
16451 acl_libext="$acl_cv_libext"
16452 acl_shlibext="$acl_cv_shlibext"
16453 acl_libname_spec="$acl_cv_libname_spec"
16454 acl_library_names_spec="$acl_cv_library_names_spec"
16455 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16456 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16457 acl_hardcode_direct="$acl_cv_hardcode_direct"
16458 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16459 # Check whether --enable-rpath was given.
16460 if test ${enable_rpath+y}
16461 then :
16462 enableval=$enable_rpath; :
16463 else $as_nop
16464 enable_rpath=yes
16465 fi
16466
16467
16468
16469
16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
16471 printf %s "checking 32-bit host C ABI... " >&6; }
16472 if test ${gl_cv_host_cpu_c_abi_32bit+y}
16473 then :
16474 printf %s "(cached) " >&6
16475 else $as_nop
16476 if test -n "$gl_cv_host_cpu_c_abi"; then
16477 case "$gl_cv_host_cpu_c_abi" in
16478 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
16479 gl_cv_host_cpu_c_abi_32bit=yes ;;
16480 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
16481 gl_cv_host_cpu_c_abi_32bit=no ;;
16482 *)
16483 gl_cv_host_cpu_c_abi_32bit=unknown ;;
16484 esac
16485 else
16486 case "$host_cpu" in
16487
16488 # CPUs that only support a 32-bit ABI.
16489 arc \
16490 | bfin \
16491 | cris* \
16492 | csky \
16493 | epiphany \
16494 | ft32 \
16495 | h8300 \
16496 | m68k \
16497 | microblaze | microblazeel \
16498 | nds32 | nds32le | nds32be \
16499 | nios2 | nios2eb | nios2el \
16500 | or1k* \
16501 | or32 \
16502 | sh | sh1234 | sh1234elb \
16503 | tic6x \
16504 | xtensa* )
16505 gl_cv_host_cpu_c_abi_32bit=yes
16506 ;;
16507
16508 # CPUs that only support a 64-bit ABI.
16509 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
16510 | mmix )
16511 gl_cv_host_cpu_c_abi_32bit=no
16512 ;;
16513
16514 i[34567]86 )
16515 gl_cv_host_cpu_c_abi_32bit=yes
16516 ;;
16517
16518 x86_64 )
16519 # On x86_64 systems, the C compiler may be generating code in one of
16520 # these ABIs:
16521 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
16522 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
16523 # with native Windows (mingw, MSVC).
16524 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
16525 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #if (defined __x86_64__ || defined __amd64__ \
16529 || defined _M_X64 || defined _M_AMD64) \
16530 && !(defined __ILP32__ || defined _ILP32)
16531 int ok;
16532 #else
16533 error fail
16534 #endif
16535
16536 _ACEOF
16537 if ac_fn_c_try_compile "$LINENO"
16538 then :
16539 gl_cv_host_cpu_c_abi_32bit=no
16540 else $as_nop
16541 gl_cv_host_cpu_c_abi_32bit=yes
16542 fi
16543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16544 ;;
16545
16546 arm* | aarch64 )
16547 # Assume arm with EABI.
16548 # On arm64 systems, the C compiler may be generating code in one of
16549 # these ABIs:
16550 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
16551 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
16552 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
16556 int ok;
16557 #else
16558 error fail
16559 #endif
16560
16561 _ACEOF
16562 if ac_fn_c_try_compile "$LINENO"
16563 then :
16564 gl_cv_host_cpu_c_abi_32bit=no
16565 else $as_nop
16566 gl_cv_host_cpu_c_abi_32bit=yes
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16569 ;;
16570
16571 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
16572 # On hppa, the C compiler may be generating 32-bit code or 64-bit
16573 # code. In the latter case, it defines _LP64 and __LP64__.
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576 #ifdef __LP64__
16577 int ok;
16578 #else
16579 error fail
16580 #endif
16581
16582 _ACEOF
16583 if ac_fn_c_try_compile "$LINENO"
16584 then :
16585 gl_cv_host_cpu_c_abi_32bit=no
16586 else $as_nop
16587 gl_cv_host_cpu_c_abi_32bit=yes
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16590 ;;
16591
16592 ia64* )
16593 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
16594 # 32-bit code. In the latter case, it defines _ILP32.
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 #ifdef _ILP32
16598 int ok;
16599 #else
16600 error fail
16601 #endif
16602
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"
16605 then :
16606 gl_cv_host_cpu_c_abi_32bit=yes
16607 else $as_nop
16608 gl_cv_host_cpu_c_abi_32bit=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16611 ;;
16612
16613 mips* )
16614 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
16615 # at 32.
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
16619 int ok;
16620 #else
16621 error fail
16622 #endif
16623
16624 _ACEOF
16625 if ac_fn_c_try_compile "$LINENO"
16626 then :
16627 gl_cv_host_cpu_c_abi_32bit=no
16628 else $as_nop
16629 gl_cv_host_cpu_c_abi_32bit=yes
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16632 ;;
16633
16634 powerpc* )
16635 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
16636 # No need to distinguish them here; the caller may distinguish
16637 # them based on the OS.
16638 # On powerpc64 systems, the C compiler may still be generating
16639 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
16640 # be generating 64-bit code.
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 #if defined __powerpc64__ || defined __LP64__
16644 int ok;
16645 #else
16646 error fail
16647 #endif
16648
16649 _ACEOF
16650 if ac_fn_c_try_compile "$LINENO"
16651 then :
16652 gl_cv_host_cpu_c_abi_32bit=no
16653 else $as_nop
16654 gl_cv_host_cpu_c_abi_32bit=yes
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16657 ;;
16658
16659 rs6000 )
16660 gl_cv_host_cpu_c_abi_32bit=yes
16661 ;;
16662
16663 riscv32 | riscv64 )
16664 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
16665 # Size of 'long' and 'void *':
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16668 #if defined __LP64__
16669 int ok;
16670 #else
16671 error fail
16672 #endif
16673
16674 _ACEOF
16675 if ac_fn_c_try_compile "$LINENO"
16676 then :
16677 gl_cv_host_cpu_c_abi_32bit=no
16678 else $as_nop
16679 gl_cv_host_cpu_c_abi_32bit=yes
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16682 ;;
16683
16684 s390* )
16685 # On s390x, the C compiler may be generating 64-bit (= s390x) code
16686 # or 31-bit (= s390) code.
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 #if defined __LP64__ || defined __s390x__
16690 int ok;
16691 #else
16692 error fail
16693 #endif
16694
16695 _ACEOF
16696 if ac_fn_c_try_compile "$LINENO"
16697 then :
16698 gl_cv_host_cpu_c_abi_32bit=no
16699 else $as_nop
16700 gl_cv_host_cpu_c_abi_32bit=yes
16701 fi
16702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16703 ;;
16704
16705 sparc | sparc64 )
16706 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
16707 # C compiler still generates 32-bit code.
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710 #if defined __sparcv9 || defined __arch64__
16711 int ok;
16712 #else
16713 error fail
16714 #endif
16715
16716 _ACEOF
16717 if ac_fn_c_try_compile "$LINENO"
16718 then :
16719 gl_cv_host_cpu_c_abi_32bit=no
16720 else $as_nop
16721 gl_cv_host_cpu_c_abi_32bit=yes
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16724 ;;
16725
16726 *)
16727 gl_cv_host_cpu_c_abi_32bit=unknown
16728 ;;
16729 esac
16730 fi
16731
16732 fi
16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
16734 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
16735
16736 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
16737
16738 ac_ext=c
16739 ac_cpp='$CPP $CPPFLAGS'
16740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16744 printf %s "checking how to run the C preprocessor... " >&6; }
16745 # On Suns, sometimes $CPP names a directory.
16746 if test -n "$CPP" && test -d "$CPP"; then
16747 CPP=
16748 fi
16749 if test -z "$CPP"; then
16750 if test ${ac_cv_prog_CPP+y}
16751 then :
16752 printf %s "(cached) " >&6
16753 else $as_nop
16754 # Double quotes because $CC needs to be expanded
16755 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16756 do
16757 ac_preproc_ok=false
16758 for ac_c_preproc_warn_flag in '' yes
16759 do
16760 # Use a header file that comes with gcc, so configuring glibc
16761 # with a fresh cross-compiler works.
16762 # On the NeXT, cc -E runs the code through the compiler's parser,
16763 # not just through cpp. "Syntax error" is here to catch this case.
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766 #include <limits.h>
16767 Syntax error
16768 _ACEOF
16769 if ac_fn_c_try_cpp "$LINENO"
16770 then :
16771
16772 else $as_nop
16773 # Broken: fails on valid input.
16774 continue
16775 fi
16776 rm -f conftest.err conftest.i conftest.$ac_ext
16777
16778 # OK, works on sane cases. Now check whether nonexistent headers
16779 # can be detected and how.
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 #include <ac_nonexistent.h>
16783 _ACEOF
16784 if ac_fn_c_try_cpp "$LINENO"
16785 then :
16786 # Broken: success on invalid input.
16787 continue
16788 else $as_nop
16789 # Passes both tests.
16790 ac_preproc_ok=:
16791 break
16792 fi
16793 rm -f conftest.err conftest.i conftest.$ac_ext
16794
16795 done
16796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16797 rm -f conftest.i conftest.err conftest.$ac_ext
16798 if $ac_preproc_ok
16799 then :
16800 break
16801 fi
16802
16803 done
16804 ac_cv_prog_CPP=$CPP
16805
16806 fi
16807 CPP=$ac_cv_prog_CPP
16808 else
16809 ac_cv_prog_CPP=$CPP
16810 fi
16811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16812 printf "%s\n" "$CPP" >&6; }
16813 ac_preproc_ok=false
16814 for ac_c_preproc_warn_flag in '' yes
16815 do
16816 # Use a header file that comes with gcc, so configuring glibc
16817 # with a fresh cross-compiler works.
16818 # On the NeXT, cc -E runs the code through the compiler's parser,
16819 # not just through cpp. "Syntax error" is here to catch this case.
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <limits.h>
16823 Syntax error
16824 _ACEOF
16825 if ac_fn_c_try_cpp "$LINENO"
16826 then :
16827
16828 else $as_nop
16829 # Broken: fails on valid input.
16830 continue
16831 fi
16832 rm -f conftest.err conftest.i conftest.$ac_ext
16833
16834 # OK, works on sane cases. Now check whether nonexistent headers
16835 # can be detected and how.
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 #include <ac_nonexistent.h>
16839 _ACEOF
16840 if ac_fn_c_try_cpp "$LINENO"
16841 then :
16842 # Broken: success on invalid input.
16843 continue
16844 else $as_nop
16845 # Passes both tests.
16846 ac_preproc_ok=:
16847 break
16848 fi
16849 rm -f conftest.err conftest.i conftest.$ac_ext
16850
16851 done
16852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16853 rm -f conftest.i conftest.err conftest.$ac_ext
16854 if $ac_preproc_ok
16855 then :
16856
16857 else $as_nop
16858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16859 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16860 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16861 See \`config.log' for more details" "$LINENO" 5; }
16862 fi
16863
16864 ac_ext=c
16865 ac_cpp='$CPP $CPPFLAGS'
16866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16869
16870
16871
16872
16873
16874
16875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
16876 printf %s "checking for ELF binary format... " >&6; }
16877 if test ${gl_cv_elf+y}
16878 then :
16879 printf %s "(cached) " >&6
16880 else $as_nop
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16883 #if defined __ELF__ || (defined __linux__ && defined __EDG__)
16884 Extensible Linking Format
16885 #endif
16886
16887 _ACEOF
16888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16889 $EGREP "Extensible Linking Format" >/dev/null 2>&1
16890 then :
16891 gl_cv_elf=yes
16892 else $as_nop
16893 gl_cv_elf=no
16894 fi
16895 rm -rf conftest*
16896
16897
16898 fi
16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
16900 printf "%s\n" "$gl_cv_elf" >&6; }
16901 if test $gl_cv_elf = yes; then
16902 # Extract the ELF class of a file (5th byte) in decimal.
16903 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
16904 if od -A x < /dev/null >/dev/null 2>/dev/null; then
16905 # Use POSIX od.
16906 func_elfclass ()
16907 {
16908 od -A n -t d1 -j 4 -N 1
16909 }
16910 else
16911 # Use BSD hexdump.
16912 func_elfclass ()
16913 {
16914 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
16915 echo
16916 }
16917 fi
16918 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
16919 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
16920 # not 1 or 2.
16921 case $HOST_CPU_C_ABI_32BIT in
16922 yes)
16923 # 32-bit ABI.
16924 acl_is_expected_elfclass ()
16925 {
16926 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
16927 }
16928 ;;
16929 no)
16930 # 64-bit ABI.
16931 acl_is_expected_elfclass ()
16932 {
16933 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
16934 }
16935 ;;
16936 *)
16937 # Unknown.
16938 acl_is_expected_elfclass ()
16939 {
16940 :
16941 }
16942 ;;
16943 esac
16944 else
16945 acl_is_expected_elfclass ()
16946 {
16947 :
16948 }
16949 fi
16950
16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
16952 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
16953 if test ${acl_cv_libdirstems+y}
16954 then :
16955 printf %s "(cached) " >&6
16956 else $as_nop
16957 acl_libdirstem=lib
16958 acl_libdirstem2=
16959 acl_libdirstem3=
16960 case "$host_os" in
16961 solaris*)
16962 if test $HOST_CPU_C_ABI_32BIT = no; then
16963 acl_libdirstem2=lib/64
16964 case "$host_cpu" in
16965 sparc*) acl_libdirstem3=lib/sparcv9 ;;
16966 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
16967 esac
16968 fi
16969 ;;
16970 *)
16971 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
16972 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16973 if test $HOST_CPU_C_ABI_32BIT != no; then
16974 # 32-bit or unknown ABI.
16975 if test -d /usr/lib32; then
16976 acl_libdirstem2=lib32
16977 fi
16978 fi
16979 if test $HOST_CPU_C_ABI_32BIT != yes; then
16980 # 64-bit or unknown ABI.
16981 if test -d /usr/lib64; then
16982 acl_libdirstem3=lib64
16983 fi
16984 fi
16985 if test -n "$searchpath"; then
16986 acl_save_IFS="${IFS= }"; IFS=":"
16987 for searchdir in $searchpath; do
16988 if test -d "$searchdir"; then
16989 case "$searchdir" in
16990 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
16991 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
16992 */../ | */.. )
16993 # Better ignore directories of this form. They are misleading.
16994 ;;
16995 *) searchdir=`cd "$searchdir" && pwd`
16996 case "$searchdir" in
16997 */lib32 ) acl_libdirstem2=lib32 ;;
16998 */lib64 ) acl_libdirstem3=lib64 ;;
16999 esac ;;
17000 esac
17001 fi
17002 done
17003 IFS="$acl_save_IFS"
17004 if test $HOST_CPU_C_ABI_32BIT = yes; then
17005 # 32-bit ABI.
17006 acl_libdirstem3=
17007 fi
17008 if test $HOST_CPU_C_ABI_32BIT = no; then
17009 # 64-bit ABI.
17010 acl_libdirstem2=
17011 fi
17012 fi
17013 ;;
17014 esac
17015 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17016 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
17017 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
17018
17019 fi
17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
17021 printf "%s\n" "$acl_cv_libdirstems" >&6; }
17022 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
17023 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
17024 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036 use_additional=yes
17037
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17042
17043 eval additional_includedir=\"$includedir\"
17044 eval additional_libdir=\"$libdir\"
17045 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17046 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17047
17048 exec_prefix="$acl_save_exec_prefix"
17049 prefix="$acl_save_prefix"
17050
17051
17052 # Check whether --with-libiconv-prefix was given.
17053 if test ${with_libiconv_prefix+y}
17054 then :
17055 withval=$with_libiconv_prefix;
17056 if test "X$withval" = "Xno"; then
17057 use_additional=no
17058 else
17059 if test "X$withval" = "X"; then
17060
17061 acl_save_prefix="$prefix"
17062 prefix="$acl_final_prefix"
17063 acl_save_exec_prefix="$exec_prefix"
17064 exec_prefix="$acl_final_exec_prefix"
17065
17066 eval additional_includedir=\"$includedir\"
17067 eval additional_libdir=\"$libdir\"
17068 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17069 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17070
17071 exec_prefix="$acl_save_exec_prefix"
17072 prefix="$acl_save_prefix"
17073
17074 else
17075 additional_includedir="$withval/include"
17076 additional_libdir="$withval/$acl_libdirstem"
17077 additional_libdir2="$withval/$acl_libdirstem2"
17078 additional_libdir3="$withval/$acl_libdirstem3"
17079 fi
17080 fi
17081
17082 fi
17083
17084 if test "X$additional_libdir2" = "X$additional_libdir"; then
17085 additional_libdir2=
17086 fi
17087 if test "X$additional_libdir3" = "X$additional_libdir"; then
17088 additional_libdir3=
17089 fi
17090 LIBICONV=
17091 LTLIBICONV=
17092 INCICONV=
17093 LIBICONV_PREFIX=
17094 HAVE_LIBICONV=
17095 rpathdirs=
17096 ltrpathdirs=
17097 names_already_handled=
17098 names_next_round='iconv '
17099 while test -n "$names_next_round"; do
17100 names_this_round="$names_next_round"
17101 names_next_round=
17102 for name in $names_this_round; do
17103 already_handled=
17104 for n in $names_already_handled; do
17105 if test "$n" = "$name"; then
17106 already_handled=yes
17107 break
17108 fi
17109 done
17110 if test -z "$already_handled"; then
17111 names_already_handled="$names_already_handled $name"
17112 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17113 eval value=\"\$HAVE_LIB$uppername\"
17114 if test -n "$value"; then
17115 if test "$value" = yes; then
17116 eval value=\"\$LIB$uppername\"
17117 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17118 eval value=\"\$LTLIB$uppername\"
17119 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17120 else
17121 :
17122 fi
17123 else
17124 found_dir=
17125 found_la=
17126 found_so=
17127 found_a=
17128 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17129 if test -n "$acl_shlibext"; then
17130 shrext=".$acl_shlibext" # typically: shrext=.so
17131 else
17132 shrext=
17133 fi
17134 if test $use_additional = yes; then
17135 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17136 if test "X$found_dir" = "X"; then
17137 eval dir=\$$additional_libdir_variable
17138 if test -n "$dir"; then
17139 if test -n "$acl_shlibext"; then
17140 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17141 found_dir="$dir"
17142 found_so="$dir/$libname$shrext"
17143 else
17144 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17145 ver=`(cd "$dir" && \
17146 for f in "$libname$shrext".*; do echo "$f"; done \
17147 | sed -e "s,^$libname$shrext\\\\.,," \
17148 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17149 | sed 1q ) 2>/dev/null`
17150 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17151 found_dir="$dir"
17152 found_so="$dir/$libname$shrext.$ver"
17153 fi
17154 else
17155 eval library_names=\"$acl_library_names_spec\"
17156 for f in $library_names; do
17157 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17158 found_dir="$dir"
17159 found_so="$dir/$f"
17160 break
17161 fi
17162 done
17163 fi
17164 fi
17165 fi
17166 if test "X$found_dir" = "X"; then
17167 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17168 found_dir="$dir"
17169 found_a="$dir/$libname.$acl_libext"
17170 fi
17171 fi
17172 if test "X$found_dir" != "X"; then
17173 if test -f "$dir/$libname.la"; then
17174 found_la="$dir/$libname.la"
17175 fi
17176 fi
17177 fi
17178 fi
17179 done
17180 fi
17181 if test "X$found_dir" = "X"; then
17182 for x in $LDFLAGS $LTLIBICONV; do
17183
17184 acl_save_prefix="$prefix"
17185 prefix="$acl_final_prefix"
17186 acl_save_exec_prefix="$exec_prefix"
17187 exec_prefix="$acl_final_exec_prefix"
17188 eval x=\"$x\"
17189 exec_prefix="$acl_save_exec_prefix"
17190 prefix="$acl_save_prefix"
17191
17192 case "$x" in
17193 -L*)
17194 dir=`echo "X$x" | sed -e 's/^X-L//'`
17195 if test -n "$acl_shlibext"; then
17196 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17197 found_dir="$dir"
17198 found_so="$dir/$libname$shrext"
17199 else
17200 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17201 ver=`(cd "$dir" && \
17202 for f in "$libname$shrext".*; do echo "$f"; done \
17203 | sed -e "s,^$libname$shrext\\\\.,," \
17204 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17205 | sed 1q ) 2>/dev/null`
17206 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17207 found_dir="$dir"
17208 found_so="$dir/$libname$shrext.$ver"
17209 fi
17210 else
17211 eval library_names=\"$acl_library_names_spec\"
17212 for f in $library_names; do
17213 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17214 found_dir="$dir"
17215 found_so="$dir/$f"
17216 break
17217 fi
17218 done
17219 fi
17220 fi
17221 fi
17222 if test "X$found_dir" = "X"; then
17223 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17224 found_dir="$dir"
17225 found_a="$dir/$libname.$acl_libext"
17226 fi
17227 fi
17228 if test "X$found_dir" != "X"; then
17229 if test -f "$dir/$libname.la"; then
17230 found_la="$dir/$libname.la"
17231 fi
17232 fi
17233 ;;
17234 esac
17235 if test "X$found_dir" != "X"; then
17236 break
17237 fi
17238 done
17239 fi
17240 if test "X$found_dir" != "X"; then
17241 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17242 if test "X$found_so" != "X"; then
17243 if test "$enable_rpath" = no \
17244 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17245 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17246 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17247 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17248 else
17249 haveit=
17250 for x in $ltrpathdirs; do
17251 if test "X$x" = "X$found_dir"; then
17252 haveit=yes
17253 break
17254 fi
17255 done
17256 if test -z "$haveit"; then
17257 ltrpathdirs="$ltrpathdirs $found_dir"
17258 fi
17259 if test "$acl_hardcode_direct" = yes; then
17260 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17261 else
17262 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17264 haveit=
17265 for x in $rpathdirs; do
17266 if test "X$x" = "X$found_dir"; then
17267 haveit=yes
17268 break
17269 fi
17270 done
17271 if test -z "$haveit"; then
17272 rpathdirs="$rpathdirs $found_dir"
17273 fi
17274 else
17275 haveit=
17276 for x in $LDFLAGS $LIBICONV; do
17277
17278 acl_save_prefix="$prefix"
17279 prefix="$acl_final_prefix"
17280 acl_save_exec_prefix="$exec_prefix"
17281 exec_prefix="$acl_final_exec_prefix"
17282 eval x=\"$x\"
17283 exec_prefix="$acl_save_exec_prefix"
17284 prefix="$acl_save_prefix"
17285
17286 if test "X$x" = "X-L$found_dir"; then
17287 haveit=yes
17288 break
17289 fi
17290 done
17291 if test -z "$haveit"; then
17292 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17293 fi
17294 if test "$acl_hardcode_minus_L" != no; then
17295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17296 else
17297 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17298 fi
17299 fi
17300 fi
17301 fi
17302 else
17303 if test "X$found_a" != "X"; then
17304 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17305 else
17306 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17307 fi
17308 fi
17309 additional_includedir=
17310 case "$found_dir" in
17311 */$acl_libdirstem | */$acl_libdirstem/)
17312 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17313 if test "$name" = 'iconv'; then
17314 LIBICONV_PREFIX="$basedir"
17315 fi
17316 additional_includedir="$basedir/include"
17317 ;;
17318 */$acl_libdirstem2 | */$acl_libdirstem2/)
17319 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17320 if test "$name" = 'iconv'; then
17321 LIBICONV_PREFIX="$basedir"
17322 fi
17323 additional_includedir="$basedir/include"
17324 ;;
17325 */$acl_libdirstem3 | */$acl_libdirstem3/)
17326 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17327 if test "$name" = 'iconv'; then
17328 LIBICONV_PREFIX="$basedir"
17329 fi
17330 additional_includedir="$basedir/include"
17331 ;;
17332 esac
17333 if test "X$additional_includedir" != "X"; then
17334 if test "X$additional_includedir" != "X/usr/include"; then
17335 haveit=
17336 if test "X$additional_includedir" = "X/usr/local/include"; then
17337 if test -n "$GCC"; then
17338 case $host_os in
17339 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17340 esac
17341 fi
17342 fi
17343 if test -z "$haveit"; then
17344 for x in $CPPFLAGS $INCICONV; do
17345
17346 acl_save_prefix="$prefix"
17347 prefix="$acl_final_prefix"
17348 acl_save_exec_prefix="$exec_prefix"
17349 exec_prefix="$acl_final_exec_prefix"
17350 eval x=\"$x\"
17351 exec_prefix="$acl_save_exec_prefix"
17352 prefix="$acl_save_prefix"
17353
17354 if test "X$x" = "X-I$additional_includedir"; then
17355 haveit=yes
17356 break
17357 fi
17358 done
17359 if test -z "$haveit"; then
17360 if test -d "$additional_includedir"; then
17361 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17362 fi
17363 fi
17364 fi
17365 fi
17366 fi
17367 if test -n "$found_la"; then
17368 save_libdir="$libdir"
17369 case "$found_la" in
17370 */* | *\\*) . "$found_la" ;;
17371 *) . "./$found_la" ;;
17372 esac
17373 libdir="$save_libdir"
17374 for dep in $dependency_libs; do
17375 case "$dep" in
17376 -L*)
17377 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17378 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17379 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17380 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17381 haveit=
17382 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17383 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17384 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17385 if test -n "$GCC"; then
17386 case $host_os in
17387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17388 esac
17389 fi
17390 fi
17391 if test -z "$haveit"; then
17392 haveit=
17393 for x in $LDFLAGS $LIBICONV; do
17394
17395 acl_save_prefix="$prefix"
17396 prefix="$acl_final_prefix"
17397 acl_save_exec_prefix="$exec_prefix"
17398 exec_prefix="$acl_final_exec_prefix"
17399 eval x=\"$x\"
17400 exec_prefix="$acl_save_exec_prefix"
17401 prefix="$acl_save_prefix"
17402
17403 if test "X$x" = "X-L$dependency_libdir"; then
17404 haveit=yes
17405 break
17406 fi
17407 done
17408 if test -z "$haveit"; then
17409 if test -d "$dependency_libdir"; then
17410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
17411 fi
17412 fi
17413 haveit=
17414 for x in $LDFLAGS $LTLIBICONV; do
17415
17416 acl_save_prefix="$prefix"
17417 prefix="$acl_final_prefix"
17418 acl_save_exec_prefix="$exec_prefix"
17419 exec_prefix="$acl_final_exec_prefix"
17420 eval x=\"$x\"
17421 exec_prefix="$acl_save_exec_prefix"
17422 prefix="$acl_save_prefix"
17423
17424 if test "X$x" = "X-L$dependency_libdir"; then
17425 haveit=yes
17426 break
17427 fi
17428 done
17429 if test -z "$haveit"; then
17430 if test -d "$dependency_libdir"; then
17431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
17432 fi
17433 fi
17434 fi
17435 fi
17436 ;;
17437 -R*)
17438 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17439 if test "$enable_rpath" != no; then
17440 haveit=
17441 for x in $rpathdirs; do
17442 if test "X$x" = "X$dir"; then
17443 haveit=yes
17444 break
17445 fi
17446 done
17447 if test -z "$haveit"; then
17448 rpathdirs="$rpathdirs $dir"
17449 fi
17450 haveit=
17451 for x in $ltrpathdirs; do
17452 if test "X$x" = "X$dir"; then
17453 haveit=yes
17454 break
17455 fi
17456 done
17457 if test -z "$haveit"; then
17458 ltrpathdirs="$ltrpathdirs $dir"
17459 fi
17460 fi
17461 ;;
17462 -l*)
17463 dep=`echo "X$dep" | sed -e 's/^X-l//'`
17464 if test "X$dep" != Xc \
17465 || case $host_os in
17466 linux* | gnu* | k*bsd*-gnu) false ;;
17467 *) true ;;
17468 esac; then
17469 names_next_round="$names_next_round $dep"
17470 fi
17471 ;;
17472 *.la)
17473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17474 ;;
17475 *)
17476 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17478 ;;
17479 esac
17480 done
17481 fi
17482 else
17483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17485 fi
17486 fi
17487 fi
17488 done
17489 done
17490 if test "X$rpathdirs" != "X"; then
17491 if test -n "$acl_hardcode_libdir_separator"; then
17492 alldirs=
17493 for found_dir in $rpathdirs; do
17494 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17495 done
17496 acl_save_libdir="$libdir"
17497 libdir="$alldirs"
17498 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17499 libdir="$acl_save_libdir"
17500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17501 else
17502 for found_dir in $rpathdirs; do
17503 acl_save_libdir="$libdir"
17504 libdir="$found_dir"
17505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17506 libdir="$acl_save_libdir"
17507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17508 done
17509 fi
17510 fi
17511 if test "X$ltrpathdirs" != "X"; then
17512 for found_dir in $ltrpathdirs; do
17513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17514 done
17515 fi
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527 am_save_CPPFLAGS="$CPPFLAGS"
17528
17529 for element in $INCICONV; do
17530 haveit=
17531 for x in $CPPFLAGS; do
17532
17533 acl_save_prefix="$prefix"
17534 prefix="$acl_final_prefix"
17535 acl_save_exec_prefix="$exec_prefix"
17536 exec_prefix="$acl_final_exec_prefix"
17537 eval x=\"$x\"
17538 exec_prefix="$acl_save_exec_prefix"
17539 prefix="$acl_save_prefix"
17540
17541 if test "X$x" = "X$element"; then
17542 haveit=yes
17543 break
17544 fi
17545 done
17546 if test -z "$haveit"; then
17547 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17548 fi
17549 done
17550
17551
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17553 printf %s "checking for iconv... " >&6; }
17554 if test ${am_cv_func_iconv+y}
17555 then :
17556 printf %s "(cached) " >&6
17557 else $as_nop
17558
17559 am_cv_func_iconv="no, consider installing GNU libiconv"
17560 am_cv_lib_iconv=no
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563
17564 #include <stdlib.h>
17565 #include <iconv.h>
17566
17567 int
17568 main (void)
17569 {
17570 iconv_t cd = iconv_open("","");
17571 iconv(cd,NULL,NULL,NULL,NULL);
17572 iconv_close(cd);
17573 ;
17574 return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"
17578 then :
17579 am_cv_func_iconv=yes
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17582 conftest$ac_exeext conftest.$ac_ext
17583 if test "$am_cv_func_iconv" != yes; then
17584 am_save_LIBS="$LIBS"
17585 LIBS="$LIBS $LIBICONV"
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588
17589 #include <stdlib.h>
17590 #include <iconv.h>
17591
17592 int
17593 main (void)
17594 {
17595 iconv_t cd = iconv_open("","");
17596 iconv(cd,NULL,NULL,NULL,NULL);
17597 iconv_close(cd);
17598 ;
17599 return 0;
17600 }
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"
17603 then :
17604 am_cv_lib_iconv=yes
17605 am_cv_func_iconv=yes
17606 fi
17607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17608 conftest$ac_exeext conftest.$ac_ext
17609 LIBS="$am_save_LIBS"
17610 fi
17611
17612 fi
17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17614 printf "%s\n" "$am_cv_func_iconv" >&6; }
17615 if test "$am_cv_func_iconv" = yes; then
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17617 printf %s "checking for working iconv... " >&6; }
17618 if test ${am_cv_func_iconv_works+y}
17619 then :
17620 printf %s "(cached) " >&6
17621 else $as_nop
17622
17623 am_save_LIBS="$LIBS"
17624 if test $am_cv_lib_iconv = yes; then
17625 LIBS="$LIBS $LIBICONV"
17626 fi
17627 am_cv_func_iconv_works=no
17628 for ac_iconv_const in '' 'const'; do
17629 if test "$cross_compiling" = yes
17630 then :
17631 case "$host_os" in
17632 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17633 *) am_cv_func_iconv_works="guessing yes" ;;
17634 esac
17635 else $as_nop
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638
17639 #include <iconv.h>
17640 #include <string.h>
17641
17642 #ifndef ICONV_CONST
17643 # define ICONV_CONST $ac_iconv_const
17644 #endif
17645
17646 int
17647 main (void)
17648 {
17649 int result = 0;
17650 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17651 successful returns. This is even documented in
17652 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17653 {
17654 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17655 if (cd_utf8_to_88591 != (iconv_t)(-1))
17656 {
17657 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17658 char buf[10];
17659 ICONV_CONST char *inptr = input;
17660 size_t inbytesleft = strlen (input);
17661 char *outptr = buf;
17662 size_t outbytesleft = sizeof (buf);
17663 size_t res = iconv (cd_utf8_to_88591,
17664 &inptr, &inbytesleft,
17665 &outptr, &outbytesleft);
17666 if (res == 0)
17667 result |= 1;
17668 iconv_close (cd_utf8_to_88591);
17669 }
17670 }
17671 /* Test against Solaris 10 bug: Failures are not distinguishable from
17672 successful returns. */
17673 {
17674 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17675 if (cd_ascii_to_88591 != (iconv_t)(-1))
17676 {
17677 static ICONV_CONST char input[] = "\263";
17678 char buf[10];
17679 ICONV_CONST char *inptr = input;
17680 size_t inbytesleft = strlen (input);
17681 char *outptr = buf;
17682 size_t outbytesleft = sizeof (buf);
17683 size_t res = iconv (cd_ascii_to_88591,
17684 &inptr, &inbytesleft,
17685 &outptr, &outbytesleft);
17686 if (res == 0)
17687 result |= 2;
17688 iconv_close (cd_ascii_to_88591);
17689 }
17690 }
17691 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17692 {
17693 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17694 if (cd_88591_to_utf8 != (iconv_t)(-1))
17695 {
17696 static ICONV_CONST char input[] = "\304";
17697 static char buf[2] = { (char)0xDE, (char)0xAD };
17698 ICONV_CONST char *inptr = input;
17699 size_t inbytesleft = 1;
17700 char *outptr = buf;
17701 size_t outbytesleft = 1;
17702 size_t res = iconv (cd_88591_to_utf8,
17703 &inptr, &inbytesleft,
17704 &outptr, &outbytesleft);
17705 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17706 result |= 4;
17707 iconv_close (cd_88591_to_utf8);
17708 }
17709 }
17710 #if 0 /* This bug could be worked around by the caller. */
17711 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17712 {
17713 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17714 if (cd_88591_to_utf8 != (iconv_t)(-1))
17715 {
17716 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17717 char buf[50];
17718 ICONV_CONST char *inptr = input;
17719 size_t inbytesleft = strlen (input);
17720 char *outptr = buf;
17721 size_t outbytesleft = sizeof (buf);
17722 size_t res = iconv (cd_88591_to_utf8,
17723 &inptr, &inbytesleft,
17724 &outptr, &outbytesleft);
17725 if ((int)res > 0)
17726 result |= 8;
17727 iconv_close (cd_88591_to_utf8);
17728 }
17729 }
17730 #endif
17731 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17732 provided. */
17733 {
17734 /* Try standardized names. */
17735 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17736 /* Try IRIX, OSF/1 names. */
17737 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17738 /* Try AIX names. */
17739 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17740 /* Try HP-UX names. */
17741 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17742 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17743 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17744 result |= 16;
17745 if (cd1 != (iconv_t)(-1))
17746 iconv_close (cd1);
17747 if (cd2 != (iconv_t)(-1))
17748 iconv_close (cd2);
17749 if (cd3 != (iconv_t)(-1))
17750 iconv_close (cd3);
17751 if (cd4 != (iconv_t)(-1))
17752 iconv_close (cd4);
17753 }
17754 return result;
17755
17756 ;
17757 return 0;
17758 }
17759 _ACEOF
17760 if ac_fn_c_try_run "$LINENO"
17761 then :
17762 am_cv_func_iconv_works=yes
17763 fi
17764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17765 conftest.$ac_objext conftest.beam conftest.$ac_ext
17766 fi
17767
17768 test "$am_cv_func_iconv_works" = no || break
17769 done
17770 LIBS="$am_save_LIBS"
17771
17772 fi
17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17774 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17775 case "$am_cv_func_iconv_works" in
17776 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17777 *) am_func_iconv=yes ;;
17778 esac
17779 else
17780 am_func_iconv=no am_cv_lib_iconv=no
17781 fi
17782 if test "$am_func_iconv" = yes; then
17783
17784 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17785
17786 fi
17787 if test "$am_cv_lib_iconv" = yes; then
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17789 printf %s "checking how to link with libiconv... " >&6; }
17790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17791 printf "%s\n" "$LIBICONV" >&6; }
17792 else
17793 CPPFLAGS="$am_save_CPPFLAGS"
17794 LIBICONV=
17795 LTLIBICONV=
17796 fi
17797
17798
17799
17800 if test "$am_cv_func_iconv" = yes; then
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
17802 printf %s "checking whether iconv is compatible with its POSIX signature... " >&6; }
17803 if test ${gl_cv_iconv_nonconst+y}
17804 then :
17805 printf %s "(cached) " >&6
17806 else $as_nop
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17809
17810 #include <stdlib.h>
17811 #include <iconv.h>
17812 extern
17813 #ifdef __cplusplus
17814 "C"
17815 #endif
17816 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17817
17818 int
17819 main (void)
17820 {
17821
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_compile "$LINENO"
17827 then :
17828 gl_cv_iconv_nonconst=yes
17829 else $as_nop
17830 gl_cv_iconv_nonconst=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17833
17834 fi
17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
17836 printf "%s\n" "$gl_cv_iconv_nonconst" >&6; }
17837 else
17838 gl_cv_iconv_nonconst=yes
17839 fi
17840 if test $gl_cv_iconv_nonconst = yes; then
17841 iconv_arg1=""
17842 else
17843 iconv_arg1="const"
17844 fi
17845
17846 printf "%s\n" "#define ICONV_CONST $iconv_arg1" >>confdefs.h
17847
17848
17849
17850 if test "$am_func_iconv" = yes; then
17851 if test -n "$LIBICONV"; then
17852 am_cv_func_iconv_summary='yes, in libiconv'
17853 else
17854 am_cv_func_iconv_summary='yes, in libc'
17855 fi
17856 else
17857 if test "$am_cv_func_iconv" = yes; then
17858 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
17859 else
17860 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
17861 fi
17862 fi
17863
17864
17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17866 printf %s "checking for cos in -lm... " >&6; }
17867 if test ${ac_cv_lib_m_cos+y}
17868 then :
17869 printf %s "(cached) " >&6
17870 else $as_nop
17871 ac_check_lib_save_LIBS=$LIBS
17872 LIBS="-lm $LIBS"
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879 char cos ();
17880 int
17881 main (void)
17882 {
17883 return cos ();
17884 ;
17885 return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"
17889 then :
17890 ac_cv_lib_m_cos=yes
17891 else $as_nop
17892 ac_cv_lib_m_cos=no
17893 fi
17894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17895 conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17899 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
17900 if test "x$ac_cv_lib_m_cos" = xyes
17901 then :
17902 USE_LIBM="-lm"
17903 fi
17904
17905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lffm" >&5
17906 printf %s "checking for cos in -lffm... " >&6; }
17907 if test ${ac_cv_lib_ffm_cos+y}
17908 then :
17909 printf %s "(cached) " >&6
17910 else $as_nop
17911 ac_check_lib_save_LIBS=$LIBS
17912 LIBS="-lffm $LIBS"
17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h. */
17915
17916 /* Override any GCC internal prototype to avoid an error.
17917 Use char because int might match the return type of a GCC
17918 builtin and then its argument prototype would still apply. */
17919 char cos ();
17920 int
17921 main (void)
17922 {
17923 return cos ();
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 if ac_fn_c_try_link "$LINENO"
17929 then :
17930 ac_cv_lib_ffm_cos=yes
17931 else $as_nop
17932 ac_cv_lib_ffm_cos=no
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935 conftest$ac_exeext conftest.$ac_ext
17936 LIBS=$ac_check_lib_save_LIBS
17937 fi
17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffm_cos" >&5
17939 printf "%s\n" "$ac_cv_lib_ffm_cos" >&6; }
17940 if test "x$ac_cv_lib_ffm_cos" = xyes
17941 then :
17942 USE_LIBM="-lffm -lm"
17943 fi
17944
17945 # Check whether --enable-cpml was given.
17946 if test ${enable_cpml+y}
17947 then :
17948 enableval=$enable_cpml; CONFIG_CPML="no"
17949 else $as_nop
17950 CONFIG_CPML="yes"
17951 fi
17952
17953 if test "${CONFIG_CPML}" = yes; then
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lcpml" >&5
17955 printf %s "checking for cos in -lcpml... " >&6; }
17956 if test ${ac_cv_lib_cpml_cos+y}
17957 then :
17958 printf %s "(cached) " >&6
17959 else $as_nop
17960 ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-lcpml $LIBS"
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968 char cos ();
17969 int
17970 main (void)
17971 {
17972 return cos ();
17973 ;
17974 return 0;
17975 }
17976 _ACEOF
17977 if ac_fn_c_try_link "$LINENO"
17978 then :
17979 ac_cv_lib_cpml_cos=yes
17980 else $as_nop
17981 ac_cv_lib_cpml_cos=no
17982 fi
17983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17986 fi
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpml_cos" >&5
17988 printf "%s\n" "$ac_cv_lib_cpml_cos" >&6; }
17989 if test "x$ac_cv_lib_cpml_cos" = xyes
17990 then :
17991 USE_LIBM="-lcpml"
17992 fi
17993
17994 fi
17995 CONFIG_MATH_LIB="${USE_LIBM}"
17996
17997
17998
17999 # Check whether --with-gtk-prefix was given.
18000 if test ${with_gtk_prefix+y}
18001 then :
18002 withval=$with_gtk_prefix; gtk_config_prefix="$withval"
18003 else $as_nop
18004 gtk_config_prefix=""
18005 fi
18006
18007
18008 # Check whether --with-gtk-exec-prefix was given.
18009 if test ${with_gtk_exec_prefix+y}
18010 then :
18011 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
18012 else $as_nop
18013 gtk_config_exec_prefix=""
18014 fi
18015
18016 # Check whether --enable-gtktest was given.
18017 if test ${enable_gtktest+y}
18018 then :
18019 enableval=$enable_gtktest;
18020 else $as_nop
18021 enable_gtktest=yes
18022 fi
18023
18024
18025 for module in .
18026 do
18027 case "$module" in
18028 gthread)
18029 gtk_config_args="$gtk_config_args gthread"
18030 ;;
18031 esac
18032 done
18033
18034 if test x$gtk_config_exec_prefix != x ; then
18035 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
18036 if test x${GTK_CONFIG+set} != xset ; then
18037 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
18038 fi
18039 fi
18040 if test x$gtk_config_prefix != x ; then
18041 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
18042 if test x${GTK_CONFIG+set} != xset ; then
18043 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
18044 fi
18045 fi
18046
18047 # Extract the first word of "gtk-config", so it can be a program name with args.
18048 set dummy gtk-config; ac_word=$2
18049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18050 printf %s "checking for $ac_word... " >&6; }
18051 if test ${ac_cv_path_GTK_CONFIG+y}
18052 then :
18053 printf %s "(cached) " >&6
18054 else $as_nop
18055 case $GTK_CONFIG in
18056 [\\/]* | ?:[\\/]*)
18057 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
18058 ;;
18059 *)
18060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18061 for as_dir in $PATH
18062 do
18063 IFS=$as_save_IFS
18064 case $as_dir in #(((
18065 '') as_dir=./ ;;
18066 */) ;;
18067 *) as_dir=$as_dir/ ;;
18068 esac
18069 for ac_exec_ext in '' $ac_executable_extensions; do
18070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18071 ac_cv_path_GTK_CONFIG="$as_dir$ac_word$ac_exec_ext"
18072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18073 break 2
18074 fi
18075 done
18076 done
18077 IFS=$as_save_IFS
18078
18079 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
18080 ;;
18081 esac
18082 fi
18083 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
18084 if test -n "$GTK_CONFIG"; then
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
18086 printf "%s\n" "$GTK_CONFIG" >&6; }
18087 else
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 printf "%s\n" "no" >&6; }
18090 fi
18091
18092
18093 min_gtk_version=1.2.0
18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
18095 printf %s "checking for GTK - version >= $min_gtk_version... " >&6; }
18096 no_gtk=""
18097 if test "$GTK_CONFIG" = "no" ; then
18098 no_gtk=yes
18099 else
18100 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
18101 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
18102 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
18103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18104 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
18105 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18106 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
18107 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18108 if test "x$enable_gtktest" = "xyes" ; then
18109 ac_save_CFLAGS="$CFLAGS"
18110 ac_save_LIBS="$LIBS"
18111 CFLAGS="$CFLAGS $GTK_CFLAGS"
18112 LIBS="$GTK_LIBS $LIBS"
18113 rm -f conf.gtktest
18114 if test "$cross_compiling" = yes
18115 then :
18116 echo $ac_n "cross compiling; assumed OK... $ac_c"
18117 else $as_nop
18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18120
18121 #include <gtk/gtk.h>
18122 #include <stdio.h>
18123 #include <stdlib.h>
18124
18125 int
18126 main ()
18127 {
18128 int major, minor, micro;
18129 char *tmp_version;
18130
18131 system ("touch conf.gtktest");
18132
18133 /* HP/UX 9 (%@#!) writes to sscanf strings */
18134 tmp_version = g_strdup("$min_gtk_version");
18135 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18136 printf("%s, bad version string\n", "$min_gtk_version");
18137 exit(1);
18138 }
18139
18140 if ((gtk_major_version != $gtk_config_major_version) ||
18141 (gtk_minor_version != $gtk_config_minor_version) ||
18142 (gtk_micro_version != $gtk_config_micro_version))
18143 {
18144 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
18145 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
18146 gtk_major_version, gtk_minor_version, gtk_micro_version);
18147 printf ("*** was found! If gtk-config was correct, then it is best\n");
18148 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
18149 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18150 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18151 printf("*** required on your system.\n");
18152 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
18153 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
18154 printf("*** before re-running configure\n");
18155 }
18156 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
18157 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
18158 (gtk_minor_version != GTK_MINOR_VERSION) ||
18159 (gtk_micro_version != GTK_MICRO_VERSION))
18160 {
18161 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
18162 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
18163 printf("*** library (version %d.%d.%d)\n",
18164 gtk_major_version, gtk_minor_version, gtk_micro_version);
18165 }
18166 #endif /* defined (GTK_MAJOR_VERSION) ... */
18167 else
18168 {
18169 if ((gtk_major_version > major) ||
18170 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
18171 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
18172 {
18173 return 0;
18174 }
18175 else
18176 {
18177 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
18178 gtk_major_version, gtk_minor_version, gtk_micro_version);
18179 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
18180 major, minor, micro);
18181 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
18182 printf("***\n");
18183 printf("*** If you have already installed a sufficiently new version, this error\n");
18184 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
18185 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18186 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
18187 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
18188 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18189 printf("*** so that the correct libraries are found at run-time))\n");
18190 }
18191 }
18192 return 1;
18193 }
18194
18195 _ACEOF
18196 if ac_fn_c_try_run "$LINENO"
18197 then :
18198
18199 else $as_nop
18200 no_gtk=yes
18201 fi
18202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18203 conftest.$ac_objext conftest.beam conftest.$ac_ext
18204 fi
18205
18206 CFLAGS="$ac_save_CFLAGS"
18207 LIBS="$ac_save_LIBS"
18208 fi
18209 fi
18210 if test "x$no_gtk" = x ; then
18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18212 printf "%s\n" "yes" >&6; }
18213 HAVE_GTK="yes"
18214 else
18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 printf "%s\n" "no" >&6; }
18217 if test "$GTK_CONFIG" = "no" ; then
18218 echo "*** The gtk-config script installed by GTK could not be found"
18219 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
18220 echo "*** your path, or set the GTK_CONFIG environment variable to the"
18221 echo "*** full path to gtk-config."
18222 else
18223 if test -f conf.gtktest ; then
18224 :
18225 else
18226 echo "*** Could not run GTK test program, checking why..."
18227 CFLAGS="$CFLAGS $GTK_CFLAGS"
18228 LIBS="$LIBS $GTK_LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231
18232 #include <gtk/gtk.h>
18233 #include <stdio.h>
18234
18235 int
18236 main (void)
18237 {
18238 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
18239 ;
18240 return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"
18244 then :
18245 echo "*** The test program compiled, but did not run. This usually means"
18246 echo "*** that the run-time linker is not finding GTK or finding the wrong"
18247 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
18248 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18249 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18250 echo "*** is required on your system"
18251 echo "***"
18252 echo "*** If you have an old version installed, it is best to remove it, although"
18253 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18254 echo "***"
18255 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
18256 echo "*** came with the system with the command"
18257 echo "***"
18258 echo "*** rpm --erase --nodeps gtk gtk-devel"
18259 else $as_nop
18260 echo "*** The test program failed to compile or link. See the file config.log for the"
18261 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
18262 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
18263 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
18264 fi
18265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18266 conftest$ac_exeext conftest.$ac_ext
18267 CFLAGS="$ac_save_CFLAGS"
18268 LIBS="$ac_save_LIBS"
18269 fi
18270 fi
18271 GTK_CFLAGS=""
18272 GTK_LIBS=""
18273 HAVE_GTK="no"
18274 fi
18275
18276
18277 rm -f conf.gtktest
18278
18279
18280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of ElectricFence malloc debugging" >&5
18281 printf %s "checking use of ElectricFence malloc debugging... " >&6; }
18282 # Check whether --enable-efence was given.
18283 if test ${enable_efence+y}
18284 then :
18285 enableval=$enable_efence; CONFIG_EFENCE="${enableval}"
18286 else $as_nop
18287 CONFIG_EFENCE="no"
18288 fi
18289
18290
18291 case "${CONFIG_EFENCE}" in
18292 yes)
18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EF_Print in -lefence" >&5
18294 printf %s "checking for EF_Print in -lefence... " >&6; }
18295 if test ${ac_cv_lib_efence_EF_Print+y}
18296 then :
18297 printf %s "(cached) " >&6
18298 else $as_nop
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lefence $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 EF_Print ();
18308 int
18309 main (void)
18310 {
18311 return EF_Print ();
18312 ;
18313 return 0;
18314 }
18315 _ACEOF
18316 if ac_fn_c_try_link "$LINENO"
18317 then :
18318 ac_cv_lib_efence_EF_Print=yes
18319 else $as_nop
18320 ac_cv_lib_efence_EF_Print=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_efence_EF_Print" >&5
18327 printf "%s\n" "$ac_cv_lib_efence_EF_Print" >&6; }
18328 if test "x$ac_cv_lib_efence_EF_Print" = xyes
18329 then :
18330 HAVE_EFENCE="-lefence"
18331 fi
18332
18333 if test "x${HAVE_EFENCE}" != "x-lefence"; then
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335 printf "%s\n" "yes" >&6; }
18336 else
18337 LDADD="${LDADD} ${HAVE_EFENCE}"
18338
18339 printf "%s\n" "#define HAVE_EFENCE 1" >>confdefs.h
18340
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
18342 printf "%s\n" "${CONFIG_EFENCE}" >&6; }
18343 fi
18344 ;;
18345 no)
18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EFENCE}" >&5
18347 printf "%s\n" "${CONFIG_EFENCE}" >&6; }
18348 ;;
18349 *)
18350 as_fn_error $? "bad value �${CONFIG_EFENCE}� for efence option" "$LINENO" 5
18351 ;;
18352 esac
18353
18354
18355 WARNING=
18356
18357 # Check whether --with-fileio was given.
18358 if test ${with_fileio+y}
18359 then :
18360 withval=$with_fileio; CONFIG_FILEIO="${withval}"
18361 else $as_nop
18362 CONFIG_FILEIO="lame"
18363 fi
18364
18365
18366 if test "${CONFIG_FILEIO}" = "sndfile" ; then
18367
18368 pkg_failed=no
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile >= 1.0.2" >&5
18370 printf %s "checking for sndfile >= 1.0.2... " >&6; }
18371
18372 if test -n "$SNDFILE_CFLAGS"; then
18373 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
18374 elif test -n "$PKG_CONFIG"; then
18375 if test -n "$PKG_CONFIG" && \
18376 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
18377 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
18378 ac_status=$?
18379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18380 test $ac_status = 0; }; then
18381 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null`
18382 test "x$?" != "x0" && pkg_failed=yes
18383 else
18384 pkg_failed=yes
18385 fi
18386 else
18387 pkg_failed=untried
18388 fi
18389 if test -n "$SNDFILE_LIBS"; then
18390 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
18391 elif test -n "$PKG_CONFIG"; then
18392 if test -n "$PKG_CONFIG" && \
18393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
18394 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
18395 ac_status=$?
18396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; then
18398 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null`
18399 test "x$?" != "x0" && pkg_failed=yes
18400 else
18401 pkg_failed=yes
18402 fi
18403 else
18404 pkg_failed=untried
18405 fi
18406
18407
18408
18409 if test $pkg_failed = yes; then
18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18411 printf "%s\n" "no" >&6; }
18412
18413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18414 _pkg_short_errors_supported=yes
18415 else
18416 _pkg_short_errors_supported=no
18417 fi
18418 if test $_pkg_short_errors_supported = yes; then
18419 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
18420 else
18421 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.2" 2>&1`
18422 fi
18423 # Put the nasty error message in config.log where it belongs
18424 echo "$SNDFILE_PKG_ERRORS" >&5
18425
18426 HAVE_SNDFILE="no"
18427 elif test $pkg_failed = untried; then
18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18429 printf "%s\n" "no" >&6; }
18430 HAVE_SNDFILE="no"
18431 else
18432 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
18433 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18435 printf "%s\n" "yes" >&6; }
18436 HAVE_SNDFILE="yes"
18437 fi
18438 fi
18439
18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of file io" >&5
18441 printf %s "checking use of file io... " >&6; }
18442
18443 if test "${CONFIG_FILEIO}" = "sndfile" ; then
18444 if test "${HAVE_SNDFILE}" = "yes" -o "x${SNDFILE_LIBS}" != "x" \
18445 -o "x${SNDFILE_CFLAGS}" != "x"; then
18446 SNDFILE_LIBS=`echo ${SNDFILE_LIBS}`
18447 SNDFILE_CFLAGS=`echo ${SNDFILE_CFLAGS}`
18448
18449 if test -n "${SNDFILE_LIBS}" ; then
18450 FRONTEND_LDFLAGS="${SNDFILE_LIBS} ${FRONTEND_LDFLAGS}"
18451 fi
18452 FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}"
18453
18454 if test -n "${SNDFILE_CFLAGS}" ; then
18455 INCLUDES="${SNDFILE_CFLAGS} ${INCLUDES}"
18456 fi
18457
18458
18459 printf "%s\n" "#define LIBSNDFILE 1" >>confdefs.h
18460
18461 else
18462 # default
18463 CONFIG_FILEIO="lame"
18464 WARNING="${WARNING} Could not find any sndfile lib on system."
18465 fi
18466 else
18467 CONFIG_FILEIO="lame"
18468 fi
18469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_FILEIO}" >&5
18470 printf "%s\n" "${CONFIG_FILEIO}" >&6; }
18471 if test "x${WARNING}" != "x" ; then
18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $WARNING" >&5
18473 printf "%s\n" "$as_me: WARNING: $WARNING" >&2;}
18474 fi
18475
18476
18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of analyzer hooks" >&5
18478 printf %s "checking use of analyzer hooks... " >&6; }
18479 # Check whether --enable-analyzer-hooks was given.
18480 if test ${enable_analyzer_hooks+y}
18481 then :
18482 enableval=$enable_analyzer_hooks; CONFIG_ANALYZER="${enableval}"
18483 else $as_nop
18484 CONFIG_ANALYZER="yes"
18485 fi
18486
18487
18488 case "${CONFIG_ANALYZER}" in
18489 yes)
18490 ;;
18491 no)
18492
18493 printf "%s\n" "#define NOANALYSIS 1" >>confdefs.h
18494
18495 ;;
18496 *)
18497 as_fn_error $? "bad value �${CONFIG_ANALYZER}� for analyzer-hooks option" "$LINENO" 5
18498 ;;
18499 esac
18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_ANALYZER" >&5
18501 printf "%s\n" "$CONFIG_ANALYZER" >&6; }
18502
18503
18504
18505 pkg_failed=no
18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpg123 >= 1.26.0" >&5
18507 printf %s "checking for libmpg123 >= 1.26.0... " >&6; }
18508
18509 if test -n "$mpg123_CFLAGS"; then
18510 pkg_cv_mpg123_CFLAGS="$mpg123_CFLAGS"
18511 elif test -n "$PKG_CONFIG"; then
18512 if test -n "$PKG_CONFIG" && \
18513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5
18514 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5
18515 ac_status=$?
18516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; }; then
18518 pkg_cv_mpg123_CFLAGS=`$PKG_CONFIG --cflags "libmpg123 >= 1.26.0" 2>/dev/null`
18519 test "x$?" != "x0" && pkg_failed=yes
18520 else
18521 pkg_failed=yes
18522 fi
18523 else
18524 pkg_failed=untried
18525 fi
18526 if test -n "$mpg123_LIBS"; then
18527 pkg_cv_mpg123_LIBS="$mpg123_LIBS"
18528 elif test -n "$PKG_CONFIG"; then
18529 if test -n "$PKG_CONFIG" && \
18530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.26.0\""; } >&5
18531 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.26.0") 2>&5
18532 ac_status=$?
18533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18534 test $ac_status = 0; }; then
18535 pkg_cv_mpg123_LIBS=`$PKG_CONFIG --libs "libmpg123 >= 1.26.0" 2>/dev/null`
18536 test "x$?" != "x0" && pkg_failed=yes
18537 else
18538 pkg_failed=yes
18539 fi
18540 else
18541 pkg_failed=untried
18542 fi
18543
18544
18545
18546 if test $pkg_failed = yes; then
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548 printf "%s\n" "no" >&6; }
18549
18550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18551 _pkg_short_errors_supported=yes
18552 else
18553 _pkg_short_errors_supported=no
18554 fi
18555 if test $_pkg_short_errors_supported = yes; then
18556 mpg123_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1`
18557 else
18558 mpg123_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpg123 >= 1.26.0" 2>&1`
18559 fi
18560 # Put the nasty error message in config.log where it belongs
18561 echo "$mpg123_PKG_ERRORS" >&5
18562
18563 HAVE_MPG123="no"
18564 elif test $pkg_failed = untried; then
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18566 printf "%s\n" "no" >&6; }
18567 HAVE_MPG123="no"
18568 else
18569 mpg123_CFLAGS=$pkg_cv_mpg123_CFLAGS
18570 mpg123_LIBS=$pkg_cv_mpg123_LIBS
18571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18572 printf "%s\n" "yes" >&6; }
18573 HAVE_MPG123="yes"
18574 fi
18575
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking use of external mpg123 decoder" >&5
18577 printf %s "checking use of external mpg123 decoder... " >&6; }
18578 # Check whether --enable-decoder was given.
18579 if test ${enable_decoder+y}
18580 then :
18581 enableval=$enable_decoder; CONFIG_DECODER="${enableval}"
18582 else $as_nop
18583 CONFIG_DECODER="yes"
18584 fi
18585
18586
18587 LIB_WITH_DECODER=false
18588 if test "${HAVE_MPG123}" = "yes" && test "${CONFIG_DECODER}" != "no"; then
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18590 printf "%s\n" "yes" >&6; }
18591
18592 printf "%s\n" "#define HAVE_MPG123 1" >>confdefs.h
18593
18594
18595 printf "%s\n" "#define DECODE_ON_THE_FLY 1" >>confdefs.h
18596
18597 FRONTEND_LDADD="$mpg123_LIBS $FRONTEND_LDADD"
18598 LIBMP3LAME_LDADD="$mpg123_LIBS $LIBMP3LAME_LDADD"
18599 INCLUDES="$mpg123_CFLAGS $INCLUDES"
18600 else
18601 if test "${CONFIG_DECODER}" = "yes" ; then
18602 as_fn_error $? "no, libmpg123 not found" "$LINENO" 5
18603 else
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DECODER}" >&5
18605 printf "%s\n" "${CONFIG_DECODER}" >&6; }
18606 fi
18607 fi
18608 if ${LIB_WITH_DECODER}; then
18609 LIB_WITH_DECODER_TRUE=
18610 LIB_WITH_DECODER_FALSE='#'
18611 else
18612 LIB_WITH_DECODER_TRUE='#'
18613 LIB_WITH_DECODER_FALSE=
18614 fi
18615
18616
18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the lame frontend should be build" >&5
18618 printf %s "checking if the lame frontend should be build... " >&6; }
18619 # Check whether --enable-frontend was given.
18620 if test ${enable_frontend+y}
18621 then :
18622 enableval=$enable_frontend; WITH_FRONTEND="${enableval}"
18623 else $as_nop
18624 WITH_FRONTEND=yes
18625 fi
18626
18627 if test "x${WITH_FRONTEND}" = "xyes"; then
18628 WITH_FRONTEND=lame${ac_exeext}
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630 printf "%s\n" "yes" >&6; }
18631 else
18632 WITH_FRONTEND=
18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 printf "%s\n" "no" >&6; }
18635 fi
18636
18637
18638
18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mp3x is requested" >&5
18640 printf %s "checking if mp3x is requested... " >&6; }
18641 # Check whether --enable-mp3x was given.
18642 if test ${enable_mp3x+y}
18643 then :
18644 enableval=$enable_mp3x; WITH_MP3X="${enableval}"
18645 else $as_nop
18646 WITH_MP3X=no
18647 fi
18648
18649 if test "x${WITH_MP3X}" = "xyes"; then
18650 WITH_MP3X=mp3x${ac_exeext}
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 printf "%s\n" "yes" >&6; }
18653 else
18654 WITH_MP3X=
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18656 printf "%s\n" "no" >&6; }
18657 fi
18658
18659 if test "${HAVE_GTK}" = "no"; then
18660 if test "x${WITH_MP3X}" = "xmp3x"; then
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x" >&5
18662 printf "%s\n" "$as_me: WARNING: can't build mp3x" >&2;}
18663 WITH_MP3X=
18664 fi
18665 if test "x${CONFIG_ANALYZER}" != "xyes"; then
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't build mp3x because of disabled analyzer hooks" >&5
18667 printf "%s\n" "$as_me: WARNING: can't build mp3x because of disabled analyzer hooks" >&2;}
18668 WITH_MP3X=
18669 fi
18670 fi
18671
18672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mp3rtp is requested" >&5
18673 printf %s "checking if mp3rtp is requested... " >&6; }
18674 # Check whether --enable-mp3rtp was given.
18675 if test ${enable_mp3rtp+y}
18676 then :
18677 enableval=$enable_mp3rtp; WITH_MP3RTP="${enableval}"
18678 else $as_nop
18679 WITH_MP3RTP=no
18680 fi
18681
18682 if test "x${WITH_MP3RTP}" = "xyes"; then
18683 if test ${SOCKETFUNCTION} = NO; then
18684 as_fn_error $? "function socket is mandatory for mp3rtp" "$LINENO" 5
18685 fi
18686 WITH_MP3RTP=mp3rtp${ac_exeext}
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18688 printf "%s\n" "yes" >&6; }
18689 else
18690 WITH_MP3RTP=
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 printf "%s\n" "no" >&6; }
18693 fi
18694
18695 #Checking for IPV6 support
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
18697 printf %s "checking for IPv6 support... " >&6; }
18698 # Check whether --enable-ipv6 was given.
18699 if test ${enable_ipv6+y}
18700 then :
18701 enableval=$enable_ipv6; CONFIG_IPV6=$enableval
18702 else $as_nop
18703 CONFIG_IPV6=yes
18704 fi
18705
18706 if test "x$CONFIG_IPV6" = "xyes" ; then
18707 if test ${ac_cv_ipv6+y}
18708 then :
18709 printf %s "(cached) " >&6
18710 else $as_nop
18711 if test "$cross_compiling" = yes
18712 then :
18713 ac_cv_ipv6=yes
18714 else $as_nop
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717
18718 #include <sys/types.h>
18719 #include <sys/socket.h>
18720 #include <netinet/in.h>
18721 #include <stdlib.h>
18722 main()
18723 {
18724 int fd;
18725 struct sockaddr_in6 foo;
18726 fd = socket(AF_INET6, SOCK_STREAM, 0);
18727 exit(fd >= 0 ? 0 : 1);
18728 }
18729 _ACEOF
18730 if ac_fn_c_try_run "$LINENO"
18731 then :
18732 ac_cv_ipv6=yes
18733 else $as_nop
18734 ac_cv_ipv6=no
18735 fi
18736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18737 conftest.$ac_objext conftest.beam conftest.$ac_ext
18738 fi
18739
18740 fi
18741
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6" >&5
18743 printf "%s\n" "$ac_cv_ipv6" >&6; }
18744 if test $ac_cv_ipv6 = yes ; then
18745
18746 printf "%s\n" "#define IPV6 1" >>confdefs.h
18747
18748 fi
18749 else
18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_IPV6" >&5
18751 printf "%s\n" "$CONFIG_IPV6" >&6; }
18752 fi
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dynamic linking of the frontends is requested" >&5
18754 printf %s "checking if dynamic linking of the frontends is requested... " >&6; }
18755 # Check whether --enable-dynamic-frontends was given.
18756 if test ${enable_dynamic_frontends+y}
18757 then :
18758 enableval=$enable_dynamic_frontends; FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS}"
18759 else $as_nop
18760 FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS} -static"
18761 fi
18762
18763 case "x${FRONTEND_LDFLAGS}" in
18764 *-static*)
18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 printf "%s\n" "no" >&6; }
18767 ;;
18768 *)
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18770 printf "%s\n" "yes" >&6; }
18771 ;;
18772 esac
18773
18774
18775 #
18776 # this is from vorbis
18777 #
18778 case $host in
18779 *86-*-linux*)
18780 # glibc < 2.1.3 has a serious FP bug in the math inline header
18781 # that will cripple Vorbis. Look to see if the magic FP stack
18782 # clobber is missing in the mathinline header, thus indicating
18783 # the buggy version
18784
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787
18788 #define __LIBC_INTERNAL_MATH_INLINES 1
18789 #define __OPTIMIZE__
18790 #include <math.h>
18791
18792 _ACEOF
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1
18795 then :
18796 bad=maybe
18797 else $as_nop
18798 bad=no
18799 fi
18800 rm -rf conftest*
18801
18802
18803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking glibc mathinline bug" >&5
18804 printf %s "checking glibc mathinline bug... " >&6; }
18805 if test ${bad} = "maybe" ;then
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18808
18809 #define __LIBC_INTERNAL_MATH_INLINES 1
18810 #define __OPTIMIZE__
18811 #include <math.h>
18812
18813 _ACEOF
18814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18815 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1
18816 then :
18817 bad=no
18818 else $as_nop
18819 bad=yes
18820 fi
18821 rm -rf conftest*
18822
18823 fi
18824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${bad}" >&5
18825 printf "%s\n" "${bad}" >&6; }
18826 if test ${bad} = "yes" ;then
18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
18828 printf "%s\n" "$as_me: WARNING: " >&2;}
18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
18830 printf "%s\n" "$as_me: WARNING: ********************************************************" >&2;}
18831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
18832 printf "%s\n" "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
18834 printf "%s\n" "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not only LAME, but all code *" >&5
18836 printf "%s\n" "$as_me: WARNING: * all floating point code, not only LAME, but all code *" >&2;}
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&5
18838 printf "%s\n" "$as_me: WARNING: * built on this machine. Upgrading to glibc 2.1.3 is *" >&2;}
18839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * strongly urged to correct the problem. *" >&5
18840 printf "%s\n" "$as_me: WARNING: * strongly urged to correct the problem. *" >&2;}
18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *Note: that upgrading glibc will not fix any previously*" >&5
18842 printf "%s\n" "$as_me: WARNING: *Note: that upgrading glibc will not fix any previously*" >&2;}
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * built programs; this is a compile-time bug. *" >&5
18844 printf "%s\n" "$as_me: WARNING: * built programs; this is a compile-time bug. *" >&2;}
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of LAME, *" >&5
18846 printf "%s\n" "$as_me: WARNING: * To work around the problem for this build of LAME, *" >&2;}
18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
18848 printf "%s\n" "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * hurt LAME performace but is necessary for LAME to *" >&5
18850 printf "%s\n" "$as_me: WARNING: * hurt LAME performace but is necessary for LAME to *" >&2;}
18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&5
18852 printf "%s\n" "$as_me: WARNING: * work correctly. Once glibc is upgraded, rerun *" >&2;}
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
18854 printf "%s\n" "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
18856 printf "%s\n" "$as_me: WARNING: ********************************************************" >&2;}
18857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
18858 printf "%s\n" "$as_me: WARNING: " >&2;}
18859
18860
18861 printf "%s\n" "#define __NO_MATH_INLINES 1" >>confdefs.h
18862
18863 fi;;
18864 esac
18865
18866
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for termcap" >&5
18868 printf %s "checking for termcap... " >&6; }
18869 if test "x${HAVE_TERMCAP}" != "x"; then
18870 FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
18871
18872 printf "%s\n" "#define HAVE_TERMCAP 1" >>confdefs.h
18873
18874 TERMCAP_DEFAULT="yes"
18875 else
18876 TERMCAP_DEFAULT="no"
18877 fi
18878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TERMCAP_DEFAULT}" >&5
18879 printf "%s\n" "${TERMCAP_DEFAULT}" >&6; }
18880
18881
18882 WITH_VECTOR=no
18883 case $host_cpu in
18884 x86_64|amd64)
18885 CPUTYPE="no"
18886 if test $ac_cv_header_xmmintrin_h = yes ; then
18887 WITH_XMM=yes
18888 WITH_VECTOR=yes
18889 fi
18890
18891
18892 printf "%s\n" "#define USE_FAST_LOG 1" >>confdefs.h
18893
18894 ;;
18895 *86)
18896 CPUTYPE="i386"
18897 if test $ac_cv_header_xmmintrin_h = yes ; then
18898 WITH_XMM=yes
18899 WITH_VECTOR=yes
18900 fi
18901
18902
18903 printf "%s\n" "#define USE_FAST_LOG 1" >>confdefs.h
18904
18905 ;;
18906 powerpc)
18907 CPUTYPE="no"
18908
18909 # The following should not get enabled on a G5. HOWTO check for a G5?
18910
18911 printf "%s\n" "#define USE_FAST_LOG 1" >>confdefs.h
18912
18913 ;;
18914 *)
18915 CPUTYPE="no"
18916 ;;
18917 esac
18918
18919 # which vector code do we support to build on this machine?
18920 if test "x${WITH_XMM}" = "xyes"; then
18921 WITH_XMM_TRUE=
18922 WITH_XMM_FALSE='#'
18923 else
18924 WITH_XMM_TRUE='#'
18925 WITH_XMM_FALSE=
18926 fi
18927
18928
18929 # needs to be defined to link in the internal vector lib
18930 if test "x${WITH_VECTOR}" = "xyes"; then
18931 WITH_VECTOR_TRUE=
18932 WITH_VECTOR_FALSE='#'
18933 else
18934 WITH_VECTOR_TRUE='#'
18935 WITH_VECTOR_FALSE=
18936 fi
18937
18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if I have to build the internal vector lib" >&5
18939 printf %s "checking if I have to build the internal vector lib... " >&6; }
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WITH_VECTOR}" >&5
18941 printf "%s\n" "${WITH_VECTOR}" >&6; }
18942
18943
18944 # Extract the first word of "nasm", so it can be a program name with args.
18945 set dummy nasm; ac_word=$2
18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18947 printf %s "checking for $ac_word... " >&6; }
18948 if test ${ac_cv_path_NASM+y}
18949 then :
18950 printf %s "(cached) " >&6
18951 else $as_nop
18952 case $NASM in
18953 [\\/]* | ?:[\\/]*)
18954 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
18955 ;;
18956 *)
18957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18958 for as_dir in $PATH
18959 do
18960 IFS=$as_save_IFS
18961 case $as_dir in #(((
18962 '') as_dir=./ ;;
18963 */) ;;
18964 *) as_dir=$as_dir/ ;;
18965 esac
18966 for ac_exec_ext in '' $ac_executable_extensions; do
18967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18968 ac_cv_path_NASM="$as_dir$ac_word$ac_exec_ext"
18969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18970 break 2
18971 fi
18972 done
18973 done
18974 IFS=$as_save_IFS
18975
18976 test -z "$ac_cv_path_NASM" && ac_cv_path_NASM="no"
18977 ;;
18978 esac
18979 fi
18980 NASM=$ac_cv_path_NASM
18981 if test -n "$NASM"; then
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5
18983 printf "%s\n" "$NASM" >&6; }
18984 else
18985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 printf "%s\n" "no" >&6; }
18987 fi
18988
18989
18990 case "${NASM}" in
18991 no)
18992 ;;
18993 *)
18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler routines for this processor type" >&5
18995 printf %s "checking for assembler routines for this processor type... " >&6; }
18996 for recurse_over in ${ASM_FOR_ARCH}
18997 do
18998 if test "${CPUTYPE}" = "${recurse_over}"; then
18999 include_asm_routines="yes"
19000 fi
19001
19002 case $host_os in
19003 *darwin*)
19004 # currently we have problems because of a wrong
19005 # libtool hack in the darwin case (for nasm code)
19006 include_asm_routines="no"
19007 ;;
19008 esac
19009 done
19010 if test "x${include_asm_routines}" = "xyes"; then
19011
19012 printf "%s\n" "#define HAVE_NASM 1" >>confdefs.h
19013
19014
19015 printf "%s\n" "#define MMX_choose_table 1" >>confdefs.h
19016
19017 else
19018 include_asm_routines="no"
19019 NASM="no"
19020 fi
19021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${include_asm_routines}" >&5
19022 printf "%s\n" "${include_asm_routines}" >&6; }
19023 ;;
19024 esac
19025 if test "${NASM}" != "no"; then
19026 HAVE_NASM_TRUE=
19027 HAVE_NASM_FALSE='#'
19028 else
19029 HAVE_NASM_TRUE='#'
19030 HAVE_NASM_FALSE=
19031 fi
19032
19033
19034 case $host_os in
19035 *cygwin*|*mingw32*)
19036 CYGWIN=yes
19037 NASM_FORMAT="-f win32 -DWIN32"
19038 ;;
19039 *darwin*)
19040 NASM_FORMAT="-f macho"
19041 ;;
19042 *os2-emx*)
19043 NASM_FORMAT="-f aout -DAOUT"
19044 ;;
19045 *)
19046 CYGWIN=no
19047 NASM_FORMAT="-f elf"
19048 ;;
19049 esac
19050
19051 #
19052 # 'expopt' is used for "additional optimizations", not for optimizations which
19053 # are marked as "experimental" in the guide for the compiler.
19054 # They are "experimental" here in the LAME project (at least
19055 # "--enable-expopt=full").
19056 #
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional optimizations" >&5
19058 printf %s "checking for additional optimizations... " >&6; }
19059 # Check whether --enable-expopt was given.
19060 if test ${enable_expopt+y}
19061 then :
19062 enableval=$enable_expopt; CONFIG_EXPOPT="${enableval}"
19063 else $as_nop
19064 CONFIG_EXPOPT="no"
19065 fi
19066
19067
19068 if test "x$HAVE_GCC" = "xyes" -o "x$HAVE_CLANG" = "xyes"; then
19069 # gcc defaults. OS specific options go in versious sections below
19070 # from the gcc man pages: "there is no reason to use -pedantic"
19071 if test "x${with_gnu_ld}" = "xyes"; then
19072 CFLAGS="-Wall -pipe ${CFLAGS}"
19073 else
19074 # some vendor ld's don't like '-pipe'
19075 CFLAGS="-Wall ${CFLAGS}"
19076 fi
19077
19078 # GCC version specific generic options
19079 if test "x${HAVE_GCC}" = "xyes"; then
19080 case "${GCC_version}" in
19081 2.96*)
19082 # for buggy version of gcc shipped with RH7.1, back of on some
19083 # optimizations
19084 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \
19085 -funroll-loops"
19086 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
19087 -fsched-interblock -fbranch-count-reg -fforce-addr \
19088 -fforce-mem"
19089 ;;
19090 3.0*)
19091 # -funroll-loops seems to produce buggy code with gcc 3.0.3
19092 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math"
19093 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
19094 -fbranch-count-reg -fforce-addr -fforce-mem"
19095 ;;
19096 3.*|4.0.*|4.1.*)
19097 # -fomit-frame-pointer seems to be buggy on cygwin
19098 case ${host_os} in
19099 *cygwin*)
19100 OMIT_FRAME_POINTER=
19101 ;;
19102 *)
19103 OMIT_FRAME_POINTER=-fomit-frame-pointer
19104 ;;
19105 esac
19106
19107 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math"
19108 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
19109 -fbranch-count-reg -fforce-addr -fforce-mem"
19110 ;;
19111 [456789].*|1[0-9].*)
19112 OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math"
19113 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
19114 ;;
19115 *)
19116 # default
19117 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math \
19118 -funroll-loops"
19119 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
19120 ;;
19121 esac
19122
19123 # GCC version independend generic options
19124 OPTIMIZATION_NORM="-fschedule-insns2"
19125 fi
19126
19127
19128 # generic CPU specific options
19129 case ${host_cpu} in
19130 sparc)
19131 case "${GCC_version}" in
19132 3.0*)
19133 ;;
19134 [3456789].*|1[0-9].*)
19135 # doesn't work on 3.0.x, but on 3.[12] and
19136 # hopefully on every other release after that too
19137 if test -x /usr/bin/isalist; then
19138 /usr/bin/isalist | grep sparcv8plus \
19139 >/dev/null 2>&1 && \
19140 OPTIMIZATION="${OPTIMIZATION} \
19141 -mcpu=ultrasparc \
19142 -mtune=ultrasparc"
19143 fi
19144 ;;
19145 esac
19146 ;;
19147 *86)
19148 case "${GCC_version}" in
19149 [3456789].*|1[0-9].*)
19150 OPTIMIZATION="${OPTIMIZATION} \
19151 -maccumulate-outgoing-args"
19152 ;;
19153 esac
19154 ;;
19155 esac
19156
19157 expopt_msg_result_printed=no
19158 case "${CONFIG_EXPOPT}" in
19159 no)
19160 # if someone supplies own CFLAGS, we don't add our own
19161 if test "x${ac_save_CFLAGS}" != "x"; then
19162 OPTIMIZATION=""
19163 fi
19164 ;;
19165 norm|yes)
19166 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM}"
19167 ;;
19168 full)
19169 OPTIMIZATION="${OPTIMIZATION} ${OPTIMIZATION_NORM} \
19170 ${OPTIMIZATION_FULL}"
19171
19172 if test "${HAVE_GCC}" = "yes"; then
19173 # some hardware dependend options
19174 case "${GCC_version}" in
19175 2.9*|3.*|4.0.*|4.1.*)
19176 # "new" GCC, use some "new" CPU specific optimizations
19177 # use -mtune instead of -m486 or -mcpu= etc, since they are
19178 # deprecated by GCC <rbrito>
19179 case ${host_cpu} in
19180 *486)
19181 OPTIMIZATION="${OPTIMIZATION} -mcpu=i486 \
19182 -mfancy-math-387"
19183 ;;
19184 *586)
19185 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentium \
19186 -march=pentium -mfancy-math-387"
19187 ;;
19188 *686)
19189 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentiumpro \
19190 -march=pentiumpro -mfancy-math-387 \
19191 -malign-double"
19192 ;;
19193 *86)
19194 OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
19195 ;;
19196 alpha*)
19197 OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
19198
19199 printf "%s\n" "#define FLOAT double" >>confdefs.h
19200
19201 # add "-mcpu=21164a -Wa,-m21164a" to optimize
19202 # for 21164a (ev56) CPU
19203 ;;
19204 *)
19205 OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch"
19206 ;;
19207 esac
19208 ;;
19209 [456789].*|1[0-9].*)
19210 case ${host_cpu} in
19211 *486)
19212 OPTIMIZATION="${OPTIMIZATION} -march=i486"
19213 ;;
19214 *586)
19215 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
19216 -mtune=native"
19217 ;;
19218 *686)
19219 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
19220 -mtune=native"
19221 ;;
19222 arm*-gnueabi)
19223 if -z "$(echo ${GCC_version} | awk '/4\.0/')" ; then
19224 # Work round buggy softfloat optimization in ARM EABI compilers
19225 # -gnueabi in only gcc-4.1 onwards
19226 OPTIMIZATION="${OPTIMIZATION} -fno-finite-math-only"
19227 fi
19228 ;;
19229 esac
19230 ;;
19231 *)
19232 # no special optimization for other versions
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 printf "%s\n" "no" >&6; }
19235 expopt_msg_result_printed=yes
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&5
19237 printf "%s\n" "$as_me: WARNING: LAME doesn't know about your version (${GCC_version}) of gcc" >&2;}
19238 ;;
19239 esac
19240 fi
19241 ;;
19242 *)
19243 as_fn_error $? "bad value �${CONFIG_EXPOPT}� for expopt option" "$LINENO" 5
19244 ;;
19245 esac
19246
19247
19248 if test "x${HAVE_CLANG}" = "xyes"; then
19249 case "${CLANG_VERSION}" in
19250 3.[89]*|[45].*|1[0-9].*)
19251 OPTIMIZATION="-Ofast"
19252 ;;
19253 *)
19254 OPTIMIZATION="-O3"
19255 ;;
19256 esac
19257
19258 # generic CPU specific options
19259 case ${host_cpu} in
19260 *486)
19261 OPTIMIZATION="${OPTIMIZATION} -march=i486"
19262 ;;
19263 *586)
19264 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
19265 -mtune=native"
19266 ;;
19267 *686)
19268 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
19269 -mtune=native"
19270 ;;
19271 esac
19272
19273 # if someone supplies own CFLAGS, we don't add our own
19274 if test "x${ac_save_CFLAGS}" != "x"; then
19275 OPTIMIZATION=""
19276 fi
19277 fi
19278
19279
19280 if test "${expopt_msg_result_printed}" = "no" ; then
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_EXPOPT}" >&5
19282 printf "%s\n" "${CONFIG_EXPOPT}" >&6; }
19283 fi
19284 else
19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 printf "%s\n" "no" >&6; }
19287 fi
19288
19289
19290
19291
19292
19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debug options" >&5
19294 printf %s "checking for debug options... " >&6; }
19295 # Check whether --enable-debug was given.
19296 if test ${enable_debug+y}
19297 then :
19298 enableval=$enable_debug; CONFIG_DEBUG="${enableval}"
19299 else $as_nop
19300 CONFIG_DEBUG="no"
19301 fi
19302
19303
19304 if test "x$GCC" = "xyes"; then
19305 DEBUG_NORM_OPT="-O -g -Wall"
19306 DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \
19307 -Wcast-qual -Wchar-subscripts -Wconversion \
19308 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
19309 -Wredundant-decls -Wshadow -Wstrict-prototypes \
19310 -Wwrite-strings -Winline \
19311 -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \
19312 -Wimplicit-int -fno-builtin"
19313
19314 case "${CONFIG_DEBUG}" in
19315 no)
19316 ;;
19317 norm|yes)
19318
19319 printf "%s\n" "#define ABORTFP 1" >>confdefs.h
19320
19321 OPTIMIZATION="${DEBUG_NORM_OPT}"
19322 ;;
19323 anoying)
19324
19325 printf "%s\n" "#define ABORTFP 1" >>confdefs.h
19326
19327 OPTIMIZATION="${DEBUG_NORM_OPT} ${DEBUG_ANOYING}"
19328 ;;
19329 alot)
19330
19331 printf "%s\n" "#define ABORTFP 1" >>confdefs.h
19332
19333
19334 printf "%s\n" "#define DEBUG 1" >>confdefs.h
19335
19336 OPTIMIZATION="${DEBUG_NORM_OPT}"
19337 ;;
19338 *)
19339 as_fn_error $? "bad value �${CONFIG_DEBUG}� for debug option" "$LINENO" 5
19340 esac
19341
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CONFIG_DEBUG}" >&5
19343 printf "%s\n" "${CONFIG_DEBUG}" >&6; }
19344 else
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346 printf "%s\n" "no" >&6; }
19347 fi
19348
19349
19350
19351
19352 ##########################################################################
19353 # LINUX on Digital/Compaq Alpha CPUs
19354 ##########################################################################
19355 case $host in
19356 alpha*-*-linux*)
19357
19358 ################################################################
19359 #### Check if 'ccc' is in our path
19360 ################################################################
19361 if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
19362 # Compaq's C Compiler
19363 CC=ccc
19364
19365 ################################################################
19366 #### set 'OPTIMIZATION = -arch host -tune host'
19367 #### to generate/tune instructions for this machine
19368 #### 'OPTIMIZATION += -migrate -fast -inline speed -unroll 0'
19369 #### tweak to run as fast as possible :)
19370 #### 'OPTIMIZATION += -w0'
19371 #### set warning and linking flags
19372 ################################################################
19373 OPTIMIZATION="-arch host -tune host"
19374 OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION"
19375 OPTIMIZATION="-w0 $OPTIMIZATION"
19376
19377
19378 ################################################################
19379 #### to debug, uncomment
19380 ################################################################
19381 # For Debugging
19382 #OPTIMIZATION="-g3 $OPTIMIZATION"
19383
19384 ################################################################
19385 #### define __DECALPHA__ (i was getting re-declaration warnings
19386 #### in machine.h
19387 ################################################################
19388 # Define DEC Alpha
19389
19390 printf "%s\n" "#define __DECALPHA__ 1" >>confdefs.h
19391
19392 fi # gcc or ccc?
19393 ;; # alpha
19394
19395
19396 ##########################################################################
19397 # SunOS
19398 ##########################################################################
19399 sparc-*-sunos4*)
19400 if test CC = "cc"; then
19401 OPTIMIZATION="-O -xCC"
19402 MAKEDEP="-xM"
19403 # for gcc, use instead:
19404 # CC="gcc"
19405 # OPTIMIZATION="-O"
19406 # MAKEDEP="-M"
19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please contact [email protected] with the output of the configure run and the file config.cache. Thank you for your cooperation." >&5
19408 printf "%s\n" "$as_me: WARNING: Please contact [email protected] with the output of the configure run and the file config.cache. Thank you for your cooperation." >&2;}
19409 fi
19410 ;; #SunOS
19411
19412 ##########################################################################
19413 # SGI
19414 ##########################################################################
19415 *-sgi-irix*)
19416 if test CC = "cc"; then
19417 OPTIMIZATION="-O3 -woff all"
19418 fi
19419 ;; # SGI
19420
19421 ##########################################################################
19422 # Compaq Alpha running Dec Unix (OSF)
19423 ##########################################################################
19424 alpha*-dec-osf*)
19425 if test CC = "cc"; then
19426 OPTIMIZATION="-fast -O3 -std -g3 -non_shared"
19427 fi
19428 ;; #OSF
19429 esac
19430
19431 # todo: include the following tests in the case-list
19432 UNAME=`uname`
19433 ARCH=`uname -m`
19434
19435 ###########################################################################
19436 # MOSXS (Rhapsody PPC)
19437 ###########################################################################
19438 if test "$UNAME" = "Rhapsody"; then
19439 # CC="cc" # should be handled already by autoconf
19440 MAKEDEP="-make"
19441 fi
19442
19443 ###########################################################################
19444 # MAC OSX Darwin PPC
19445 ###########################################################################
19446 if test "$UNAME" = "Darwin"; then
19447 MAKEDEP="-make"
19448 CFLAGS="$CFLAGS -fno-common"
19449 fi
19450
19451
19452 ##########################################################################
19453 # OS/2
19454 ##########################################################################
19455 # Properly installed EMX runtime & development package is a prerequisite.
19456 # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
19457 #
19458 ##########################################################################
19459 if test "$UNAME" = "OS/2"; then
19460 SHELL=sh
19461 #CC=gcc # should already be handled by configure
19462
19463 # file extension should already be handled by automake (I don't know,
19464 # please give feedback!
19465 #FILE_EXTENSION=".exe"
19466
19467 # Uncomment & inspect the GTK lines to use MP3x GTK frame analyzer.
19468 # Properly installed XFree86/devlibs & GTK+ is a prerequisite.
19469 # The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
19470 # AC_DEFINE(HAVE_GTK, 1, have GTK)
19471 # AC_DEFINE(__ST_MT_ERRNO__, 1)
19472 # INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \
19473 # -IC:/XFree86/include $INCLUDES"
19474 # FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \
19475 # -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS"
19476 # FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS"
19477 fi
19478
19479 ###########################################################################
19480 # AmigaOS
19481 ###########################################################################
19482 # Type 'Make ARCH=PPC' for PowerUP and 'Make ARCH=WOS' for WarpOS
19483 #
19484 ###########################################################################
19485 if test "$UNAME" = "AmigaOS" ; then
19486 CC="gcc -noixemul"
19487 OPTIMIZATION="$OPTIMIZATION -m68020-60 -m68881"
19488 MAKEDEP="-MM"
19489 if test "$ARCH" = "WOS"; then
19490 CC="ppc-amigaos-gcc -warpup"
19491 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
19492 AR="ppc-amigaos-ar"
19493 RANLIB="ppc-amigaos-ranlib"
19494 fi
19495 if test "$ARCH",PPC; then
19496 CC="ppc-amigaos-gcc"
19497 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
19498 AR="ppc-amigaos-ar"
19499 RANLIB="ppc-amigaos-ranlib"
19500 fi
19501 fi
19502
19503
19504 CFLAGS="${OPTIMIZATION} ${CFLAGS}"
19505 LDADD="${LDADD}"
19506 FRONTEND_CFLAGS="${INCICONV} ${FRONTEND_CFLAGS}"
19507 FRONTEND_LDADD="${FRONTEND_LDADD} ${LTLIBICONV} ${CONFIG_MATH_LIB}"
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539 ac_config_files="$ac_config_files Makefile libmp3lame/Makefile libmp3lame/i386/Makefile libmp3lame/lame.pc libmp3lame/vector/Makefile frontend/Makefile mpglib/Makefile doc/Makefile doc/html/Makefile doc/man/Makefile include/Makefile Dll/Makefile misc/Makefile dshow/Makefile ACM/Makefile ACM/ADbg/Makefile ACM/ddk/Makefile ACM/tinyxml/Makefile lame.spec mac/Makefile vc_solution/Makefile"
19540
19541
19542 cat >confcache <<\_ACEOF
19543 # This file is a shell script that caches the results of configure
19544 # tests run on this system so they can be shared between configure
19545 # scripts and configure runs, see configure's option --config-cache.
19546 # It is not useful on other systems. If it contains results you don't
19547 # want to keep, you may remove or edit it.
19548 #
19549 # config.status only pays attention to the cache file if you give it
19550 # the --recheck option to rerun configure.
19551 #
19552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19554 # following values.
19555
19556 _ACEOF
19557
19558 # The following way of writing the cache mishandles newlines in values,
19559 # but we know of no workaround that is simple, portable, and efficient.
19560 # So, we kill variables containing newlines.
19561 # Ultrix sh set writes to stderr and can't be redirected directly,
19562 # and sets the high bit in the cache file unless we assign to the vars.
19563 (
19564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19565 eval ac_val=\$$ac_var
19566 case $ac_val in #(
19567 *${as_nl}*)
19568 case $ac_var in #(
19569 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19570 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19571 esac
19572 case $ac_var in #(
19573 _ | IFS | as_nl) ;; #(
19574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19575 *) { eval $ac_var=; unset $ac_var;} ;;
19576 esac ;;
19577 esac
19578 done
19579
19580 (set) 2>&1 |
19581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19582 *${as_nl}ac_space=\ *)
19583 # `set' does not quote correctly, so add quotes: double-quote
19584 # substitution turns \\\\ into \\, and sed turns \\ into \.
19585 sed -n \
19586 "s/'/'\\\\''/g;
19587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19588 ;; #(
19589 *)
19590 # `set' quotes correctly as required by POSIX, so do not add quotes.
19591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19592 ;;
19593 esac |
19594 sort
19595 ) |
19596 sed '
19597 /^ac_cv_env_/b end
19598 t clear
19599 :clear
19600 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19601 t end
19602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19603 :end' >>confcache
19604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19605 if test -w "$cache_file"; then
19606 if test "x$cache_file" != "x/dev/null"; then
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19608 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19609 if test ! -f "$cache_file" || test -h "$cache_file"; then
19610 cat confcache >"$cache_file"
19611 else
19612 case $cache_file in #(
19613 */* | ?:*)
19614 mv -f confcache "$cache_file"$$ &&
19615 mv -f "$cache_file"$$ "$cache_file" ;; #(
19616 *)
19617 mv -f confcache "$cache_file" ;;
19618 esac
19619 fi
19620 fi
19621 else
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19623 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19624 fi
19625 fi
19626 rm -f confcache
19627
19628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19629 # Let make expand exec_prefix.
19630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19631
19632 DEFS=-DHAVE_CONFIG_H
19633
19634 ac_libobjs=
19635 ac_ltlibobjs=
19636 U=
19637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19638 # 1. Remove the extension, and $U if already installed.
19639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19640 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19642 # will be set to the directory where LIBOBJS objects are built.
19643 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19644 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19645 done
19646 LIBOBJS=$ac_libobjs
19647
19648 LTLIBOBJS=$ac_ltlibobjs
19649
19650
19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19652 printf %s "checking that generated files are newer than configure... " >&6; }
19653 if test -n "$am_sleep_pid"; then
19654 # Hide warnings about reused PIDs.
19655 wait $am_sleep_pid 2>/dev/null
19656 fi
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19658 printf "%s\n" "done" >&6; }
19659 if test -n "$EXEEXT"; then
19660 am__EXEEXT_TRUE=
19661 am__EXEEXT_FALSE='#'
19662 else
19663 am__EXEEXT_TRUE='#'
19664 am__EXEEXT_FALSE=
19665 fi
19666
19667 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19668 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19670 fi
19671 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19672 as_fn_error $? "conditional \"AMDEP\" was never defined.
19673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19674 fi
19675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19676 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19678 fi
19679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19680 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19682 fi
19683
19684 if test -z "${LIB_WITH_DECODER_TRUE}" && test -z "${LIB_WITH_DECODER_FALSE}"; then
19685 as_fn_error $? "conditional \"LIB_WITH_DECODER\" was never defined.
19686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19687 fi
19688 if test -z "${WITH_XMM_TRUE}" && test -z "${WITH_XMM_FALSE}"; then
19689 as_fn_error $? "conditional \"WITH_XMM\" was never defined.
19690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19691 fi
19692 if test -z "${WITH_VECTOR_TRUE}" && test -z "${WITH_VECTOR_FALSE}"; then
19693 as_fn_error $? "conditional \"WITH_VECTOR\" was never defined.
19694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19695 fi
19696 if test -z "${HAVE_NASM_TRUE}" && test -z "${HAVE_NASM_FALSE}"; then
19697 as_fn_error $? "conditional \"HAVE_NASM\" was never defined.
19698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699 fi
19700
19701 : "${CONFIG_STATUS=./config.status}"
19702 ac_write_fail=0
19703 ac_clean_files_save=$ac_clean_files
19704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19706 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19707 as_write_fail=0
19708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19709 #! $SHELL
19710 # Generated by $as_me.
19711 # Run this file to recreate the current configuration.
19712 # Compiler output produced by configure, useful for debugging
19713 # configure, is in config.log if it exists.
19714
19715 debug=false
19716 ac_cs_recheck=false
19717 ac_cs_silent=false
19718
19719 SHELL=\${CONFIG_SHELL-$SHELL}
19720 export SHELL
19721 _ASEOF
19722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19723 ## -------------------- ##
19724 ## M4sh Initialization. ##
19725 ## -------------------- ##
19726
19727 # Be more Bourne compatible
19728 DUALCASE=1; export DUALCASE # for MKS sh
19729 as_nop=:
19730 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19731 then :
19732 emulate sh
19733 NULLCMD=:
19734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19735 # is contrary to our usage. Disable this feature.
19736 alias -g '${1+"$@"}'='"$@"'
19737 setopt NO_GLOB_SUBST
19738 else $as_nop
19739 case `(set -o) 2>/dev/null` in #(
19740 *posix*) :
19741 set -o posix ;; #(
19742 *) :
19743 ;;
19744 esac
19745 fi
19746
19747
19748
19749 # Reset variables that may have inherited troublesome values from
19750 # the environment.
19751
19752 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19753 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19754 # side effect of setting IFS to empty, thus disabling word splitting.)
19755 # Quoting is to prevent editors from complaining about space-tab.
19756 as_nl='
19757 '
19758 export as_nl
19759 IFS=" "" $as_nl"
19760
19761 PS1='$ '
19762 PS2='> '
19763 PS4='+ '
19764
19765 # Ensure predictable behavior from utilities with locale-dependent output.
19766 LC_ALL=C
19767 export LC_ALL
19768 LANGUAGE=C
19769 export LANGUAGE
19770
19771 # We cannot yet rely on "unset" to work, but we need these variables
19772 # to be unset--not just set to an empty or harmless value--now, to
19773 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19774 # also avoids known problems related to "unset" and subshell syntax
19775 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19776 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19777 do eval test \${$as_var+y} \
19778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19779 done
19780
19781 # Ensure that fds 0, 1, and 2 are open.
19782 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19783 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19784 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19785
19786 # The user is always right.
19787 if ${PATH_SEPARATOR+false} :; then
19788 PATH_SEPARATOR=:
19789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19791 PATH_SEPARATOR=';'
19792 }
19793 fi
19794
19795
19796 # Find who we are. Look in the path if we contain no directory separator.
19797 as_myself=
19798 case $0 in #((
19799 *[\\/]* ) as_myself=$0 ;;
19800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19801 for as_dir in $PATH
19802 do
19803 IFS=$as_save_IFS
19804 case $as_dir in #(((
19805 '') as_dir=./ ;;
19806 */) ;;
19807 *) as_dir=$as_dir/ ;;
19808 esac
19809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19810 done
19811 IFS=$as_save_IFS
19812
19813 ;;
19814 esac
19815 # We did not find ourselves, most probably we were run as `sh COMMAND'
19816 # in which case we are not to be found in the path.
19817 if test "x$as_myself" = x; then
19818 as_myself=$0
19819 fi
19820 if test ! -f "$as_myself"; then
19821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19822 exit 1
19823 fi
19824
19825
19826
19827 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19828 # ----------------------------------------
19829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19831 # script with STATUS, using 1 if that was 0.
19832 as_fn_error ()
19833 {
19834 as_status=$1; test $as_status -eq 0 && as_status=1
19835 if test "$4"; then
19836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19838 fi
19839 printf "%s\n" "$as_me: error: $2" >&2
19840 as_fn_exit $as_status
19841 } # as_fn_error
19842
19843
19844
19845 # as_fn_set_status STATUS
19846 # -----------------------
19847 # Set $? to STATUS, without forking.
19848 as_fn_set_status ()
19849 {
19850 return $1
19851 } # as_fn_set_status
19852
19853 # as_fn_exit STATUS
19854 # -----------------
19855 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19856 as_fn_exit ()
19857 {
19858 set +e
19859 as_fn_set_status $1
19860 exit $1
19861 } # as_fn_exit
19862
19863 # as_fn_unset VAR
19864 # ---------------
19865 # Portably unset VAR.
19866 as_fn_unset ()
19867 {
19868 { eval $1=; unset $1;}
19869 }
19870 as_unset=as_fn_unset
19871
19872 # as_fn_append VAR VALUE
19873 # ----------------------
19874 # Append the text in VALUE to the end of the definition contained in VAR. Take
19875 # advantage of any shell optimizations that allow amortized linear growth over
19876 # repeated appends, instead of the typical quadratic growth present in naive
19877 # implementations.
19878 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19879 then :
19880 eval 'as_fn_append ()
19881 {
19882 eval $1+=\$2
19883 }'
19884 else $as_nop
19885 as_fn_append ()
19886 {
19887 eval $1=\$$1\$2
19888 }
19889 fi # as_fn_append
19890
19891 # as_fn_arith ARG...
19892 # ------------------
19893 # Perform arithmetic evaluation on the ARGs, and store the result in the
19894 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19895 # must be portable across $(()) and expr.
19896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19897 then :
19898 eval 'as_fn_arith ()
19899 {
19900 as_val=$(( $* ))
19901 }'
19902 else $as_nop
19903 as_fn_arith ()
19904 {
19905 as_val=`expr "$@" || test $? -eq 1`
19906 }
19907 fi # as_fn_arith
19908
19909
19910 if expr a : '\(a\)' >/dev/null 2>&1 &&
19911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19912 as_expr=expr
19913 else
19914 as_expr=false
19915 fi
19916
19917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19918 as_basename=basename
19919 else
19920 as_basename=false
19921 fi
19922
19923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19924 as_dirname=dirname
19925 else
19926 as_dirname=false
19927 fi
19928
19929 as_me=`$as_basename -- "$0" ||
19930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19931 X"$0" : 'X\(//\)$' \| \
19932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19933 printf "%s\n" X/"$0" |
19934 sed '/^.*\/\([^/][^/]*\)\/*$/{
19935 s//\1/
19936 q
19937 }
19938 /^X\/\(\/\/\)$/{
19939 s//\1/
19940 q
19941 }
19942 /^X\/\(\/\).*/{
19943 s//\1/
19944 q
19945 }
19946 s/.*/./; q'`
19947
19948 # Avoid depending upon Character Ranges.
19949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19952 as_cr_digits='0123456789'
19953 as_cr_alnum=$as_cr_Letters$as_cr_digits
19954
19955
19956 # Determine whether it's possible to make 'echo' print without a newline.
19957 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19958 # for compatibility with existing Makefiles.
19959 ECHO_C= ECHO_N= ECHO_T=
19960 case `echo -n x` in #(((((
19961 -n*)
19962 case `echo 'xy\c'` in
19963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19964 xy) ECHO_C='\c';;
19965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19966 ECHO_T=' ';;
19967 esac;;
19968 *)
19969 ECHO_N='-n';;
19970 esac
19971
19972 # For backward compatibility with old third-party macros, we provide
19973 # the shell variables $as_echo and $as_echo_n. New code should use
19974 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19975 as_echo='printf %s\n'
19976 as_echo_n='printf %s'
19977
19978 rm -f conf$$ conf$$.exe conf$$.file
19979 if test -d conf$$.dir; then
19980 rm -f conf$$.dir/conf$$.file
19981 else
19982 rm -f conf$$.dir
19983 mkdir conf$$.dir 2>/dev/null
19984 fi
19985 if (echo >conf$$.file) 2>/dev/null; then
19986 if ln -s conf$$.file conf$$ 2>/dev/null; then
19987 as_ln_s='ln -s'
19988 # ... but there are two gotchas:
19989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19991 # In both cases, we have to default to `cp -pR'.
19992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19993 as_ln_s='cp -pR'
19994 elif ln conf$$.file conf$$ 2>/dev/null; then
19995 as_ln_s=ln
19996 else
19997 as_ln_s='cp -pR'
19998 fi
19999 else
20000 as_ln_s='cp -pR'
20001 fi
20002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20003 rmdir conf$$.dir 2>/dev/null
20004
20005
20006 # as_fn_mkdir_p
20007 # -------------
20008 # Create "$as_dir" as a directory, including parents if necessary.
20009 as_fn_mkdir_p ()
20010 {
20011
20012 case $as_dir in #(
20013 -*) as_dir=./$as_dir;;
20014 esac
20015 test -d "$as_dir" || eval $as_mkdir_p || {
20016 as_dirs=
20017 while :; do
20018 case $as_dir in #(
20019 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20020 *) as_qdir=$as_dir;;
20021 esac
20022 as_dirs="'$as_qdir' $as_dirs"
20023 as_dir=`$as_dirname -- "$as_dir" ||
20024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20025 X"$as_dir" : 'X\(//\)[^/]' \| \
20026 X"$as_dir" : 'X\(//\)$' \| \
20027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20028 printf "%s\n" X"$as_dir" |
20029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20030 s//\1/
20031 q
20032 }
20033 /^X\(\/\/\)[^/].*/{
20034 s//\1/
20035 q
20036 }
20037 /^X\(\/\/\)$/{
20038 s//\1/
20039 q
20040 }
20041 /^X\(\/\).*/{
20042 s//\1/
20043 q
20044 }
20045 s/.*/./; q'`
20046 test -d "$as_dir" && break
20047 done
20048 test -z "$as_dirs" || eval "mkdir $as_dirs"
20049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20050
20051
20052 } # as_fn_mkdir_p
20053 if mkdir -p . 2>/dev/null; then
20054 as_mkdir_p='mkdir -p "$as_dir"'
20055 else
20056 test -d ./-p && rmdir ./-p
20057 as_mkdir_p=false
20058 fi
20059
20060
20061 # as_fn_executable_p FILE
20062 # -----------------------
20063 # Test if FILE is an executable regular file.
20064 as_fn_executable_p ()
20065 {
20066 test -f "$1" && test -x "$1"
20067 } # as_fn_executable_p
20068 as_test_x='test -x'
20069 as_executable_p=as_fn_executable_p
20070
20071 # Sed expression to map a string onto a valid CPP name.
20072 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20073
20074 # Sed expression to map a string onto a valid variable name.
20075 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20076
20077
20078 exec 6>&1
20079 ## ----------------------------------- ##
20080 ## Main body of $CONFIG_STATUS script. ##
20081 ## ----------------------------------- ##
20082 _ASEOF
20083 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20084
20085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20086 # Save the log message, to keep $0 and so on meaningful, and to
20087 # report actual input values of CONFIG_FILES etc. instead of their
20088 # values after options handling.
20089 ac_log="
20090 This file was extended by lame $as_me 3.101, which was
20091 generated by GNU Autoconf 2.71. Invocation command line was
20092
20093 CONFIG_FILES = $CONFIG_FILES
20094 CONFIG_HEADERS = $CONFIG_HEADERS
20095 CONFIG_LINKS = $CONFIG_LINKS
20096 CONFIG_COMMANDS = $CONFIG_COMMANDS
20097 $ $0 $@
20098
20099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20100 "
20101
20102 _ACEOF
20103
20104 case $ac_config_files in *"
20105 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20106 esac
20107
20108 case $ac_config_headers in *"
20109 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20110 esac
20111
20112
20113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20114 # Files that config.status was made for.
20115 config_files="$ac_config_files"
20116 config_headers="$ac_config_headers"
20117 config_commands="$ac_config_commands"
20118
20119 _ACEOF
20120
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122 ac_cs_usage="\
20123 \`$as_me' instantiates files and other configuration actions
20124 from templates according to the current configuration. Unless the files
20125 and actions are specified as TAGs, all are instantiated by default.
20126
20127 Usage: $0 [OPTION]... [TAG]...
20128
20129 -h, --help print this help, then exit
20130 -V, --version print version number and configuration settings, then exit
20131 --config print configuration, then exit
20132 -q, --quiet, --silent
20133 do not print progress messages
20134 -d, --debug don't remove temporary files
20135 --recheck update $as_me by reconfiguring in the same conditions
20136 --file=FILE[:TEMPLATE]
20137 instantiate the configuration file FILE
20138 --header=FILE[:TEMPLATE]
20139 instantiate the configuration header FILE
20140
20141 Configuration files:
20142 $config_files
20143
20144 Configuration headers:
20145 $config_headers
20146
20147 Configuration commands:
20148 $config_commands
20149
20150 Report bugs to <[email protected]>."
20151
20152 _ACEOF
20153 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20154 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156 ac_cs_config='$ac_cs_config_escaped'
20157 ac_cs_version="\\
20158 lame config.status 3.101
20159 configured by $0, generated by GNU Autoconf 2.71,
20160 with options \\"\$ac_cs_config\\"
20161
20162 Copyright (C) 2021 Free Software Foundation, Inc.
20163 This config.status script is free software; the Free Software Foundation
20164 gives unlimited permission to copy, distribute and modify it."
20165
20166 ac_pwd='$ac_pwd'
20167 srcdir='$srcdir'
20168 INSTALL='$INSTALL'
20169 MKDIR_P='$MKDIR_P'
20170 AWK='$AWK'
20171 test -n "\$AWK" || AWK=awk
20172 _ACEOF
20173
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175 # The default lists apply if the user does not specify any file.
20176 ac_need_defaults=:
20177 while test $# != 0
20178 do
20179 case $1 in
20180 --*=?*)
20181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20183 ac_shift=:
20184 ;;
20185 --*=)
20186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20187 ac_optarg=
20188 ac_shift=:
20189 ;;
20190 *)
20191 ac_option=$1
20192 ac_optarg=$2
20193 ac_shift=shift
20194 ;;
20195 esac
20196
20197 case $ac_option in
20198 # Handling of the options.
20199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20200 ac_cs_recheck=: ;;
20201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20202 printf "%s\n" "$ac_cs_version"; exit ;;
20203 --config | --confi | --conf | --con | --co | --c )
20204 printf "%s\n" "$ac_cs_config"; exit ;;
20205 --debug | --debu | --deb | --de | --d | -d )
20206 debug=: ;;
20207 --file | --fil | --fi | --f )
20208 $ac_shift
20209 case $ac_optarg in
20210 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20211 '') as_fn_error $? "missing file argument" ;;
20212 esac
20213 as_fn_append CONFIG_FILES " '$ac_optarg'"
20214 ac_need_defaults=false;;
20215 --header | --heade | --head | --hea )
20216 $ac_shift
20217 case $ac_optarg in
20218 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20219 esac
20220 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20221 ac_need_defaults=false;;
20222 --he | --h)
20223 # Conflict between --help and --header
20224 as_fn_error $? "ambiguous option: \`$1'
20225 Try \`$0 --help' for more information.";;
20226 --help | --hel | -h )
20227 printf "%s\n" "$ac_cs_usage"; exit ;;
20228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20230 ac_cs_silent=: ;;
20231
20232 # This is an error.
20233 -*) as_fn_error $? "unrecognized option: \`$1'
20234 Try \`$0 --help' for more information." ;;
20235
20236 *) as_fn_append ac_config_targets " $1"
20237 ac_need_defaults=false ;;
20238
20239 esac
20240 shift
20241 done
20242
20243 ac_configure_extra_args=
20244
20245 if $ac_cs_silent; then
20246 exec 6>/dev/null
20247 ac_configure_extra_args="$ac_configure_extra_args --silent"
20248 fi
20249
20250 _ACEOF
20251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20252 if \$ac_cs_recheck; then
20253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20254 shift
20255 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20256 CONFIG_SHELL='$SHELL'
20257 export CONFIG_SHELL
20258 exec "\$@"
20259 fi
20260
20261 _ACEOF
20262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20263 exec 5>>config.log
20264 {
20265 echo
20266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20267 ## Running $as_me. ##
20268 _ASBOX
20269 printf "%s\n" "$ac_log"
20270 } >&5
20271
20272 _ACEOF
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274 #
20275 # INIT-COMMANDS
20276 #
20277 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20278
20279
20280 # The HP-UX ksh and POSIX shell print the target directory to stdout
20281 # if CDPATH is set.
20282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20283
20284 sed_quote_subst='$sed_quote_subst'
20285 double_quote_subst='$double_quote_subst'
20286 delay_variable_subst='$delay_variable_subst'
20287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20290 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20291 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20292 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20293 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20294 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20295 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20296 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20297 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20298 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20299 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20300 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20301 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20302 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20303 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20304 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20305 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20306 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20307 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20308 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20309 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20310 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20311 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20312 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20313 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20314 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20315 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20316 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20317 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20318 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20319 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20320 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20321 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20322 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20323 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20324 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20325 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20326 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20327 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20328 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20329 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20330 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20331 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20332 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20333 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20334 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20335 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20336 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20337 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20338 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20339 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20340 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20341 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20342 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20343 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20344 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20345 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20346 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20347 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"`'
20348 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20349 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20350 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20351 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20352 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20353 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20354 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20355 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20356 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20357 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20358 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20359 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20360 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20361 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20362 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20363 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20364 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20365 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20366 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20367 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20368 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20369 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20370 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20371 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20372 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20373 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20374 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20375 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20376 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20377 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20378 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20379 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20380 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20381 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20382 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20383 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20384 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20385 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20386 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20387 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20388 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20389 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20390 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20391 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20392 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20393 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20394 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20395 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20396 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20397 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20398 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20399 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20400 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20401 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20402 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20403 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20404 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20405 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20406 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20407 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20408 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20409 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20410 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20411 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20412 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20413 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20414 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20415 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20416 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20417 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20418 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20419 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20420 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20421 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20422 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20423 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20424
20425 LTCC='$LTCC'
20426 LTCFLAGS='$LTCFLAGS'
20427 compiler='$compiler_DEFAULT'
20428
20429 # A function that is used when there is no print builtin or printf.
20430 func_fallback_echo ()
20431 {
20432 eval 'cat <<_LTECHO_EOF
20433 \$1
20434 _LTECHO_EOF'
20435 }
20436
20437 # Quote evaled strings.
20438 for var in SHELL \
20439 ECHO \
20440 PATH_SEPARATOR \
20441 SED \
20442 GREP \
20443 EGREP \
20444 FGREP \
20445 LD \
20446 NM \
20447 LN_S \
20448 lt_SP2NL \
20449 lt_NL2SP \
20450 reload_flag \
20451 FILECMD \
20452 OBJDUMP \
20453 deplibs_check_method \
20454 file_magic_cmd \
20455 file_magic_glob \
20456 want_nocaseglob \
20457 DLLTOOL \
20458 sharedlib_from_linklib_cmd \
20459 AR \
20460 archiver_list_spec \
20461 STRIP \
20462 RANLIB \
20463 CC \
20464 CFLAGS \
20465 compiler \
20466 lt_cv_sys_global_symbol_pipe \
20467 lt_cv_sys_global_symbol_to_cdecl \
20468 lt_cv_sys_global_symbol_to_import \
20469 lt_cv_sys_global_symbol_to_c_name_address \
20470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20471 lt_cv_nm_interface \
20472 nm_file_list_spec \
20473 lt_cv_truncate_bin \
20474 lt_prog_compiler_no_builtin_flag \
20475 lt_prog_compiler_pic \
20476 lt_prog_compiler_wl \
20477 lt_prog_compiler_static \
20478 lt_cv_prog_compiler_c_o \
20479 need_locks \
20480 MANIFEST_TOOL \
20481 DSYMUTIL \
20482 NMEDIT \
20483 LIPO \
20484 OTOOL \
20485 OTOOL64 \
20486 shrext_cmds \
20487 export_dynamic_flag_spec \
20488 whole_archive_flag_spec \
20489 compiler_needs_object \
20490 with_gnu_ld \
20491 allow_undefined_flag \
20492 no_undefined_flag \
20493 hardcode_libdir_flag_spec \
20494 hardcode_libdir_separator \
20495 exclude_expsyms \
20496 include_expsyms \
20497 file_list_spec \
20498 variables_saved_for_relink \
20499 libname_spec \
20500 library_names_spec \
20501 soname_spec \
20502 install_override_mode \
20503 finish_eval \
20504 old_striplib \
20505 striplib; do
20506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20507 *[\\\\\\\`\\"\\\$]*)
20508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20509 ;;
20510 *)
20511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20512 ;;
20513 esac
20514 done
20515
20516 # Double-quote double-evaled strings.
20517 for var in reload_cmds \
20518 old_postinstall_cmds \
20519 old_postuninstall_cmds \
20520 old_archive_cmds \
20521 extract_expsyms_cmds \
20522 old_archive_from_new_cmds \
20523 old_archive_from_expsyms_cmds \
20524 archive_cmds \
20525 archive_expsym_cmds \
20526 module_cmds \
20527 module_expsym_cmds \
20528 export_symbols_cmds \
20529 prelink_cmds \
20530 postlink_cmds \
20531 postinstall_cmds \
20532 postuninstall_cmds \
20533 finish_cmds \
20534 sys_lib_search_path_spec \
20535 configure_time_dlsearch_path \
20536 configure_time_lt_sys_library_path; do
20537 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20538 *[\\\\\\\`\\"\\\$]*)
20539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20540 ;;
20541 *)
20542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20543 ;;
20544 esac
20545 done
20546
20547 ac_aux_dir='$ac_aux_dir'
20548
20549 # See if we are running on zsh, and set the options that allow our
20550 # commands through without removal of \ escapes INIT.
20551 if test -n "\${ZSH_VERSION+set}"; then
20552 setopt NO_GLOB_SUBST
20553 fi
20554
20555
20556 PACKAGE='$PACKAGE'
20557 VERSION='$VERSION'
20558 RM='$RM'
20559 ofile='$ofile'
20560
20561
20562
20563
20564 _ACEOF
20565
20566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20567
20568 # Handling of arguments.
20569 for ac_config_target in $ac_config_targets
20570 do
20571 case $ac_config_target in
20572 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20576 "libmp3lame/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/Makefile" ;;
20577 "libmp3lame/i386/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/i386/Makefile" ;;
20578 "libmp3lame/lame.pc") CONFIG_FILES="$CONFIG_FILES libmp3lame/lame.pc" ;;
20579 "libmp3lame/vector/Makefile") CONFIG_FILES="$CONFIG_FILES libmp3lame/vector/Makefile" ;;
20580 "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
20581 "mpglib/Makefile") CONFIG_FILES="$CONFIG_FILES mpglib/Makefile" ;;
20582 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20583 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
20584 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20585 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20586 "Dll/Makefile") CONFIG_FILES="$CONFIG_FILES Dll/Makefile" ;;
20587 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
20588 "dshow/Makefile") CONFIG_FILES="$CONFIG_FILES dshow/Makefile" ;;
20589 "ACM/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/Makefile" ;;
20590 "ACM/ADbg/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ADbg/Makefile" ;;
20591 "ACM/ddk/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/ddk/Makefile" ;;
20592 "ACM/tinyxml/Makefile") CONFIG_FILES="$CONFIG_FILES ACM/tinyxml/Makefile" ;;
20593 "lame.spec") CONFIG_FILES="$CONFIG_FILES lame.spec" ;;
20594 "mac/Makefile") CONFIG_FILES="$CONFIG_FILES mac/Makefile" ;;
20595 "vc_solution/Makefile") CONFIG_FILES="$CONFIG_FILES vc_solution/Makefile" ;;
20596
20597 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20598 esac
20599 done
20600
20601
20602 # If the user did not use the arguments to specify the items to instantiate,
20603 # then the envvar interface is used. Set only those that are not.
20604 # We use the long form for the default assignment because of an extremely
20605 # bizarre bug on SunOS 4.1.3.
20606 if $ac_need_defaults; then
20607 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20608 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20609 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20610 fi
20611
20612 # Have a temporary directory for convenience. Make it in the build tree
20613 # simply because there is no reason against having it here, and in addition,
20614 # creating and moving files from /tmp can sometimes cause problems.
20615 # Hook for its removal unless debugging.
20616 # Note that there is a small window in which the directory will not be cleaned:
20617 # after its creation but before its name has been assigned to `$tmp'.
20618 $debug ||
20619 {
20620 tmp= ac_tmp=
20621 trap 'exit_status=$?
20622 : "${ac_tmp:=$tmp}"
20623 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20624 ' 0
20625 trap 'as_fn_exit 1' 1 2 13 15
20626 }
20627 # Create a (secure) tmp directory for tmp files.
20628
20629 {
20630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20631 test -d "$tmp"
20632 } ||
20633 {
20634 tmp=./conf$$-$RANDOM
20635 (umask 077 && mkdir "$tmp")
20636 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20637 ac_tmp=$tmp
20638
20639 # Set up the scripts for CONFIG_FILES section.
20640 # No need to generate them if there are no CONFIG_FILES.
20641 # This happens for instance with `./config.status config.h'.
20642 if test -n "$CONFIG_FILES"; then
20643
20644
20645 ac_cr=`echo X | tr X '\015'`
20646 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20647 # But we know of no other shell where ac_cr would be empty at this
20648 # point, so we can use a bashism as a fallback.
20649 if test "x$ac_cr" = x; then
20650 eval ac_cr=\$\'\\r\'
20651 fi
20652 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20653 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20654 ac_cs_awk_cr='\\r'
20655 else
20656 ac_cs_awk_cr=$ac_cr
20657 fi
20658
20659 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20660 _ACEOF
20661
20662
20663 {
20664 echo "cat >conf$$subs.awk <<_ACEOF" &&
20665 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20666 echo "_ACEOF"
20667 } >conf$$subs.sh ||
20668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20669 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20670 ac_delim='%!_!# '
20671 for ac_last_try in false false false false false :; do
20672 . ./conf$$subs.sh ||
20673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20674
20675 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20676 if test $ac_delim_n = $ac_delim_num; then
20677 break
20678 elif $ac_last_try; then
20679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20680 else
20681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20682 fi
20683 done
20684 rm -f conf$$subs.sh
20685
20686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20687 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20688 _ACEOF
20689 sed -n '
20690 h
20691 s/^/S["/; s/!.*/"]=/
20692 p
20693 g
20694 s/^[^!]*!//
20695 :repl
20696 t repl
20697 s/'"$ac_delim"'$//
20698 t delim
20699 :nl
20700 h
20701 s/\(.\{148\}\)..*/\1/
20702 t more1
20703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20704 p
20705 n
20706 b repl
20707 :more1
20708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20709 p
20710 g
20711 s/.\{148\}//
20712 t nl
20713 :delim
20714 h
20715 s/\(.\{148\}\)..*/\1/
20716 t more2
20717 s/["\\]/\\&/g; s/^/"/; s/$/"/
20718 p
20719 b
20720 :more2
20721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20722 p
20723 g
20724 s/.\{148\}//
20725 t delim
20726 ' <conf$$subs.awk | sed '
20727 /^[^""]/{
20728 N
20729 s/\n//
20730 }
20731 ' >>$CONFIG_STATUS || ac_write_fail=1
20732 rm -f conf$$subs.awk
20733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20734 _ACAWK
20735 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20736 for (key in S) S_is_set[key] = 1
20737 FS = ""
20738
20739 }
20740 {
20741 line = $ 0
20742 nfields = split(line, field, "@")
20743 substed = 0
20744 len = length(field[1])
20745 for (i = 2; i < nfields; i++) {
20746 key = field[i]
20747 keylen = length(key)
20748 if (S_is_set[key]) {
20749 value = S[key]
20750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20751 len += length(value) + length(field[++i])
20752 substed = 1
20753 } else
20754 len += 1 + keylen
20755 }
20756
20757 print line
20758 }
20759
20760 _ACAWK
20761 _ACEOF
20762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20765 else
20766 cat
20767 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20768 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20769 _ACEOF
20770
20771 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20772 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20773 # trailing colons and then remove the whole line if VPATH becomes empty
20774 # (actually we leave an empty line to preserve line numbers).
20775 if test "x$srcdir" = x.; then
20776 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20777 h
20778 s///
20779 s/^/:/
20780 s/[ ]*$/:/
20781 s/:\$(srcdir):/:/g
20782 s/:\${srcdir}:/:/g
20783 s/:@srcdir@:/:/g
20784 s/^:*//
20785 s/:*$//
20786 x
20787 s/\(=[ ]*\).*/\1/
20788 G
20789 s/\n//
20790 s/^[^=]*=[ ]*$//
20791 }'
20792 fi
20793
20794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20795 fi # test -n "$CONFIG_FILES"
20796
20797 # Set up the scripts for CONFIG_HEADERS section.
20798 # No need to generate them if there are no CONFIG_HEADERS.
20799 # This happens for instance with `./config.status Makefile'.
20800 if test -n "$CONFIG_HEADERS"; then
20801 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20802 BEGIN {
20803 _ACEOF
20804
20805 # Transform confdefs.h into an awk script `defines.awk', embedded as
20806 # here-document in config.status, that substitutes the proper values into
20807 # config.h.in to produce config.h.
20808
20809 # Create a delimiter string that does not exist in confdefs.h, to ease
20810 # handling of long lines.
20811 ac_delim='%!_!# '
20812 for ac_last_try in false false :; do
20813 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20814 if test -z "$ac_tt"; then
20815 break
20816 elif $ac_last_try; then
20817 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20818 else
20819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20820 fi
20821 done
20822
20823 # For the awk script, D is an array of macro values keyed by name,
20824 # likewise P contains macro parameters if any. Preserve backslash
20825 # newline sequences.
20826
20827 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20828 sed -n '
20829 s/.\{148\}/&'"$ac_delim"'/g
20830 t rset
20831 :rset
20832 s/^[ ]*#[ ]*define[ ][ ]*/ /
20833 t def
20834 d
20835 :def
20836 s/\\$//
20837 t bsnl
20838 s/["\\]/\\&/g
20839 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20840 D["\1"]=" \3"/p
20841 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20842 d
20843 :bsnl
20844 s/["\\]/\\&/g
20845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20846 D["\1"]=" \3\\\\\\n"\\/p
20847 t cont
20848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20849 t cont
20850 d
20851 :cont
20852 n
20853 s/.\{148\}/&'"$ac_delim"'/g
20854 t clear
20855 :clear
20856 s/\\$//
20857 t bsnlc
20858 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20859 d
20860 :bsnlc
20861 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20862 b cont
20863 ' <confdefs.h | sed '
20864 s/'"$ac_delim"'/"\\\
20865 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20866
20867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20868 for (key in D) D_is_set[key] = 1
20869 FS = ""
20870 }
20871 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20872 line = \$ 0
20873 split(line, arg, " ")
20874 if (arg[1] == "#") {
20875 defundef = arg[2]
20876 mac1 = arg[3]
20877 } else {
20878 defundef = substr(arg[1], 2)
20879 mac1 = arg[2]
20880 }
20881 split(mac1, mac2, "(") #)
20882 macro = mac2[1]
20883 prefix = substr(line, 1, index(line, defundef) - 1)
20884 if (D_is_set[macro]) {
20885 # Preserve the white space surrounding the "#".
20886 print prefix "define", macro P[macro] D[macro]
20887 next
20888 } else {
20889 # Replace #undef with comments. This is necessary, for example,
20890 # in the case of _POSIX_SOURCE, which is predefined and required
20891 # on some systems where configure will not decide to define it.
20892 if (defundef == "undef") {
20893 print "/*", prefix defundef, macro, "*/"
20894 next
20895 }
20896 }
20897 }
20898 { print }
20899 _ACAWK
20900 _ACEOF
20901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20902 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20903 fi # test -n "$CONFIG_HEADERS"
20904
20905
20906 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20907 shift
20908 for ac_tag
20909 do
20910 case $ac_tag in
20911 :[FHLC]) ac_mode=$ac_tag; continue;;
20912 esac
20913 case $ac_mode$ac_tag in
20914 :[FHL]*:*);;
20915 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20916 :[FH]-) ac_tag=-:-;;
20917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20918 esac
20919 ac_save_IFS=$IFS
20920 IFS=:
20921 set x $ac_tag
20922 IFS=$ac_save_IFS
20923 shift
20924 ac_file=$1
20925 shift
20926
20927 case $ac_mode in
20928 :L) ac_source=$1;;
20929 :[FH])
20930 ac_file_inputs=
20931 for ac_f
20932 do
20933 case $ac_f in
20934 -) ac_f="$ac_tmp/stdin";;
20935 *) # Look for the file first in the build tree, then in the source tree
20936 # (if the path is not absolute). The absolute path cannot be DOS-style,
20937 # because $ac_f cannot contain `:'.
20938 test -f "$ac_f" ||
20939 case $ac_f in
20940 [\\/$]*) false;;
20941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20942 esac ||
20943 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20944 esac
20945 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20946 as_fn_append ac_file_inputs " '$ac_f'"
20947 done
20948
20949 # Let's still pretend it is `configure' which instantiates (i.e., don't
20950 # use $as_me), people would be surprised to read:
20951 # /* config.h. Generated by config.status. */
20952 configure_input='Generated from '`
20953 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20954 `' by configure.'
20955 if test x"$ac_file" != x-; then
20956 configure_input="$ac_file. $configure_input"
20957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20958 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20959 fi
20960 # Neutralize special characters interpreted by sed in replacement strings.
20961 case $configure_input in #(
20962 *\&* | *\|* | *\\* )
20963 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20964 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20965 *) ac_sed_conf_input=$configure_input;;
20966 esac
20967
20968 case $ac_tag in
20969 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20971 esac
20972 ;;
20973 esac
20974
20975 ac_dir=`$as_dirname -- "$ac_file" ||
20976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$ac_file" : 'X\(//\)[^/]' \| \
20978 X"$ac_file" : 'X\(//\)$' \| \
20979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20980 printf "%s\n" X"$ac_file" |
20981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20982 s//\1/
20983 q
20984 }
20985 /^X\(\/\/\)[^/].*/{
20986 s//\1/
20987 q
20988 }
20989 /^X\(\/\/\)$/{
20990 s//\1/
20991 q
20992 }
20993 /^X\(\/\).*/{
20994 s//\1/
20995 q
20996 }
20997 s/.*/./; q'`
20998 as_dir="$ac_dir"; as_fn_mkdir_p
20999 ac_builddir=.
21000
21001 case "$ac_dir" in
21002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21003 *)
21004 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21005 # A ".." for each directory in $ac_dir_suffix.
21006 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21007 case $ac_top_builddir_sub in
21008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21010 esac ;;
21011 esac
21012 ac_abs_top_builddir=$ac_pwd
21013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21014 # for backward compatibility:
21015 ac_top_builddir=$ac_top_build_prefix
21016
21017 case $srcdir in
21018 .) # We are building in place.
21019 ac_srcdir=.
21020 ac_top_srcdir=$ac_top_builddir_sub
21021 ac_abs_top_srcdir=$ac_pwd ;;
21022 [\\/]* | ?:[\\/]* ) # Absolute name.
21023 ac_srcdir=$srcdir$ac_dir_suffix;
21024 ac_top_srcdir=$srcdir
21025 ac_abs_top_srcdir=$srcdir ;;
21026 *) # Relative name.
21027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21028 ac_top_srcdir=$ac_top_build_prefix$srcdir
21029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21030 esac
21031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21032
21033
21034 case $ac_mode in
21035 :F)
21036 #
21037 # CONFIG_FILE
21038 #
21039
21040 case $INSTALL in
21041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21042 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21043 esac
21044 ac_MKDIR_P=$MKDIR_P
21045 case $MKDIR_P in
21046 [\\/$]* | ?:[\\/]* ) ;;
21047 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21048 esac
21049 _ACEOF
21050
21051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21052 # If the template does not know about datarootdir, expand it.
21053 # FIXME: This hack should be removed a few years after 2.60.
21054 ac_datarootdir_hack=; ac_datarootdir_seen=
21055 ac_sed_dataroot='
21056 /datarootdir/ {
21057 p
21058 q
21059 }
21060 /@datadir@/p
21061 /@docdir@/p
21062 /@infodir@/p
21063 /@localedir@/p
21064 /@mandir@/p'
21065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21066 *datarootdir*) ac_datarootdir_seen=yes;;
21067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21069 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21070 _ACEOF
21071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 ac_datarootdir_hack='
21073 s&@datadir@&$datadir&g
21074 s&@docdir@&$docdir&g
21075 s&@infodir@&$infodir&g
21076 s&@localedir@&$localedir&g
21077 s&@mandir@&$mandir&g
21078 s&\\\${datarootdir}&$datarootdir&g' ;;
21079 esac
21080 _ACEOF
21081
21082 # Neutralize VPATH when `$srcdir' = `.'.
21083 # Shell code in configure.ac might set extrasub.
21084 # FIXME: do we really want to maintain this feature?
21085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21086 ac_sed_extra="$ac_vpsub
21087 $extrasub
21088 _ACEOF
21089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21090 :t
21091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21092 s|@configure_input@|$ac_sed_conf_input|;t t
21093 s&@top_builddir@&$ac_top_builddir_sub&;t t
21094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21095 s&@srcdir@&$ac_srcdir&;t t
21096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21097 s&@top_srcdir@&$ac_top_srcdir&;t t
21098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21099 s&@builddir@&$ac_builddir&;t t
21100 s&@abs_builddir@&$ac_abs_builddir&;t t
21101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21102 s&@INSTALL@&$ac_INSTALL&;t t
21103 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21104 $ac_datarootdir_hack
21105 "
21106 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21107 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21108
21109 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21110 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21111 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21112 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21114 which seems to be undefined. Please make sure it is defined" >&5
21115 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21116 which seems to be undefined. Please make sure it is defined" >&2;}
21117
21118 rm -f "$ac_tmp/stdin"
21119 case $ac_file in
21120 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21121 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21122 esac \
21123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21124 ;;
21125 :H)
21126 #
21127 # CONFIG_HEADER
21128 #
21129 if test x"$ac_file" != x-; then
21130 {
21131 printf "%s\n" "/* $configure_input */" >&1 \
21132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21133 } >"$ac_tmp/config.h" \
21134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21135 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21137 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21138 else
21139 rm -f "$ac_file"
21140 mv "$ac_tmp/config.h" "$ac_file" \
21141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21142 fi
21143 else
21144 printf "%s\n" "/* $configure_input */" >&1 \
21145 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21146 || as_fn_error $? "could not create -" "$LINENO" 5
21147 fi
21148 # Compute "$ac_file"'s index in $config_headers.
21149 _am_arg="$ac_file"
21150 _am_stamp_count=1
21151 for _am_header in $config_headers :; do
21152 case $_am_header in
21153 $_am_arg | $_am_arg:* )
21154 break ;;
21155 * )
21156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21157 esac
21158 done
21159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21161 X"$_am_arg" : 'X\(//\)[^/]' \| \
21162 X"$_am_arg" : 'X\(//\)$' \| \
21163 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21164 printf "%s\n" X"$_am_arg" |
21165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21166 s//\1/
21167 q
21168 }
21169 /^X\(\/\/\)[^/].*/{
21170 s//\1/
21171 q
21172 }
21173 /^X\(\/\/\)$/{
21174 s//\1/
21175 q
21176 }
21177 /^X\(\/\).*/{
21178 s//\1/
21179 q
21180 }
21181 s/.*/./; q'`/stamp-h$_am_stamp_count
21182 ;;
21183
21184 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21185 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21186 ;;
21187 esac
21188
21189
21190 case $ac_file$ac_mode in
21191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21192 # Older Autoconf quotes --file arguments for eval, but not when files
21193 # are listed without --file. Let's play safe and only enable the eval
21194 # if we detect the quoting.
21195 # TODO: see whether this extra hack can be removed once we start
21196 # requiring Autoconf 2.70 or later.
21197 case $CONFIG_FILES in #(
21198 *\'*) :
21199 eval set x "$CONFIG_FILES" ;; #(
21200 *) :
21201 set x $CONFIG_FILES ;; #(
21202 *) :
21203 ;;
21204 esac
21205 shift
21206 # Used to flag and report bootstrapping failures.
21207 am_rc=0
21208 for am_mf
21209 do
21210 # Strip MF so we end up with the name of the file.
21211 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21212 # Check whether this is an Automake generated Makefile which includes
21213 # dependency-tracking related rules and includes.
21214 # Grep'ing the whole file directly is not great: AIX grep has a line
21215 # limit of 2048, but all sed's we know have understand at least 4000.
21216 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21217 || continue
21218 am_dirpart=`$as_dirname -- "$am_mf" ||
21219 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21220 X"$am_mf" : 'X\(//\)[^/]' \| \
21221 X"$am_mf" : 'X\(//\)$' \| \
21222 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21223 printf "%s\n" X"$am_mf" |
21224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21225 s//\1/
21226 q
21227 }
21228 /^X\(\/\/\)[^/].*/{
21229 s//\1/
21230 q
21231 }
21232 /^X\(\/\/\)$/{
21233 s//\1/
21234 q
21235 }
21236 /^X\(\/\).*/{
21237 s//\1/
21238 q
21239 }
21240 s/.*/./; q'`
21241 am_filepart=`$as_basename -- "$am_mf" ||
21242 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21243 X"$am_mf" : 'X\(//\)$' \| \
21244 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21245 printf "%s\n" X/"$am_mf" |
21246 sed '/^.*\/\([^/][^/]*\)\/*$/{
21247 s//\1/
21248 q
21249 }
21250 /^X\/\(\/\/\)$/{
21251 s//\1/
21252 q
21253 }
21254 /^X\/\(\/\).*/{
21255 s//\1/
21256 q
21257 }
21258 s/.*/./; q'`
21259 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21260 && sed -e '/# am--include-marker/d' "$am_filepart" \
21261 | $MAKE -f - am--depfiles" >&5
21262 (cd "$am_dirpart" \
21263 && sed -e '/# am--include-marker/d' "$am_filepart" \
21264 | $MAKE -f - am--depfiles) >&5 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } || am_rc=$?
21268 done
21269 if test $am_rc -ne 0; then
21270 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21271 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21272 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21273 for automatic dependency tracking. If GNU make was not used, consider
21274 re-running the configure script with MAKE=\"gmake\" (or whatever is
21275 necessary). You can also try re-running configure with the
21276 '--disable-dependency-tracking' option to at least be able to build
21277 the package (albeit without support for automatic dependency tracking).
21278 See \`config.log' for more details" "$LINENO" 5; }
21279 fi
21280 { am_dirpart=; unset am_dirpart;}
21281 { am_filepart=; unset am_filepart;}
21282 { am_mf=; unset am_mf;}
21283 { am_rc=; unset am_rc;}
21284 rm -f conftest-deps.mk
21285 }
21286 ;;
21287 "libtool":C)
21288
21289 # See if we are running on zsh, and set the options that allow our
21290 # commands through without removal of \ escapes.
21291 if test -n "${ZSH_VERSION+set}"; then
21292 setopt NO_GLOB_SUBST
21293 fi
21294
21295 cfgfile=${ofile}T
21296 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21297 $RM "$cfgfile"
21298
21299 cat <<_LT_EOF >> "$cfgfile"
21300 #! $SHELL
21301 # Generated automatically by $as_me ($PACKAGE) $VERSION
21302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21304
21305 # Provide generalized library-building support services.
21306 # Written by Gordon Matzigkeit, 1996
21307
21308 # Copyright (C) 2014 Free Software Foundation, Inc.
21309 # This is free software; see the source for copying conditions. There is NO
21310 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21311
21312 # GNU Libtool is free software; you can redistribute it and/or modify
21313 # it under the terms of the GNU General Public License as published by
21314 # the Free Software Foundation; either version 2 of of the License, or
21315 # (at your option) any later version.
21316 #
21317 # As a special exception to the GNU General Public License, if you
21318 # distribute this file as part of a program or library that is built
21319 # using GNU Libtool, you may include this file under the same
21320 # distribution terms that you use for the rest of that program.
21321 #
21322 # GNU Libtool is distributed in the hope that it will be useful, but
21323 # WITHOUT ANY WARRANTY; without even the implied warranty of
21324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21325 # GNU General Public License for more details.
21326 #
21327 # You should have received a copy of the GNU General Public License
21328 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21329
21330
21331 # The names of the tagged configurations supported by this script.
21332 available_tags=''
21333
21334 # Configured defaults for sys_lib_dlsearch_path munging.
21335 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21336
21337 # ### BEGIN LIBTOOL CONFIG
21338
21339 # Which release of libtool.m4 was used?
21340 macro_version=$macro_version
21341 macro_revision=$macro_revision
21342
21343 # Whether or not to build shared libraries.
21344 build_libtool_libs=$enable_shared
21345
21346 # Whether or not to build static libraries.
21347 build_old_libs=$enable_static
21348
21349 # What type of objects to build.
21350 pic_mode=$pic_mode
21351
21352 # Whether or not to optimize for fast installation.
21353 fast_install=$enable_fast_install
21354
21355 # Shared archive member basename,for filename based shared library versioning on AIX.
21356 shared_archive_member_spec=$shared_archive_member_spec
21357
21358 # Shell to use when invoking shell scripts.
21359 SHELL=$lt_SHELL
21360
21361 # An echo program that protects backslashes.
21362 ECHO=$lt_ECHO
21363
21364 # The PATH separator for the build system.
21365 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21366
21367 # The host system.
21368 host_alias=$host_alias
21369 host=$host
21370 host_os=$host_os
21371
21372 # The build system.
21373 build_alias=$build_alias
21374 build=$build
21375 build_os=$build_os
21376
21377 # A sed program that does not truncate output.
21378 SED=$lt_SED
21379
21380 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21381 Xsed="\$SED -e 1s/^X//"
21382
21383 # A grep program that handles long lines.
21384 GREP=$lt_GREP
21385
21386 # An ERE matcher.
21387 EGREP=$lt_EGREP
21388
21389 # A literal string matcher.
21390 FGREP=$lt_FGREP
21391
21392 # A BSD- or MS-compatible name lister.
21393 NM=$lt_NM
21394
21395 # Whether we need soft or hard links.
21396 LN_S=$lt_LN_S
21397
21398 # What is the maximum length of a command?
21399 max_cmd_len=$max_cmd_len
21400
21401 # Object file suffix (normally "o").
21402 objext=$ac_objext
21403
21404 # Executable file suffix (normally "").
21405 exeext=$exeext
21406
21407 # whether the shell understands "unset".
21408 lt_unset=$lt_unset
21409
21410 # turn spaces into newlines.
21411 SP2NL=$lt_lt_SP2NL
21412
21413 # turn newlines into spaces.
21414 NL2SP=$lt_lt_NL2SP
21415
21416 # convert \$build file names to \$host format.
21417 to_host_file_cmd=$lt_cv_to_host_file_cmd
21418
21419 # convert \$build files to toolchain format.
21420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21421
21422 # A file(cmd) program that detects file types.
21423 FILECMD=$lt_FILECMD
21424
21425 # An object symbol dumper.
21426 OBJDUMP=$lt_OBJDUMP
21427
21428 # Method to check whether dependent libraries are shared objects.
21429 deplibs_check_method=$lt_deplibs_check_method
21430
21431 # Command to use when deplibs_check_method = "file_magic".
21432 file_magic_cmd=$lt_file_magic_cmd
21433
21434 # How to find potential files when deplibs_check_method = "file_magic".
21435 file_magic_glob=$lt_file_magic_glob
21436
21437 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21438 want_nocaseglob=$lt_want_nocaseglob
21439
21440 # DLL creation program.
21441 DLLTOOL=$lt_DLLTOOL
21442
21443 # Command to associate shared and link libraries.
21444 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21445
21446 # The archiver.
21447 AR=$lt_AR
21448
21449 # Flags to create an archive (by configure).
21450 lt_ar_flags=$lt_ar_flags
21451
21452 # Flags to create an archive.
21453 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21454
21455 # How to feed a file listing to the archiver.
21456 archiver_list_spec=$lt_archiver_list_spec
21457
21458 # A symbol stripping program.
21459 STRIP=$lt_STRIP
21460
21461 # Commands used to install an old-style archive.
21462 RANLIB=$lt_RANLIB
21463 old_postinstall_cmds=$lt_old_postinstall_cmds
21464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21465
21466 # Whether to use a lock for old archive extraction.
21467 lock_old_archive_extraction=$lock_old_archive_extraction
21468
21469 # A C compiler.
21470 LTCC=$lt_CC
21471
21472 # LTCC compiler flags.
21473 LTCFLAGS=$lt_CFLAGS
21474
21475 # Take the output of nm and produce a listing of raw symbols and C names.
21476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21477
21478 # Transform the output of nm in a proper C declaration.
21479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21480
21481 # Transform the output of nm into a list of symbols to manually relocate.
21482 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21483
21484 # Transform the output of nm in a C name address pair.
21485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21486
21487 # Transform the output of nm in a C name address pair when lib prefix is needed.
21488 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21489
21490 # The name lister interface.
21491 nm_interface=$lt_lt_cv_nm_interface
21492
21493 # Specify filename containing input files for \$NM.
21494 nm_file_list_spec=$lt_nm_file_list_spec
21495
21496 # The root where to search for dependent libraries,and where our libraries should be installed.
21497 lt_sysroot=$lt_sysroot
21498
21499 # Command to truncate a binary pipe.
21500 lt_truncate_bin=$lt_lt_cv_truncate_bin
21501
21502 # The name of the directory that contains temporary libtool files.
21503 objdir=$objdir
21504
21505 # Used to examine libraries when file_magic_cmd begins with "file".
21506 MAGIC_CMD=$MAGIC_CMD
21507
21508 # Must we lock files when doing compilation?
21509 need_locks=$lt_need_locks
21510
21511 # Manifest tool.
21512 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21513
21514 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21515 DSYMUTIL=$lt_DSYMUTIL
21516
21517 # Tool to change global to local symbols on Mac OS X.
21518 NMEDIT=$lt_NMEDIT
21519
21520 # Tool to manipulate fat objects and archives on Mac OS X.
21521 LIPO=$lt_LIPO
21522
21523 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21524 OTOOL=$lt_OTOOL
21525
21526 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21527 OTOOL64=$lt_OTOOL64
21528
21529 # Old archive suffix (normally "a").
21530 libext=$libext
21531
21532 # Shared library suffix (normally ".so").
21533 shrext_cmds=$lt_shrext_cmds
21534
21535 # The commands to extract the exported symbol list from a shared archive.
21536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21537
21538 # Variables whose values should be saved in libtool wrapper scripts and
21539 # restored at link time.
21540 variables_saved_for_relink=$lt_variables_saved_for_relink
21541
21542 # Do we need the "lib" prefix for modules?
21543 need_lib_prefix=$need_lib_prefix
21544
21545 # Do we need a version for libraries?
21546 need_version=$need_version
21547
21548 # Library versioning type.
21549 version_type=$version_type
21550
21551 # Shared library runtime path variable.
21552 runpath_var=$runpath_var
21553
21554 # Shared library path variable.
21555 shlibpath_var=$shlibpath_var
21556
21557 # Is shlibpath searched before the hard-coded library search path?
21558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21559
21560 # Format of library name prefix.
21561 libname_spec=$lt_libname_spec
21562
21563 # List of archive names. First name is the real one, the rest are links.
21564 # The last name is the one that the linker finds with -lNAME
21565 library_names_spec=$lt_library_names_spec
21566
21567 # The coded name of the library, if different from the real name.
21568 soname_spec=$lt_soname_spec
21569
21570 # Permission mode override for installation of shared libraries.
21571 install_override_mode=$lt_install_override_mode
21572
21573 # Command to use after installation of a shared archive.
21574 postinstall_cmds=$lt_postinstall_cmds
21575
21576 # Command to use after uninstallation of a shared archive.
21577 postuninstall_cmds=$lt_postuninstall_cmds
21578
21579 # Commands used to finish a libtool library installation in a directory.
21580 finish_cmds=$lt_finish_cmds
21581
21582 # As "finish_cmds", except a single script fragment to be evaled but
21583 # not shown.
21584 finish_eval=$lt_finish_eval
21585
21586 # Whether we should hardcode library paths into libraries.
21587 hardcode_into_libs=$hardcode_into_libs
21588
21589 # Compile-time system search path for libraries.
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21591
21592 # Detected run-time system search path for libraries.
21593 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21594
21595 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21596 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21597
21598 # Whether dlopen is supported.
21599 dlopen_support=$enable_dlopen
21600
21601 # Whether dlopen of programs is supported.
21602 dlopen_self=$enable_dlopen_self
21603
21604 # Whether dlopen of statically linked programs is supported.
21605 dlopen_self_static=$enable_dlopen_self_static
21606
21607 # Commands to strip libraries.
21608 old_striplib=$lt_old_striplib
21609 striplib=$lt_striplib
21610
21611
21612 # The linker used to build libraries.
21613 LD=$lt_LD
21614
21615 # How to create reloadable object files.
21616 reload_flag=$lt_reload_flag
21617 reload_cmds=$lt_reload_cmds
21618
21619 # Commands used to build an old-style archive.
21620 old_archive_cmds=$lt_old_archive_cmds
21621
21622 # A language specific compiler.
21623 CC=$lt_compiler
21624
21625 # Is the compiler the GNU compiler?
21626 with_gcc=$GCC
21627
21628 # Compiler flag to turn off builtin functions.
21629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21630
21631 # Additional compiler flags for building library objects.
21632 pic_flag=$lt_lt_prog_compiler_pic
21633
21634 # How to pass a linker flag through the compiler.
21635 wl=$lt_lt_prog_compiler_wl
21636
21637 # Compiler flag to prevent dynamic linking.
21638 link_static_flag=$lt_lt_prog_compiler_static
21639
21640 # Does compiler simultaneously support -c and -o options?
21641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21642
21643 # Whether or not to add -lc for building shared libraries.
21644 build_libtool_need_lc=$archive_cmds_need_lc
21645
21646 # Whether or not to disallow shared libs when runtime libs are static.
21647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21648
21649 # Compiler flag to allow reflexive dlopens.
21650 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21651
21652 # Compiler flag to generate shared objects directly from archives.
21653 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21654
21655 # Whether the compiler copes with passing no objects directly.
21656 compiler_needs_object=$lt_compiler_needs_object
21657
21658 # Create an old-style archive from a shared archive.
21659 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21660
21661 # Create a temporary old-style archive to link instead of a shared archive.
21662 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21663
21664 # Commands used to build a shared archive.
21665 archive_cmds=$lt_archive_cmds
21666 archive_expsym_cmds=$lt_archive_expsym_cmds
21667
21668 # Commands used to build a loadable module if different from building
21669 # a shared archive.
21670 module_cmds=$lt_module_cmds
21671 module_expsym_cmds=$lt_module_expsym_cmds
21672
21673 # Whether we are building with GNU ld or not.
21674 with_gnu_ld=$lt_with_gnu_ld
21675
21676 # Flag that allows shared libraries with undefined symbols to be built.
21677 allow_undefined_flag=$lt_allow_undefined_flag
21678
21679 # Flag that enforces no undefined symbols.
21680 no_undefined_flag=$lt_no_undefined_flag
21681
21682 # Flag to hardcode \$libdir into a binary during linking.
21683 # This must work even if \$libdir does not exist
21684 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21685
21686 # Whether we need a single "-rpath" flag with a separated argument.
21687 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21688
21689 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21690 # DIR into the resulting binary.
21691 hardcode_direct=$hardcode_direct
21692
21693 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21694 # DIR into the resulting binary and the resulting library dependency is
21695 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21696 # library is relocated.
21697 hardcode_direct_absolute=$hardcode_direct_absolute
21698
21699 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21700 # into the resulting binary.
21701 hardcode_minus_L=$hardcode_minus_L
21702
21703 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21704 # into the resulting binary.
21705 hardcode_shlibpath_var=$hardcode_shlibpath_var
21706
21707 # Set to "yes" if building a shared library automatically hardcodes DIR
21708 # into the library and all subsequent libraries and executables linked
21709 # against it.
21710 hardcode_automatic=$hardcode_automatic
21711
21712 # Set to yes if linker adds runtime paths of dependent libraries
21713 # to runtime path list.
21714 inherit_rpath=$inherit_rpath
21715
21716 # Whether libtool must link a program against all its dependency libraries.
21717 link_all_deplibs=$link_all_deplibs
21718
21719 # Set to "yes" if exported symbols are required.
21720 always_export_symbols=$always_export_symbols
21721
21722 # The commands to list exported symbols.
21723 export_symbols_cmds=$lt_export_symbols_cmds
21724
21725 # Symbols that should not be listed in the preloaded symbols.
21726 exclude_expsyms=$lt_exclude_expsyms
21727
21728 # Symbols that must always be exported.
21729 include_expsyms=$lt_include_expsyms
21730
21731 # Commands necessary for linking programs (against libraries) with templates.
21732 prelink_cmds=$lt_prelink_cmds
21733
21734 # Commands necessary for finishing linking programs.
21735 postlink_cmds=$lt_postlink_cmds
21736
21737 # Specify filename containing input files.
21738 file_list_spec=$lt_file_list_spec
21739
21740 # How to hardcode a shared library path into an executable.
21741 hardcode_action=$hardcode_action
21742
21743 # ### END LIBTOOL CONFIG
21744
21745 _LT_EOF
21746
21747 cat <<'_LT_EOF' >> "$cfgfile"
21748
21749 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21750
21751 # func_munge_path_list VARIABLE PATH
21752 # -----------------------------------
21753 # VARIABLE is name of variable containing _space_ separated list of
21754 # directories to be munged by the contents of PATH, which is string
21755 # having a format:
21756 # "DIR[:DIR]:"
21757 # string "DIR[ DIR]" will be prepended to VARIABLE
21758 # ":DIR[:DIR]"
21759 # string "DIR[ DIR]" will be appended to VARIABLE
21760 # "DIRP[:DIRP]::[DIRA:]DIRA"
21761 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21762 # "DIRA[ DIRA]" will be appended to VARIABLE
21763 # "DIR[:DIR]"
21764 # VARIABLE will be replaced by "DIR[ DIR]"
21765 func_munge_path_list ()
21766 {
21767 case x$2 in
21768 x)
21769 ;;
21770 *:)
21771 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21772 ;;
21773 x:*)
21774 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21775 ;;
21776 *::*)
21777 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21778 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21779 ;;
21780 *)
21781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21782 ;;
21783 esac
21784 }
21785
21786
21787 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21788 func_cc_basename ()
21789 {
21790 for cc_temp in $*""; do
21791 case $cc_temp in
21792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21794 \-*) ;;
21795 *) break;;
21796 esac
21797 done
21798 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21799 }
21800
21801
21802 # ### END FUNCTIONS SHARED WITH CONFIGURE
21803
21804 _LT_EOF
21805
21806 case $host_os in
21807 aix3*)
21808 cat <<\_LT_EOF >> "$cfgfile"
21809 # AIX sometimes has problems with the GCC collect2 program. For some
21810 # reason, if we set the COLLECT_NAMES environment variable, the problems
21811 # vanish in a puff of smoke.
21812 if test set != "${COLLECT_NAMES+set}"; then
21813 COLLECT_NAMES=
21814 export COLLECT_NAMES
21815 fi
21816 _LT_EOF
21817 ;;
21818 esac
21819
21820
21821
21822 ltmain=$ac_aux_dir/ltmain.sh
21823
21824
21825 # We use sed instead of cat because bash on DJGPP gets confused if
21826 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21827 # text mode, it properly converts lines to CR/LF. This bash problem
21828 # is reportedly fixed, but why not run on old versions too?
21829 $SED '$q' "$ltmain" >> "$cfgfile" \
21830 || (rm -f "$cfgfile"; exit 1)
21831
21832 mv -f "$cfgfile" "$ofile" ||
21833 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21834 chmod +x "$ofile"
21835
21836 ;;
21837
21838 esac
21839 done # for ac_tag
21840
21841
21842 as_fn_exit 0
21843 _ACEOF
21844 ac_clean_files=$ac_clean_files_save
21845
21846 test $ac_write_fail = 0 ||
21847 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21848
21849
21850 # configure is writing to config.log, and then calls config.status.
21851 # config.status does its own redirection, appending to config.log.
21852 # Unfortunately, on DOS this fails, as config.log is still kept open
21853 # by configure, so config.status won't be able to write to it; its
21854 # output is simply discarded. So we exec the FD to /dev/null,
21855 # effectively closing config.log, so it can be properly (re)opened and
21856 # appended to by config.status. When coming back to configure, we
21857 # need to make the FD available again.
21858 if test "$no_create" != yes; then
21859 ac_cs_success=:
21860 ac_config_status_args=
21861 test "$silent" = yes &&
21862 ac_config_status_args="$ac_config_status_args --quiet"
21863 exec 5>/dev/null
21864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21865 exec 5>>config.log
21866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21867 # would make configure fail if this is the last instruction.
21868 $ac_cs_success || as_fn_exit 1
21869 fi
21870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21872 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21873 fi
21874
21875