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 flac 1.5.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='flac'
623 PACKAGE_TARNAME='flac'
624 PACKAGE_VERSION='1.5.0'
625 PACKAGE_STRING='flac 1.5.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://www.xiph.org/flac/'
628
629 ac_unique_file="src/flac/main.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 FLAC_STATIC_LIBS
667 ASSOC_MATH_AVAILABLE_FALSE
668 ASSOC_MATH_AVAILABLE_TRUE
669 GIT_COMMIT_VERSION_HASH
670 GIT_FOUND
671 GCC_MINOR_VERSION
672 GCC_MAJOR_VERSION
673 GCC_VERSION
674 LIB_CLOCK_GETTIME
675 FLaC__HAS_PREBUILT_MANPAGES_FALSE
676 FLaC__HAS_PREBUILT_MANPAGES_TRUE
677 FLaC__HAS_PANDOC_FALSE
678 FLaC__HAS_PANDOC_TRUE
679 PANDOC
680 LTLIBICONV
681 LIBICONV
682 PTHREAD_CFLAGS
683 PTHREAD_LIBS
684 PTHREAD_CXX
685 PTHREAD_CC
686 ax_pthread_config
687 CPP
688 EXAMPLES_FALSE
689 EXAMPLES_TRUE
690 FLaC__WITH_PROGRAMS_FALSE
691 FLaC__WITH_PROGRAMS_TRUE
692 OGG_PACKAGE
693 FLAC__HAS_OGG
694 FLaC__HAS_OGG_FALSE
695 FLaC__HAS_OGG_TRUE
696 OGG_LIBS
697 OGG_CFLAGS
698 LIB_FUZZING_ENGINE
699 USE_OSSFUZZERS_FALSE
700 USE_OSSFUZZERS_TRUE
701 FLaC__WITH_CPPLIBS_FALSE
702 FLaC__WITH_CPPLIBS_TRUE
703 FLaC__HAS_PREBUILT_DOXYGEN_FALSE
704 FLaC__HAS_PREBUILT_DOXYGEN_TRUE
705 FLaC__HAS_DOXYGEN_FALSE
706 FLaC__HAS_DOXYGEN_TRUE
707 DOXYGEN
708 FLAC__TEST_WITH_VALGRIND
709 ENABLE_64_BIT_WORDS
710 FLAC__TEST_LEVEL
711 FLaC__USE_AVX_FALSE
712 FLaC__USE_AVX_TRUE
713 DEBUG_FALSE
714 DEBUG_TRUE
715 FLaC__SYS_LINUX_FALSE
716 FLaC__SYS_LINUX_TRUE
717 FLaC__SYS_DARWIN_FALSE
718 FLaC__SYS_DARWIN_TRUE
719 HAVE_WINDRES_FALSE
720 HAVE_WINDRES_TRUE
721 OS_IS_WINDOWS_FALSE
722 OS_IS_WINDOWS_TRUE
723 RC
724 OBJ_FORMAT
725 FLAC__CPU_ARM64_FALSE
726 FLAC__CPU_ARM64_TRUE
727 FLaC__CPU_IA32_FALSE
728 FLaC__CPU_IA32_TRUE
729 FLAC__CPU_X86_64_FALSE
730 FLAC__CPU_X86_64_TRUE
731 FLaC__NO_ASM_FALSE
732 FLaC__NO_ASM_TRUE
733 CXXCPP
734 am__fastdepCXX_FALSE
735 am__fastdepCXX_TRUE
736 CXXDEPMODE
737 ac_ct_CXX
738 CXXFLAGS
739 CXX
740 am__fastdepCCAS_FALSE
741 am__fastdepCCAS_TRUE
742 CCASDEPMODE
743 CCASFLAGS
744 CCAS
745 LT_SYS_LIBRARY_PATH
746 OTOOL64
747 OTOOL
748 LIPO
749 NMEDIT
750 DSYMUTIL
751 MANIFEST_TOOL
752 RANLIB
753 FILECMD
754 LN_S
755 NM
756 ac_ct_DUMPBIN
757 DUMPBIN
758 LD
759 FGREP
760 EGREP
761 GREP
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 LIBTOOL
772 OBJDUMP
773 DLLTOOL
774 AS
775 ac_ct_AR
776 AR
777 am__fastdepCC_FALSE
778 am__fastdepCC_TRUE
779 CCDEPMODE
780 am__nodep
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__include
785 DEPDIR
786 OBJEXT
787 EXEEXT
788 ac_ct_CC
789 CPPFLAGS
790 LDFLAGS
791 CFLAGS
792 CC
793 AM_BACKSLASH
794 AM_DEFAULT_VERBOSITY
795 AM_DEFAULT_V
796 AM_V
797 CSCOPE
798 ETAGS
799 CTAGS
800 am__untar
801 am__tar
802 AMTAR
803 am__leading_dot
804 SET_MAKE
805 AWK
806 mkdir_p
807 MKDIR_P
808 INSTALL_STRIP_PROGRAM
809 STRIP
810 install_sh
811 MAKEINFO
812 AUTOHEADER
813 AUTOMAKE
814 AUTOCONF
815 ACLOCAL
816 VERSION
817 PACKAGE
818 CYGPATH_W
819 am__isrc
820 INSTALL_DATA
821 INSTALL_SCRIPT
822 INSTALL_PROGRAM
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 runstatedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL
862 am__quote'
863 ac_subst_files=''
864 ac_user_opts='
865 enable_option_checking
866 enable_silent_rules
867 enable_debug
868 enable_dependency_tracking
869 enable_static
870 with_pic
871 enable_shared
872 enable_fast_install
873 with_aix_soname
874 with_gnu_ld
875 with_sysroot
876 enable_libtool_lock
877 enable_largefile
878 enable_asm_optimizations
879 enable_avx
880 enable_thorough_tests
881 enable_exhaustive_tests
882 enable_werror
883 enable_stack_smash_protection
884 enable_fortify_source
885 enable_64_bit_words
886 enable_valgrind_testing
887 enable_doxygen_docs
888 enable_cpplibs
889 enable_oss_fuzzers
890 enable_ogg
891 with_ogg
892 with_ogg_libraries
893 with_ogg_includes
894 enable_oggtest
895 enable_programs
896 enable_examples
897 enable_version_from_git
898 enable_multithreading
899 enable_rpath
900 with_libiconv_prefix
901 '
902 ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 LT_SYS_LIBRARY_PATH
911 CCAS
912 CCASFLAGS
913 CXX
914 CXXFLAGS
915 CCC
916 CXXCPP
917 CPP'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 runstatedir='${localstatedir}/run'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
968
969 ac_prev=
970 ac_dashdash=
971 for ac_option
972 do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
978 fi
979
980 case $ac_option in
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
989
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
994
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1009
1010 -datadir | --datadir | --datadi | --datad)
1011 ac_prev=datadir ;;
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1014
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
1022 -disable-* | --disable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1047
1048 -enable-* | --enable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1083
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1088
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1118
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
1125 | --localstate | --localstat | --localsta | --localst | --locals)
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129 localstatedir=$ac_optarg ;;
1130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1135
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1156
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1192
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
1207 -runstatedir | --runstatedir | --runstatedi | --runstated \
1208 | --runstate | --runstat | --runsta | --runst | --runs \
1209 | --run | --ru | --r)
1210 ac_prev=runstatedir ;;
1211 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1212 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1213 | --run=* | --ru=* | --r=*)
1214 runstatedir=$ac_optarg ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: \`$ac_useropt'"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
1276
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: \`$ac_useropt'"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1313 ;;
1314
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321 esac
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331 ;;
1332
1333 esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error $? "missing argument to $ac_option"
1339 fi
1340
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir runstatedir
1354 do
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 elif test "x$build_alias" != "x$host_alias"; then
1382 cross_compiling=yes
1383 fi
1384 fi
1385
1386 ac_tool_prefix=
1387 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389 test "$silent" = yes && exec 6>/dev/null
1390
1391
1392 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393 ac_ls_di=`ls -di .` &&
1394 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395 as_fn_error $? "working directory cannot be determined"
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397 as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409 printf "%s\n" X"$as_myself" |
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
1427 srcdir=$ac_confdir
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 srcdir=..
1430 fi
1431 else
1432 ac_srcdir_defaulted=no
1433 fi
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures flac 1.5.0 to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking ...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/flac]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1520 _ACEOF
1521
1522 cat <<\_ACEOF
1523
1524 Program names:
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1528
1529 System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 _ACEOF
1533 fi
1534
1535 if test -n "$ac_init_help"; then
1536 case $ac_init_help in
1537 short | recursive ) echo "Configuration of flac 1.5.0:";;
1538 esac
1539 cat <<\_ACEOF
1540
1541 Optional Features:
1542 --disable-option-checking ignore unrecognized --enable/--with options
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1545 --enable-silent-rules less verbose build output (undo: "make V=1")
1546 --disable-silent-rules verbose build output (undo: "make V=0")
1547 --enable-debug=[yes/info/profile/no]
1548 compile with debugging
1549 --enable-dependency-tracking
1550 do not reject slow dependency extractors
1551 --disable-dependency-tracking
1552 speeds up one-time build
1553 --enable-static[=PKGS] build static libraries [default=no]
1554 --enable-shared[=PKGS] build shared libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --disable-largefile omit support for large files
1559 --disable-asm-optimizations
1560 Do not use any CPU specific optimization routines
1561 --disable-avx Disable AVX, AVX2 optimizations. There is runtime
1562 detection of CPU features, so disabling is only
1563 necessary when a compiler does not know about them
1564 --disable-thorough-tests
1565 Disable thorough (long) testing, do only basic tests
1566 --enable-exhaustive-tests
1567 Enable exhaustive testing (VERY long)
1568 --enable-werror Enable -Werror in all Makefiles
1569 --disable-stack-smash-protection
1570 Disable GNU GCC stack smash protection
1571 --disable-fortify-source
1572 Disable _FORTIFY_SOURCE buffer overflow protection
1573 --disable-64-bit-words Set FLAC__BYTES_PER_WORD to 4 (8 is the default)
1574 --enable-valgrind-testing
1575 Run all tests inside Valgrind
1576 --disable-doxygen-docs Disable API documentation building via Doxygen
1577 --disable-cpplibs Do not build libFLAC++
1578 --enable-oss-fuzzers Whether to generate the fuzzers for OSS-Fuzz (Clang
1579 only)
1580 --disable-ogg Disable ogg support (default: test for libogg)
1581 --disable-oggtest Do not try to compile and run a test Ogg program
1582 --disable-programs Do not build and install flac and metaflac
1583 --disable-examples Do not build and install examples
1584 --disable-version-from-git
1585 Do not use git tag, commit hash and commit date for
1586 version number
1587 --disable-multithreading
1588 Disable multithreading in libFLAC
1589 --disable-rpath do not hardcode runtime library paths
1590
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1595 both]
1596 --with-aix-soname=aix|svr4|both
1597 shared library versioning (aka "SONAME") variant to
1598 provide on AIX, [default=aix].
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1601 compiler's sysroot if not specified).
1602 --with-ogg=PFX Prefix where libogg is installed (optional)
1603 --with-ogg-libraries=DIR
1604 Directory where libogg library is installed
1605 (optional)
1606 --with-ogg-includes=DIR Directory where libogg header files are installed
1607 (optional)
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1610 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1611
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 LIBS libraries to pass to the linker, e.g. -l<library>
1618 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1619 you have headers in a nonstandard directory <include dir>
1620 LT_SYS_LIBRARY_PATH
1621 User-defined run-time library search path.
1622 CCAS assembler compiler command (defaults to CC)
1623 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1624 CXX C++ compiler command
1625 CXXFLAGS C++ compiler flags
1626 CXXCPP C++ preprocessor
1627 CPP C preprocessor
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to <[email protected]>.
1633 flac home page: <https://www.xiph.org/flac/>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for configure.gnu first; this name is used for a wrapper for
1680 # Metaconfig's "Configure" on case-insensitive file systems.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 flac configure 1.5.0
1698 generated by GNU Autoconf 2.71
1699
1700 Copyright (C) 2021 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest.beam
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 printf "%s\n" "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext
1737 then :
1738 ac_retval=0
1739 else $as_nop
1740 printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 printf %s "checking for $2... " >&6; }
1759 if eval test \${$3+y}
1760 then :
1761 printf %s "(cached) " >&6
1762 else $as_nop
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"
1769 then :
1770 eval "$3=yes"
1771 else $as_nop
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 printf "%s\n" "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }
1812 then :
1813 ac_retval=0
1814 else $as_nop
1815 printf "%s\n" "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819 fi
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_link
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 printf %s "checking for $2... " >&6; }
1838 if eval test \${$3+y}
1839 then :
1840 printf %s "(cached) " >&6
1841 else $as_nop
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below. */
1850
1851 #include <limits.h>
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main (void)
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"
1877 then :
1878 eval "$3=yes"
1879 else $as_nop
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 printf "%s\n" "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest.beam
1899 if { { ac_try="$ac_compile"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 printf "%s\n" "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext
1918 then :
1919 ac_retval=0
1920 else $as_nop
1921 printf "%s\n" "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_cxx_try_compile
1930
1931 # ac_fn_cxx_try_cpp LINENO
1932 # ------------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_cpp ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 printf "%s\n" "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 }
1956 then :
1957 ac_retval=0
1958 else $as_nop
1959 printf "%s\n" "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963 fi
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1966
1967 } # ac_fn_cxx_try_cpp
1968
1969 # ac_fn_cxx_try_link LINENO
1970 # -------------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_cxx_try_link ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1976 if { { ac_try="$ac_link"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 printf "%s\n" "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>conftest.err
1984 ac_status=$?
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1989 fi
1990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_cxx_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest$ac_exeext && {
1995 test "$cross_compiling" = yes ||
1996 test -x conftest$ac_exeext
1997 }
1998 then :
1999 ac_retval=0
2000 else $as_nop
2001 printf "%s\n" "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_retval=1
2005 fi
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014 } # ac_fn_cxx_try_link
2015
2016 # ac_fn_c_try_run LINENO
2017 # ----------------------
2018 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2019 # executables *can* be run.
2020 ac_fn_c_try_run ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 printf "%s\n" "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>&5
2031 ac_status=$?
2032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2034 { { case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 printf "%s\n" "$ac_try_echo"; } >&5
2040 (eval "$ac_try") 2>&5
2041 ac_status=$?
2042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; }; }
2044 then :
2045 ac_retval=0
2046 else $as_nop
2047 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2048 printf "%s\n" "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=$ac_status
2052 fi
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2056
2057 } # ac_fn_c_try_run
2058
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2063 # computed
2064 ac_fn_c_compute_int ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if test "$cross_compiling" = yes; then
2068 # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main (void)
2074 {
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2076 test_array [0] = 0;
2077 return test_array [0];
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"
2084 then :
2085 ac_lo=0 ac_mid=0
2086 while :; do
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main (void)
2092 {
2093 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 test_array [0] = 0;
2095 return test_array [0];
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"
2102 then :
2103 ac_hi=$ac_mid; break
2104 else $as_nop
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2107 ac_lo= ac_hi=
2108 break
2109 fi
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2113 done
2114 else $as_nop
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main (void)
2120 {
2121 static int test_array [1 - 2 * !(($2) < 0)];
2122 test_array [0] = 0;
2123 return test_array [0];
2124
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"
2130 then :
2131 ac_hi=-1 ac_mid=-1
2132 while :; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main (void)
2138 {
2139 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"
2148 then :
2149 ac_lo=$ac_mid; break
2150 else $as_nop
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2155 fi
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 done
2160 else $as_nop
2161 ac_lo= ac_hi=
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2171 $4
2172 int
2173 main (void)
2174 {
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0;
2177 return test_array [0];
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"
2184 then :
2185 ac_hi=$ac_mid
2186 else $as_nop
2187 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2190 done
2191 case $ac_lo in #((
2192 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193 '') ac_retval=1 ;;
2194 esac
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 static long int longval (void) { return $2; }
2200 static unsigned long int ulongval (void) { return $2; }
2201 #include <stdio.h>
2202 #include <stdlib.h>
2203 int
2204 main (void)
2205 {
2206
2207 FILE *f = fopen ("conftest.val", "w");
2208 if (! f)
2209 return 1;
2210 if (($2) < 0)
2211 {
2212 long int i = longval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%ld", i);
2216 }
2217 else
2218 {
2219 unsigned long int i = ulongval ();
2220 if (i != ($2))
2221 return 1;
2222 fprintf (f, "%lu", i);
2223 }
2224 /* Do not output a trailing newline, as this causes \r\n confusion
2225 on some platforms. */
2226 return ferror (f) || fclose (f) != 0;
2227
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_run "$LINENO"
2233 then :
2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2235 else $as_nop
2236 ac_retval=1
2237 fi
2238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2239 conftest.$ac_objext conftest.beam conftest.$ac_ext
2240 rm -f conftest.val
2241
2242 fi
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status $ac_retval
2245
2246 } # ac_fn_c_compute_int
2247
2248 # ac_fn_c_try_cpp LINENO
2249 # ----------------------
2250 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2251 ac_fn_c_try_cpp ()
2252 {
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 if { { ac_try="$ac_cpp conftest.$ac_ext"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 printf "%s\n" "$ac_try_echo"; } >&5
2261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 ac_status=$?
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2267 fi
2268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } > conftest.i && {
2270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2271 test ! -s conftest.err
2272 }
2273 then :
2274 ac_retval=0
2275 else $as_nop
2276 printf "%s\n" "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280 fi
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 as_fn_set_status $ac_retval
2283
2284 } # ac_fn_c_try_cpp
2285 ac_configure_args_raw=
2286 for ac_arg
2287 do
2288 case $ac_arg in
2289 *\'*)
2290 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 esac
2292 as_fn_append ac_configure_args_raw " '$ac_arg'"
2293 done
2294
2295 case $ac_configure_args_raw in
2296 *$as_nl*)
2297 ac_safe_unquote= ;;
2298 *)
2299 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2300 ac_unsafe_a="$ac_unsafe_z#~"
2301 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2302 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2303 esac
2304
2305 cat >config.log <<_ACEOF
2306 This file contains any messages produced by compilers while
2307 running configure, to aid debugging if configure makes a mistake.
2308
2309 It was created by flac $as_me 1.5.0, which was
2310 generated by GNU Autoconf 2.71. Invocation command line was
2311
2312 $ $0$ac_configure_args_raw
2313
2314 _ACEOF
2315 exec 5>>config.log
2316 {
2317 cat <<_ASUNAME
2318 ## --------- ##
2319 ## Platform. ##
2320 ## --------- ##
2321
2322 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327
2328 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2330
2331 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2334 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2335 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338
2339 _ASUNAME
2340
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 case $as_dir in #(((
2346 '') as_dir=./ ;;
2347 */) ;;
2348 *) as_dir=$as_dir/ ;;
2349 esac
2350 printf "%s\n" "PATH: $as_dir"
2351 done
2352 IFS=$as_save_IFS
2353
2354 } >&5
2355
2356 cat >&5 <<_ACEOF
2357
2358
2359 ## ----------- ##
2360 ## Core tests. ##
2361 ## ----------- ##
2362
2363 _ACEOF
2364
2365
2366 # Keep a trace of the command line.
2367 # Strip out --no-create and --no-recursion so they do not pile up.
2368 # Strip out --silent because we don't want to record it for future runs.
2369 # Also quote any args containing shell meta-characters.
2370 # Make two passes to allow for proper duplicate-argument suppression.
2371 ac_configure_args=
2372 ac_configure_args0=
2373 ac_configure_args1=
2374 ac_must_keep_next=false
2375 for ac_pass in 1 2
2376 do
2377 for ac_arg
2378 do
2379 case $ac_arg in
2380 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382 | -silent | --silent | --silen | --sile | --sil)
2383 continue ;;
2384 *\'*)
2385 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 esac
2387 case $ac_pass in
2388 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 2)
2390 as_fn_append ac_configure_args1 " '$ac_arg'"
2391 if test $ac_must_keep_next = true; then
2392 ac_must_keep_next=false # Got value, back to normal.
2393 else
2394 case $ac_arg in
2395 *=* | --config-cache | -C | -disable-* | --disable-* \
2396 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398 | -with-* | --with-* | -without-* | --without-* | --x)
2399 case "$ac_configure_args0 " in
2400 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 esac
2402 ;;
2403 -* ) ac_must_keep_next=true ;;
2404 esac
2405 fi
2406 as_fn_append ac_configure_args " '$ac_arg'"
2407 ;;
2408 esac
2409 done
2410 done
2411 { ac_configure_args0=; unset ac_configure_args0;}
2412 { ac_configure_args1=; unset ac_configure_args1;}
2413
2414 # When interrupted or exit'd, cleanup temporary files, and complete
2415 # config.log. We remove comments because anyway the quotes in there
2416 # would cause problems or look ugly.
2417 # WARNING: Use '\'' to represent an apostrophe within the trap.
2418 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419 trap 'exit_status=$?
2420 # Sanitize IFS.
2421 IFS=" "" $as_nl"
2422 # Save into config.log some information that might help in debugging.
2423 {
2424 echo
2425
2426 printf "%s\n" "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2431 (
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2454 *)
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 ;;
2457 esac |
2458 sort
2459 )
2460 echo
2461
2462 printf "%s\n" "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2465 echo
2466 for ac_var in $ac_subst_vars
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 printf "%s\n" "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475
2476 if test -n "$ac_subst_files"; then
2477 printf "%s\n" "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2480 echo
2481 for ac_var in $ac_subst_files
2482 do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 printf "%s\n" "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2490 fi
2491
2492 if test -s confdefs.h; then
2493 printf "%s\n" "## ----------- ##
2494 ## confdefs.h. ##
2495 ## ----------- ##"
2496 echo
2497 cat confdefs.h
2498 echo
2499 fi
2500 test "$ac_signal" != 0 &&
2501 printf "%s\n" "$as_me: caught signal $ac_signal"
2502 printf "%s\n" "$as_me: exit $exit_status"
2503 } >&5
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 exit $exit_status
2507 ' 0
2508 for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 done
2511 ac_signal=0
2512
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2515
2516 printf "%s\n" "/* confdefs.h */" > confdefs.h
2517
2518 # Predefined preprocessor variables.
2519
2520 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2521
2522 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2523
2524 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2525
2526 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2527
2528 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2529
2530 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2531
2532
2533 # Let the site file select an alternate cache file if it wants to.
2534 # Prefer an explicitly selected file to automatically selected ones.
2535 if test -n "$CONFIG_SITE"; then
2536 ac_site_files="$CONFIG_SITE"
2537 elif test "x$prefix" != xNONE; then
2538 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2539 else
2540 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2541 fi
2542
2543 for ac_site_file in $ac_site_files
2544 do
2545 case $ac_site_file in #(
2546 */*) :
2547 ;; #(
2548 *) :
2549 ac_site_file=./$ac_site_file ;;
2550 esac
2551 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561 done
2562
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574 else
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2578 fi
2579
2580 # Test code for whether the C compiler supports C89 (global declarations)
2581 ac_c_conftest_c89_globals='
2582 /* Does the compiler advertise C89 conformance?
2583 Do not test the value of __STDC__, because some compilers set it to 0
2584 while being otherwise adequately conformant. */
2585 #if !defined __STDC__
2586 # error "Compiler does not advertise C89 conformance"
2587 #endif
2588
2589 #include <stddef.h>
2590 #include <stdarg.h>
2591 struct stat;
2592 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2593 struct buf { int x; };
2594 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2595 static char *e (p, i)
2596 char **p;
2597 int i;
2598 {
2599 return p[i];
2600 }
2601 static char *f (char * (*g) (char **, int), char **p, ...)
2602 {
2603 char *s;
2604 va_list v;
2605 va_start (v,p);
2606 s = g (p, va_arg (v,int));
2607 va_end (v);
2608 return s;
2609 }
2610
2611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2612 function prototypes and stuff, but not \xHH hex character constants.
2613 These do not provoke an error unfortunately, instead are silently treated
2614 as an "x". The following induces an error, until -std is added to get
2615 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2616 array size at least. It is necessary to write \x00 == 0 to get something
2617 that is true only with -std. */
2618 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2619
2620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2621 inside strings and character constants. */
2622 #define FOO(x) '\''x'\''
2623 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2624
2625 int test (int i, double x);
2626 struct s1 {int (*f) (int a);};
2627 struct s2 {int (*f) (double a);};
2628 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2629 int, int);'
2630
2631 # Test code for whether the C compiler supports C89 (body of main).
2632 ac_c_conftest_c89_main='
2633 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2634 '
2635
2636 # Test code for whether the C compiler supports C99 (global declarations)
2637 ac_c_conftest_c99_globals='
2638 // Does the compiler advertise C99 conformance?
2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2640 # error "Compiler does not advertise C99 conformance"
2641 #endif
2642
2643 #include <stdbool.h>
2644 extern int puts (const char *);
2645 extern int printf (const char *, ...);
2646 extern int dprintf (int, const char *, ...);
2647 extern void *malloc (size_t);
2648
2649 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2650 // dprintf is used instead of fprintf to avoid needing to declare
2651 // FILE and stderr.
2652 #define debug(...) dprintf (2, __VA_ARGS__)
2653 #define showlist(...) puts (#__VA_ARGS__)
2654 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2655 static void
2656 test_varargs_macros (void)
2657 {
2658 int x = 1234;
2659 int y = 5678;
2660 debug ("Flag");
2661 debug ("X = %d\n", x);
2662 showlist (The first, second, and third items.);
2663 report (x>y, "x is %d but y is %d", x, y);
2664 }
2665
2666 // Check long long types.
2667 #define BIG64 18446744073709551615ull
2668 #define BIG32 4294967295ul
2669 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2670 #if !BIG_OK
2671 #error "your preprocessor is broken"
2672 #endif
2673 #if BIG_OK
2674 #else
2675 #error "your preprocessor is broken"
2676 #endif
2677 static long long int bignum = -9223372036854775807LL;
2678 static unsigned long long int ubignum = BIG64;
2679
2680 struct incomplete_array
2681 {
2682 int datasize;
2683 double data[];
2684 };
2685
2686 struct named_init {
2687 int number;
2688 const wchar_t *name;
2689 double average;
2690 };
2691
2692 typedef const char *ccp;
2693
2694 static inline int
2695 test_restrict (ccp restrict text)
2696 {
2697 // See if C++-style comments work.
2698 // Iterate through items via the restricted pointer.
2699 // Also check for declarations in for loops.
2700 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2701 continue;
2702 return 0;
2703 }
2704
2705 // Check varargs and va_copy.
2706 static bool
2707 test_varargs (const char *format, ...)
2708 {
2709 va_list args;
2710 va_start (args, format);
2711 va_list args_copy;
2712 va_copy (args_copy, args);
2713
2714 const char *str = "";
2715 int number = 0;
2716 float fnumber = 0;
2717
2718 while (*format)
2719 {
2720 switch (*format++)
2721 {
2722 case '\''s'\'': // string
2723 str = va_arg (args_copy, const char *);
2724 break;
2725 case '\''d'\'': // int
2726 number = va_arg (args_copy, int);
2727 break;
2728 case '\''f'\'': // float
2729 fnumber = va_arg (args_copy, double);
2730 break;
2731 default:
2732 break;
2733 }
2734 }
2735 va_end (args_copy);
2736 va_end (args);
2737
2738 return *str && number && fnumber;
2739 }
2740 '
2741
2742 # Test code for whether the C compiler supports C99 (body of main).
2743 ac_c_conftest_c99_main='
2744 // Check bool.
2745 _Bool success = false;
2746 success |= (argc != 0);
2747
2748 // Check restrict.
2749 if (test_restrict ("String literal") == 0)
2750 success = true;
2751 char *restrict newvar = "Another string";
2752
2753 // Check varargs.
2754 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2755 test_varargs_macros ();
2756
2757 // Check flexible array members.
2758 struct incomplete_array *ia =
2759 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2760 ia->datasize = 10;
2761 for (int i = 0; i < ia->datasize; ++i)
2762 ia->data[i] = i * 1.234;
2763
2764 // Check named initializers.
2765 struct named_init ni = {
2766 .number = 34,
2767 .name = L"Test wide string",
2768 .average = 543.34343,
2769 };
2770
2771 ni.number = 58;
2772
2773 int dynamic_array[ni.number];
2774 dynamic_array[0] = argv[0][0];
2775 dynamic_array[ni.number - 1] = 543;
2776
2777 // work around unused variable warnings
2778 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2779 || dynamic_array[ni.number - 1] != 543);
2780 '
2781
2782 # Test code for whether the C compiler supports C11 (global declarations)
2783 ac_c_conftest_c11_globals='
2784 // Does the compiler advertise C11 conformance?
2785 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2786 # error "Compiler does not advertise C11 conformance"
2787 #endif
2788
2789 // Check _Alignas.
2790 char _Alignas (double) aligned_as_double;
2791 char _Alignas (0) no_special_alignment;
2792 extern char aligned_as_int;
2793 char _Alignas (0) _Alignas (int) aligned_as_int;
2794
2795 // Check _Alignof.
2796 enum
2797 {
2798 int_alignment = _Alignof (int),
2799 int_array_alignment = _Alignof (int[100]),
2800 char_alignment = _Alignof (char)
2801 };
2802 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2803
2804 // Check _Noreturn.
2805 int _Noreturn does_not_return (void) { for (;;) continue; }
2806
2807 // Check _Static_assert.
2808 struct test_static_assert
2809 {
2810 int x;
2811 _Static_assert (sizeof (int) <= sizeof (long int),
2812 "_Static_assert does not work in struct");
2813 long int y;
2814 };
2815
2816 // Check UTF-8 literals.
2817 #define u8 syntax error!
2818 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2819
2820 // Check duplicate typedefs.
2821 typedef long *long_ptr;
2822 typedef long int *long_ptr;
2823 typedef long_ptr long_ptr;
2824
2825 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2826 struct anonymous
2827 {
2828 union {
2829 struct { int i; int j; };
2830 struct { int k; long int l; } w;
2831 };
2832 int m;
2833 } v1;
2834 '
2835
2836 # Test code for whether the C compiler supports C11 (body of main).
2837 ac_c_conftest_c11_main='
2838 _Static_assert ((offsetof (struct anonymous, i)
2839 == offsetof (struct anonymous, w.k)),
2840 "Anonymous union alignment botch");
2841 v1.i = 2;
2842 v1.w.k = 5;
2843 ok |= v1.i != 5;
2844 '
2845
2846 # Test code for whether the C compiler supports C11 (complete).
2847 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2848 ${ac_c_conftest_c99_globals}
2849 ${ac_c_conftest_c11_globals}
2850
2851 int
2852 main (int argc, char **argv)
2853 {
2854 int ok = 0;
2855 ${ac_c_conftest_c89_main}
2856 ${ac_c_conftest_c99_main}
2857 ${ac_c_conftest_c11_main}
2858 return ok;
2859 }
2860 "
2861
2862 # Test code for whether the C compiler supports C99 (complete).
2863 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2864 ${ac_c_conftest_c99_globals}
2865
2866 int
2867 main (int argc, char **argv)
2868 {
2869 int ok = 0;
2870 ${ac_c_conftest_c89_main}
2871 ${ac_c_conftest_c99_main}
2872 return ok;
2873 }
2874 "
2875
2876 # Test code for whether the C compiler supports C89 (complete).
2877 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2878
2879 int
2880 main (int argc, char **argv)
2881 {
2882 int ok = 0;
2883 ${ac_c_conftest_c89_main}
2884 return ok;
2885 }
2886 "
2887
2888 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2889 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2890 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2891 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2892 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2893 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2894 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2895 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2896 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2897 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2898 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2899 # Test code for whether the C++ compiler supports C++98 (global declarations)
2900 ac_cxx_conftest_cxx98_globals='
2901 // Does the compiler advertise C++98 conformance?
2902 #if !defined __cplusplus || __cplusplus < 199711L
2903 # error "Compiler does not advertise C++98 conformance"
2904 #endif
2905
2906 // These inclusions are to reject old compilers that
2907 // lack the unsuffixed header files.
2908 #include <cstdlib>
2909 #include <exception>
2910
2911 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2912 extern void assert (int);
2913 namespace std {
2914 extern int strcmp (const char *, const char *);
2915 }
2916
2917 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2918 using std::exception;
2919 using std::strcmp;
2920
2921 namespace {
2922
2923 void test_exception_syntax()
2924 {
2925 try {
2926 throw "test";
2927 } catch (const char *s) {
2928 // Extra parentheses suppress a warning when building autoconf itself,
2929 // due to lint rules shared with more typical C programs.
2930 assert (!(strcmp) (s, "test"));
2931 }
2932 }
2933
2934 template <typename T> struct test_template
2935 {
2936 T const val;
2937 explicit test_template(T t) : val(t) {}
2938 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2939 };
2940
2941 } // anonymous namespace
2942 '
2943
2944 # Test code for whether the C++ compiler supports C++98 (body of main)
2945 ac_cxx_conftest_cxx98_main='
2946 assert (argc);
2947 assert (! argv[0]);
2948 {
2949 test_exception_syntax ();
2950 test_template<double> tt (2.0);
2951 assert (tt.add (4) == 6.0);
2952 assert (true && !false);
2953 }
2954 '
2955
2956 # Test code for whether the C++ compiler supports C++11 (global declarations)
2957 ac_cxx_conftest_cxx11_globals='
2958 // Does the compiler advertise C++ 2011 conformance?
2959 #if !defined __cplusplus || __cplusplus < 201103L
2960 # error "Compiler does not advertise C++11 conformance"
2961 #endif
2962
2963 namespace cxx11test
2964 {
2965 constexpr int get_val() { return 20; }
2966
2967 struct testinit
2968 {
2969 int i;
2970 double d;
2971 };
2972
2973 class delegate
2974 {
2975 public:
2976 delegate(int n) : n(n) {}
2977 delegate(): delegate(2354) {}
2978
2979 virtual int getval() { return this->n; };
2980 protected:
2981 int n;
2982 };
2983
2984 class overridden : public delegate
2985 {
2986 public:
2987 overridden(int n): delegate(n) {}
2988 virtual int getval() override final { return this->n * 2; }
2989 };
2990
2991 class nocopy
2992 {
2993 public:
2994 nocopy(int i): i(i) {}
2995 nocopy() = default;
2996 nocopy(const nocopy&) = delete;
2997 nocopy & operator=(const nocopy&) = delete;
2998 private:
2999 int i;
3000 };
3001
3002 // for testing lambda expressions
3003 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3004 {
3005 return f(v);
3006 }
3007
3008 // for testing variadic templates and trailing return types
3009 template <typename V> auto sum(V first) -> V
3010 {
3011 return first;
3012 }
3013 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3014 {
3015 return first + sum(rest...);
3016 }
3017 }
3018 '
3019
3020 # Test code for whether the C++ compiler supports C++11 (body of main)
3021 ac_cxx_conftest_cxx11_main='
3022 {
3023 // Test auto and decltype
3024 auto a1 = 6538;
3025 auto a2 = 48573953.4;
3026 auto a3 = "String literal";
3027
3028 int total = 0;
3029 for (auto i = a3; *i; ++i) { total += *i; }
3030
3031 decltype(a2) a4 = 34895.034;
3032 }
3033 {
3034 // Test constexpr
3035 short sa[cxx11test::get_val()] = { 0 };
3036 }
3037 {
3038 // Test initializer lists
3039 cxx11test::testinit il = { 4323, 435234.23544 };
3040 }
3041 {
3042 // Test range-based for
3043 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3044 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3045 for (auto &x : array) { x += 23; }
3046 }
3047 {
3048 // Test lambda expressions
3049 using cxx11test::eval;
3050 assert (eval ([](int x) { return x*2; }, 21) == 42);
3051 double d = 2.0;
3052 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3053 assert (d == 5.0);
3054 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3055 assert (d == 5.0);
3056 }
3057 {
3058 // Test use of variadic templates
3059 using cxx11test::sum;
3060 auto a = sum(1);
3061 auto b = sum(1, 2);
3062 auto c = sum(1.0, 2.0, 3.0);
3063 }
3064 {
3065 // Test constructor delegation
3066 cxx11test::delegate d1;
3067 cxx11test::delegate d2();
3068 cxx11test::delegate d3(45);
3069 }
3070 {
3071 // Test override and final
3072 cxx11test::overridden o1(55464);
3073 }
3074 {
3075 // Test nullptr
3076 char *c = nullptr;
3077 }
3078 {
3079 // Test template brackets
3080 test_template<::test_template<int>> v(test_template<int>(12));
3081 }
3082 {
3083 // Unicode literals
3084 char const *utf8 = u8"UTF-8 string \u2500";
3085 char16_t const *utf16 = u"UTF-8 string \u2500";
3086 char32_t const *utf32 = U"UTF-32 string \u2500";
3087 }
3088 '
3089
3090 # Test code for whether the C compiler supports C++11 (complete).
3091 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3092 ${ac_cxx_conftest_cxx11_globals}
3093
3094 int
3095 main (int argc, char **argv)
3096 {
3097 int ok = 0;
3098 ${ac_cxx_conftest_cxx98_main}
3099 ${ac_cxx_conftest_cxx11_main}
3100 return ok;
3101 }
3102 "
3103
3104 # Test code for whether the C compiler supports C++98 (complete).
3105 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3106 int
3107 main (int argc, char **argv)
3108 {
3109 int ok = 0;
3110 ${ac_cxx_conftest_cxx98_main}
3111 return ok;
3112 }
3113 "
3114
3115
3116 # Auxiliary files required by this configure script.
3117 ac_aux_files="config.rpath config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3118
3119 # Locations in which to look for auxiliary files.
3120 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3121
3122 # Search for a directory containing all of the required auxiliary files,
3123 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3124 # If we don't find one directory that contains all the files we need,
3125 # we report the set of missing files from the *first* directory in
3126 # $ac_aux_dir_candidates and give up.
3127 ac_missing_aux_files=""
3128 ac_first_candidate=:
3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 as_found=false
3132 for as_dir in $ac_aux_dir_candidates
3133 do
3134 IFS=$as_save_IFS
3135 case $as_dir in #(((
3136 '') as_dir=./ ;;
3137 */) ;;
3138 *) as_dir=$as_dir/ ;;
3139 esac
3140 as_found=:
3141
3142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3143 ac_aux_dir_found=yes
3144 ac_install_sh=
3145 for ac_aux in $ac_aux_files
3146 do
3147 # As a special case, if "install-sh" is required, that requirement
3148 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3149 # and $ac_install_sh is set appropriately for whichever one is found.
3150 if test x"$ac_aux" = x"install-sh"
3151 then
3152 if test -f "${as_dir}install-sh"; then
3153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3154 ac_install_sh="${as_dir}install-sh -c"
3155 elif test -f "${as_dir}install.sh"; then
3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3157 ac_install_sh="${as_dir}install.sh -c"
3158 elif test -f "${as_dir}shtool"; then
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3160 ac_install_sh="${as_dir}shtool install -c"
3161 else
3162 ac_aux_dir_found=no
3163 if $ac_first_candidate; then
3164 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3165 else
3166 break
3167 fi
3168 fi
3169 else
3170 if test -f "${as_dir}${ac_aux}"; then
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3172 else
3173 ac_aux_dir_found=no
3174 if $ac_first_candidate; then
3175 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3176 else
3177 break
3178 fi
3179 fi
3180 fi
3181 done
3182 if test "$ac_aux_dir_found" = yes; then
3183 ac_aux_dir="$as_dir"
3184 break
3185 fi
3186 ac_first_candidate=false
3187
3188 as_found=false
3189 done
3190 IFS=$as_save_IFS
3191 if $as_found
3192 then :
3193
3194 else $as_nop
3195 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3196 fi
3197
3198
3199 # These three variables are undocumented and unsupported,
3200 # and are intended to be withdrawn in a future Autoconf release.
3201 # They can cause serious problems if a builder's source tree is in a directory
3202 # whose full name contains unusual characters.
3203 if test -f "${ac_aux_dir}config.guess"; then
3204 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3205 fi
3206 if test -f "${ac_aux_dir}config.sub"; then
3207 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3208 fi
3209 if test -f "$ac_aux_dir/configure"; then
3210 ac_configure="$SHELL ${ac_aux_dir}configure"
3211 fi
3212
3213 # Check that the precious variables saved in the cache have kept the same
3214 # value.
3215 ac_cache_corrupted=false
3216 for ac_var in $ac_precious_vars; do
3217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3218 eval ac_new_set=\$ac_env_${ac_var}_set
3219 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3220 eval ac_new_val=\$ac_env_${ac_var}_value
3221 case $ac_old_set,$ac_new_set in
3222 set,)
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3224 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3225 ac_cache_corrupted=: ;;
3226 ,set)
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3228 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3229 ac_cache_corrupted=: ;;
3230 ,);;
3231 *)
3232 if test "x$ac_old_val" != "x$ac_new_val"; then
3233 # differences in whitespace do not lead to failure.
3234 ac_old_val_w=`echo x $ac_old_val`
3235 ac_new_val_w=`echo x $ac_new_val`
3236 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3238 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3239 ac_cache_corrupted=:
3240 else
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3242 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3243 eval $ac_var=\$ac_old_val
3244 fi
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3246 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3248 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3249 fi;;
3250 esac
3251 # Pass precious variables to config.status.
3252 if test "$ac_new_set" = set; then
3253 case $ac_new_val in
3254 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3255 *) ac_arg=$ac_var=$ac_new_val ;;
3256 esac
3257 case " $ac_configure_args " in
3258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3259 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3260 esac
3261 fi
3262 done
3263 if $ac_cache_corrupted; then
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3267 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3268 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3269 and start over" "$LINENO" 5
3270 fi
3271 ## -------------------- ##
3272 ## Main body of script. ##
3273 ## -------------------- ##
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282 ac_config_headers="$ac_config_headers config.h"
3283
3284
3285
3286 am__api_version='1.16'
3287
3288
3289
3290 # Find a good install program. We prefer a C program (faster),
3291 # so one script is as good as another. But avoid the broken or
3292 # incompatible versions:
3293 # SysV /etc/install, /usr/sbin/install
3294 # SunOS /usr/etc/install
3295 # IRIX /sbin/install
3296 # AIX /bin/install
3297 # AmigaOS /C/install, which installs bootblocks on floppy discs
3298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3301 # OS/2's system install, which has a completely different semantic
3302 # ./install, which can be erroneously created by make from ./install.sh.
3303 # Reject install programs that cannot install multiple files.
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3305 printf %s "checking for a BSD-compatible install... " >&6; }
3306 if test -z "$INSTALL"; then
3307 if test ${ac_cv_path_install+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else $as_nop
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 case $as_dir in #(((
3316 '') as_dir=./ ;;
3317 */) ;;
3318 *) as_dir=$as_dir/ ;;
3319 esac
3320 # Account for fact that we put trailing slashes in our PATH walk.
3321 case $as_dir in #((
3322 ./ | /[cC]/* | \
3323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3324 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3325 /usr/ucb/* ) ;;
3326 *)
3327 # OSF1 and SCO ODT 3.0 have their own names for install.
3328 # Don't use installbsd from OSF since it installs stuff as root
3329 # by default.
3330 for ac_prog in ginstall scoinst install; do
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3333 if test $ac_prog = install &&
3334 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335 # AIX install. It has an incompatible calling convention.
3336 :
3337 elif test $ac_prog = install &&
3338 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3339 # program-specific install script used by HP pwplus--don't use.
3340 :
3341 else
3342 rm -rf conftest.one conftest.two conftest.dir
3343 echo one > conftest.one
3344 echo two > conftest.two
3345 mkdir conftest.dir
3346 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3347 test -s conftest.one && test -s conftest.two &&
3348 test -s conftest.dir/conftest.one &&
3349 test -s conftest.dir/conftest.two
3350 then
3351 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3352 break 3
3353 fi
3354 fi
3355 fi
3356 done
3357 done
3358 ;;
3359 esac
3360
3361 done
3362 IFS=$as_save_IFS
3363
3364 rm -rf conftest.one conftest.two conftest.dir
3365
3366 fi
3367 if test ${ac_cv_path_install+y}; then
3368 INSTALL=$ac_cv_path_install
3369 else
3370 # As a last resort, use the slow shell script. Don't cache a
3371 # value for INSTALL within a source directory, because that will
3372 # break other packages using the cache if that directory is
3373 # removed, or if the value is a relative name.
3374 INSTALL=$ac_install_sh
3375 fi
3376 fi
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3378 printf "%s\n" "$INSTALL" >&6; }
3379
3380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3381 # It thinks the first close brace ends the variable substitution.
3382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3383
3384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3385
3386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3387
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3389 printf %s "checking whether build environment is sane... " >&6; }
3390 # Reject unsafe characters in $srcdir or the absolute working directory
3391 # name. Accept space and tab only in the latter.
3392 am_lf='
3393 '
3394 case `pwd` in
3395 *[\\\"\#\$\&\'\`$am_lf]*)
3396 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3397 esac
3398 case $srcdir in
3399 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3400 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3401 esac
3402
3403 # Do 'set' in a subshell so we don't clobber the current shell's
3404 # arguments. Must try -L first in case configure is actually a
3405 # symlink; some systems play weird games with the mod time of symlinks
3406 # (eg FreeBSD returns the mod time of the symlink's containing
3407 # directory).
3408 if (
3409 am_has_slept=no
3410 for am_try in 1 2; do
3411 echo "timestamp, slept: $am_has_slept" > conftest.file
3412 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3413 if test "$*" = "X"; then
3414 # -L didn't work.
3415 set X `ls -t "$srcdir/configure" conftest.file`
3416 fi
3417 if test "$*" != "X $srcdir/configure conftest.file" \
3418 && test "$*" != "X conftest.file $srcdir/configure"; then
3419
3420 # If neither matched, then we have a broken ls. This can happen
3421 # if, for instance, CONFIG_SHELL is bash and it inherits a
3422 # broken ls alias from the environment. This has actually
3423 # happened. Such a system could not be considered "sane".
3424 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3425 alias in your environment" "$LINENO" 5
3426 fi
3427 if test "$2" = conftest.file || test $am_try -eq 2; then
3428 break
3429 fi
3430 # Just in case.
3431 sleep 1
3432 am_has_slept=yes
3433 done
3434 test "$2" = conftest.file
3435 )
3436 then
3437 # Ok.
3438 :
3439 else
3440 as_fn_error $? "newly created file is older than distributed files!
3441 Check your system clock" "$LINENO" 5
3442 fi
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3444 printf "%s\n" "yes" >&6; }
3445 # If we didn't sleep, we still need to ensure time stamps of config.status and
3446 # generated files are strictly newer.
3447 am_sleep_pid=
3448 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3449 ( sleep 1 ) &
3450 am_sleep_pid=$!
3451 fi
3452
3453 rm -f conftest.file
3454
3455 test "$program_prefix" != NONE &&
3456 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE &&
3459 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3464
3465
3466 # Expand $ac_aux_dir to an absolute path.
3467 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3468
3469
3470 if test x"${MISSING+set}" != xset; then
3471 MISSING="\${SHELL} '$am_aux_dir/missing'"
3472 fi
3473 # Use eval to expand $SHELL
3474 if eval "$MISSING --is-lightweight"; then
3475 am_missing_run="$MISSING "
3476 else
3477 am_missing_run=
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3479 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3480 fi
3481
3482 if test x"${install_sh+set}" != xset; then
3483 case $am_aux_dir in
3484 *\ * | *\ *)
3485 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3486 *)
3487 install_sh="\${SHELL} $am_aux_dir/install-sh"
3488 esac
3489 fi
3490
3491 # Installed binaries are usually stripped using 'strip' when the user
3492 # run "make install-strip". However 'strip' might not be the right
3493 # tool to use in cross-compilation environments, therefore Automake
3494 # will honor the 'STRIP' environment variable to overrule this program.
3495 if test "$cross_compiling" != no; then
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}strip; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_STRIP+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else $as_nop
3505 if test -n "$STRIP"; then
3506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 STRIP=$ac_cv_prog_STRIP
3530 if test -n "$STRIP"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532 printf "%s\n" "$STRIP" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_STRIP"; then
3541 ac_ct_STRIP=$STRIP
3542 # Extract the first word of "strip", so it can be a program name with args.
3543 set dummy strip; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_ac_ct_STRIP+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else $as_nop
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_STRIP="strip"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3575 if test -n "$ac_ct_STRIP"; then
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3577 printf "%s\n" "$ac_ct_STRIP" >&6; }
3578 else
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 printf "%s\n" "no" >&6; }
3581 fi
3582
3583 if test "x$ac_ct_STRIP" = x; then
3584 STRIP=":"
3585 else
3586 case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592 STRIP=$ac_ct_STRIP
3593 fi
3594 else
3595 STRIP="$ac_cv_prog_STRIP"
3596 fi
3597
3598 fi
3599 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3600
3601
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3603 printf %s "checking for a race-free mkdir -p... " >&6; }
3604 if test -z "$MKDIR_P"; then
3605 if test ${ac_cv_path_mkdir+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else $as_nop
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3611 do
3612 IFS=$as_save_IFS
3613 case $as_dir in #(((
3614 '') as_dir=./ ;;
3615 */) ;;
3616 *) as_dir=$as_dir/ ;;
3617 esac
3618 for ac_prog in mkdir gmkdir; do
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3621 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3622 'mkdir ('*'coreutils) '* | \
3623 'BusyBox '* | \
3624 'mkdir (fileutils) '4.1*)
3625 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3626 break 3;;
3627 esac
3628 done
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634
3635 test -d ./--version && rmdir ./--version
3636 if test ${ac_cv_path_mkdir+y}; then
3637 MKDIR_P="$ac_cv_path_mkdir -p"
3638 else
3639 # As a last resort, use the slow shell script. Don't cache a
3640 # value for MKDIR_P within a source directory, because that will
3641 # break other packages using the cache if that directory is
3642 # removed, or if the value is a relative name.
3643 MKDIR_P="$ac_install_sh -d"
3644 fi
3645 fi
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3647 printf "%s\n" "$MKDIR_P" >&6; }
3648
3649 for ac_prog in gawk mawk nawk awk
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 printf %s "checking for $ac_word... " >&6; }
3655 if test ${ac_cv_prog_AWK+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else $as_nop
3659 if test -n "$AWK"; then
3660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 case $as_dir in #(((
3667 '') as_dir=./ ;;
3668 */) ;;
3669 *) as_dir=$as_dir/ ;;
3670 esac
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_AWK="$ac_prog"
3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 AWK=$ac_cv_prog_AWK
3684 if test -n "$AWK"; then
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3686 printf "%s\n" "$AWK" >&6; }
3687 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 printf "%s\n" "no" >&6; }
3690 fi
3691
3692
3693 test -n "$AWK" && break
3694 done
3695
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3697 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3698 set x ${MAKE-make}
3699 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3700 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3701 then :
3702 printf %s "(cached) " >&6
3703 else $as_nop
3704 cat >conftest.make <<\_ACEOF
3705 SHELL = /bin/sh
3706 all:
3707 @echo '@@@%%%=$(MAKE)=@@@%%%'
3708 _ACEOF
3709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3711 *@@@%%%=?*=@@@%%%*)
3712 eval ac_cv_prog_make_${ac_make}_set=yes;;
3713 *)
3714 eval ac_cv_prog_make_${ac_make}_set=no;;
3715 esac
3716 rm -f conftest.make
3717 fi
3718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 printf "%s\n" "yes" >&6; }
3721 SET_MAKE=
3722 else
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 printf "%s\n" "no" >&6; }
3725 SET_MAKE="MAKE=${MAKE-make}"
3726 fi
3727
3728 rm -rf .tst 2>/dev/null
3729 mkdir .tst 2>/dev/null
3730 if test -d .tst; then
3731 am__leading_dot=.
3732 else
3733 am__leading_dot=_
3734 fi
3735 rmdir .tst 2>/dev/null
3736
3737 # Check whether --enable-silent-rules was given.
3738 if test ${enable_silent_rules+y}
3739 then :
3740 enableval=$enable_silent_rules;
3741 fi
3742
3743 case $enable_silent_rules in # (((
3744 yes) AM_DEFAULT_VERBOSITY=0;;
3745 no) AM_DEFAULT_VERBOSITY=1;;
3746 *) AM_DEFAULT_VERBOSITY=1;;
3747 esac
3748 am_make=${MAKE-make}
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3750 printf %s "checking whether $am_make supports nested variables... " >&6; }
3751 if test ${am_cv_make_support_nested_variables+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 if printf "%s\n" 'TRUE=$(BAR$(V))
3756 BAR0=false
3757 BAR1=true
3758 V=1
3759 am__doit:
3760 @$(TRUE)
3761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3762 am_cv_make_support_nested_variables=yes
3763 else
3764 am_cv_make_support_nested_variables=no
3765 fi
3766 fi
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3768 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3769 if test $am_cv_make_support_nested_variables = yes; then
3770 AM_V='$(V)'
3771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3772 else
3773 AM_V=$AM_DEFAULT_VERBOSITY
3774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3775 fi
3776 AM_BACKSLASH='\'
3777
3778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3780 # is not polluted with repeated "-I."
3781 am__isrc=' -I$(srcdir)'
3782 # test to see if srcdir already configured
3783 if test -f $srcdir/config.status; then
3784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3785 fi
3786 fi
3787
3788 # test whether we have cygpath
3789 if test -z "$CYGPATH_W"; then
3790 if (cygpath --version) >/dev/null 2>/dev/null; then
3791 CYGPATH_W='cygpath -w'
3792 else
3793 CYGPATH_W=echo
3794 fi
3795 fi
3796
3797
3798 # Define the identity of the package.
3799 PACKAGE='flac'
3800 VERSION='1.5.0'
3801
3802
3803 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3804
3805
3806 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3807
3808 # Some tools Automake needs.
3809
3810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3811
3812
3813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3814
3815
3816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3817
3818
3819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3820
3821
3822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3823
3824 # For better backward compatibility. To be removed once Automake 1.9.x
3825 # dies out for good. For more background, see:
3826 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3827 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3828 mkdir_p='$(MKDIR_P)'
3829
3830 # We need awk for the "check" target (and possibly the TAP driver). The
3831 # system "awk" is bad on some platforms.
3832 # Always define AMTAR for backward compatibility. Yes, it's still used
3833 # in the wild :-( We should find a proper way to deprecate it ...
3834 AMTAR='$${TAR-tar}'
3835
3836
3837 # We'll loop over all known methods to create a tar archive until one works.
3838 _am_tools='gnutar pax cpio none'
3839
3840
3841
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3843 printf %s "checking how to create a pax tar archive... " >&6; }
3844
3845 # Go ahead even if we have the value already cached. We do so because we
3846 # need to set the values for the 'am__tar' and 'am__untar' variables.
3847 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3848
3849 for _am_tool in $_am_tools; do
3850 case $_am_tool in
3851 gnutar)
3852 for _am_tar in tar gnutar gtar; do
3853 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3854 ($_am_tar --version) >&5 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && break
3858 done
3859 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3860 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3861 am__untar="$_am_tar -xf -"
3862 ;;
3863 plaintar)
3864 # Must skip GNU tar: if it does not support --format= it doesn't create
3865 # ustar tarball either.
3866 (tar --version) >/dev/null 2>&1 && continue
3867 am__tar='tar chf - "$$tardir"'
3868 am__tar_='tar chf - "$tardir"'
3869 am__untar='tar xf -'
3870 ;;
3871 pax)
3872 am__tar='pax -L -x pax -w "$$tardir"'
3873 am__tar_='pax -L -x pax -w "$tardir"'
3874 am__untar='pax -r'
3875 ;;
3876 cpio)
3877 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3878 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3879 am__untar='cpio -i -H pax -d'
3880 ;;
3881 none)
3882 am__tar=false
3883 am__tar_=false
3884 am__untar=false
3885 ;;
3886 esac
3887
3888 # If the value was cached, stop now. We just wanted to have am__tar
3889 # and am__untar set.
3890 test -n "${am_cv_prog_tar_pax}" && break
3891
3892 # tar/untar a dummy directory, and stop if the command works.
3893 rm -rf conftest.dir
3894 mkdir conftest.dir
3895 echo GrepMe > conftest.dir/file
3896 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3897 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }
3901 rm -rf conftest.dir
3902 if test -s conftest.tar; then
3903 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3904 ($am__untar <conftest.tar) >&5 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }
3908 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3909 (cat conftest.dir/file) >&5 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }
3913 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3914 fi
3915 done
3916 rm -rf conftest.dir
3917
3918 if test ${am_cv_prog_tar_pax+y}
3919 then :
3920 printf %s "(cached) " >&6
3921 else $as_nop
3922 am_cv_prog_tar_pax=$_am_tool
3923 fi
3924
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3926 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3927
3928
3929
3930
3931
3932 # Variables for tags utilities; see am/tags.am
3933 if test -z "$CTAGS"; then
3934 CTAGS=ctags
3935 fi
3936
3937 if test -z "$ETAGS"; then
3938 ETAGS=etags
3939 fi
3940
3941 if test -z "$CSCOPE"; then
3942 CSCOPE=cscope
3943 fi
3944
3945
3946
3947 # POSIX will say in a future version that running "rm -f" with no argument
3948 # is OK; and we want to be able to make that assumption in our Makefile
3949 # recipes. So use an aggressive probe to check that the usage we want is
3950 # actually supported "in the wild" to an acceptable degree.
3951 # See automake bug#10828.
3952 # To make any issue more visible, cause the running configure to be aborted
3953 # by default if the 'rm' program in use doesn't match our expectations; the
3954 # user can still override this though.
3955 if rm -f && rm -fr && rm -rf; then : OK; else
3956 cat >&2 <<'END'
3957 Oops!
3958
3959 Your 'rm' program seems unable to run without file operands specified
3960 on the command line, even when the '-f' option is present. This is contrary
3961 to the behaviour of most rm programs out there, and not conforming with
3962 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3963
3964 Please tell [email protected] about your system, including the value
3965 of your $PATH and any error possibly output before this message. This
3966 can help us improve future automake versions.
3967
3968 END
3969 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3970 echo 'Configuration will proceed anyway, since you have set the' >&2
3971 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3972 echo >&2
3973 else
3974 cat >&2 <<'END'
3975 Aborting the configuration process, to ensure you take notice of the issue.
3976
3977 You can download and install GNU coreutils to get an 'rm' implementation
3978 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3979
3980 If you want to complete the configuration process using your problematic
3981 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3982 to "yes", and re-run configure.
3983
3984 END
3985 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3986 fi
3987 fi
3988
3989 # Check whether --enable-silent-rules was given.
3990 if test ${enable_silent_rules+y}
3991 then :
3992 enableval=$enable_silent_rules;
3993 fi
3994
3995 case $enable_silent_rules in # (((
3996 yes) AM_DEFAULT_VERBOSITY=0;;
3997 no) AM_DEFAULT_VERBOSITY=1;;
3998 *) AM_DEFAULT_VERBOSITY=0;;
3999 esac
4000 am_make=${MAKE-make}
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4002 printf %s "checking whether $am_make supports nested variables... " >&6; }
4003 if test ${am_cv_make_support_nested_variables+y}
4004 then :
4005 printf %s "(cached) " >&6
4006 else $as_nop
4007 if printf "%s\n" 'TRUE=$(BAR$(V))
4008 BAR0=false
4009 BAR1=true
4010 V=1
4011 am__doit:
4012 @$(TRUE)
4013 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4014 am_cv_make_support_nested_variables=yes
4015 else
4016 am_cv_make_support_nested_variables=no
4017 fi
4018 fi
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4020 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4021 if test $am_cv_make_support_nested_variables = yes; then
4022 AM_V='$(V)'
4023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4024 else
4025 AM_V=$AM_DEFAULT_VERBOSITY
4026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4027 fi
4028 AM_BACKSLASH='\'
4029
4030
4031
4032
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
4034 printf %s "checking whether to enable debugging... " >&6; }
4035
4036 ax_enable_debug_default=no
4037 ax_enable_debug_is_release=$ax_is_release
4038
4039 # If this is a release, override the default.
4040 if test "$ax_enable_debug_is_release" = "yes"
4041 then :
4042 ax_enable_debug_default="no"
4043 fi
4044
4045
4046
4047
4048 # Check whether --enable-debug was given.
4049 if test ${enable_debug+y}
4050 then :
4051 enableval=$enable_debug;
4052 else $as_nop
4053 enable_debug=$ax_enable_debug_default
4054 fi
4055
4056
4057 # empty mean debug yes
4058 if test "x$enable_debug" = "x"
4059 then :
4060 enable_debug="yes"
4061 fi
4062
4063 # case of debug
4064 case $enable_debug in #(
4065 yes) :
4066
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 printf "%s\n" "yes" >&6; }
4069 CFLAGS="${CFLAGS} -g -O0"
4070 CXXFLAGS="${CXXFLAGS} -g -O0"
4071 FFLAGS="${FFLAGS} -g -O0"
4072 FCFLAGS="${FCFLAGS} -g -O0"
4073 OBJCFLAGS="${OBJCFLAGS} -g -O0"
4074 ;; #(
4075 info) :
4076
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: info" >&5
4078 printf "%s\n" "info" >&6; }
4079 CFLAGS="${CFLAGS} -g"
4080 CXXFLAGS="${CXXFLAGS} -g"
4081 FFLAGS="${FFLAGS} -g"
4082 FCFLAGS="${FCFLAGS} -g"
4083 OBJCFLAGS="${OBJCFLAGS} -g"
4084 ;; #(
4085 profile) :
4086
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: profile" >&5
4088 printf "%s\n" "profile" >&6; }
4089 CFLAGS="${CFLAGS} -g -pg"
4090 CXXFLAGS="${CXXFLAGS} -g -pg"
4091 FFLAGS="${FFLAGS} -g -pg"
4092 FCFLAGS="${FCFLAGS} -g -pg"
4093 OBJCFLAGS="${OBJCFLAGS} -g -pg"
4094 LDFLAGS="${LDFLAGS} -pg"
4095 ;; #(
4096 *) :
4097
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 printf "%s\n" "no" >&6; }
4100 if test "x${CFLAGS+set}" != "xset"
4101 then :
4102 CFLAGS=""
4103 fi
4104 if test "x${CXXFLAGS+set}" != "xset"
4105 then :
4106 CXXFLAGS=""
4107 fi
4108 if test "x${FFLAGS+set}" != "xset"
4109 then :
4110 FFLAGS=""
4111 fi
4112 if test "x${FCFLAGS+set}" != "xset"
4113 then :
4114 FCFLAGS=""
4115 fi
4116 if test "x${OBJCFLAGS+set}" != "xset"
4117 then :
4118 OBJCFLAGS=""
4119 fi
4120 ;;
4121 esac
4122
4123 if test "x$enable_debug" = "xyes"
4124 then :
4125
4126 else $as_nop
4127
4128 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
4129
4130 fi
4131 ax_enable_debug=$enable_debug
4132
4133 user_cflags=$CFLAGS
4134
4135 #Prefer whatever the current ISO standard is.
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4156 then :
4157 printf %s "(cached) " >&6
4158 else $as_nop
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 case $as_dir in #(((
4167 '') as_dir=./ ;;
4168 */) ;;
4169 *) as_dir=$as_dir/ ;;
4170 esac
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177 done
4178 done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4187 else
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4190 fi
4191
4192
4193 fi
4194 if test -z "$ac_cv_prog_CC"; then
4195 ac_ct_CC=$CC
4196 # Extract the first word of "gcc", so it can be a program name with args.
4197 set dummy gcc; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_ac_ct_CC+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 case $as_dir in #(((
4212 '') as_dir=./ ;;
4213 */) ;;
4214 *) as_dir=$as_dir/ ;;
4215 esac
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_CC="gcc"
4219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 printf "%s\n" "$ac_ct_CC" >&6; }
4232 else
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 printf "%s\n" "no" >&6; }
4235 fi
4236
4237 if test "x$ac_ct_CC" = x; then
4238 CC=""
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241 yes:)
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246 CC=$ac_ct_CC
4247 fi
4248 else
4249 CC="$ac_cv_prog_CC"
4250 fi
4251
4252 if test -z "$CC"; then
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4255 set dummy ${ac_tool_prefix}cc; ac_word=$2
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 printf %s "checking for $ac_word... " >&6; }
4258 if test ${ac_cv_prog_CC+y}
4259 then :
4260 printf %s "(cached) " >&6
4261 else $as_nop
4262 if test -n "$CC"; then
4263 ac_cv_prog_CC="$CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 case $as_dir in #(((
4270 '') as_dir=./ ;;
4271 */) ;;
4272 *) as_dir=$as_dir/ ;;
4273 esac
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_CC="${ac_tool_prefix}cc"
4277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 printf "%s\n" "$CC" >&6; }
4290 else
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 printf "%s\n" "no" >&6; }
4293 fi
4294
4295
4296 fi
4297 fi
4298 if test -z "$CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 printf %s "checking for $ac_word... " >&6; }
4303 if test ${ac_cv_prog_CC+y}
4304 then :
4305 printf %s "(cached) " >&6
4306 else $as_nop
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 else
4310 ac_prog_rejected=no
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 case $as_dir in #(((
4316 '') as_dir=./ ;;
4317 */) ;;
4318 *) as_dir=$as_dir/ ;;
4319 esac
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4322 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4324 continue
4325 fi
4326 ac_cv_prog_CC="cc"
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_CC
4337 shift
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set CC to just the basename; use the full file name.
4342 shift
4343 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4344 fi
4345 fi
4346 fi
4347 fi
4348 CC=$ac_cv_prog_CC
4349 if test -n "$CC"; then
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 printf "%s\n" "$CC" >&6; }
4352 else
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 printf "%s\n" "no" >&6; }
4355 fi
4356
4357
4358 fi
4359 if test -z "$CC"; then
4360 if test -n "$ac_tool_prefix"; then
4361 for ac_prog in cl.exe
4362 do
4363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 printf %s "checking for $ac_word... " >&6; }
4367 if test ${ac_cv_prog_CC+y}
4368 then :
4369 printf %s "(cached) " >&6
4370 else $as_nop
4371 if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 case $as_dir in #(((
4379 '') as_dir=./ ;;
4380 */) ;;
4381 *) as_dir=$as_dir/ ;;
4382 esac
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 CC=$ac_cv_prog_CC
4396 if test -n "$CC"; then
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4398 printf "%s\n" "$CC" >&6; }
4399 else
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 printf "%s\n" "no" >&6; }
4402 fi
4403
4404
4405 test -n "$CC" && break
4406 done
4407 fi
4408 if test -z "$CC"; then
4409 ac_ct_CC=$CC
4410 for ac_prog in cl.exe
4411 do
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 printf %s "checking for $ac_word... " >&6; }
4416 if test ${ac_cv_prog_ac_ct_CC+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else $as_nop
4420 if test -n "$ac_ct_CC"; then
4421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 case $as_dir in #(((
4428 '') as_dir=./ ;;
4429 */) ;;
4430 *) as_dir=$as_dir/ ;;
4431 esac
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_ac_ct_CC="$ac_prog"
4435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442 fi
4443 fi
4444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4445 if test -n "$ac_ct_CC"; then
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4447 printf "%s\n" "$ac_ct_CC" >&6; }
4448 else
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 printf "%s\n" "no" >&6; }
4451 fi
4452
4453
4454 test -n "$ac_ct_CC" && break
4455 done
4456
4457 if test "x$ac_ct_CC" = x; then
4458 CC=""
4459 else
4460 case $cross_compiling:$ac_tool_warned in
4461 yes:)
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4463 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464 ac_tool_warned=yes ;;
4465 esac
4466 CC=$ac_ct_CC
4467 fi
4468 fi
4469
4470 fi
4471 if test -z "$CC"; then
4472 if test -n "$ac_tool_prefix"; then
4473 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4474 set dummy ${ac_tool_prefix}clang; ac_word=$2
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 printf %s "checking for $ac_word... " >&6; }
4477 if test ${ac_cv_prog_CC+y}
4478 then :
4479 printf %s "(cached) " >&6
4480 else $as_nop
4481 if test -n "$CC"; then
4482 ac_cv_prog_CC="$CC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487 IFS=$as_save_IFS
4488 case $as_dir in #(((
4489 '') as_dir=./ ;;
4490 */) ;;
4491 *) as_dir=$as_dir/ ;;
4492 esac
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_CC="${ac_tool_prefix}clang"
4496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 CC=$ac_cv_prog_CC
4506 if test -n "$CC"; then
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4508 printf "%s\n" "$CC" >&6; }
4509 else
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 printf "%s\n" "no" >&6; }
4512 fi
4513
4514
4515 fi
4516 if test -z "$ac_cv_prog_CC"; then
4517 ac_ct_CC=$CC
4518 # Extract the first word of "clang", so it can be a program name with args.
4519 set dummy clang; ac_word=$2
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 printf %s "checking for $ac_word... " >&6; }
4522 if test ${ac_cv_prog_ac_ct_CC+y}
4523 then :
4524 printf %s "(cached) " >&6
4525 else $as_nop
4526 if test -n "$ac_ct_CC"; then
4527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 case $as_dir in #(((
4534 '') as_dir=./ ;;
4535 */) ;;
4536 *) as_dir=$as_dir/ ;;
4537 esac
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_ac_ct_CC="clang"
4541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4551 if test -n "$ac_ct_CC"; then
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4553 printf "%s\n" "$ac_ct_CC" >&6; }
4554 else
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 printf "%s\n" "no" >&6; }
4557 fi
4558
4559 if test "x$ac_ct_CC" = x; then
4560 CC=""
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 CC=$ac_ct_CC
4569 fi
4570 else
4571 CC="$ac_cv_prog_CC"
4572 fi
4573
4574 fi
4575
4576
4577 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "no acceptable C compiler found in \$PATH
4580 See \`config.log' for more details" "$LINENO" 5; }
4581
4582 # Provide some information about the compiler.
4583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4584 set X $ac_compile
4585 ac_compiler=$2
4586 for ac_option in --version -v -V -qversion -version; do
4587 { { ac_try="$ac_compiler $ac_option >&5"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 printf "%s\n" "$ac_try_echo"; } >&5
4594 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4595 ac_status=$?
4596 if test -s conftest.err; then
4597 sed '10a\
4598 ... rest of stderr output deleted ...
4599 10q' conftest.err >conftest.er1
4600 cat conftest.er1 >&5
4601 fi
4602 rm -f conftest.er1 conftest.err
4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4604 test $ac_status = 0; }
4605 done
4606
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609
4610 int
4611 main (void)
4612 {
4613
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 ac_clean_files_save=$ac_clean_files
4619 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4620 # Try to create an executable without -o first, disregard a.out.
4621 # It will help us diagnose broken compilers, and finding out an intuition
4622 # of exeext.
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4624 printf %s "checking whether the C compiler works... " >&6; }
4625 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4626
4627 # The possible output files:
4628 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4629
4630 ac_rmfiles=
4631 for ac_file in $ac_files
4632 do
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4635 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4636 esac
4637 done
4638 rm -f $ac_rmfiles
4639
4640 if { { ac_try="$ac_link_default"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646 printf "%s\n" "$ac_try_echo"; } >&5
4647 (eval "$ac_link_default") 2>&5
4648 ac_status=$?
4649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4650 test $ac_status = 0; }
4651 then :
4652 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4653 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4654 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4655 # so that the user can short-circuit this test for compilers unknown to
4656 # Autoconf.
4657 for ac_file in $ac_files ''
4658 do
4659 test -f "$ac_file" || continue
4660 case $ac_file in
4661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4662 ;;
4663 [ab].out )
4664 # We found the default executable, but exeext='' is most
4665 # certainly right.
4666 break;;
4667 *.* )
4668 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4669 then :; else
4670 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4671 fi
4672 # We set ac_cv_exeext here because the later test for it is not
4673 # safe: cross compilers may not add the suffix if given an `-o'
4674 # argument, so we may need to know it at that point already.
4675 # Even if this section looks crufty: it has the advantage of
4676 # actually working.
4677 break;;
4678 * )
4679 break;;
4680 esac
4681 done
4682 test "$ac_cv_exeext" = no && ac_cv_exeext=
4683
4684 else $as_nop
4685 ac_file=''
4686 fi
4687 if test -z "$ac_file"
4688 then :
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 printf "%s\n" "no" >&6; }
4691 printf "%s\n" "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4696 as_fn_error 77 "C compiler cannot create executables
4697 See \`config.log' for more details" "$LINENO" 5; }
4698 else $as_nop
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700 printf "%s\n" "yes" >&6; }
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4703 printf %s "checking for C compiler default output file name... " >&6; }
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4705 printf "%s\n" "$ac_file" >&6; }
4706 ac_exeext=$ac_cv_exeext
4707
4708 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4709 ac_clean_files=$ac_clean_files_save
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4711 printf %s "checking for suffix of executables... " >&6; }
4712 if { { ac_try="$ac_link"
4713 case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4718 printf "%s\n" "$ac_try_echo"; } >&5
4719 (eval "$ac_link") 2>&5
4720 ac_status=$?
4721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4723 then :
4724 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4725 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4726 # work properly (i.e., refer to `conftest.exe'), while it won't with
4727 # `rm'.
4728 for ac_file in conftest.exe conftest conftest.*; do
4729 test -f "$ac_file" || continue
4730 case $ac_file in
4731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4732 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4733 break;;
4734 * ) break;;
4735 esac
4736 done
4737 else $as_nop
4738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4741 See \`config.log' for more details" "$LINENO" 5; }
4742 fi
4743 rm -f conftest conftest$ac_cv_exeext
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4745 printf "%s\n" "$ac_cv_exeext" >&6; }
4746
4747 rm -f conftest.$ac_ext
4748 EXEEXT=$ac_cv_exeext
4749 ac_exeext=$EXEEXT
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 #include <stdio.h>
4753 int
4754 main (void)
4755 {
4756 FILE *f = fopen ("conftest.out", "w");
4757 return ferror (f) || fclose (f) != 0;
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 ac_clean_files="$ac_clean_files conftest.out"
4764 # Check that the compiler produces executables we can run. If not, either
4765 # the compiler is broken, or we cross compile.
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4767 printf %s "checking whether we are cross compiling... " >&6; }
4768 if test "$cross_compiling" != yes; then
4769 { { ac_try="$ac_link"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4775 printf "%s\n" "$ac_try_echo"; } >&5
4776 (eval "$ac_link") 2>&5
4777 ac_status=$?
4778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }
4780 if { ac_try='./conftest$ac_cv_exeext'
4781 { { case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4786 printf "%s\n" "$ac_try_echo"; } >&5
4787 (eval "$ac_try") 2>&5
4788 ac_status=$?
4789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }; }; then
4791 cross_compiling=no
4792 else
4793 if test "$cross_compiling" = maybe; then
4794 cross_compiling=yes
4795 else
4796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4797 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4798 as_fn_error 77 "cannot run C compiled programs.
4799 If you meant to cross compile, use \`--host'.
4800 See \`config.log' for more details" "$LINENO" 5; }
4801 fi
4802 fi
4803 fi
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4805 printf "%s\n" "$cross_compiling" >&6; }
4806
4807 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4808 ac_clean_files=$ac_clean_files_save
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4810 printf %s "checking for suffix of object files... " >&6; }
4811 if test ${ac_cv_objext+y}
4812 then :
4813 printf %s "(cached) " >&6
4814 else $as_nop
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817
4818 int
4819 main (void)
4820 {
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest.o conftest.obj
4827 if { { ac_try="$ac_compile"
4828 case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4831 esac
4832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4833 printf "%s\n" "$ac_try_echo"; } >&5
4834 (eval "$ac_compile") 2>&5
4835 ac_status=$?
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4837 test $ac_status = 0; }
4838 then :
4839 for ac_file in conftest.o conftest.obj conftest.*; do
4840 test -f "$ac_file" || continue;
4841 case $ac_file in
4842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4844 break;;
4845 esac
4846 done
4847 else $as_nop
4848 printf "%s\n" "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4852 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4853 as_fn_error $? "cannot compute suffix of object files: cannot compile
4854 See \`config.log' for more details" "$LINENO" 5; }
4855 fi
4856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4857 fi
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4859 printf "%s\n" "$ac_cv_objext" >&6; }
4860 OBJEXT=$ac_cv_objext
4861 ac_objext=$OBJEXT
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4863 printf %s "checking whether the compiler supports GNU C... " >&6; }
4864 if test ${ac_cv_c_compiler_gnu+y}
4865 then :
4866 printf %s "(cached) " >&6
4867 else $as_nop
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870
4871 int
4872 main (void)
4873 {
4874 #ifndef __GNUC__
4875 choke me
4876 #endif
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884 ac_compiler_gnu=yes
4885 else $as_nop
4886 ac_compiler_gnu=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4890
4891 fi
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
4896 if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898 else
4899 GCC=
4900 fi
4901 ac_test_CFLAGS=${CFLAGS+y}
4902 ac_save_CFLAGS=$CFLAGS
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904 printf %s "checking whether $CC accepts -g... " >&6; }
4905 if test ${ac_cv_prog_cc_g+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 ac_save_c_werror_flag=$ac_c_werror_flag
4910 ac_c_werror_flag=yes
4911 ac_cv_prog_cc_g=no
4912 CFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915
4916 int
4917 main (void)
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"
4925 then :
4926 ac_cv_prog_cc_g=yes
4927 else $as_nop
4928 CFLAGS=""
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931
4932 int
4933 main (void)
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"
4941 then :
4942
4943 else $as_nop
4944 ac_c_werror_flag=$ac_save_c_werror_flag
4945 CFLAGS="-g"
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948
4949 int
4950 main (void)
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"
4958 then :
4959 ac_cv_prog_cc_g=yes
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4967 fi
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4969 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4970 if test $ac_test_CFLAGS; then
4971 CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4974 CFLAGS="-g -O2"
4975 else
4976 CFLAGS="-g"
4977 fi
4978 else
4979 if test "$GCC" = yes; then
4980 CFLAGS="-O2"
4981 else
4982 CFLAGS=
4983 fi
4984 fi
4985 ac_prog_cc_stdc=no
4986 if test x$ac_prog_cc_stdc = xno
4987 then :
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4989 printf %s "checking for $CC option to enable C11 features... " >&6; }
4990 if test ${ac_cv_prog_cc_c11+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else $as_nop
4994 ac_cv_prog_cc_c11=no
4995 ac_save_CC=$CC
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 $ac_c_conftest_c11_program
4999 _ACEOF
5000 for ac_arg in '' -std=gnu11
5001 do
5002 CC="$ac_save_CC $ac_arg"
5003 if ac_fn_c_try_compile "$LINENO"
5004 then :
5005 ac_cv_prog_cc_c11=$ac_arg
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext conftest.beam
5008 test "x$ac_cv_prog_cc_c11" != "xno" && break
5009 done
5010 rm -f conftest.$ac_ext
5011 CC=$ac_save_CC
5012 fi
5013
5014 if test "x$ac_cv_prog_cc_c11" = xno
5015 then :
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5017 printf "%s\n" "unsupported" >&6; }
5018 else $as_nop
5019 if test "x$ac_cv_prog_cc_c11" = x
5020 then :
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5022 printf "%s\n" "none needed" >&6; }
5023 else $as_nop
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5025 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5026 CC="$CC $ac_cv_prog_cc_c11"
5027 fi
5028 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5029 ac_prog_cc_stdc=c11
5030 fi
5031 fi
5032 if test x$ac_prog_cc_stdc = xno
5033 then :
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5035 printf %s "checking for $CC option to enable C99 features... " >&6; }
5036 if test ${ac_cv_prog_cc_c99+y}
5037 then :
5038 printf %s "(cached) " >&6
5039 else $as_nop
5040 ac_cv_prog_cc_c99=no
5041 ac_save_CC=$CC
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 $ac_c_conftest_c99_program
5045 _ACEOF
5046 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5047 do
5048 CC="$ac_save_CC $ac_arg"
5049 if ac_fn_c_try_compile "$LINENO"
5050 then :
5051 ac_cv_prog_cc_c99=$ac_arg
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.beam
5054 test "x$ac_cv_prog_cc_c99" != "xno" && break
5055 done
5056 rm -f conftest.$ac_ext
5057 CC=$ac_save_CC
5058 fi
5059
5060 if test "x$ac_cv_prog_cc_c99" = xno
5061 then :
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5063 printf "%s\n" "unsupported" >&6; }
5064 else $as_nop
5065 if test "x$ac_cv_prog_cc_c99" = x
5066 then :
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5068 printf "%s\n" "none needed" >&6; }
5069 else $as_nop
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5071 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5072 CC="$CC $ac_cv_prog_cc_c99"
5073 fi
5074 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5075 ac_prog_cc_stdc=c99
5076 fi
5077 fi
5078 if test x$ac_prog_cc_stdc = xno
5079 then :
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5081 printf %s "checking for $CC option to enable C89 features... " >&6; }
5082 if test ${ac_cv_prog_cc_c89+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else $as_nop
5086 ac_cv_prog_cc_c89=no
5087 ac_save_CC=$CC
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 $ac_c_conftest_c89_program
5091 _ACEOF
5092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5093 do
5094 CC="$ac_save_CC $ac_arg"
5095 if ac_fn_c_try_compile "$LINENO"
5096 then :
5097 ac_cv_prog_cc_c89=$ac_arg
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.beam
5100 test "x$ac_cv_prog_cc_c89" != "xno" && break
5101 done
5102 rm -f conftest.$ac_ext
5103 CC=$ac_save_CC
5104 fi
5105
5106 if test "x$ac_cv_prog_cc_c89" = xno
5107 then :
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5109 printf "%s\n" "unsupported" >&6; }
5110 else $as_nop
5111 if test "x$ac_cv_prog_cc_c89" = x
5112 then :
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5114 printf "%s\n" "none needed" >&6; }
5115 else $as_nop
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5117 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5118 CC="$CC $ac_cv_prog_cc_c89"
5119 fi
5120 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5121 ac_prog_cc_stdc=c89
5122 fi
5123 fi
5124
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5138 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5139 if test ${am_cv_prog_cc_c_o+y}
5140 then :
5141 printf %s "(cached) " >&6
5142 else $as_nop
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145
5146 int
5147 main (void)
5148 {
5149
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 # Make sure it works both with $CC and with simple cc.
5155 # Following AC_PROG_CC_C_O, we do the test twice because some
5156 # compilers refuse to overwrite an existing .o file with -o,
5157 # though they will create one.
5158 am_cv_prog_cc_c_o=yes
5159 for am_i in 1 2; do
5160 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5161 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } \
5165 && test -f conftest2.$ac_objext; then
5166 : OK
5167 else
5168 am_cv_prog_cc_c_o=no
5169 break
5170 fi
5171 done
5172 rm -f core conftest*
5173 unset am_i
5174 fi
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5176 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5177 if test "$am_cv_prog_cc_c_o" != yes; then
5178 # Losing compiler, so override with the script.
5179 # FIXME: It is wrong to rewrite CC.
5180 # But if we don't then we get into trouble of one sort or another.
5181 # A longer-term fix would be to have automake use am__CC in this case,
5182 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5183 CC="$am_aux_dir/compile $CC"
5184 fi
5185 ac_ext=c
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190
5191 DEPDIR="${am__leading_dot}deps"
5192
5193 ac_config_commands="$ac_config_commands depfiles"
5194
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5196 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5197 cat > confinc.mk << 'END'
5198 am__doit:
5199 @echo this is the am__doit target >confinc.out
5200 .PHONY: am__doit
5201 END
5202 am__include="#"
5203 am__quote=
5204 # BSD make does it like this.
5205 echo '.include "confinc.mk" # ignored' > confmf.BSD
5206 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5207 echo 'include confinc.mk # ignored' > confmf.GNU
5208 _am_result=no
5209 for s in GNU BSD; do
5210 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5211 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }
5215 case $?:`cat confinc.out 2>/dev/null` in #(
5216 '0:this is the am__doit target') :
5217 case $s in #(
5218 BSD) :
5219 am__include='.include' am__quote='"' ;; #(
5220 *) :
5221 am__include='include' am__quote='' ;;
5222 esac ;; #(
5223 *) :
5224 ;;
5225 esac
5226 if test "$am__include" != "#"; then
5227 _am_result="yes ($s style)"
5228 break
5229 fi
5230 done
5231 rm -f confinc.* confmf.*
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5233 printf "%s\n" "${_am_result}" >&6; }
5234
5235 # Check whether --enable-dependency-tracking was given.
5236 if test ${enable_dependency_tracking+y}
5237 then :
5238 enableval=$enable_dependency_tracking;
5239 fi
5240
5241 if test "x$enable_dependency_tracking" != xno; then
5242 am_depcomp="$ac_aux_dir/depcomp"
5243 AMDEPBACKSLASH='\'
5244 am__nodep='_no'
5245 fi
5246 if test "x$enable_dependency_tracking" != xno; then
5247 AMDEP_TRUE=
5248 AMDEP_FALSE='#'
5249 else
5250 AMDEP_TRUE='#'
5251 AMDEP_FALSE=
5252 fi
5253
5254
5255
5256 depcc="$CC" am_compiler_list=
5257
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5259 printf %s "checking dependency style of $depcc... " >&6; }
5260 if test ${am_cv_CC_dependencies_compiler_type+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else $as_nop
5264 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5265 # We make a subdir and do the tests there. Otherwise we can end up
5266 # making bogus files that we don't know about and never remove. For
5267 # instance it was reported that on HP-UX the gcc test will end up
5268 # making a dummy file named 'D' -- because '-MD' means "put the output
5269 # in D".
5270 rm -rf conftest.dir
5271 mkdir conftest.dir
5272 # Copy depcomp to subdir because otherwise we won't find it if we're
5273 # using a relative directory.
5274 cp "$am_depcomp" conftest.dir
5275 cd conftest.dir
5276 # We will build objects and dependencies in a subdirectory because
5277 # it helps to detect inapplicable dependency modes. For instance
5278 # both Tru64's cc and ICC support -MD to output dependencies as a
5279 # side effect of compilation, but ICC will put the dependencies in
5280 # the current directory while Tru64 will put them in the object
5281 # directory.
5282 mkdir sub
5283
5284 am_cv_CC_dependencies_compiler_type=none
5285 if test "$am_compiler_list" = ""; then
5286 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5287 fi
5288 am__universal=false
5289 case " $depcc " in #(
5290 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5291 esac
5292
5293 for depmode in $am_compiler_list; do
5294 # Setup a source with many dependencies, because some compilers
5295 # like to wrap large dependency lists on column 80 (with \), and
5296 # we should not choose a depcomp mode which is confused by this.
5297 #
5298 # We need to recreate these files for each test, as the compiler may
5299 # overwrite some of them when testing with obscure command lines.
5300 # This happens at least with the AIX C compiler.
5301 : > sub/conftest.c
5302 for i in 1 2 3 4 5 6; do
5303 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5304 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5305 # Solaris 10 /bin/sh.
5306 echo '/* dummy */' > sub/conftst$i.h
5307 done
5308 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5309
5310 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5311 # mode. It turns out that the SunPro C++ compiler does not properly
5312 # handle '-M -o', and we need to detect this. Also, some Intel
5313 # versions had trouble with output in subdirs.
5314 am__obj=sub/conftest.${OBJEXT-o}
5315 am__minus_obj="-o $am__obj"
5316 case $depmode in
5317 gcc)
5318 # This depmode causes a compiler race in universal mode.
5319 test "$am__universal" = false || continue
5320 ;;
5321 nosideeffect)
5322 # After this tag, mechanisms are not by side-effect, so they'll
5323 # only be used when explicitly requested.
5324 if test "x$enable_dependency_tracking" = xyes; then
5325 continue
5326 else
5327 break
5328 fi
5329 ;;
5330 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5331 # This compiler won't grok '-c -o', but also, the minuso test has
5332 # not run yet. These depmodes are late enough in the game, and
5333 # so weak that their functioning should not be impacted.
5334 am__obj=conftest.${OBJEXT-o}
5335 am__minus_obj=
5336 ;;
5337 none) break ;;
5338 esac
5339 if depmode=$depmode \
5340 source=sub/conftest.c object=$am__obj \
5341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5342 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5343 >/dev/null 2>conftest.err &&
5344 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5346 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5348 # icc doesn't choke on unknown options, it will just issue warnings
5349 # or remarks (even with -Werror). So we grep stderr for any message
5350 # that says an option was ignored or not supported.
5351 # When given -MP, icc 7.0 and 7.1 complain thusly:
5352 # icc: Command line warning: ignoring option '-M'; no argument required
5353 # The diagnosis changed in icc 8.0:
5354 # icc: Command line remark: option '-MP' not supported
5355 if (grep 'ignoring option' conftest.err ||
5356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5357 am_cv_CC_dependencies_compiler_type=$depmode
5358 break
5359 fi
5360 fi
5361 done
5362
5363 cd ..
5364 rm -rf conftest.dir
5365 else
5366 am_cv_CC_dependencies_compiler_type=none
5367 fi
5368
5369 fi
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5371 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5372 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5373
5374 if
5375 test "x$enable_dependency_tracking" != xno \
5376 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5377 am__fastdepCC_TRUE=
5378 am__fastdepCC_FALSE='#'
5379 else
5380 am__fastdepCC_TRUE='#'
5381 am__fastdepCC_FALSE=
5382 fi
5383
5384
5385
5386 ac_header= ac_cache=
5387 for ac_item in $ac_header_c_list
5388 do
5389 if test $ac_cache; then
5390 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5391 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5392 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5393 fi
5394 ac_header= ac_cache=
5395 elif test $ac_header; then
5396 ac_cache=$ac_item
5397 else
5398 ac_header=$ac_item
5399 fi
5400 done
5401
5402
5403
5404
5405
5406
5407
5408
5409 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5410 then :
5411
5412 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5413
5414 fi
5415
5416
5417
5418
5419
5420
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5422 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5423 if test ${ac_cv_safe_to_define___extensions__+y}
5424 then :
5425 printf %s "(cached) " >&6
5426 else $as_nop
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429
5430 # define __EXTENSIONS__ 1
5431 $ac_includes_default
5432 int
5433 main (void)
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"
5441 then :
5442 ac_cv_safe_to_define___extensions__=yes
5443 else $as_nop
5444 ac_cv_safe_to_define___extensions__=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5447 fi
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5449 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5450
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5452 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5453 if test ${ac_cv_should_define__xopen_source+y}
5454 then :
5455 printf %s "(cached) " >&6
5456 else $as_nop
5457 ac_cv_should_define__xopen_source=no
5458 if test $ac_cv_header_wchar_h = yes
5459 then :
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462
5463 #include <wchar.h>
5464 mbstate_t x;
5465 int
5466 main (void)
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"
5474 then :
5475
5476 else $as_nop
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479
5480 #define _XOPEN_SOURCE 500
5481 #include <wchar.h>
5482 mbstate_t x;
5483 int
5484 main (void)
5485 {
5486
5487 ;
5488 return 0;
5489 }
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"
5492 then :
5493 ac_cv_should_define__xopen_source=yes
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5498 fi
5499 fi
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5501 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5502
5503 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5504
5505 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5506
5507 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5508
5509 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5510
5511 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5512
5513 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5514
5515 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5516
5517 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5518
5519 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5520
5521 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5522
5523 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5524
5525 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5526
5527 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5528
5529 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5530
5531 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5532
5533 if test $ac_cv_header_minix_config_h = yes
5534 then :
5535 MINIX=yes
5536 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5537
5538 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5539
5540 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5541
5542 else $as_nop
5543 MINIX=
5544 fi
5545 if test $ac_cv_safe_to_define___extensions__ = yes
5546 then :
5547 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5548
5549 fi
5550 if test $ac_cv_should_define__xopen_source = yes
5551 then :
5552 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5553
5554 fi
5555
5556
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog in ar lib "link -lib"
5559 do
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 printf %s "checking for $ac_word... " >&6; }
5564 if test ${ac_cv_prog_AR+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else $as_nop
5568 if test -n "$AR"; then
5569 ac_cv_prog_AR="$AR" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 case $as_dir in #(((
5576 '') as_dir=./ ;;
5577 */) ;;
5578 *) as_dir=$as_dir/ ;;
5579 esac
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586 done
5587 done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 AR=$ac_cv_prog_AR
5593 if test -n "$AR"; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5595 printf "%s\n" "$AR" >&6; }
5596 else
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 printf "%s\n" "no" >&6; }
5599 fi
5600
5601
5602 test -n "$AR" && break
5603 done
5604 fi
5605 if test -z "$AR"; then
5606 ac_ct_AR=$AR
5607 for ac_prog in ar lib "link -lib"
5608 do
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610 set dummy $ac_prog; ac_word=$2
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 printf %s "checking for $ac_word... " >&6; }
5613 if test ${ac_cv_prog_ac_ct_AR+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
5617 if test -n "$ac_ct_AR"; then
5618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 case $as_dir in #(((
5625 '') as_dir=./ ;;
5626 */) ;;
5627 *) as_dir=$as_dir/ ;;
5628 esac
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_AR="$ac_prog"
5632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635 done
5636 done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5642 if test -n "$ac_ct_AR"; then
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5644 printf "%s\n" "$ac_ct_AR" >&6; }
5645 else
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 printf "%s\n" "no" >&6; }
5648 fi
5649
5650
5651 test -n "$ac_ct_AR" && break
5652 done
5653
5654 if test "x$ac_ct_AR" = x; then
5655 AR="false"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 AR=$ac_ct_AR
5664 fi
5665 fi
5666
5667 : ${AR=ar}
5668
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5670 printf %s "checking the archiver ($AR) interface... " >&6; }
5671 if test ${am_cv_ar_interface+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else $as_nop
5675 ac_ext=c
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680
5681 am_cv_ar_interface=ar
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 int some_variable = 0;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"
5687 then :
5688 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5690 (eval $am_ar_try) 2>&5
5691 ac_status=$?
5692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }
5694 if test "$ac_status" -eq 0; then
5695 am_cv_ar_interface=ar
5696 else
5697 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5699 (eval $am_ar_try) 2>&5
5700 ac_status=$?
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5702 test $ac_status = 0; }
5703 if test "$ac_status" -eq 0; then
5704 am_cv_ar_interface=lib
5705 else
5706 am_cv_ar_interface=unknown
5707 fi
5708 fi
5709 rm -f conftest.lib libconftest.a
5710
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5713 ac_ext=c
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5718
5719 fi
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5721 printf "%s\n" "$am_cv_ar_interface" >&6; }
5722
5723 case $am_cv_ar_interface in
5724 ar)
5725 ;;
5726 lib)
5727 # Microsoft lib, so override with the ar-lib wrapper script.
5728 # FIXME: It is wrong to rewrite AR.
5729 # But if we don't then we get into trouble of one sort or another.
5730 # A longer-term fix would be to have automake use am__AR in this case,
5731 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5732 # similar.
5733 AR="$am_aux_dir/ar-lib $AR"
5734 ;;
5735 unknown)
5736 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5737 ;;
5738 esac
5739
5740 case `pwd` in
5741 *\ * | *\ *)
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5743 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5744 esac
5745
5746
5747
5748 macro_version='2.4.7'
5749 macro_revision='2.4.7'
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 ltmain=$ac_aux_dir/ltmain.sh
5765
5766
5767
5768 # Make sure we can run config.sub.
5769 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5770 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5773 printf %s "checking build system type... " >&6; }
5774 if test ${ac_cv_build+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else $as_nop
5778 ac_build_alias=$build_alias
5779 test "x$ac_build_alias" = x &&
5780 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5781 test "x$ac_build_alias" = x &&
5782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5783 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5784 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5785
5786 fi
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5788 printf "%s\n" "$ac_cv_build" >&6; }
5789 case $ac_cv_build in
5790 *-*-*) ;;
5791 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5792 esac
5793 build=$ac_cv_build
5794 ac_save_IFS=$IFS; IFS='-'
5795 set x $ac_cv_build
5796 shift
5797 build_cpu=$1
5798 build_vendor=$2
5799 shift; shift
5800 # Remember, the first character of IFS is used to create $*,
5801 # except with old shells:
5802 build_os=$*
5803 IFS=$ac_save_IFS
5804 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5805
5806
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5808 printf %s "checking host system type... " >&6; }
5809 if test ${ac_cv_host+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else $as_nop
5813 if test "x$host_alias" = x; then
5814 ac_cv_host=$ac_cv_build
5815 else
5816 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5817 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5818 fi
5819
5820 fi
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5822 printf "%s\n" "$ac_cv_host" >&6; }
5823 case $ac_cv_host in
5824 *-*-*) ;;
5825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5826 esac
5827 host=$ac_cv_host
5828 ac_save_IFS=$IFS; IFS='-'
5829 set x $ac_cv_host
5830 shift
5831 host_cpu=$1
5832 host_vendor=$2
5833 shift; shift
5834 # Remember, the first character of IFS is used to create $*,
5835 # except with old shells:
5836 host_os=$*
5837 IFS=$ac_save_IFS
5838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5839
5840
5841 # Backslashify metacharacters that are still active within
5842 # double-quoted strings.
5843 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5844
5845 # Same as above, but do not quote variable references.
5846 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5847
5848 # Sed substitution to delay expansion of an escaped shell variable in a
5849 # double_quote_subst'ed string.
5850 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5851
5852 # Sed substitution to delay expansion of an escaped single quote.
5853 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5854
5855 # Sed substitution to avoid accidental globbing in evaled expressions
5856 no_glob_subst='s/\*/\\\*/g'
5857
5858 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5859 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5860 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5861
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5863 printf %s "checking how to print strings... " >&6; }
5864 # Test print first, because it will be a builtin if present.
5865 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5866 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5867 ECHO='print -r --'
5868 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5869 ECHO='printf %s\n'
5870 else
5871 # Use this function as a fallback that always works.
5872 func_fallback_echo ()
5873 {
5874 eval 'cat <<_LTECHO_EOF
5875 $1
5876 _LTECHO_EOF'
5877 }
5878 ECHO='func_fallback_echo'
5879 fi
5880
5881 # func_echo_all arg...
5882 # Invoke $ECHO with all args, space-separated.
5883 func_echo_all ()
5884 {
5885 $ECHO ""
5886 }
5887
5888 case $ECHO in
5889 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5890 printf "%s\n" "printf" >&6; } ;;
5891 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5892 printf "%s\n" "print -r" >&6; } ;;
5893 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5894 printf "%s\n" "cat" >&6; } ;;
5895 esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5911 printf %s "checking for a sed that does not truncate output... " >&6; }
5912 if test ${ac_cv_path_SED+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else $as_nop
5916 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5917 for ac_i in 1 2 3 4 5 6 7; do
5918 ac_script="$ac_script$as_nl$ac_script"
5919 done
5920 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5921 { ac_script=; unset ac_script;}
5922 if test -z "$SED"; then
5923 ac_path_SED_found=false
5924 # Loop through the user's path and test for each of PROGNAME-LIST
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 case $as_dir in #(((
5930 '') as_dir=./ ;;
5931 */) ;;
5932 *) as_dir=$as_dir/ ;;
5933 esac
5934 for ac_prog in sed gsed
5935 do
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5938 as_fn_executable_p "$ac_path_SED" || continue
5939 # Check for GNU ac_path_SED and select it if it is found.
5940 # Check for GNU $ac_path_SED
5941 case `"$ac_path_SED" --version 2>&1` in
5942 *GNU*)
5943 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5944 *)
5945 ac_count=0
5946 printf %s 0123456789 >"conftest.in"
5947 while :
5948 do
5949 cat "conftest.in" "conftest.in" >"conftest.tmp"
5950 mv "conftest.tmp" "conftest.in"
5951 cp "conftest.in" "conftest.nl"
5952 printf "%s\n" '' >> "conftest.nl"
5953 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955 as_fn_arith $ac_count + 1 && ac_count=$as_val
5956 if test $ac_count -gt ${ac_path_SED_max-0}; then
5957 # Best one so far, save it but keep looking for a better one
5958 ac_cv_path_SED="$ac_path_SED"
5959 ac_path_SED_max=$ac_count
5960 fi
5961 # 10*(2^10) chars as input seems more than enough
5962 test $ac_count -gt 10 && break
5963 done
5964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5965 esac
5966
5967 $ac_path_SED_found && break 3
5968 done
5969 done
5970 done
5971 IFS=$as_save_IFS
5972 if test -z "$ac_cv_path_SED"; then
5973 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5974 fi
5975 else
5976 ac_cv_path_SED=$SED
5977 fi
5978
5979 fi
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5981 printf "%s\n" "$ac_cv_path_SED" >&6; }
5982 SED="$ac_cv_path_SED"
5983 rm -f conftest.sed
5984
5985 test -z "$SED" && SED=sed
5986 Xsed="$SED -e 1s/^X//"
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5999 printf %s "checking for grep that handles long lines and -e... " >&6; }
6000 if test ${ac_cv_path_GREP+y}
6001 then :
6002 printf %s "(cached) " >&6
6003 else $as_nop
6004 if test -z "$GREP"; then
6005 ac_path_GREP_found=false
6006 # Loop through the user's path and test for each of PROGNAME-LIST
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 do
6010 IFS=$as_save_IFS
6011 case $as_dir in #(((
6012 '') as_dir=./ ;;
6013 */) ;;
6014 *) as_dir=$as_dir/ ;;
6015 esac
6016 for ac_prog in grep ggrep
6017 do
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6020 as_fn_executable_p "$ac_path_GREP" || continue
6021 # Check for GNU ac_path_GREP and select it if it is found.
6022 # Check for GNU $ac_path_GREP
6023 case `"$ac_path_GREP" --version 2>&1` in
6024 *GNU*)
6025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6026 *)
6027 ac_count=0
6028 printf %s 0123456789 >"conftest.in"
6029 while :
6030 do
6031 cat "conftest.in" "conftest.in" >"conftest.tmp"
6032 mv "conftest.tmp" "conftest.in"
6033 cp "conftest.in" "conftest.nl"
6034 printf "%s\n" 'GREP' >> "conftest.nl"
6035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6037 as_fn_arith $ac_count + 1 && ac_count=$as_val
6038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6039 # Best one so far, save it but keep looking for a better one
6040 ac_cv_path_GREP="$ac_path_GREP"
6041 ac_path_GREP_max=$ac_count
6042 fi
6043 # 10*(2^10) chars as input seems more than enough
6044 test $ac_count -gt 10 && break
6045 done
6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 esac
6048
6049 $ac_path_GREP_found && break 3
6050 done
6051 done
6052 done
6053 IFS=$as_save_IFS
6054 if test -z "$ac_cv_path_GREP"; then
6055 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6056 fi
6057 else
6058 ac_cv_path_GREP=$GREP
6059 fi
6060
6061 fi
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6063 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6064 GREP="$ac_cv_path_GREP"
6065
6066
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6068 printf %s "checking for egrep... " >&6; }
6069 if test ${ac_cv_path_EGREP+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else $as_nop
6073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6074 then ac_cv_path_EGREP="$GREP -E"
6075 else
6076 if test -z "$EGREP"; then
6077 ac_path_EGREP_found=false
6078 # Loop through the user's path and test for each of PROGNAME-LIST
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6081 do
6082 IFS=$as_save_IFS
6083 case $as_dir in #(((
6084 '') as_dir=./ ;;
6085 */) ;;
6086 *) as_dir=$as_dir/ ;;
6087 esac
6088 for ac_prog in egrep
6089 do
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6092 as_fn_executable_p "$ac_path_EGREP" || continue
6093 # Check for GNU ac_path_EGREP and select it if it is found.
6094 # Check for GNU $ac_path_EGREP
6095 case `"$ac_path_EGREP" --version 2>&1` in
6096 *GNU*)
6097 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6098 *)
6099 ac_count=0
6100 printf %s 0123456789 >"conftest.in"
6101 while :
6102 do
6103 cat "conftest.in" "conftest.in" >"conftest.tmp"
6104 mv "conftest.tmp" "conftest.in"
6105 cp "conftest.in" "conftest.nl"
6106 printf "%s\n" 'EGREP' >> "conftest.nl"
6107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6109 as_fn_arith $ac_count + 1 && ac_count=$as_val
6110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6111 # Best one so far, save it but keep looking for a better one
6112 ac_cv_path_EGREP="$ac_path_EGREP"
6113 ac_path_EGREP_max=$ac_count
6114 fi
6115 # 10*(2^10) chars as input seems more than enough
6116 test $ac_count -gt 10 && break
6117 done
6118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6119 esac
6120
6121 $ac_path_EGREP_found && break 3
6122 done
6123 done
6124 done
6125 IFS=$as_save_IFS
6126 if test -z "$ac_cv_path_EGREP"; then
6127 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6128 fi
6129 else
6130 ac_cv_path_EGREP=$EGREP
6131 fi
6132
6133 fi
6134 fi
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6136 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6137 EGREP="$ac_cv_path_EGREP"
6138
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6141 printf %s "checking for fgrep... " >&6; }
6142 if test ${ac_cv_path_FGREP+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else $as_nop
6146 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6147 then ac_cv_path_FGREP="$GREP -F"
6148 else
6149 if test -z "$FGREP"; then
6150 ac_path_FGREP_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154 do
6155 IFS=$as_save_IFS
6156 case $as_dir in #(((
6157 '') as_dir=./ ;;
6158 */) ;;
6159 *) as_dir=$as_dir/ ;;
6160 esac
6161 for ac_prog in fgrep
6162 do
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6165 as_fn_executable_p "$ac_path_FGREP" || continue
6166 # Check for GNU ac_path_FGREP and select it if it is found.
6167 # Check for GNU $ac_path_FGREP
6168 case `"$ac_path_FGREP" --version 2>&1` in
6169 *GNU*)
6170 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6171 *)
6172 ac_count=0
6173 printf %s 0123456789 >"conftest.in"
6174 while :
6175 do
6176 cat "conftest.in" "conftest.in" >"conftest.tmp"
6177 mv "conftest.tmp" "conftest.in"
6178 cp "conftest.in" "conftest.nl"
6179 printf "%s\n" 'FGREP' >> "conftest.nl"
6180 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6182 as_fn_arith $ac_count + 1 && ac_count=$as_val
6183 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6184 # Best one so far, save it but keep looking for a better one
6185 ac_cv_path_FGREP="$ac_path_FGREP"
6186 ac_path_FGREP_max=$ac_count
6187 fi
6188 # 10*(2^10) chars as input seems more than enough
6189 test $ac_count -gt 10 && break
6190 done
6191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6192 esac
6193
6194 $ac_path_FGREP_found && break 3
6195 done
6196 done
6197 done
6198 IFS=$as_save_IFS
6199 if test -z "$ac_cv_path_FGREP"; then
6200 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6201 fi
6202 else
6203 ac_cv_path_FGREP=$FGREP
6204 fi
6205
6206 fi
6207 fi
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6209 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6210 FGREP="$ac_cv_path_FGREP"
6211
6212
6213 test -z "$GREP" && GREP=grep
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 # Check whether --with-gnu-ld was given.
6234 if test ${with_gnu_ld+y}
6235 then :
6236 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6237 else $as_nop
6238 with_gnu_ld=no
6239 fi
6240
6241 ac_prog=ld
6242 if test yes = "$GCC"; then
6243 # Check if gcc -print-prog-name=ld gives a path.
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6245 printf %s "checking for ld used by $CC... " >&6; }
6246 case $host in
6247 *-*-mingw*)
6248 # gcc leaves a trailing carriage return, which upsets mingw
6249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6250 *)
6251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6252 esac
6253 case $ac_prog in
6254 # Accept absolute paths.
6255 [\\/]* | ?:[\\/]*)
6256 re_direlt='/[^/][^/]*/\.\./'
6257 # Canonicalize the pathname of ld
6258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6261 done
6262 test -z "$LD" && LD=$ac_prog
6263 ;;
6264 "")
6265 # If it fails, then pretend we aren't using GCC.
6266 ac_prog=ld
6267 ;;
6268 *)
6269 # If it is relative, then search for the first ld in PATH.
6270 with_gnu_ld=unknown
6271 ;;
6272 esac
6273 elif test yes = "$with_gnu_ld"; then
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6275 printf %s "checking for GNU ld... " >&6; }
6276 else
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6278 printf %s "checking for non-GNU ld... " >&6; }
6279 fi
6280 if test ${lt_cv_path_LD+y}
6281 then :
6282 printf %s "(cached) " >&6
6283 else $as_nop
6284 if test -z "$LD"; then
6285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6286 for ac_dir in $PATH; do
6287 IFS=$lt_save_ifs
6288 test -z "$ac_dir" && ac_dir=.
6289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6290 lt_cv_path_LD=$ac_dir/$ac_prog
6291 # Check to see if the program is GNU ld. I'd rather use --version,
6292 # but apparently some variants of GNU ld only accept -v.
6293 # Break only if it was the GNU/non-GNU ld that we prefer.
6294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6295 *GNU* | *'with BFD'*)
6296 test no != "$with_gnu_ld" && break
6297 ;;
6298 *)
6299 test yes != "$with_gnu_ld" && break
6300 ;;
6301 esac
6302 fi
6303 done
6304 IFS=$lt_save_ifs
6305 else
6306 lt_cv_path_LD=$LD # Let the user override the test with a path.
6307 fi
6308 fi
6309
6310 LD=$lt_cv_path_LD
6311 if test -n "$LD"; then
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6313 printf "%s\n" "$LD" >&6; }
6314 else
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 printf "%s\n" "no" >&6; }
6317 fi
6318 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6320 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6321 if test ${lt_cv_prog_gnu_ld+y}
6322 then :
6323 printf %s "(cached) " >&6
6324 else $as_nop
6325 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6326 case `$LD -v 2>&1 </dev/null` in
6327 *GNU* | *'with BFD'*)
6328 lt_cv_prog_gnu_ld=yes
6329 ;;
6330 *)
6331 lt_cv_prog_gnu_ld=no
6332 ;;
6333 esac
6334 fi
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6336 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6337 with_gnu_ld=$lt_cv_prog_gnu_ld
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6348 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6349 if test ${lt_cv_path_NM+y}
6350 then :
6351 printf %s "(cached) " >&6
6352 else $as_nop
6353 if test -n "$NM"; then
6354 # Let the user override the test.
6355 lt_cv_path_NM=$NM
6356 else
6357 lt_nm_to_check=${ac_tool_prefix}nm
6358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6359 lt_nm_to_check="$lt_nm_to_check nm"
6360 fi
6361 for lt_tmp_nm in $lt_nm_to_check; do
6362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6364 IFS=$lt_save_ifs
6365 test -z "$ac_dir" && ac_dir=.
6366 tmp_nm=$ac_dir/$lt_tmp_nm
6367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6368 # Check to see if the nm accepts a BSD-compat flag.
6369 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6370 # nm: unknown option "B" ignored
6371 # Tru64's nm complains that /dev/null is an invalid object file
6372 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6373 case $build_os in
6374 mingw*) lt_bad_file=conftest.nm/nofile ;;
6375 *) lt_bad_file=/dev/null ;;
6376 esac
6377 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6378 *$lt_bad_file* | *'Invalid file or object type'*)
6379 lt_cv_path_NM="$tmp_nm -B"
6380 break 2
6381 ;;
6382 *)
6383 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6384 */dev/null*)
6385 lt_cv_path_NM="$tmp_nm -p"
6386 break 2
6387 ;;
6388 *)
6389 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6390 continue # so that we can try to find one that supports BSD flags
6391 ;;
6392 esac
6393 ;;
6394 esac
6395 fi
6396 done
6397 IFS=$lt_save_ifs
6398 done
6399 : ${lt_cv_path_NM=no}
6400 fi
6401 fi
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6403 printf "%s\n" "$lt_cv_path_NM" >&6; }
6404 if test no != "$lt_cv_path_NM"; then
6405 NM=$lt_cv_path_NM
6406 else
6407 # Didn't find any BSD compatible name lister, look for dumpbin.
6408 if test -n "$DUMPBIN"; then :
6409 # Let the user override the test.
6410 else
6411 if test -n "$ac_tool_prefix"; then
6412 for ac_prog in dumpbin "link -dump"
6413 do
6414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 printf %s "checking for $ac_word... " >&6; }
6418 if test ${ac_cv_prog_DUMPBIN+y}
6419 then :
6420 printf %s "(cached) " >&6
6421 else $as_nop
6422 if test -n "$DUMPBIN"; then
6423 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 case $as_dir in #(((
6430 '') as_dir=./ ;;
6431 */) ;;
6432 *) as_dir=$as_dir/ ;;
6433 esac
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 DUMPBIN=$ac_cv_prog_DUMPBIN
6447 if test -n "$DUMPBIN"; then
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6449 printf "%s\n" "$DUMPBIN" >&6; }
6450 else
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 printf "%s\n" "no" >&6; }
6453 fi
6454
6455
6456 test -n "$DUMPBIN" && break
6457 done
6458 fi
6459 if test -z "$DUMPBIN"; then
6460 ac_ct_DUMPBIN=$DUMPBIN
6461 for ac_prog in dumpbin "link -dump"
6462 do
6463 # Extract the first word of "$ac_prog", so it can be a program name with args.
6464 set dummy $ac_prog; ac_word=$2
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 printf %s "checking for $ac_word... " >&6; }
6467 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else $as_nop
6471 if test -n "$ac_ct_DUMPBIN"; then
6472 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 case $as_dir in #(((
6479 '') as_dir=./ ;;
6480 */) ;;
6481 *) as_dir=$as_dir/ ;;
6482 esac
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6496 if test -n "$ac_ct_DUMPBIN"; then
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6498 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6499 else
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 printf "%s\n" "no" >&6; }
6502 fi
6503
6504
6505 test -n "$ac_ct_DUMPBIN" && break
6506 done
6507
6508 if test "x$ac_ct_DUMPBIN" = x; then
6509 DUMPBIN=":"
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 DUMPBIN=$ac_ct_DUMPBIN
6518 fi
6519 fi
6520
6521 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6522 *COFF*)
6523 DUMPBIN="$DUMPBIN -symbols -headers"
6524 ;;
6525 *)
6526 DUMPBIN=:
6527 ;;
6528 esac
6529 fi
6530
6531 if test : != "$DUMPBIN"; then
6532 NM=$DUMPBIN
6533 fi
6534 fi
6535 test -z "$NM" && NM=nm
6536
6537
6538
6539
6540
6541
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6543 printf %s "checking the name lister ($NM) interface... " >&6; }
6544 if test ${lt_cv_nm_interface+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else $as_nop
6548 lt_cv_nm_interface="BSD nm"
6549 echo "int some_variable = 0;" > conftest.$ac_ext
6550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6551 (eval "$ac_compile" 2>conftest.err)
6552 cat conftest.err >&5
6553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6555 cat conftest.err >&5
6556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6557 cat conftest.out >&5
6558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6559 lt_cv_nm_interface="MS dumpbin"
6560 fi
6561 rm -f conftest*
6562 fi
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6564 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6565
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6567 printf %s "checking whether ln -s works... " >&6; }
6568 LN_S=$as_ln_s
6569 if test "$LN_S" = "ln -s"; then
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6571 printf "%s\n" "yes" >&6; }
6572 else
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6574 printf "%s\n" "no, using $LN_S" >&6; }
6575 fi
6576
6577 # find the maximum length of command line arguments
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6579 printf %s "checking the maximum length of command line arguments... " >&6; }
6580 if test ${lt_cv_sys_max_cmd_len+y}
6581 then :
6582 printf %s "(cached) " >&6
6583 else $as_nop
6584 i=0
6585 teststring=ABCD
6586
6587 case $build_os in
6588 msdosdjgpp*)
6589 # On DJGPP, this test can blow up pretty badly due to problems in libc
6590 # (any single argument exceeding 2000 bytes causes a buffer overrun
6591 # during glob expansion). Even if it were fixed, the result of this
6592 # check would be larger than it should be.
6593 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6594 ;;
6595
6596 gnu*)
6597 # Under GNU Hurd, this test is not required because there is
6598 # no limit to the length of command line arguments.
6599 # Libtool will interpret -1 as no limit whatsoever
6600 lt_cv_sys_max_cmd_len=-1;
6601 ;;
6602
6603 cygwin* | mingw* | cegcc*)
6604 # On Win9x/ME, this test blows up -- it succeeds, but takes
6605 # about 5 minutes as the teststring grows exponentially.
6606 # Worse, since 9x/ME are not pre-emptively multitasking,
6607 # you end up with a "frozen" computer, even though with patience
6608 # the test eventually succeeds (with a max line length of 256k).
6609 # Instead, let's just punt: use the minimum linelength reported by
6610 # all of the supported platforms: 8192 (on NT/2K/XP).
6611 lt_cv_sys_max_cmd_len=8192;
6612 ;;
6613
6614 mint*)
6615 # On MiNT this can take a long time and run out of memory.
6616 lt_cv_sys_max_cmd_len=8192;
6617 ;;
6618
6619 amigaos*)
6620 # On AmigaOS with pdksh, this test takes hours, literally.
6621 # So we just punt and use a minimum line length of 8192.
6622 lt_cv_sys_max_cmd_len=8192;
6623 ;;
6624
6625 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6626 # This has been around since 386BSD, at least. Likely further.
6627 if test -x /sbin/sysctl; then
6628 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6629 elif test -x /usr/sbin/sysctl; then
6630 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6631 else
6632 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6633 fi
6634 # And add a safety zone
6635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6637 ;;
6638
6639 interix*)
6640 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6641 lt_cv_sys_max_cmd_len=196608
6642 ;;
6643
6644 os2*)
6645 # The test takes a long time on OS/2.
6646 lt_cv_sys_max_cmd_len=8192
6647 ;;
6648
6649 osf*)
6650 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6651 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6652 # nice to cause kernel panics so lets avoid the loop below.
6653 # First set a reasonable default.
6654 lt_cv_sys_max_cmd_len=16384
6655 #
6656 if test -x /sbin/sysconfig; then
6657 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6658 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6659 esac
6660 fi
6661 ;;
6662 sco3.2v5*)
6663 lt_cv_sys_max_cmd_len=102400
6664 ;;
6665 sysv5* | sco5v6* | sysv4.2uw2*)
6666 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6667 if test -n "$kargmax"; then
6668 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6669 else
6670 lt_cv_sys_max_cmd_len=32768
6671 fi
6672 ;;
6673 *)
6674 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6675 if test -n "$lt_cv_sys_max_cmd_len" && \
6676 test undefined != "$lt_cv_sys_max_cmd_len"; then
6677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6679 else
6680 # Make teststring a little bigger before we do anything with it.
6681 # a 1K string should be a reasonable start.
6682 for i in 1 2 3 4 5 6 7 8; do
6683 teststring=$teststring$teststring
6684 done
6685 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6686 # If test is not a shell built-in, we'll probably end up computing a
6687 # maximum length that is only half of the actual maximum length, but
6688 # we can't tell.
6689 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6690 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6691 test 17 != "$i" # 1/2 MB should be enough
6692 do
6693 i=`expr $i + 1`
6694 teststring=$teststring$teststring
6695 done
6696 # Only check the string length outside the loop.
6697 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6698 teststring=
6699 # Add a significant safety factor because C++ compilers can tack on
6700 # massive amounts of additional arguments before passing them to the
6701 # linker. It appears as though 1/2 is a usable value.
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6703 fi
6704 ;;
6705 esac
6706
6707 fi
6708
6709 if test -n "$lt_cv_sys_max_cmd_len"; then
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6711 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6712 else
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6714 printf "%s\n" "none" >&6; }
6715 fi
6716 max_cmd_len=$lt_cv_sys_max_cmd_len
6717
6718
6719
6720
6721
6722
6723 : ${CP="cp -f"}
6724 : ${MV="mv -f"}
6725 : ${RM="rm -f"}
6726
6727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6728 lt_unset=unset
6729 else
6730 lt_unset=false
6731 fi
6732
6733
6734
6735
6736
6737 # test EBCDIC or ASCII
6738 case `echo X|tr X '\101'` in
6739 A) # ASCII based system
6740 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6741 lt_SP2NL='tr \040 \012'
6742 lt_NL2SP='tr \015\012 \040\040'
6743 ;;
6744 *) # EBCDIC based system
6745 lt_SP2NL='tr \100 \n'
6746 lt_NL2SP='tr \r\n \100\100'
6747 ;;
6748 esac
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6759 printf %s "checking how to convert $build file names to $host format... " >&6; }
6760 if test ${lt_cv_to_host_file_cmd+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else $as_nop
6764 case $host in
6765 *-*-mingw* )
6766 case $build in
6767 *-*-mingw* ) # actually msys
6768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6769 ;;
6770 *-*-cygwin* )
6771 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6772 ;;
6773 * ) # otherwise, assume *nix
6774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6775 ;;
6776 esac
6777 ;;
6778 *-*-cygwin* )
6779 case $build in
6780 *-*-mingw* ) # actually msys
6781 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6782 ;;
6783 *-*-cygwin* )
6784 lt_cv_to_host_file_cmd=func_convert_file_noop
6785 ;;
6786 * ) # otherwise, assume *nix
6787 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6788 ;;
6789 esac
6790 ;;
6791 * ) # unhandled hosts (and "normal" native builds)
6792 lt_cv_to_host_file_cmd=func_convert_file_noop
6793 ;;
6794 esac
6795
6796 fi
6797
6798 to_host_file_cmd=$lt_cv_to_host_file_cmd
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6800 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6801
6802
6803
6804
6805
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6807 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6808 if test ${lt_cv_to_tool_file_cmd+y}
6809 then :
6810 printf %s "(cached) " >&6
6811 else $as_nop
6812 #assume ordinary cross tools, or native build.
6813 lt_cv_to_tool_file_cmd=func_convert_file_noop
6814 case $host in
6815 *-*-mingw* )
6816 case $build in
6817 *-*-mingw* ) # actually msys
6818 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6819 ;;
6820 esac
6821 ;;
6822 esac
6823
6824 fi
6825
6826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6828 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6829
6830
6831
6832
6833
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6835 printf %s "checking for $LD option to reload object files... " >&6; }
6836 if test ${lt_cv_ld_reload_flag+y}
6837 then :
6838 printf %s "(cached) " >&6
6839 else $as_nop
6840 lt_cv_ld_reload_flag='-r'
6841 fi
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6843 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6844 reload_flag=$lt_cv_ld_reload_flag
6845 case $reload_flag in
6846 "" | " "*) ;;
6847 *) reload_flag=" $reload_flag" ;;
6848 esac
6849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6850 case $host_os in
6851 cygwin* | mingw* | pw32* | cegcc*)
6852 if test yes != "$GCC"; then
6853 reload_cmds=false
6854 fi
6855 ;;
6856 darwin*)
6857 if test yes = "$GCC"; then
6858 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6859 else
6860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6861 fi
6862 ;;
6863 esac
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}file; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_prog_FILECMD+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else $as_nop
6882 if test -n "$FILECMD"; then
6883 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 case $as_dir in #(((
6890 '') as_dir=./ ;;
6891 */) ;;
6892 *) as_dir=$as_dir/ ;;
6893 esac
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 FILECMD=$ac_cv_prog_FILECMD
6907 if test -n "$FILECMD"; then
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6909 printf "%s\n" "$FILECMD" >&6; }
6910 else
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 printf "%s\n" "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_FILECMD"; then
6918 ac_ct_FILECMD=$FILECMD
6919 # Extract the first word of "file", so it can be a program name with args.
6920 set dummy file; ac_word=$2
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 printf %s "checking for $ac_word... " >&6; }
6923 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else $as_nop
6927 if test -n "$ac_ct_FILECMD"; then
6928 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 case $as_dir in #(((
6935 '') as_dir=./ ;;
6936 */) ;;
6937 *) as_dir=$as_dir/ ;;
6938 esac
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_FILECMD="file"
6942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6952 if test -n "$ac_ct_FILECMD"; then
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6954 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6955 else
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 printf "%s\n" "no" >&6; }
6958 fi
6959
6960 if test "x$ac_ct_FILECMD" = x; then
6961 FILECMD=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 FILECMD=$ac_ct_FILECMD
6970 fi
6971 else
6972 FILECMD="$ac_cv_prog_FILECMD"
6973 fi
6974
6975
6976
6977
6978
6979
6980
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 printf %s "checking for $ac_word... " >&6; }
6986 if test ${ac_cv_prog_OBJDUMP+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else $as_nop
6990 if test -n "$OBJDUMP"; then
6991 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 case $as_dir in #(((
6998 '') as_dir=./ ;;
6999 */) ;;
7000 *) as_dir=$as_dir/ ;;
7001 esac
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 OBJDUMP=$ac_cv_prog_OBJDUMP
7015 if test -n "$OBJDUMP"; then
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7017 printf "%s\n" "$OBJDUMP" >&6; }
7018 else
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 printf "%s\n" "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_OBJDUMP"; then
7026 ac_ct_OBJDUMP=$OBJDUMP
7027 # Extract the first word of "objdump", so it can be a program name with args.
7028 set dummy objdump; ac_word=$2
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 printf %s "checking for $ac_word... " >&6; }
7031 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7032 then :
7033 printf %s "(cached) " >&6
7034 else $as_nop
7035 if test -n "$ac_ct_OBJDUMP"; then
7036 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 case $as_dir in #(((
7043 '') as_dir=./ ;;
7044 */) ;;
7045 *) as_dir=$as_dir/ ;;
7046 esac
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7060 if test -n "$ac_ct_OBJDUMP"; then
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7062 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7063 else
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 printf "%s\n" "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_OBJDUMP" = x; then
7069 OBJDUMP="false"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 OBJDUMP=$ac_ct_OBJDUMP
7078 fi
7079 else
7080 OBJDUMP="$ac_cv_prog_OBJDUMP"
7081 fi
7082
7083 test -z "$OBJDUMP" && OBJDUMP=objdump
7084
7085
7086
7087
7088
7089
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7091 printf %s "checking how to recognize dependent libraries... " >&6; }
7092 if test ${lt_cv_deplibs_check_method+y}
7093 then :
7094 printf %s "(cached) " >&6
7095 else $as_nop
7096 lt_cv_file_magic_cmd='$MAGIC_CMD'
7097 lt_cv_file_magic_test_file=
7098 lt_cv_deplibs_check_method='unknown'
7099 # Need to set the preceding variable on all platforms that support
7100 # interlibrary dependencies.
7101 # 'none' -- dependencies not supported.
7102 # 'unknown' -- same as none, but documents that we really don't know.
7103 # 'pass_all' -- all dependencies passed with no checks.
7104 # 'test_compile' -- check by making test program.
7105 # 'file_magic [[regex]]' -- check by looking for files in library path
7106 # that responds to the $file_magic_cmd with a given extended regex.
7107 # If you have 'file' or equivalent on your system and you're not sure
7108 # whether 'pass_all' will *always* work, you probably want this one.
7109
7110 case $host_os in
7111 aix[4-9]*)
7112 lt_cv_deplibs_check_method=pass_all
7113 ;;
7114
7115 beos*)
7116 lt_cv_deplibs_check_method=pass_all
7117 ;;
7118
7119 bsdi[45]*)
7120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7121 lt_cv_file_magic_cmd='$FILECMD -L'
7122 lt_cv_file_magic_test_file=/shlib/libc.so
7123 ;;
7124
7125 cygwin*)
7126 # func_win32_libid is a shell function defined in ltmain.sh
7127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7128 lt_cv_file_magic_cmd='func_win32_libid'
7129 ;;
7130
7131 mingw* | pw32*)
7132 # Base MSYS/MinGW do not provide the 'file' command needed by
7133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7134 # unless we find 'file', for example because we are cross-compiling.
7135 if ( file / ) >/dev/null 2>&1; then
7136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7137 lt_cv_file_magic_cmd='func_win32_libid'
7138 else
7139 # Keep this pattern in sync with the one in func_win32_libid.
7140 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7141 lt_cv_file_magic_cmd='$OBJDUMP -f'
7142 fi
7143 ;;
7144
7145 cegcc*)
7146 # use the weaker test based on 'objdump'. See mingw*.
7147 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7148 lt_cv_file_magic_cmd='$OBJDUMP -f'
7149 ;;
7150
7151 darwin* | rhapsody*)
7152 lt_cv_deplibs_check_method=pass_all
7153 ;;
7154
7155 freebsd* | dragonfly* | midnightbsd*)
7156 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7157 case $host_cpu in
7158 i*86 )
7159 # Not sure whether the presence of OpenBSD here was a mistake.
7160 # Let's accept both of them until this is cleared up.
7161 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7162 lt_cv_file_magic_cmd=$FILECMD
7163 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7164 ;;
7165 esac
7166 else
7167 lt_cv_deplibs_check_method=pass_all
7168 fi
7169 ;;
7170
7171 haiku*)
7172 lt_cv_deplibs_check_method=pass_all
7173 ;;
7174
7175 hpux10.20* | hpux11*)
7176 lt_cv_file_magic_cmd=$FILECMD
7177 case $host_cpu in
7178 ia64*)
7179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7181 ;;
7182 hppa*64*)
7183 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]'
7184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7185 ;;
7186 *)
7187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7188 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7189 ;;
7190 esac
7191 ;;
7192
7193 interix[3-9]*)
7194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7196 ;;
7197
7198 irix5* | irix6* | nonstopux*)
7199 case $LD in
7200 *-32|*"-32 ") libmagic=32-bit;;
7201 *-n32|*"-n32 ") libmagic=N32;;
7202 *-64|*"-64 ") libmagic=64-bit;;
7203 *) libmagic=never-match;;
7204 esac
7205 lt_cv_deplibs_check_method=pass_all
7206 ;;
7207
7208 # This must be glibc/ELF.
7209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7210 lt_cv_deplibs_check_method=pass_all
7211 ;;
7212
7213 netbsd* | netbsdelf*-gnu)
7214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7216 else
7217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7218 fi
7219 ;;
7220
7221 newos6*)
7222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7223 lt_cv_file_magic_cmd=$FILECMD
7224 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7225 ;;
7226
7227 *nto* | *qnx*)
7228 lt_cv_deplibs_check_method=pass_all
7229 ;;
7230
7231 openbsd* | bitrig*)
7232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7234 else
7235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7236 fi
7237 ;;
7238
7239 osf3* | osf4* | osf5*)
7240 lt_cv_deplibs_check_method=pass_all
7241 ;;
7242
7243 rdos*)
7244 lt_cv_deplibs_check_method=pass_all
7245 ;;
7246
7247 solaris*)
7248 lt_cv_deplibs_check_method=pass_all
7249 ;;
7250
7251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7252 lt_cv_deplibs_check_method=pass_all
7253 ;;
7254
7255 sysv4 | sysv4.3*)
7256 case $host_vendor in
7257 motorola)
7258 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]'
7259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7260 ;;
7261 ncr)
7262 lt_cv_deplibs_check_method=pass_all
7263 ;;
7264 sequent)
7265 lt_cv_file_magic_cmd='/bin/file'
7266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7267 ;;
7268 sni)
7269 lt_cv_file_magic_cmd='/bin/file'
7270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7271 lt_cv_file_magic_test_file=/lib/libc.so
7272 ;;
7273 siemens)
7274 lt_cv_deplibs_check_method=pass_all
7275 ;;
7276 pc)
7277 lt_cv_deplibs_check_method=pass_all
7278 ;;
7279 esac
7280 ;;
7281
7282 tpf*)
7283 lt_cv_deplibs_check_method=pass_all
7284 ;;
7285 os2*)
7286 lt_cv_deplibs_check_method=pass_all
7287 ;;
7288 esac
7289
7290 fi
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7292 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7293
7294 file_magic_glob=
7295 want_nocaseglob=no
7296 if test "$build" = "$host"; then
7297 case $host_os in
7298 mingw* | pw32*)
7299 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7300 want_nocaseglob=yes
7301 else
7302 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7303 fi
7304 ;;
7305 esac
7306 fi
7307
7308 file_magic_cmd=$lt_cv_file_magic_cmd
7309 deplibs_check_method=$lt_cv_deplibs_check_method
7310 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 printf %s "checking for $ac_word... " >&6; }
7338 if test ${ac_cv_prog_DLLTOOL+y}
7339 then :
7340 printf %s "(cached) " >&6
7341 else $as_nop
7342 if test -n "$DLLTOOL"; then
7343 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 case $as_dir in #(((
7350 '') as_dir=./ ;;
7351 */) ;;
7352 *) as_dir=$as_dir/ ;;
7353 esac
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 DLLTOOL=$ac_cv_prog_DLLTOOL
7367 if test -n "$DLLTOOL"; then
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7369 printf "%s\n" "$DLLTOOL" >&6; }
7370 else
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 printf "%s\n" "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test -z "$ac_cv_prog_DLLTOOL"; then
7378 ac_ct_DLLTOOL=$DLLTOOL
7379 # Extract the first word of "dlltool", so it can be a program name with args.
7380 set dummy dlltool; ac_word=$2
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 printf %s "checking for $ac_word... " >&6; }
7383 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7384 then :
7385 printf %s "(cached) " >&6
7386 else $as_nop
7387 if test -n "$ac_ct_DLLTOOL"; then
7388 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 case $as_dir in #(((
7395 '') as_dir=./ ;;
7396 */) ;;
7397 *) as_dir=$as_dir/ ;;
7398 esac
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7412 if test -n "$ac_ct_DLLTOOL"; then
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7414 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7415 else
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 printf "%s\n" "no" >&6; }
7418 fi
7419
7420 if test "x$ac_ct_DLLTOOL" = x; then
7421 DLLTOOL="false"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 DLLTOOL=$ac_ct_DLLTOOL
7430 fi
7431 else
7432 DLLTOOL="$ac_cv_prog_DLLTOOL"
7433 fi
7434
7435 test -z "$DLLTOOL" && DLLTOOL=dlltool
7436
7437
7438
7439
7440
7441
7442
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7444 printf %s "checking how to associate runtime and link libraries... " >&6; }
7445 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7446 then :
7447 printf %s "(cached) " >&6
7448 else $as_nop
7449 lt_cv_sharedlib_from_linklib_cmd='unknown'
7450
7451 case $host_os in
7452 cygwin* | mingw* | pw32* | cegcc*)
7453 # two different shell functions defined in ltmain.sh;
7454 # decide which one to use based on capabilities of $DLLTOOL
7455 case `$DLLTOOL --help 2>&1` in
7456 *--identify-strict*)
7457 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7458 ;;
7459 *)
7460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7461 ;;
7462 esac
7463 ;;
7464 *)
7465 # fallback: assume linklib IS sharedlib
7466 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7467 ;;
7468 esac
7469
7470 fi
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7472 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7473 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7474 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7475
7476
7477
7478
7479
7480
7481
7482 if test -n "$ac_tool_prefix"; then
7483 for ac_prog in ar
7484 do
7485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 printf %s "checking for $ac_word... " >&6; }
7489 if test ${ac_cv_prog_AR+y}
7490 then :
7491 printf %s "(cached) " >&6
7492 else $as_nop
7493 if test -n "$AR"; then
7494 ac_cv_prog_AR="$AR" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 case $as_dir in #(((
7501 '') as_dir=./ ;;
7502 */) ;;
7503 *) as_dir=$as_dir/ ;;
7504 esac
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 AR=$ac_cv_prog_AR
7518 if test -n "$AR"; then
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7520 printf "%s\n" "$AR" >&6; }
7521 else
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 printf "%s\n" "no" >&6; }
7524 fi
7525
7526
7527 test -n "$AR" && break
7528 done
7529 fi
7530 if test -z "$AR"; then
7531 ac_ct_AR=$AR
7532 for ac_prog in ar
7533 do
7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 printf %s "checking for $ac_word... " >&6; }
7538 if test ${ac_cv_prog_ac_ct_AR+y}
7539 then :
7540 printf %s "(cached) " >&6
7541 else $as_nop
7542 if test -n "$ac_ct_AR"; then
7543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548 IFS=$as_save_IFS
7549 case $as_dir in #(((
7550 '') as_dir=./ ;;
7551 */) ;;
7552 *) as_dir=$as_dir/ ;;
7553 esac
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_AR="$ac_prog"
7557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7567 if test -n "$ac_ct_AR"; then
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7569 printf "%s\n" "$ac_ct_AR" >&6; }
7570 else
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 printf "%s\n" "no" >&6; }
7573 fi
7574
7575
7576 test -n "$ac_ct_AR" && break
7577 done
7578
7579 if test "x$ac_ct_AR" = x; then
7580 AR="false"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 AR=$ac_ct_AR
7589 fi
7590 fi
7591
7592 : ${AR=ar}
7593
7594
7595
7596
7597
7598
7599 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7600 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7601 # higher priority because thats what people were doing historically (setting
7602 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7603 # variable obsoleted/removed.
7604
7605 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7606 lt_ar_flags=$AR_FLAGS
7607
7608
7609
7610
7611
7612
7613 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7614 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7615
7616
7617
7618
7619
7620
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7622 printf %s "checking for archiver @FILE support... " >&6; }
7623 if test ${lt_cv_ar_at_file+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
7627 lt_cv_ar_at_file=no
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 int
7632 main (void)
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"
7640 then :
7641 echo conftest.$ac_objext > conftest.lst
7642 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7644 (eval $lt_ar_try) 2>&5
7645 ac_status=$?
7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }
7648 if test 0 -eq "$ac_status"; then
7649 # Ensure the archiver fails upon bogus file names.
7650 rm -f conftest.$ac_objext libconftest.a
7651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7652 (eval $lt_ar_try) 2>&5
7653 ac_status=$?
7654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }
7656 if test 0 -ne "$ac_status"; then
7657 lt_cv_ar_at_file=@
7658 fi
7659 fi
7660 rm -f conftest.* libconftest.a
7661
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7664
7665 fi
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7667 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7668
7669 if test no = "$lt_cv_ar_at_file"; then
7670 archiver_list_spec=
7671 else
7672 archiver_list_spec=$lt_cv_ar_at_file
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681 if test -n "$ac_tool_prefix"; then
7682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}strip; ac_word=$2
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 printf %s "checking for $ac_word... " >&6; }
7686 if test ${ac_cv_prog_STRIP+y}
7687 then :
7688 printf %s "(cached) " >&6
7689 else $as_nop
7690 if test -n "$STRIP"; then
7691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696 IFS=$as_save_IFS
7697 case $as_dir in #(((
7698 '') as_dir=./ ;;
7699 */) ;;
7700 *) as_dir=$as_dir/ ;;
7701 esac
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 STRIP=$ac_cv_prog_STRIP
7715 if test -n "$STRIP"; then
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7717 printf "%s\n" "$STRIP" >&6; }
7718 else
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 printf "%s\n" "no" >&6; }
7721 fi
7722
7723
7724 fi
7725 if test -z "$ac_cv_prog_STRIP"; then
7726 ac_ct_STRIP=$STRIP
7727 # Extract the first word of "strip", so it can be a program name with args.
7728 set dummy strip; ac_word=$2
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 printf %s "checking for $ac_word... " >&6; }
7731 if test ${ac_cv_prog_ac_ct_STRIP+y}
7732 then :
7733 printf %s "(cached) " >&6
7734 else $as_nop
7735 if test -n "$ac_ct_STRIP"; then
7736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 case $as_dir in #(((
7743 '') as_dir=./ ;;
7744 */) ;;
7745 *) as_dir=$as_dir/ ;;
7746 esac
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_STRIP="strip"
7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7760 if test -n "$ac_ct_STRIP"; then
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7762 printf "%s\n" "$ac_ct_STRIP" >&6; }
7763 else
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 printf "%s\n" "no" >&6; }
7766 fi
7767
7768 if test "x$ac_ct_STRIP" = x; then
7769 STRIP=":"
7770 else
7771 case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 STRIP=$ac_ct_STRIP
7778 fi
7779 else
7780 STRIP="$ac_cv_prog_STRIP"
7781 fi
7782
7783 test -z "$STRIP" && STRIP=:
7784
7785
7786
7787
7788
7789
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 printf %s "checking for $ac_word... " >&6; }
7795 if test ${ac_cv_prog_RANLIB+y}
7796 then :
7797 printf %s "(cached) " >&6
7798 else $as_nop
7799 if test -n "$RANLIB"; then
7800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 case $as_dir in #(((
7807 '') as_dir=./ ;;
7808 */) ;;
7809 *) as_dir=$as_dir/ ;;
7810 esac
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 RANLIB=$ac_cv_prog_RANLIB
7824 if test -n "$RANLIB"; then
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7826 printf "%s\n" "$RANLIB" >&6; }
7827 else
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 printf "%s\n" "no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_RANLIB"; then
7835 ac_ct_RANLIB=$RANLIB
7836 # Extract the first word of "ranlib", so it can be a program name with args.
7837 set dummy ranlib; ac_word=$2
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 printf %s "checking for $ac_word... " >&6; }
7840 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7841 then :
7842 printf %s "(cached) " >&6
7843 else $as_nop
7844 if test -n "$ac_ct_RANLIB"; then
7845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850 IFS=$as_save_IFS
7851 case $as_dir in #(((
7852 '') as_dir=./ ;;
7853 */) ;;
7854 *) as_dir=$as_dir/ ;;
7855 esac
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_ac_ct_RANLIB="ranlib"
7859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862 done
7863 done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7869 if test -n "$ac_ct_RANLIB"; then
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7871 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7872 else
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 printf "%s\n" "no" >&6; }
7875 fi
7876
7877 if test "x$ac_ct_RANLIB" = x; then
7878 RANLIB=":"
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886 RANLIB=$ac_ct_RANLIB
7887 fi
7888 else
7889 RANLIB="$ac_cv_prog_RANLIB"
7890 fi
7891
7892 test -z "$RANLIB" && RANLIB=:
7893
7894
7895
7896
7897
7898
7899 # Determine commands to create old-style static archives.
7900 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7901 old_postinstall_cmds='chmod 644 $oldlib'
7902 old_postuninstall_cmds=
7903
7904 if test -n "$RANLIB"; then
7905 case $host_os in
7906 bitrig* | openbsd*)
7907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7908 ;;
7909 *)
7910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7911 ;;
7912 esac
7913 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7914 fi
7915
7916 case $host_os in
7917 darwin*)
7918 lock_old_archive_extraction=yes ;;
7919 *)
7920 lock_old_archive_extraction=no ;;
7921 esac
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 # If no C compiler was specified, use CC.
7962 LTCC=${LTCC-"$CC"}
7963
7964 # If no C compiler flags were specified, use CFLAGS.
7965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7966
7967 # Allow CC to be a program name with arguments.
7968 compiler=$CC
7969
7970
7971 # Check for command to grab the raw symbol name followed by C symbol from nm.
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7973 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7974 if test ${lt_cv_sys_global_symbol_pipe+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else $as_nop
7978
7979 # These are sane defaults that work on at least a few old systems.
7980 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7981
7982 # Character class describing NM global symbol codes.
7983 symcode='[BCDEGRST]'
7984
7985 # Regexp to match symbols that can be accessed directly from C.
7986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7987
7988 # Define system-specific variables.
7989 case $host_os in
7990 aix*)
7991 symcode='[BCDT]'
7992 ;;
7993 cygwin* | mingw* | pw32* | cegcc*)
7994 symcode='[ABCDGISTW]'
7995 ;;
7996 hpux*)
7997 if test ia64 = "$host_cpu"; then
7998 symcode='[ABCDEGRST]'
7999 fi
8000 ;;
8001 irix* | nonstopux*)
8002 symcode='[BCDEGRST]'
8003 ;;
8004 osf*)
8005 symcode='[BCDEGQRST]'
8006 ;;
8007 solaris*)
8008 symcode='[BDRT]'
8009 ;;
8010 sco3.2v5*)
8011 symcode='[DT]'
8012 ;;
8013 sysv4.2uw2*)
8014 symcode='[DT]'
8015 ;;
8016 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8017 symcode='[ABDT]'
8018 ;;
8019 sysv4)
8020 symcode='[DFNSTU]'
8021 ;;
8022 esac
8023
8024 # If we're using GNU nm, then use its standard symbol codes.
8025 case `$NM -V 2>&1` in
8026 *GNU* | *'with BFD'*)
8027 symcode='[ABCDGIRSTW]' ;;
8028 esac
8029
8030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8031 # Gets list of data symbols to import.
8032 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8033 # Adjust the below global symbol transforms to fixup imported variables.
8034 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8035 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8036 lt_c_name_lib_hook="\
8037 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8038 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8039 else
8040 # Disable hooks by default.
8041 lt_cv_sys_global_symbol_to_import=
8042 lt_cdecl_hook=
8043 lt_c_name_hook=
8044 lt_c_name_lib_hook=
8045 fi
8046
8047 # Transform an extracted symbol line into a proper C declaration.
8048 # Some systems (esp. on ia64) link data and code symbols differently,
8049 # so use this general approach.
8050 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8051 $lt_cdecl_hook\
8052 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8053 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8054
8055 # Transform an extracted symbol line into symbol name and symbol address
8056 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8057 $lt_c_name_hook\
8058 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8059 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8060
8061 # Transform an extracted symbol line into symbol name with lib prefix and
8062 # symbol address.
8063 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8064 $lt_c_name_lib_hook\
8065 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8066 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8067 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8068
8069 # Handle CRLF in mingw tool chain
8070 opt_cr=
8071 case $build_os in
8072 mingw*)
8073 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8074 ;;
8075 esac
8076
8077 # Try without a prefix underscore, then with it.
8078 for ac_symprfx in "" "_"; do
8079
8080 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8081 symxfrm="\\1 $ac_symprfx\\2 \\2"
8082
8083 # Write the raw and C identifiers.
8084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8085 # Fake it for dumpbin and say T for any non-static function,
8086 # D for any global variable and I for any imported variable.
8087 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8088 # which start with @ or ?.
8089 lt_cv_sys_global_symbol_pipe="$AWK '"\
8090 " {last_section=section; section=\$ 3};"\
8091 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8092 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8093 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8094 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8095 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8096 " \$ 0!~/External *\|/{next};"\
8097 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8098 " {if(hide[section]) next};"\
8099 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8100 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8101 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8102 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8103 " ' prfx=^$ac_symprfx"
8104 else
8105 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8106 fi
8107 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8108
8109 # Check to see that the pipe works correctly.
8110 pipe_works=no
8111
8112 rm -f conftest*
8113 cat > conftest.$ac_ext <<_LT_EOF
8114 #ifdef __cplusplus
8115 extern "C" {
8116 #endif
8117 char nm_test_var;
8118 void nm_test_func(void);
8119 void nm_test_func(void){}
8120 #ifdef __cplusplus
8121 }
8122 #endif
8123 int main(){nm_test_var='a';nm_test_func();return(0);}
8124 _LT_EOF
8125
8126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8127 (eval $ac_compile) 2>&5
8128 ac_status=$?
8129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }; then
8131 # Now try to grab the symbols.
8132 nlist=conftest.nm
8133 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8134 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8135 # Try sorting and uniquifying the output.
8136 if sort "$nlist" | uniq > "$nlist"T; then
8137 mv -f "$nlist"T "$nlist"
8138 else
8139 rm -f "$nlist"T
8140 fi
8141
8142 # Make sure that we snagged all the symbols we need.
8143 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8144 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8145 cat <<_LT_EOF > conftest.$ac_ext
8146 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8147 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8148 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8149 relocations are performed -- see ld's documentation on pseudo-relocs. */
8150 # define LT_DLSYM_CONST
8151 #elif defined __osf__
8152 /* This system does not cope well with relocations in const data. */
8153 # define LT_DLSYM_CONST
8154 #else
8155 # define LT_DLSYM_CONST const
8156 #endif
8157
8158 #ifdef __cplusplus
8159 extern "C" {
8160 #endif
8161
8162 _LT_EOF
8163 # Now generate the symbol file.
8164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8165
8166 cat <<_LT_EOF >> conftest.$ac_ext
8167
8168 /* The mapping between symbol names and symbols. */
8169 LT_DLSYM_CONST struct {
8170 const char *name;
8171 void *address;
8172 }
8173 lt__PROGRAM__LTX_preloaded_symbols[] =
8174 {
8175 { "@PROGRAM@", (void *) 0 },
8176 _LT_EOF
8177 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8178 cat <<\_LT_EOF >> conftest.$ac_ext
8179 {0, (void *) 0}
8180 };
8181
8182 /* This works around a problem in FreeBSD linker */
8183 #ifdef FREEBSD_WORKAROUND
8184 static const void *lt_preloaded_setup() {
8185 return lt__PROGRAM__LTX_preloaded_symbols;
8186 }
8187 #endif
8188
8189 #ifdef __cplusplus
8190 }
8191 #endif
8192 _LT_EOF
8193 # Now try linking the two files.
8194 mv conftest.$ac_objext conftstm.$ac_objext
8195 lt_globsym_save_LIBS=$LIBS
8196 lt_globsym_save_CFLAGS=$CFLAGS
8197 LIBS=conftstm.$ac_objext
8198 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8200 (eval $ac_link) 2>&5
8201 ac_status=$?
8202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8203 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8204 pipe_works=yes
8205 fi
8206 LIBS=$lt_globsym_save_LIBS
8207 CFLAGS=$lt_globsym_save_CFLAGS
8208 else
8209 echo "cannot find nm_test_func in $nlist" >&5
8210 fi
8211 else
8212 echo "cannot find nm_test_var in $nlist" >&5
8213 fi
8214 else
8215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8216 fi
8217 else
8218 echo "$progname: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 fi
8221 rm -rf conftest* conftst*
8222
8223 # Do not use the global_symbol_pipe unless it works.
8224 if test yes = "$pipe_works"; then
8225 break
8226 else
8227 lt_cv_sys_global_symbol_pipe=
8228 fi
8229 done
8230
8231 fi
8232
8233 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8234 lt_cv_sys_global_symbol_to_cdecl=
8235 fi
8236 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8238 printf "%s\n" "failed" >&6; }
8239 else
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8241 printf "%s\n" "ok" >&6; }
8242 fi
8243
8244 # Response file support.
8245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8246 nm_file_list_spec='@'
8247 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8248 nm_file_list_spec='@'
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8288 printf %s "checking for sysroot... " >&6; }
8289
8290 # Check whether --with-sysroot was given.
8291 if test ${with_sysroot+y}
8292 then :
8293 withval=$with_sysroot;
8294 else $as_nop
8295 with_sysroot=no
8296 fi
8297
8298
8299 lt_sysroot=
8300 case $with_sysroot in #(
8301 yes)
8302 if test yes = "$GCC"; then
8303 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8304 fi
8305 ;; #(
8306 /*)
8307 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8308 ;; #(
8309 no|'')
8310 ;; #(
8311 *)
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8313 printf "%s\n" "$with_sysroot" >&6; }
8314 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8315 ;;
8316 esac
8317
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8319 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8320
8321
8322
8323
8324
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8326 printf %s "checking for a working dd... " >&6; }
8327 if test ${ac_cv_path_lt_DD+y}
8328 then :
8329 printf %s "(cached) " >&6
8330 else $as_nop
8331 printf 0123456789abcdef0123456789abcdef >conftest.i
8332 cat conftest.i conftest.i >conftest2.i
8333 : ${lt_DD:=$DD}
8334 if test -z "$lt_DD"; then
8335 ac_path_lt_DD_found=false
8336 # Loop through the user's path and test for each of PROGNAME-LIST
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340 IFS=$as_save_IFS
8341 case $as_dir in #(((
8342 '') as_dir=./ ;;
8343 */) ;;
8344 *) as_dir=$as_dir/ ;;
8345 esac
8346 for ac_prog in dd
8347 do
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8350 as_fn_executable_p "$ac_path_lt_DD" || continue
8351 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8352 cmp -s conftest.i conftest.out \
8353 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8354 fi
8355 $ac_path_lt_DD_found && break 3
8356 done
8357 done
8358 done
8359 IFS=$as_save_IFS
8360 if test -z "$ac_cv_path_lt_DD"; then
8361 :
8362 fi
8363 else
8364 ac_cv_path_lt_DD=$lt_DD
8365 fi
8366
8367 rm -f conftest.i conftest2.i conftest.out
8368 fi
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8370 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8371
8372
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8374 printf %s "checking how to truncate binary pipes... " >&6; }
8375 if test ${lt_cv_truncate_bin+y}
8376 then :
8377 printf %s "(cached) " >&6
8378 else $as_nop
8379 printf 0123456789abcdef0123456789abcdef >conftest.i
8380 cat conftest.i conftest.i >conftest2.i
8381 lt_cv_truncate_bin=
8382 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8383 cmp -s conftest.i conftest.out \
8384 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8385 fi
8386 rm -f conftest.i conftest2.i conftest.out
8387 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8388 fi
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8390 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8391
8392
8393
8394
8395
8396
8397
8398 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8399 func_cc_basename ()
8400 {
8401 for cc_temp in $*""; do
8402 case $cc_temp in
8403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8405 \-*) ;;
8406 *) break;;
8407 esac
8408 done
8409 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8410 }
8411
8412 # Check whether --enable-libtool-lock was given.
8413 if test ${enable_libtool_lock+y}
8414 then :
8415 enableval=$enable_libtool_lock;
8416 fi
8417
8418 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8419
8420 # Some flags need to be propagated to the compiler or linker for good
8421 # libtool support.
8422 case $host in
8423 ia64-*-hpux*)
8424 # Find out what ABI is being produced by ac_compile, and set mode
8425 # options accordingly.
8426 echo 'int i;' > conftest.$ac_ext
8427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8428 (eval $ac_compile) 2>&5
8429 ac_status=$?
8430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8431 test $ac_status = 0; }; then
8432 case `$FILECMD conftest.$ac_objext` in
8433 *ELF-32*)
8434 HPUX_IA64_MODE=32
8435 ;;
8436 *ELF-64*)
8437 HPUX_IA64_MODE=64
8438 ;;
8439 esac
8440 fi
8441 rm -rf conftest*
8442 ;;
8443 *-*-irix6*)
8444 # Find out what ABI is being produced by ac_compile, and set linker
8445 # options accordingly.
8446 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8448 (eval $ac_compile) 2>&5
8449 ac_status=$?
8450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8451 test $ac_status = 0; }; then
8452 if test yes = "$lt_cv_prog_gnu_ld"; then
8453 case `$FILECMD conftest.$ac_objext` in
8454 *32-bit*)
8455 LD="${LD-ld} -melf32bsmip"
8456 ;;
8457 *N32*)
8458 LD="${LD-ld} -melf32bmipn32"
8459 ;;
8460 *64-bit*)
8461 LD="${LD-ld} -melf64bmip"
8462 ;;
8463 esac
8464 else
8465 case `$FILECMD conftest.$ac_objext` in
8466 *32-bit*)
8467 LD="${LD-ld} -32"
8468 ;;
8469 *N32*)
8470 LD="${LD-ld} -n32"
8471 ;;
8472 *64-bit*)
8473 LD="${LD-ld} -64"
8474 ;;
8475 esac
8476 fi
8477 fi
8478 rm -rf conftest*
8479 ;;
8480
8481 mips64*-*linux*)
8482 # Find out what ABI is being produced by ac_compile, and set linker
8483 # options accordingly.
8484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8486 (eval $ac_compile) 2>&5
8487 ac_status=$?
8488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8489 test $ac_status = 0; }; then
8490 emul=elf
8491 case `$FILECMD conftest.$ac_objext` in
8492 *32-bit*)
8493 emul="${emul}32"
8494 ;;
8495 *64-bit*)
8496 emul="${emul}64"
8497 ;;
8498 esac
8499 case `$FILECMD conftest.$ac_objext` in
8500 *MSB*)
8501 emul="${emul}btsmip"
8502 ;;
8503 *LSB*)
8504 emul="${emul}ltsmip"
8505 ;;
8506 esac
8507 case `$FILECMD conftest.$ac_objext` in
8508 *N32*)
8509 emul="${emul}n32"
8510 ;;
8511 esac
8512 LD="${LD-ld} -m $emul"
8513 fi
8514 rm -rf conftest*
8515 ;;
8516
8517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8518 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8519 # Find out what ABI is being produced by ac_compile, and set linker
8520 # options accordingly. Note that the listed cases only cover the
8521 # situations where additional linker options are needed (such as when
8522 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8523 # vice versa); the common cases where no linker options are needed do
8524 # not appear in the list.
8525 echo 'int i;' > conftest.$ac_ext
8526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8527 (eval $ac_compile) 2>&5
8528 ac_status=$?
8529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8530 test $ac_status = 0; }; then
8531 case `$FILECMD conftest.o` in
8532 *32-bit*)
8533 case $host in
8534 x86_64-*kfreebsd*-gnu)
8535 LD="${LD-ld} -m elf_i386_fbsd"
8536 ;;
8537 x86_64-*linux*)
8538 case `$FILECMD conftest.o` in
8539 *x86-64*)
8540 LD="${LD-ld} -m elf32_x86_64"
8541 ;;
8542 *)
8543 LD="${LD-ld} -m elf_i386"
8544 ;;
8545 esac
8546 ;;
8547 powerpc64le-*linux*)
8548 LD="${LD-ld} -m elf32lppclinux"
8549 ;;
8550 powerpc64-*linux*)
8551 LD="${LD-ld} -m elf32ppclinux"
8552 ;;
8553 s390x-*linux*)
8554 LD="${LD-ld} -m elf_s390"
8555 ;;
8556 sparc64-*linux*)
8557 LD="${LD-ld} -m elf32_sparc"
8558 ;;
8559 esac
8560 ;;
8561 *64-bit*)
8562 case $host in
8563 x86_64-*kfreebsd*-gnu)
8564 LD="${LD-ld} -m elf_x86_64_fbsd"
8565 ;;
8566 x86_64-*linux*)
8567 LD="${LD-ld} -m elf_x86_64"
8568 ;;
8569 powerpcle-*linux*)
8570 LD="${LD-ld} -m elf64lppc"
8571 ;;
8572 powerpc-*linux*)
8573 LD="${LD-ld} -m elf64ppc"
8574 ;;
8575 s390*-*linux*|s390*-*tpf*)
8576 LD="${LD-ld} -m elf64_s390"
8577 ;;
8578 sparc*-*linux*)
8579 LD="${LD-ld} -m elf64_sparc"
8580 ;;
8581 esac
8582 ;;
8583 esac
8584 fi
8585 rm -rf conftest*
8586 ;;
8587
8588 *-*-sco3.2v5*)
8589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8590 SAVE_CFLAGS=$CFLAGS
8591 CFLAGS="$CFLAGS -belf"
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8593 printf %s "checking whether the C compiler needs -belf... " >&6; }
8594 if test ${lt_cv_cc_needs_belf+y}
8595 then :
8596 printf %s "(cached) " >&6
8597 else $as_nop
8598 ac_ext=c
8599 ac_cpp='$CPP $CPPFLAGS'
8600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8603
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606
8607 int
8608 main (void)
8609 {
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"
8616 then :
8617 lt_cv_cc_needs_belf=yes
8618 else $as_nop
8619 lt_cv_cc_needs_belf=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8622 conftest$ac_exeext conftest.$ac_ext
8623 ac_ext=c
8624 ac_cpp='$CPP $CPPFLAGS'
8625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628
8629 fi
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8631 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8632 if test yes != "$lt_cv_cc_needs_belf"; then
8633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8634 CFLAGS=$SAVE_CFLAGS
8635 fi
8636 ;;
8637 *-*solaris*)
8638 # Find out what ABI is being produced by ac_compile, and set linker
8639 # options accordingly.
8640 echo 'int i;' > conftest.$ac_ext
8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8642 (eval $ac_compile) 2>&5
8643 ac_status=$?
8644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8645 test $ac_status = 0; }; then
8646 case `$FILECMD conftest.o` in
8647 *64-bit*)
8648 case $lt_cv_prog_gnu_ld in
8649 yes*)
8650 case $host in
8651 i?86-*-solaris*|x86_64-*-solaris*)
8652 LD="${LD-ld} -m elf_x86_64"
8653 ;;
8654 sparc*-*-solaris*)
8655 LD="${LD-ld} -m elf64_sparc"
8656 ;;
8657 esac
8658 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8659 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8660 LD=${LD-ld}_sol2
8661 fi
8662 ;;
8663 *)
8664 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8665 LD="${LD-ld} -64"
8666 fi
8667 ;;
8668 esac
8669 ;;
8670 esac
8671 fi
8672 rm -rf conftest*
8673 ;;
8674 esac
8675
8676 need_locks=$enable_libtool_lock
8677
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}mt; ac_word=$2
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 printf %s "checking for $ac_word... " >&6; }
8683 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8684 then :
8685 printf %s "(cached) " >&6
8686 else $as_nop
8687 if test -n "$MANIFEST_TOOL"; then
8688 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 case $as_dir in #(((
8695 '') as_dir=./ ;;
8696 */) ;;
8697 *) as_dir=$as_dir/ ;;
8698 esac
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8712 if test -n "$MANIFEST_TOOL"; then
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8714 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8715 else
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 printf "%s\n" "no" >&6; }
8718 fi
8719
8720
8721 fi
8722 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8723 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8724 # Extract the first word of "mt", so it can be a program name with args.
8725 set dummy mt; ac_word=$2
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 printf %s "checking for $ac_word... " >&6; }
8728 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else $as_nop
8732 if test -n "$ac_ct_MANIFEST_TOOL"; then
8733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 case $as_dir in #(((
8740 '') as_dir=./ ;;
8741 */) ;;
8742 *) as_dir=$as_dir/ ;;
8743 esac
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8746 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750 done
8751 done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8757 if test -n "$ac_ct_MANIFEST_TOOL"; then
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8759 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8760 else
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 printf "%s\n" "no" >&6; }
8763 fi
8764
8765 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8766 MANIFEST_TOOL=":"
8767 else
8768 case $cross_compiling:$ac_tool_warned in
8769 yes:)
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8772 ac_tool_warned=yes ;;
8773 esac
8774 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8775 fi
8776 else
8777 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8778 fi
8779
8780 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8782 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8783 if test ${lt_cv_path_mainfest_tool+y}
8784 then :
8785 printf %s "(cached) " >&6
8786 else $as_nop
8787 lt_cv_path_mainfest_tool=no
8788 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8789 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8790 cat conftest.err >&5
8791 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8792 lt_cv_path_mainfest_tool=yes
8793 fi
8794 rm -f conftest*
8795 fi
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8797 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8798 if test yes != "$lt_cv_path_mainfest_tool"; then
8799 MANIFEST_TOOL=:
8800 fi
8801
8802
8803
8804
8805
8806
8807 case $host_os in
8808 rhapsody* | darwin*)
8809 if test -n "$ac_tool_prefix"; then
8810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8811 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813 printf %s "checking for $ac_word... " >&6; }
8814 if test ${ac_cv_prog_DSYMUTIL+y}
8815 then :
8816 printf %s "(cached) " >&6
8817 else $as_nop
8818 if test -n "$DSYMUTIL"; then
8819 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8820 else
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8823 do
8824 IFS=$as_save_IFS
8825 case $as_dir in #(((
8826 '') as_dir=./ ;;
8827 */) ;;
8828 *) as_dir=$as_dir/ ;;
8829 esac
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8832 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8834 break 2
8835 fi
8836 done
8837 done
8838 IFS=$as_save_IFS
8839
8840 fi
8841 fi
8842 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8843 if test -n "$DSYMUTIL"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8845 printf "%s\n" "$DSYMUTIL" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851
8852 fi
8853 if test -z "$ac_cv_prog_DSYMUTIL"; then
8854 ac_ct_DSYMUTIL=$DSYMUTIL
8855 # Extract the first word of "dsymutil", so it can be a program name with args.
8856 set dummy dsymutil; ac_word=$2
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 printf %s "checking for $ac_word... " >&6; }
8859 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 if test -n "$ac_ct_DSYMUTIL"; then
8864 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8868 do
8869 IFS=$as_save_IFS
8870 case $as_dir in #(((
8871 '') as_dir=./ ;;
8872 */) ;;
8873 *) as_dir=$as_dir/ ;;
8874 esac
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8879 break 2
8880 fi
8881 done
8882 done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8888 if test -n "$ac_ct_DSYMUTIL"; then
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8890 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8891 else
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 printf "%s\n" "no" >&6; }
8894 fi
8895
8896 if test "x$ac_ct_DSYMUTIL" = x; then
8897 DSYMUTIL=":"
8898 else
8899 case $cross_compiling:$ac_tool_warned in
8900 yes:)
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8903 ac_tool_warned=yes ;;
8904 esac
8905 DSYMUTIL=$ac_ct_DSYMUTIL
8906 fi
8907 else
8908 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8909 fi
8910
8911 if test -n "$ac_tool_prefix"; then
8912 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8913 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 printf %s "checking for $ac_word... " >&6; }
8916 if test ${ac_cv_prog_NMEDIT+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else $as_nop
8920 if test -n "$NMEDIT"; then
8921 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8925 do
8926 IFS=$as_save_IFS
8927 case $as_dir in #(((
8928 '') as_dir=./ ;;
8929 */) ;;
8930 *) as_dir=$as_dir/ ;;
8931 esac
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8934 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 NMEDIT=$ac_cv_prog_NMEDIT
8945 if test -n "$NMEDIT"; then
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8947 printf "%s\n" "$NMEDIT" >&6; }
8948 else
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 printf "%s\n" "no" >&6; }
8951 fi
8952
8953
8954 fi
8955 if test -z "$ac_cv_prog_NMEDIT"; then
8956 ac_ct_NMEDIT=$NMEDIT
8957 # Extract the first word of "nmedit", so it can be a program name with args.
8958 set dummy nmedit; ac_word=$2
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 printf %s "checking for $ac_word... " >&6; }
8961 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8962 then :
8963 printf %s "(cached) " >&6
8964 else $as_nop
8965 if test -n "$ac_ct_NMEDIT"; then
8966 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971 IFS=$as_save_IFS
8972 case $as_dir in #(((
8973 '') as_dir=./ ;;
8974 */) ;;
8975 *) as_dir=$as_dir/ ;;
8976 esac
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983 done
8984 done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8990 if test -n "$ac_ct_NMEDIT"; then
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8992 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8993 else
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 printf "%s\n" "no" >&6; }
8996 fi
8997
8998 if test "x$ac_ct_NMEDIT" = x; then
8999 NMEDIT=":"
9000 else
9001 case $cross_compiling:$ac_tool_warned in
9002 yes:)
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9005 ac_tool_warned=yes ;;
9006 esac
9007 NMEDIT=$ac_ct_NMEDIT
9008 fi
9009 else
9010 NMEDIT="$ac_cv_prog_NMEDIT"
9011 fi
9012
9013 if test -n "$ac_tool_prefix"; then
9014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 printf %s "checking for $ac_word... " >&6; }
9018 if test ${ac_cv_prog_LIPO+y}
9019 then :
9020 printf %s "(cached) " >&6
9021 else $as_nop
9022 if test -n "$LIPO"; then
9023 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028 IFS=$as_save_IFS
9029 case $as_dir in #(((
9030 '') as_dir=./ ;;
9031 */) ;;
9032 *) as_dir=$as_dir/ ;;
9033 esac
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9036 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040 done
9041 done
9042 IFS=$as_save_IFS
9043
9044 fi
9045 fi
9046 LIPO=$ac_cv_prog_LIPO
9047 if test -n "$LIPO"; then
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9049 printf "%s\n" "$LIPO" >&6; }
9050 else
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 printf "%s\n" "no" >&6; }
9053 fi
9054
9055
9056 fi
9057 if test -z "$ac_cv_prog_LIPO"; then
9058 ac_ct_LIPO=$LIPO
9059 # Extract the first word of "lipo", so it can be a program name with args.
9060 set dummy lipo; ac_word=$2
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 printf %s "checking for $ac_word... " >&6; }
9063 if test ${ac_cv_prog_ac_ct_LIPO+y}
9064 then :
9065 printf %s "(cached) " >&6
9066 else $as_nop
9067 if test -n "$ac_ct_LIPO"; then
9068 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9069 else
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9072 do
9073 IFS=$as_save_IFS
9074 case $as_dir in #(((
9075 '') as_dir=./ ;;
9076 */) ;;
9077 *) as_dir=$as_dir/ ;;
9078 esac
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9081 ac_cv_prog_ac_ct_LIPO="lipo"
9082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9083 break 2
9084 fi
9085 done
9086 done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9092 if test -n "$ac_ct_LIPO"; then
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9094 printf "%s\n" "$ac_ct_LIPO" >&6; }
9095 else
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 printf "%s\n" "no" >&6; }
9098 fi
9099
9100 if test "x$ac_ct_LIPO" = x; then
9101 LIPO=":"
9102 else
9103 case $cross_compiling:$ac_tool_warned in
9104 yes:)
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9107 ac_tool_warned=yes ;;
9108 esac
9109 LIPO=$ac_ct_LIPO
9110 fi
9111 else
9112 LIPO="$ac_cv_prog_LIPO"
9113 fi
9114
9115 if test -n "$ac_tool_prefix"; then
9116 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9117 set dummy ${ac_tool_prefix}otool; ac_word=$2
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 printf %s "checking for $ac_word... " >&6; }
9120 if test ${ac_cv_prog_OTOOL+y}
9121 then :
9122 printf %s "(cached) " >&6
9123 else $as_nop
9124 if test -n "$OTOOL"; then
9125 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130 IFS=$as_save_IFS
9131 case $as_dir in #(((
9132 '') as_dir=./ ;;
9133 */) ;;
9134 *) as_dir=$as_dir/ ;;
9135 esac
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142 done
9143 done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 OTOOL=$ac_cv_prog_OTOOL
9149 if test -n "$OTOOL"; then
9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9151 printf "%s\n" "$OTOOL" >&6; }
9152 else
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 printf "%s\n" "no" >&6; }
9155 fi
9156
9157
9158 fi
9159 if test -z "$ac_cv_prog_OTOOL"; then
9160 ac_ct_OTOOL=$OTOOL
9161 # Extract the first word of "otool", so it can be a program name with args.
9162 set dummy otool; ac_word=$2
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 printf %s "checking for $ac_word... " >&6; }
9165 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else $as_nop
9169 if test -n "$ac_ct_OTOOL"; then
9170 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9171 else
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 for as_dir in $PATH
9174 do
9175 IFS=$as_save_IFS
9176 case $as_dir in #(((
9177 '') as_dir=./ ;;
9178 */) ;;
9179 *) as_dir=$as_dir/ ;;
9180 esac
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9183 ac_cv_prog_ac_ct_OTOOL="otool"
9184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9185 break 2
9186 fi
9187 done
9188 done
9189 IFS=$as_save_IFS
9190
9191 fi
9192 fi
9193 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9194 if test -n "$ac_ct_OTOOL"; then
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9196 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9197 else
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 printf "%s\n" "no" >&6; }
9200 fi
9201
9202 if test "x$ac_ct_OTOOL" = x; then
9203 OTOOL=":"
9204 else
9205 case $cross_compiling:$ac_tool_warned in
9206 yes:)
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9209 ac_tool_warned=yes ;;
9210 esac
9211 OTOOL=$ac_ct_OTOOL
9212 fi
9213 else
9214 OTOOL="$ac_cv_prog_OTOOL"
9215 fi
9216
9217 if test -n "$ac_tool_prefix"; then
9218 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9219 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 printf %s "checking for $ac_word... " >&6; }
9222 if test ${ac_cv_prog_OTOOL64+y}
9223 then :
9224 printf %s "(cached) " >&6
9225 else $as_nop
9226 if test -n "$OTOOL64"; then
9227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9228 else
9229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230 for as_dir in $PATH
9231 do
9232 IFS=$as_save_IFS
9233 case $as_dir in #(((
9234 '') as_dir=./ ;;
9235 */) ;;
9236 *) as_dir=$as_dir/ ;;
9237 esac
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9240 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9242 break 2
9243 fi
9244 done
9245 done
9246 IFS=$as_save_IFS
9247
9248 fi
9249 fi
9250 OTOOL64=$ac_cv_prog_OTOOL64
9251 if test -n "$OTOOL64"; then
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9253 printf "%s\n" "$OTOOL64" >&6; }
9254 else
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 printf "%s\n" "no" >&6; }
9257 fi
9258
9259
9260 fi
9261 if test -z "$ac_cv_prog_OTOOL64"; then
9262 ac_ct_OTOOL64=$OTOOL64
9263 # Extract the first word of "otool64", so it can be a program name with args.
9264 set dummy otool64; ac_word=$2
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 printf %s "checking for $ac_word... " >&6; }
9267 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else $as_nop
9271 if test -n "$ac_ct_OTOOL64"; then
9272 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9273 else
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 for as_dir in $PATH
9276 do
9277 IFS=$as_save_IFS
9278 case $as_dir in #(((
9279 '') as_dir=./ ;;
9280 */) ;;
9281 *) as_dir=$as_dir/ ;;
9282 esac
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9285 ac_cv_prog_ac_ct_OTOOL64="otool64"
9286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9287 break 2
9288 fi
9289 done
9290 done
9291 IFS=$as_save_IFS
9292
9293 fi
9294 fi
9295 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9296 if test -n "$ac_ct_OTOOL64"; then
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9298 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9299 else
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 printf "%s\n" "no" >&6; }
9302 fi
9303
9304 if test "x$ac_ct_OTOOL64" = x; then
9305 OTOOL64=":"
9306 else
9307 case $cross_compiling:$ac_tool_warned in
9308 yes:)
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9310 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9311 ac_tool_warned=yes ;;
9312 esac
9313 OTOOL64=$ac_ct_OTOOL64
9314 fi
9315 else
9316 OTOOL64="$ac_cv_prog_OTOOL64"
9317 fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9346 printf %s "checking for -single_module linker flag... " >&6; }
9347 if test ${lt_cv_apple_cc_single_mod+y}
9348 then :
9349 printf %s "(cached) " >&6
9350 else $as_nop
9351 lt_cv_apple_cc_single_mod=no
9352 if test -z "$LT_MULTI_MODULE"; then
9353 # By default we will add the -single_module flag. You can override
9354 # by either setting the environment variable LT_MULTI_MODULE
9355 # non-empty at configure time, or by adding -multi_module to the
9356 # link flags.
9357 rm -rf libconftest.dylib*
9358 echo "int foo(void){return 1;}" > conftest.c
9359 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9360 -dynamiclib -Wl,-single_module conftest.c" >&5
9361 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9362 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9363 _lt_result=$?
9364 # If there is a non-empty error log, and "single_module"
9365 # appears in it, assume the flag caused a linker warning
9366 if test -s conftest.err && $GREP single_module conftest.err; then
9367 cat conftest.err >&5
9368 # Otherwise, if the output was created with a 0 exit code from
9369 # the compiler, it worked.
9370 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9371 lt_cv_apple_cc_single_mod=yes
9372 else
9373 cat conftest.err >&5
9374 fi
9375 rm -rf libconftest.dylib*
9376 rm -f conftest.*
9377 fi
9378 fi
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9380 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9381
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9383 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9384 if test ${lt_cv_ld_exported_symbols_list+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else $as_nop
9388 lt_cv_ld_exported_symbols_list=no
9389 save_LDFLAGS=$LDFLAGS
9390 echo "_main" > conftest.sym
9391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394
9395 int
9396 main (void)
9397 {
9398
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"
9404 then :
9405 lt_cv_ld_exported_symbols_list=yes
9406 else $as_nop
9407 lt_cv_ld_exported_symbols_list=no
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9410 conftest$ac_exeext conftest.$ac_ext
9411 LDFLAGS=$save_LDFLAGS
9412
9413 fi
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9415 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9416
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9418 printf %s "checking for -force_load linker flag... " >&6; }
9419 if test ${lt_cv_ld_force_load+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else $as_nop
9423 lt_cv_ld_force_load=no
9424 cat > conftest.c << _LT_EOF
9425 int forced_loaded() { return 2;}
9426 _LT_EOF
9427 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9428 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9429 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9430 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9431 echo "$RANLIB libconftest.a" >&5
9432 $RANLIB libconftest.a 2>&5
9433 cat > conftest.c << _LT_EOF
9434 int main() { return 0;}
9435 _LT_EOF
9436 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9437 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9438 _lt_result=$?
9439 if test -s conftest.err && $GREP force_load conftest.err; then
9440 cat conftest.err >&5
9441 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9442 lt_cv_ld_force_load=yes
9443 else
9444 cat conftest.err >&5
9445 fi
9446 rm -f conftest.err libconftest.a conftest conftest.c
9447 rm -rf conftest.dSYM
9448
9449 fi
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9451 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9452 case $host_os in
9453 rhapsody* | darwin1.[012])
9454 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9455 darwin1.*)
9456 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9457 darwin*)
9458 case $MACOSX_DEPLOYMENT_TARGET,$host in
9459 10.[012],*|,*powerpc*-darwin[5-8]*)
9460 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9461 *)
9462 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9463 esac
9464 ;;
9465 esac
9466 if test yes = "$lt_cv_apple_cc_single_mod"; then
9467 _lt_dar_single_mod='$single_module'
9468 fi
9469 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9470 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9471 else
9472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9473 fi
9474 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9475 _lt_dsymutil='~$DSYMUTIL $lib || :'
9476 else
9477 _lt_dsymutil=
9478 fi
9479 ;;
9480 esac
9481
9482 # func_munge_path_list VARIABLE PATH
9483 # -----------------------------------
9484 # VARIABLE is name of variable containing _space_ separated list of
9485 # directories to be munged by the contents of PATH, which is string
9486 # having a format:
9487 # "DIR[:DIR]:"
9488 # string "DIR[ DIR]" will be prepended to VARIABLE
9489 # ":DIR[:DIR]"
9490 # string "DIR[ DIR]" will be appended to VARIABLE
9491 # "DIRP[:DIRP]::[DIRA:]DIRA"
9492 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9493 # "DIRA[ DIRA]" will be appended to VARIABLE
9494 # "DIR[:DIR]"
9495 # VARIABLE will be replaced by "DIR[ DIR]"
9496 func_munge_path_list ()
9497 {
9498 case x$2 in
9499 x)
9500 ;;
9501 *:)
9502 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9503 ;;
9504 x:*)
9505 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9506 ;;
9507 *::*)
9508 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9509 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9510 ;;
9511 *)
9512 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9513 ;;
9514 esac
9515 }
9516
9517 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9518 "
9519 if test "x$ac_cv_header_dlfcn_h" = xyes
9520 then :
9521 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9522
9523 fi
9524
9525
9526
9527
9528
9529 # Set options
9530 enable_win32_dll=yes
9531
9532 case $host in
9533 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9534 if test -n "$ac_tool_prefix"; then
9535 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9536 set dummy ${ac_tool_prefix}as; ac_word=$2
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 printf %s "checking for $ac_word... " >&6; }
9539 if test ${ac_cv_prog_AS+y}
9540 then :
9541 printf %s "(cached) " >&6
9542 else $as_nop
9543 if test -n "$AS"; then
9544 ac_cv_prog_AS="$AS" # Let the user override the test.
9545 else
9546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547 for as_dir in $PATH
9548 do
9549 IFS=$as_save_IFS
9550 case $as_dir in #(((
9551 '') as_dir=./ ;;
9552 */) ;;
9553 *) as_dir=$as_dir/ ;;
9554 esac
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9557 ac_cv_prog_AS="${ac_tool_prefix}as"
9558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9559 break 2
9560 fi
9561 done
9562 done
9563 IFS=$as_save_IFS
9564
9565 fi
9566 fi
9567 AS=$ac_cv_prog_AS
9568 if test -n "$AS"; then
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9570 printf "%s\n" "$AS" >&6; }
9571 else
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 printf "%s\n" "no" >&6; }
9574 fi
9575
9576
9577 fi
9578 if test -z "$ac_cv_prog_AS"; then
9579 ac_ct_AS=$AS
9580 # Extract the first word of "as", so it can be a program name with args.
9581 set dummy as; ac_word=$2
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 printf %s "checking for $ac_word... " >&6; }
9584 if test ${ac_cv_prog_ac_ct_AS+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else $as_nop
9588 if test -n "$ac_ct_AS"; then
9589 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9590 else
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in $PATH
9593 do
9594 IFS=$as_save_IFS
9595 case $as_dir in #(((
9596 '') as_dir=./ ;;
9597 */) ;;
9598 *) as_dir=$as_dir/ ;;
9599 esac
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_ac_ct_AS="as"
9603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606 done
9607 done
9608 IFS=$as_save_IFS
9609
9610 fi
9611 fi
9612 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9613 if test -n "$ac_ct_AS"; then
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9615 printf "%s\n" "$ac_ct_AS" >&6; }
9616 else
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 printf "%s\n" "no" >&6; }
9619 fi
9620
9621 if test "x$ac_ct_AS" = x; then
9622 AS="false"
9623 else
9624 case $cross_compiling:$ac_tool_warned in
9625 yes:)
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9628 ac_tool_warned=yes ;;
9629 esac
9630 AS=$ac_ct_AS
9631 fi
9632 else
9633 AS="$ac_cv_prog_AS"
9634 fi
9635
9636 if test -n "$ac_tool_prefix"; then
9637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 printf %s "checking for $ac_word... " >&6; }
9641 if test ${ac_cv_prog_DLLTOOL+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else $as_nop
9645 if test -n "$DLLTOOL"; then
9646 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9647 else
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9650 do
9651 IFS=$as_save_IFS
9652 case $as_dir in #(((
9653 '') as_dir=./ ;;
9654 */) ;;
9655 *) as_dir=$as_dir/ ;;
9656 esac
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9659 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9661 break 2
9662 fi
9663 done
9664 done
9665 IFS=$as_save_IFS
9666
9667 fi
9668 fi
9669 DLLTOOL=$ac_cv_prog_DLLTOOL
9670 if test -n "$DLLTOOL"; then
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9672 printf "%s\n" "$DLLTOOL" >&6; }
9673 else
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 printf "%s\n" "no" >&6; }
9676 fi
9677
9678
9679 fi
9680 if test -z "$ac_cv_prog_DLLTOOL"; then
9681 ac_ct_DLLTOOL=$DLLTOOL
9682 # Extract the first word of "dlltool", so it can be a program name with args.
9683 set dummy dlltool; ac_word=$2
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 printf %s "checking for $ac_word... " >&6; }
9686 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9687 then :
9688 printf %s "(cached) " >&6
9689 else $as_nop
9690 if test -n "$ac_ct_DLLTOOL"; then
9691 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9692 else
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $PATH
9695 do
9696 IFS=$as_save_IFS
9697 case $as_dir in #(((
9698 '') as_dir=./ ;;
9699 */) ;;
9700 *) as_dir=$as_dir/ ;;
9701 esac
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9704 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9706 break 2
9707 fi
9708 done
9709 done
9710 IFS=$as_save_IFS
9711
9712 fi
9713 fi
9714 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9715 if test -n "$ac_ct_DLLTOOL"; then
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9717 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9718 else
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 printf "%s\n" "no" >&6; }
9721 fi
9722
9723 if test "x$ac_ct_DLLTOOL" = x; then
9724 DLLTOOL="false"
9725 else
9726 case $cross_compiling:$ac_tool_warned in
9727 yes:)
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9730 ac_tool_warned=yes ;;
9731 esac
9732 DLLTOOL=$ac_ct_DLLTOOL
9733 fi
9734 else
9735 DLLTOOL="$ac_cv_prog_DLLTOOL"
9736 fi
9737
9738 if test -n "$ac_tool_prefix"; then
9739 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9740 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 printf %s "checking for $ac_word... " >&6; }
9743 if test ${ac_cv_prog_OBJDUMP+y}
9744 then :
9745 printf %s "(cached) " >&6
9746 else $as_nop
9747 if test -n "$OBJDUMP"; then
9748 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9749 else
9750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 for as_dir in $PATH
9752 do
9753 IFS=$as_save_IFS
9754 case $as_dir in #(((
9755 '') as_dir=./ ;;
9756 */) ;;
9757 *) as_dir=$as_dir/ ;;
9758 esac
9759 for ac_exec_ext in '' $ac_executable_extensions; do
9760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9761 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9763 break 2
9764 fi
9765 done
9766 done
9767 IFS=$as_save_IFS
9768
9769 fi
9770 fi
9771 OBJDUMP=$ac_cv_prog_OBJDUMP
9772 if test -n "$OBJDUMP"; then
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9774 printf "%s\n" "$OBJDUMP" >&6; }
9775 else
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 printf "%s\n" "no" >&6; }
9778 fi
9779
9780
9781 fi
9782 if test -z "$ac_cv_prog_OBJDUMP"; then
9783 ac_ct_OBJDUMP=$OBJDUMP
9784 # Extract the first word of "objdump", so it can be a program name with args.
9785 set dummy objdump; ac_word=$2
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 printf %s "checking for $ac_word... " >&6; }
9788 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9789 then :
9790 printf %s "(cached) " >&6
9791 else $as_nop
9792 if test -n "$ac_ct_OBJDUMP"; then
9793 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9794 else
9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 for as_dir in $PATH
9797 do
9798 IFS=$as_save_IFS
9799 case $as_dir in #(((
9800 '') as_dir=./ ;;
9801 */) ;;
9802 *) as_dir=$as_dir/ ;;
9803 esac
9804 for ac_exec_ext in '' $ac_executable_extensions; do
9805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9806 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9808 break 2
9809 fi
9810 done
9811 done
9812 IFS=$as_save_IFS
9813
9814 fi
9815 fi
9816 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9817 if test -n "$ac_ct_OBJDUMP"; then
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9819 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9820 else
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 printf "%s\n" "no" >&6; }
9823 fi
9824
9825 if test "x$ac_ct_OBJDUMP" = x; then
9826 OBJDUMP="false"
9827 else
9828 case $cross_compiling:$ac_tool_warned in
9829 yes:)
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9832 ac_tool_warned=yes ;;
9833 esac
9834 OBJDUMP=$ac_ct_OBJDUMP
9835 fi
9836 else
9837 OBJDUMP="$ac_cv_prog_OBJDUMP"
9838 fi
9839
9840 ;;
9841 esac
9842
9843 test -z "$AS" && AS=as
9844
9845
9846
9847
9848
9849 test -z "$DLLTOOL" && DLLTOOL=dlltool
9850
9851
9852
9853
9854
9855 test -z "$OBJDUMP" && OBJDUMP=objdump
9856
9857
9858
9859
9860 # Check whether --enable-static was given.
9861 if test ${enable_static+y}
9862 then :
9863 enableval=$enable_static; p=${PACKAGE-default}
9864 case $enableval in
9865 yes) enable_static=yes ;;
9866 no) enable_static=no ;;
9867 *)
9868 enable_static=no
9869 # Look at the argument we got. We use all the common list separators.
9870 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9871 for pkg in $enableval; do
9872 IFS=$lt_save_ifs
9873 if test "X$pkg" = "X$p"; then
9874 enable_static=yes
9875 fi
9876 done
9877 IFS=$lt_save_ifs
9878 ;;
9879 esac
9880 else $as_nop
9881 enable_static=no
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891 # Check whether --with-pic was given.
9892 if test ${with_pic+y}
9893 then :
9894 withval=$with_pic; lt_p=${PACKAGE-default}
9895 case $withval in
9896 yes|no) pic_mode=$withval ;;
9897 *)
9898 pic_mode=default
9899 # Look at the argument we got. We use all the common list separators.
9900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9901 for lt_pkg in $withval; do
9902 IFS=$lt_save_ifs
9903 if test "X$lt_pkg" = "X$lt_p"; then
9904 pic_mode=yes
9905 fi
9906 done
9907 IFS=$lt_save_ifs
9908 ;;
9909 esac
9910 else $as_nop
9911 pic_mode=yes
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922 enable_dlopen=no
9923
9924
9925
9926 # Check whether --enable-shared was given.
9927 if test ${enable_shared+y}
9928 then :
9929 enableval=$enable_shared; p=${PACKAGE-default}
9930 case $enableval in
9931 yes) enable_shared=yes ;;
9932 no) enable_shared=no ;;
9933 *)
9934 enable_shared=no
9935 # Look at the argument we got. We use all the common list separators.
9936 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9937 for pkg in $enableval; do
9938 IFS=$lt_save_ifs
9939 if test "X$pkg" = "X$p"; then
9940 enable_shared=yes
9941 fi
9942 done
9943 IFS=$lt_save_ifs
9944 ;;
9945 esac
9946 else $as_nop
9947 enable_shared=yes
9948 fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 # Check whether --enable-fast-install was given.
9961 if test ${enable_fast_install+y}
9962 then :
9963 enableval=$enable_fast_install; p=${PACKAGE-default}
9964 case $enableval in
9965 yes) enable_fast_install=yes ;;
9966 no) enable_fast_install=no ;;
9967 *)
9968 enable_fast_install=no
9969 # Look at the argument we got. We use all the common list separators.
9970 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9971 for pkg in $enableval; do
9972 IFS=$lt_save_ifs
9973 if test "X$pkg" = "X$p"; then
9974 enable_fast_install=yes
9975 fi
9976 done
9977 IFS=$lt_save_ifs
9978 ;;
9979 esac
9980 else $as_nop
9981 enable_fast_install=yes
9982 fi
9983
9984
9985
9986
9987
9988
9989
9990
9991 shared_archive_member_spec=
9992 case $host,$enable_shared in
9993 power*-*-aix[5-9]*,yes)
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9995 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9996
9997 # Check whether --with-aix-soname was given.
9998 if test ${with_aix_soname+y}
9999 then :
10000 withval=$with_aix_soname; case $withval in
10001 aix|svr4|both)
10002 ;;
10003 *)
10004 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10005 ;;
10006 esac
10007 lt_cv_with_aix_soname=$with_aix_soname
10008 else $as_nop
10009 if test ${lt_cv_with_aix_soname+y}
10010 then :
10011 printf %s "(cached) " >&6
10012 else $as_nop
10013 lt_cv_with_aix_soname=aix
10014 fi
10015
10016 with_aix_soname=$lt_cv_with_aix_soname
10017 fi
10018
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10020 printf "%s\n" "$with_aix_soname" >&6; }
10021 if test aix != "$with_aix_soname"; then
10022 # For the AIX way of multilib, we name the shared archive member
10023 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10024 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10025 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10026 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10027 if test 64 = "${OBJECT_MODE-32}"; then
10028 shared_archive_member_spec=shr_64
10029 else
10030 shared_archive_member_spec=shr
10031 fi
10032 fi
10033 ;;
10034 *)
10035 with_aix_soname=aix
10036 ;;
10037 esac
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 # This can be used to rebuild libtool when needed
10049 LIBTOOL_DEPS=$ltmain
10050
10051 # Always use our own libtool.
10052 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 test -z "$LN_S" && LN_S="ln -s"
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 if test -n "${ZSH_VERSION+set}"; then
10099 setopt NO_GLOB_SUBST
10100 fi
10101
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10103 printf %s "checking for objdir... " >&6; }
10104 if test ${lt_cv_objdir+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else $as_nop
10108 rm -f .libs 2>/dev/null
10109 mkdir .libs 2>/dev/null
10110 if test -d .libs; then
10111 lt_cv_objdir=.libs
10112 else
10113 # MS-DOS does not allow filenames that begin with a dot.
10114 lt_cv_objdir=_libs
10115 fi
10116 rmdir .libs 2>/dev/null
10117 fi
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10119 printf "%s\n" "$lt_cv_objdir" >&6; }
10120 objdir=$lt_cv_objdir
10121
10122
10123
10124
10125
10126 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10127
10128
10129
10130
10131 case $host_os in
10132 aix3*)
10133 # AIX sometimes has problems with the GCC collect2 program. For some
10134 # reason, if we set the COLLECT_NAMES environment variable, the problems
10135 # vanish in a puff of smoke.
10136 if test set != "${COLLECT_NAMES+set}"; then
10137 COLLECT_NAMES=
10138 export COLLECT_NAMES
10139 fi
10140 ;;
10141 esac
10142
10143 # Global variables:
10144 ofile=libtool
10145 can_build_shared=yes
10146
10147 # All known linkers require a '.a' archive for static linking (except MSVC and
10148 # ICC, which need '.lib').
10149 libext=a
10150
10151 with_gnu_ld=$lt_cv_prog_gnu_ld
10152
10153 old_CC=$CC
10154 old_CFLAGS=$CFLAGS
10155
10156 # Set sane defaults for various variables
10157 test -z "$CC" && CC=cc
10158 test -z "$LTCC" && LTCC=$CC
10159 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10160 test -z "$LD" && LD=ld
10161 test -z "$ac_objext" && ac_objext=o
10162
10163 func_cc_basename $compiler
10164 cc_basename=$func_cc_basename_result
10165
10166
10167 # Only perform the check for file, if the check method requires it
10168 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10169 case $deplibs_check_method in
10170 file_magic*)
10171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10173 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10174 if test ${lt_cv_path_MAGIC_CMD+y}
10175 then :
10176 printf %s "(cached) " >&6
10177 else $as_nop
10178 case $MAGIC_CMD in
10179 [\\/*] | ?:[\\/]*)
10180 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10181 ;;
10182 *)
10183 lt_save_MAGIC_CMD=$MAGIC_CMD
10184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10186 for ac_dir in $ac_dummy; do
10187 IFS=$lt_save_ifs
10188 test -z "$ac_dir" && ac_dir=.
10189 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10190 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10191 if test -n "$file_magic_test_file"; then
10192 case $deplibs_check_method in
10193 "file_magic "*)
10194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10195 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10197 $EGREP "$file_magic_regex" > /dev/null; then
10198 :
10199 else
10200 cat <<_LT_EOF 1>&2
10201
10202 *** Warning: the command libtool uses to detect shared libraries,
10203 *** $file_magic_cmd, produces output that libtool cannot recognize.
10204 *** The result is that libtool may fail to recognize shared libraries
10205 *** as such. This will affect the creation of libtool libraries that
10206 *** depend on shared libraries, but programs linked with such libtool
10207 *** libraries will work regardless of this problem. Nevertheless, you
10208 *** may want to report the problem to your system manager and/or to
10209 *** [email protected]
10210
10211 _LT_EOF
10212 fi ;;
10213 esac
10214 fi
10215 break
10216 fi
10217 done
10218 IFS=$lt_save_ifs
10219 MAGIC_CMD=$lt_save_MAGIC_CMD
10220 ;;
10221 esac
10222 fi
10223
10224 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10225 if test -n "$MAGIC_CMD"; then
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10227 printf "%s\n" "$MAGIC_CMD" >&6; }
10228 else
10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 printf "%s\n" "no" >&6; }
10231 fi
10232
10233
10234
10235
10236
10237 if test -z "$lt_cv_path_MAGIC_CMD"; then
10238 if test -n "$ac_tool_prefix"; then
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10240 printf %s "checking for file... " >&6; }
10241 if test ${lt_cv_path_MAGIC_CMD+y}
10242 then :
10243 printf %s "(cached) " >&6
10244 else $as_nop
10245 case $MAGIC_CMD in
10246 [\\/*] | ?:[\\/]*)
10247 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10248 ;;
10249 *)
10250 lt_save_MAGIC_CMD=$MAGIC_CMD
10251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10253 for ac_dir in $ac_dummy; do
10254 IFS=$lt_save_ifs
10255 test -z "$ac_dir" && ac_dir=.
10256 if test -f "$ac_dir/file"; then
10257 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10258 if test -n "$file_magic_test_file"; then
10259 case $deplibs_check_method in
10260 "file_magic "*)
10261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10262 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10264 $EGREP "$file_magic_regex" > /dev/null; then
10265 :
10266 else
10267 cat <<_LT_EOF 1>&2
10268
10269 *** Warning: the command libtool uses to detect shared libraries,
10270 *** $file_magic_cmd, produces output that libtool cannot recognize.
10271 *** The result is that libtool may fail to recognize shared libraries
10272 *** as such. This will affect the creation of libtool libraries that
10273 *** depend on shared libraries, but programs linked with such libtool
10274 *** libraries will work regardless of this problem. Nevertheless, you
10275 *** may want to report the problem to your system manager and/or to
10276 *** [email protected]
10277
10278 _LT_EOF
10279 fi ;;
10280 esac
10281 fi
10282 break
10283 fi
10284 done
10285 IFS=$lt_save_ifs
10286 MAGIC_CMD=$lt_save_MAGIC_CMD
10287 ;;
10288 esac
10289 fi
10290
10291 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10292 if test -n "$MAGIC_CMD"; then
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10294 printf "%s\n" "$MAGIC_CMD" >&6; }
10295 else
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 printf "%s\n" "no" >&6; }
10298 fi
10299
10300
10301 else
10302 MAGIC_CMD=:
10303 fi
10304 fi
10305
10306 fi
10307 ;;
10308 esac
10309
10310 # Use C for the default configuration in the libtool script
10311
10312 lt_save_CC=$CC
10313 ac_ext=c
10314 ac_cpp='$CPP $CPPFLAGS'
10315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318
10319
10320 # Source file extension for C test sources.
10321 ac_ext=c
10322
10323 # Object file extension for compiled C test sources.
10324 objext=o
10325 objext=$objext
10326
10327 # Code to be used in simple compile tests
10328 lt_simple_compile_test_code="int some_variable = 0;"
10329
10330 # Code to be used in simple link tests
10331 lt_simple_link_test_code='int main(){return(0);}'
10332
10333
10334
10335
10336
10337
10338
10339 # If no C compiler was specified, use CC.
10340 LTCC=${LTCC-"$CC"}
10341
10342 # If no C compiler flags were specified, use CFLAGS.
10343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10344
10345 # Allow CC to be a program name with arguments.
10346 compiler=$CC
10347
10348 # Save the default compiler, since it gets overwritten when the other
10349 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10350 compiler_DEFAULT=$CC
10351
10352 # save warnings/boilerplate of simple test code
10353 ac_outfile=conftest.$ac_objext
10354 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10356 _lt_compiler_boilerplate=`cat conftest.err`
10357 $RM conftest*
10358
10359 ac_outfile=conftest.$ac_objext
10360 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10362 _lt_linker_boilerplate=`cat conftest.err`
10363 $RM -r conftest*
10364
10365
10366 ## CAVEAT EMPTOR:
10367 ## There is no encapsulation within the following macros, do not change
10368 ## the running order or otherwise move them around unless you know exactly
10369 ## what you are doing...
10370 if test -n "$compiler"; then
10371
10372 lt_prog_compiler_no_builtin_flag=
10373
10374 if test yes = "$GCC"; then
10375 case $cc_basename in
10376 nvcc*)
10377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10378 *)
10379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10380 esac
10381
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10383 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10384 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else $as_nop
10388 lt_cv_prog_compiler_rtti_exceptions=no
10389 ac_outfile=conftest.$ac_objext
10390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10391 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10392 # Insert the option either (1) after the last *FLAGS variable, or
10393 # (2) before a word containing "conftest.", or (3) at the end.
10394 # Note that $ac_compile itself does not contain backslashes and begins
10395 # with a dollar sign (not a hyphen), so the echo should work correctly.
10396 # The option is referenced via a variable to avoid confusing sed.
10397 lt_compile=`echo "$ac_compile" | $SED \
10398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10400 -e 's:$: $lt_compiler_flag:'`
10401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10402 (eval "$lt_compile" 2>conftest.err)
10403 ac_status=$?
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 if (exit $ac_status) && test -s "$ac_outfile"; then
10407 # The compiler can only warn and ignore the option if not recognized
10408 # So say no if there are warnings other than the usual output.
10409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10412 lt_cv_prog_compiler_rtti_exceptions=yes
10413 fi
10414 fi
10415 $RM conftest*
10416
10417 fi
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10419 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10420
10421 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10422 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10423 else
10424 :
10425 fi
10426
10427 fi
10428
10429
10430
10431
10432
10433
10434 lt_prog_compiler_wl=
10435 lt_prog_compiler_pic=
10436 lt_prog_compiler_static=
10437
10438
10439 if test yes = "$GCC"; then
10440 lt_prog_compiler_wl='-Wl,'
10441 lt_prog_compiler_static='-static'
10442
10443 case $host_os in
10444 aix*)
10445 # All AIX code is PIC.
10446 if test ia64 = "$host_cpu"; then
10447 # AIX 5 now supports IA64 processor
10448 lt_prog_compiler_static='-Bstatic'
10449 fi
10450 lt_prog_compiler_pic='-fPIC'
10451 ;;
10452
10453 amigaos*)
10454 case $host_cpu in
10455 powerpc)
10456 # see comment about AmigaOS4 .so support
10457 lt_prog_compiler_pic='-fPIC'
10458 ;;
10459 m68k)
10460 # FIXME: we need at least 68020 code to build shared libraries, but
10461 # adding the '-m68020' flag to GCC prevents building anything better,
10462 # like '-m68040'.
10463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10464 ;;
10465 esac
10466 ;;
10467
10468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10469 # PIC is the default for these OSes.
10470 ;;
10471
10472 mingw* | cygwin* | pw32* | os2* | cegcc*)
10473 # This hack is so that the source file can tell whether it is being
10474 # built for inclusion in a dll (and should export symbols for example).
10475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10476 # (--disable-auto-import) libraries
10477 lt_prog_compiler_pic='-DDLL_EXPORT'
10478 case $host_os in
10479 os2*)
10480 lt_prog_compiler_static='$wl-static'
10481 ;;
10482 esac
10483 ;;
10484
10485 darwin* | rhapsody*)
10486 # PIC is the default on this platform
10487 # Common symbols not allowed in MH_DYLIB files
10488 lt_prog_compiler_pic='-fno-common'
10489 ;;
10490
10491 haiku*)
10492 # PIC is the default for Haiku.
10493 # The "-static" flag exists, but is broken.
10494 lt_prog_compiler_static=
10495 ;;
10496
10497 hpux*)
10498 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10499 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10500 # sets the default TLS model and affects inlining.
10501 case $host_cpu in
10502 hppa*64*)
10503 # +Z the default
10504 ;;
10505 *)
10506 lt_prog_compiler_pic='-fPIC'
10507 ;;
10508 esac
10509 ;;
10510
10511 interix[3-9]*)
10512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10513 # Instead, we relocate shared libraries at runtime.
10514 ;;
10515
10516 msdosdjgpp*)
10517 # Just because we use GCC doesn't mean we suddenly get shared libraries
10518 # on systems that don't support them.
10519 lt_prog_compiler_can_build_shared=no
10520 enable_shared=no
10521 ;;
10522
10523 *nto* | *qnx*)
10524 # QNX uses GNU C++, but need to define -shared option too, otherwise
10525 # it will coredump.
10526 lt_prog_compiler_pic='-fPIC -shared'
10527 ;;
10528
10529 sysv4*MP*)
10530 if test -d /usr/nec; then
10531 lt_prog_compiler_pic=-Kconform_pic
10532 fi
10533 ;;
10534
10535 *)
10536 lt_prog_compiler_pic='-fPIC'
10537 ;;
10538 esac
10539
10540 case $cc_basename in
10541 nvcc*) # Cuda Compiler Driver 2.2
10542 lt_prog_compiler_wl='-Xlinker '
10543 if test -n "$lt_prog_compiler_pic"; then
10544 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10545 fi
10546 ;;
10547 esac
10548 else
10549 # PORTME Check for flag to pass linker flags through the system compiler.
10550 case $host_os in
10551 aix*)
10552 lt_prog_compiler_wl='-Wl,'
10553 if test ia64 = "$host_cpu"; then
10554 # AIX 5 now supports IA64 processor
10555 lt_prog_compiler_static='-Bstatic'
10556 else
10557 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10558 fi
10559 ;;
10560
10561 darwin* | rhapsody*)
10562 # PIC is the default on this platform
10563 # Common symbols not allowed in MH_DYLIB files
10564 lt_prog_compiler_pic='-fno-common'
10565 case $cc_basename in
10566 nagfor*)
10567 # NAG Fortran compiler
10568 lt_prog_compiler_wl='-Wl,-Wl,,'
10569 lt_prog_compiler_pic='-PIC'
10570 lt_prog_compiler_static='-Bstatic'
10571 ;;
10572 esac
10573 ;;
10574
10575 mingw* | cygwin* | pw32* | os2* | cegcc*)
10576 # This hack is so that the source file can tell whether it is being
10577 # built for inclusion in a dll (and should export symbols for example).
10578 lt_prog_compiler_pic='-DDLL_EXPORT'
10579 case $host_os in
10580 os2*)
10581 lt_prog_compiler_static='$wl-static'
10582 ;;
10583 esac
10584 ;;
10585
10586 hpux9* | hpux10* | hpux11*)
10587 lt_prog_compiler_wl='-Wl,'
10588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10589 # not for PA HP-UX.
10590 case $host_cpu in
10591 hppa*64*|ia64*)
10592 # +Z the default
10593 ;;
10594 *)
10595 lt_prog_compiler_pic='+Z'
10596 ;;
10597 esac
10598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10599 lt_prog_compiler_static='$wl-a ${wl}archive'
10600 ;;
10601
10602 irix5* | irix6* | nonstopux*)
10603 lt_prog_compiler_wl='-Wl,'
10604 # PIC (with -KPIC) is the default.
10605 lt_prog_compiler_static='-non_shared'
10606 ;;
10607
10608 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10609 case $cc_basename in
10610 # old Intel for x86_64, which still supported -KPIC.
10611 ecc*)
10612 lt_prog_compiler_wl='-Wl,'
10613 lt_prog_compiler_pic='-KPIC'
10614 lt_prog_compiler_static='-static'
10615 ;;
10616 # flang / f18. f95 an alias for gfortran or flang on Debian
10617 flang* | f18* | f95*)
10618 lt_prog_compiler_wl='-Wl,'
10619 lt_prog_compiler_pic='-fPIC'
10620 lt_prog_compiler_static='-static'
10621 ;;
10622 # icc used to be incompatible with GCC.
10623 # ICC 10 doesn't accept -KPIC any more.
10624 icc* | ifort*)
10625 lt_prog_compiler_wl='-Wl,'
10626 lt_prog_compiler_pic='-fPIC'
10627 lt_prog_compiler_static='-static'
10628 ;;
10629 # Lahey Fortran 8.1.
10630 lf95*)
10631 lt_prog_compiler_wl='-Wl,'
10632 lt_prog_compiler_pic='--shared'
10633 lt_prog_compiler_static='--static'
10634 ;;
10635 nagfor*)
10636 # NAG Fortran compiler
10637 lt_prog_compiler_wl='-Wl,-Wl,,'
10638 lt_prog_compiler_pic='-PIC'
10639 lt_prog_compiler_static='-Bstatic'
10640 ;;
10641 tcc*)
10642 # Fabrice Bellard et al's Tiny C Compiler
10643 lt_prog_compiler_wl='-Wl,'
10644 lt_prog_compiler_pic='-fPIC'
10645 lt_prog_compiler_static='-static'
10646 ;;
10647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10648 # Portland Group compilers (*not* the Pentium gcc compiler,
10649 # which looks to be a dead project)
10650 lt_prog_compiler_wl='-Wl,'
10651 lt_prog_compiler_pic='-fpic'
10652 lt_prog_compiler_static='-Bstatic'
10653 ;;
10654 ccc*)
10655 lt_prog_compiler_wl='-Wl,'
10656 # All Alpha code is PIC.
10657 lt_prog_compiler_static='-non_shared'
10658 ;;
10659 xl* | bgxl* | bgf* | mpixl*)
10660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10661 lt_prog_compiler_wl='-Wl,'
10662 lt_prog_compiler_pic='-qpic'
10663 lt_prog_compiler_static='-qstaticlink'
10664 ;;
10665 *)
10666 case `$CC -V 2>&1 | $SED 5q` in
10667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10668 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10669 lt_prog_compiler_pic='-KPIC'
10670 lt_prog_compiler_static='-Bstatic'
10671 lt_prog_compiler_wl=''
10672 ;;
10673 *Sun\ F* | *Sun*Fortran*)
10674 lt_prog_compiler_pic='-KPIC'
10675 lt_prog_compiler_static='-Bstatic'
10676 lt_prog_compiler_wl='-Qoption ld '
10677 ;;
10678 *Sun\ C*)
10679 # Sun C 5.9
10680 lt_prog_compiler_pic='-KPIC'
10681 lt_prog_compiler_static='-Bstatic'
10682 lt_prog_compiler_wl='-Wl,'
10683 ;;
10684 *Intel*\ [CF]*Compiler*)
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_pic='-fPIC'
10687 lt_prog_compiler_static='-static'
10688 ;;
10689 *Portland\ Group*)
10690 lt_prog_compiler_wl='-Wl,'
10691 lt_prog_compiler_pic='-fpic'
10692 lt_prog_compiler_static='-Bstatic'
10693 ;;
10694 esac
10695 ;;
10696 esac
10697 ;;
10698
10699 newsos6)
10700 lt_prog_compiler_pic='-KPIC'
10701 lt_prog_compiler_static='-Bstatic'
10702 ;;
10703
10704 *nto* | *qnx*)
10705 # QNX uses GNU C++, but need to define -shared option too, otherwise
10706 # it will coredump.
10707 lt_prog_compiler_pic='-fPIC -shared'
10708 ;;
10709
10710 osf3* | osf4* | osf5*)
10711 lt_prog_compiler_wl='-Wl,'
10712 # All OSF/1 code is PIC.
10713 lt_prog_compiler_static='-non_shared'
10714 ;;
10715
10716 rdos*)
10717 lt_prog_compiler_static='-non_shared'
10718 ;;
10719
10720 solaris*)
10721 lt_prog_compiler_pic='-KPIC'
10722 lt_prog_compiler_static='-Bstatic'
10723 case $cc_basename in
10724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10725 lt_prog_compiler_wl='-Qoption ld ';;
10726 *)
10727 lt_prog_compiler_wl='-Wl,';;
10728 esac
10729 ;;
10730
10731 sunos4*)
10732 lt_prog_compiler_wl='-Qoption ld '
10733 lt_prog_compiler_pic='-PIC'
10734 lt_prog_compiler_static='-Bstatic'
10735 ;;
10736
10737 sysv4 | sysv4.2uw2* | sysv4.3*)
10738 lt_prog_compiler_wl='-Wl,'
10739 lt_prog_compiler_pic='-KPIC'
10740 lt_prog_compiler_static='-Bstatic'
10741 ;;
10742
10743 sysv4*MP*)
10744 if test -d /usr/nec; then
10745 lt_prog_compiler_pic='-Kconform_pic'
10746 lt_prog_compiler_static='-Bstatic'
10747 fi
10748 ;;
10749
10750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10751 lt_prog_compiler_wl='-Wl,'
10752 lt_prog_compiler_pic='-KPIC'
10753 lt_prog_compiler_static='-Bstatic'
10754 ;;
10755
10756 unicos*)
10757 lt_prog_compiler_wl='-Wl,'
10758 lt_prog_compiler_can_build_shared=no
10759 ;;
10760
10761 uts4*)
10762 lt_prog_compiler_pic='-pic'
10763 lt_prog_compiler_static='-Bstatic'
10764 ;;
10765
10766 *)
10767 lt_prog_compiler_can_build_shared=no
10768 ;;
10769 esac
10770 fi
10771
10772 case $host_os in
10773 # For platforms that do not support PIC, -DPIC is meaningless:
10774 *djgpp*)
10775 lt_prog_compiler_pic=
10776 ;;
10777 *)
10778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10779 ;;
10780 esac
10781
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10783 printf %s "checking for $compiler option to produce PIC... " >&6; }
10784 if test ${lt_cv_prog_compiler_pic+y}
10785 then :
10786 printf %s "(cached) " >&6
10787 else $as_nop
10788 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10789 fi
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10791 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10792 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10793
10794 #
10795 # Check to make sure the PIC flag actually works.
10796 #
10797 if test -n "$lt_prog_compiler_pic"; then
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10799 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10800 if test ${lt_cv_prog_compiler_pic_works+y}
10801 then :
10802 printf %s "(cached) " >&6
10803 else $as_nop
10804 lt_cv_prog_compiler_pic_works=no
10805 ac_outfile=conftest.$ac_objext
10806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10808 # Insert the option either (1) after the last *FLAGS variable, or
10809 # (2) before a word containing "conftest.", or (3) at the end.
10810 # Note that $ac_compile itself does not contain backslashes and begins
10811 # with a dollar sign (not a hyphen), so the echo should work correctly.
10812 # The option is referenced via a variable to avoid confusing sed.
10813 lt_compile=`echo "$ac_compile" | $SED \
10814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10816 -e 's:$: $lt_compiler_flag:'`
10817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10818 (eval "$lt_compile" 2>conftest.err)
10819 ac_status=$?
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 if (exit $ac_status) && test -s "$ac_outfile"; then
10823 # The compiler can only warn and ignore the option if not recognized
10824 # So say no if there are warnings other than the usual output.
10825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10828 lt_cv_prog_compiler_pic_works=yes
10829 fi
10830 fi
10831 $RM conftest*
10832
10833 fi
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10835 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10836
10837 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10838 case $lt_prog_compiler_pic in
10839 "" | " "*) ;;
10840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10841 esac
10842 else
10843 lt_prog_compiler_pic=
10844 lt_prog_compiler_can_build_shared=no
10845 fi
10846
10847 fi
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859 #
10860 # Check to make sure the static flag actually works.
10861 #
10862 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10864 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10865 if test ${lt_cv_prog_compiler_static_works+y}
10866 then :
10867 printf %s "(cached) " >&6
10868 else $as_nop
10869 lt_cv_prog_compiler_static_works=no
10870 save_LDFLAGS=$LDFLAGS
10871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10874 # The linker can only warn and ignore the option if not recognized
10875 # So say no if there are warnings
10876 if test -s conftest.err; then
10877 # Append any errors to the config.log.
10878 cat conftest.err 1>&5
10879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10881 if diff conftest.exp conftest.er2 >/dev/null; then
10882 lt_cv_prog_compiler_static_works=yes
10883 fi
10884 else
10885 lt_cv_prog_compiler_static_works=yes
10886 fi
10887 fi
10888 $RM -r conftest*
10889 LDFLAGS=$save_LDFLAGS
10890
10891 fi
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10893 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10894
10895 if test yes = "$lt_cv_prog_compiler_static_works"; then
10896 :
10897 else
10898 lt_prog_compiler_static=
10899 fi
10900
10901
10902
10903
10904
10905
10906
10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10908 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10909 if test ${lt_cv_prog_compiler_c_o+y}
10910 then :
10911 printf %s "(cached) " >&6
10912 else $as_nop
10913 lt_cv_prog_compiler_c_o=no
10914 $RM -r conftest 2>/dev/null
10915 mkdir conftest
10916 cd conftest
10917 mkdir out
10918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920 lt_compiler_flag="-o out/conftest2.$ac_objext"
10921 # Insert the option either (1) after the last *FLAGS variable, or
10922 # (2) before a word containing "conftest.", or (3) at the end.
10923 # Note that $ac_compile itself does not contain backslashes and begins
10924 # with a dollar sign (not a hyphen), so the echo should work correctly.
10925 lt_compile=`echo "$ac_compile" | $SED \
10926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10928 -e 's:$: $lt_compiler_flag:'`
10929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10930 (eval "$lt_compile" 2>out/conftest.err)
10931 ac_status=$?
10932 cat out/conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10935 then
10936 # The compiler can only warn and ignore the option if not recognized
10937 # So say no if there are warnings
10938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10941 lt_cv_prog_compiler_c_o=yes
10942 fi
10943 fi
10944 chmod u+w . 2>&5
10945 $RM conftest*
10946 # SGI C++ compiler will create directory out/ii_files/ for
10947 # template instantiation
10948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10949 $RM out/* && rmdir out
10950 cd ..
10951 $RM -r conftest
10952 $RM conftest*
10953
10954 fi
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10956 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10957
10958
10959
10960
10961
10962
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10964 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10965 if test ${lt_cv_prog_compiler_c_o+y}
10966 then :
10967 printf %s "(cached) " >&6
10968 else $as_nop
10969 lt_cv_prog_compiler_c_o=no
10970 $RM -r conftest 2>/dev/null
10971 mkdir conftest
10972 cd conftest
10973 mkdir out
10974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10975
10976 lt_compiler_flag="-o out/conftest2.$ac_objext"
10977 # Insert the option either (1) after the last *FLAGS variable, or
10978 # (2) before a word containing "conftest.", or (3) at the end.
10979 # Note that $ac_compile itself does not contain backslashes and begins
10980 # with a dollar sign (not a hyphen), so the echo should work correctly.
10981 lt_compile=`echo "$ac_compile" | $SED \
10982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10984 -e 's:$: $lt_compiler_flag:'`
10985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10986 (eval "$lt_compile" 2>out/conftest.err)
10987 ac_status=$?
10988 cat out/conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10991 then
10992 # The compiler can only warn and ignore the option if not recognized
10993 # So say no if there are warnings
10994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10997 lt_cv_prog_compiler_c_o=yes
10998 fi
10999 fi
11000 chmod u+w . 2>&5
11001 $RM conftest*
11002 # SGI C++ compiler will create directory out/ii_files/ for
11003 # template instantiation
11004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11005 $RM out/* && rmdir out
11006 cd ..
11007 $RM -r conftest
11008 $RM conftest*
11009
11010 fi
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11012 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11013
11014
11015
11016
11017 hard_links=nottested
11018 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11019 # do not overwrite the value of need_locks provided by the user
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11021 printf %s "checking if we can lock with hard links... " >&6; }
11022 hard_links=yes
11023 $RM conftest*
11024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11025 touch conftest.a
11026 ln conftest.a conftest.b 2>&5 || hard_links=no
11027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11029 printf "%s\n" "$hard_links" >&6; }
11030 if test no = "$hard_links"; then
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11032 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11033 need_locks=warn
11034 fi
11035 else
11036 need_locks=no
11037 fi
11038
11039
11040
11041
11042
11043
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11045 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11046
11047 runpath_var=
11048 allow_undefined_flag=
11049 always_export_symbols=no
11050 archive_cmds=
11051 archive_expsym_cmds=
11052 compiler_needs_object=no
11053 enable_shared_with_static_runtimes=no
11054 export_dynamic_flag_spec=
11055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11056 hardcode_automatic=no
11057 hardcode_direct=no
11058 hardcode_direct_absolute=no
11059 hardcode_libdir_flag_spec=
11060 hardcode_libdir_separator=
11061 hardcode_minus_L=no
11062 hardcode_shlibpath_var=unsupported
11063 inherit_rpath=no
11064 link_all_deplibs=unknown
11065 module_cmds=
11066 module_expsym_cmds=
11067 old_archive_from_new_cmds=
11068 old_archive_from_expsyms_cmds=
11069 thread_safe_flag_spec=
11070 whole_archive_flag_spec=
11071 # include_expsyms should be a list of space-separated symbols to be *always*
11072 # included in the symbol list
11073 include_expsyms=
11074 # exclude_expsyms can be an extended regexp of symbols to exclude
11075 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11076 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11077 # as well as any symbol that contains 'd'.
11078 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11080 # platforms (ab)use it in PIC code, but their linkers get confused if
11081 # the symbol is explicitly referenced. Since portable code cannot
11082 # rely on this symbol name, it's probably fine to never include it in
11083 # preloaded symbol tables.
11084 # Exclude shared library initialization/finalization symbols.
11085 extract_expsyms_cmds=
11086
11087 case $host_os in
11088 cygwin* | mingw* | pw32* | cegcc*)
11089 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11090 # When not using gcc, we currently assume that we are using
11091 # Microsoft Visual C++ or Intel C++ Compiler.
11092 if test yes != "$GCC"; then
11093 with_gnu_ld=no
11094 fi
11095 ;;
11096 interix*)
11097 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11098 with_gnu_ld=yes
11099 ;;
11100 openbsd* | bitrig*)
11101 with_gnu_ld=no
11102 ;;
11103 linux* | k*bsd*-gnu | gnu*)
11104 link_all_deplibs=no
11105 ;;
11106 esac
11107
11108 ld_shlibs=yes
11109
11110 # On some targets, GNU ld is compatible enough with the native linker
11111 # that we're better off using the native interface for both.
11112 lt_use_gnu_ld_interface=no
11113 if test yes = "$with_gnu_ld"; then
11114 case $host_os in
11115 aix*)
11116 # The AIX port of GNU ld has always aspired to compatibility
11117 # with the native linker. However, as the warning in the GNU ld
11118 # block says, versions before 2.19.5* couldn't really create working
11119 # shared libraries, regardless of the interface used.
11120 case `$LD -v 2>&1` in
11121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11123 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11124 *)
11125 lt_use_gnu_ld_interface=yes
11126 ;;
11127 esac
11128 ;;
11129 *)
11130 lt_use_gnu_ld_interface=yes
11131 ;;
11132 esac
11133 fi
11134
11135 if test yes = "$lt_use_gnu_ld_interface"; then
11136 # If archive_cmds runs LD, not CC, wlarc should be empty
11137 wlarc='$wl'
11138
11139 # Set some defaults for GNU ld with shared library support. These
11140 # are reset later if shared libraries are not supported. Putting them
11141 # here allows them to be overridden if necessary.
11142 runpath_var=LD_RUN_PATH
11143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11144 export_dynamic_flag_spec='$wl--export-dynamic'
11145 # ancient GNU ld didn't support --whole-archive et. al.
11146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11147 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11148 else
11149 whole_archive_flag_spec=
11150 fi
11151 supports_anon_versioning=no
11152 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11153 *GNU\ gold*) supports_anon_versioning=yes ;;
11154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11157 *\ 2.11.*) ;; # other 2.11 versions
11158 *) supports_anon_versioning=yes ;;
11159 esac
11160
11161 # See if GNU ld supports shared libraries.
11162 case $host_os in
11163 aix[3-9]*)
11164 # On AIX/PPC, the GNU linker is very broken
11165 if test ia64 != "$host_cpu"; then
11166 ld_shlibs=no
11167 cat <<_LT_EOF 1>&2
11168
11169 *** Warning: the GNU linker, at least up to release 2.19, is reported
11170 *** to be unable to reliably create shared libraries on AIX.
11171 *** Therefore, libtool is disabling shared libraries support. If you
11172 *** really care for shared libraries, you may want to install binutils
11173 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11174 *** You will then need to restart the configuration process.
11175
11176 _LT_EOF
11177 fi
11178 ;;
11179
11180 amigaos*)
11181 case $host_cpu in
11182 powerpc)
11183 # see comment about AmigaOS4 .so support
11184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11185 archive_expsym_cmds=''
11186 ;;
11187 m68k)
11188 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)'
11189 hardcode_libdir_flag_spec='-L$libdir'
11190 hardcode_minus_L=yes
11191 ;;
11192 esac
11193 ;;
11194
11195 beos*)
11196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11197 allow_undefined_flag=unsupported
11198 # Joseph Beckenbach <[email protected]> says some releases of gcc
11199 # support --undefined. This deserves some investigation. FIXME
11200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11201 else
11202 ld_shlibs=no
11203 fi
11204 ;;
11205
11206 cygwin* | mingw* | pw32* | cegcc*)
11207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11208 # as there is no search path for DLLs.
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 export_dynamic_flag_spec='$wl--export-all-symbols'
11211 allow_undefined_flag=unsupported
11212 always_export_symbols=no
11213 enable_shared_with_static_runtimes=yes
11214 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'
11215 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11216
11217 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11219 # If the export-symbols file already is a .def file, use it as
11220 # is; otherwise, prepend EXPORTS...
11221 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11222 cp $export_symbols $output_objdir/$soname.def;
11223 else
11224 echo EXPORTS > $output_objdir/$soname.def;
11225 cat $export_symbols >> $output_objdir/$soname.def;
11226 fi~
11227 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11228 else
11229 ld_shlibs=no
11230 fi
11231 ;;
11232
11233 haiku*)
11234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11235 link_all_deplibs=yes
11236 ;;
11237
11238 os2*)
11239 hardcode_libdir_flag_spec='-L$libdir'
11240 hardcode_minus_L=yes
11241 allow_undefined_flag=unsupported
11242 shrext_cmds=.dll
11243 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11246 $ECHO EXPORTS >> $output_objdir/$libname.def~
11247 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11249 emximp -o $lib $output_objdir/$libname.def'
11250 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11251 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11252 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11253 $ECHO EXPORTS >> $output_objdir/$libname.def~
11254 prefix_cmds="$SED"~
11255 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11256 prefix_cmds="$prefix_cmds -e 1d";
11257 fi~
11258 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11259 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11261 emximp -o $lib $output_objdir/$libname.def'
11262 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11263 enable_shared_with_static_runtimes=yes
11264 file_list_spec='@'
11265 ;;
11266
11267 interix[3-9]*)
11268 hardcode_direct=no
11269 hardcode_shlibpath_var=no
11270 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11271 export_dynamic_flag_spec='$wl-E'
11272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11273 # Instead, shared libraries are loaded at an image base (0x10000000 by
11274 # default) and relocated if they conflict, which is a slow very memory
11275 # consuming and fragmenting process. To avoid this, we pick a random,
11276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11279 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'
11280 ;;
11281
11282 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11283 tmp_diet=no
11284 if test linux-dietlibc = "$host_os"; then
11285 case $cc_basename in
11286 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11287 esac
11288 fi
11289 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11290 && test no = "$tmp_diet"
11291 then
11292 tmp_addflag=' $pic_flag'
11293 tmp_sharedflag='-shared'
11294 case $cc_basename,$host_cpu in
11295 pgcc*) # Portland Group C compiler
11296 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'
11297 tmp_addflag=' $pic_flag'
11298 ;;
11299 pgf77* | pgf90* | pgf95* | pgfortran*)
11300 # Portland Group f77 and f90 compilers
11301 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'
11302 tmp_addflag=' $pic_flag -Mnomain' ;;
11303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11304 tmp_addflag=' -i_dynamic' ;;
11305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11306 tmp_addflag=' -i_dynamic -nofor_main' ;;
11307 ifc* | ifort*) # Intel Fortran compiler
11308 tmp_addflag=' -nofor_main' ;;
11309 lf95*) # Lahey Fortran 8.1
11310 whole_archive_flag_spec=
11311 tmp_sharedflag='--shared' ;;
11312 nagfor*) # NAGFOR 5.3
11313 tmp_sharedflag='-Wl,-shared' ;;
11314 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11315 tmp_sharedflag='-qmkshrobj'
11316 tmp_addflag= ;;
11317 nvcc*) # Cuda Compiler Driver 2.2
11318 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'
11319 compiler_needs_object=yes
11320 ;;
11321 esac
11322 case `$CC -V 2>&1 | $SED 5q` in
11323 *Sun\ C*) # Sun C 5.9
11324 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'
11325 compiler_needs_object=yes
11326 tmp_sharedflag='-G' ;;
11327 *Sun\ F*) # Sun Fortran 8.3
11328 tmp_sharedflag='-G' ;;
11329 esac
11330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11331
11332 if test yes = "$supports_anon_versioning"; then
11333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11334 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11335 echo "local: *; };" >> $output_objdir/$libname.ver~
11336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11337 fi
11338
11339 case $cc_basename in
11340 tcc*)
11341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11342 export_dynamic_flag_spec='-rdynamic'
11343 ;;
11344 xlf* | bgf* | bgxlf* | mpixlf*)
11345 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11346 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11347 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11348 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11349 if test yes = "$supports_anon_versioning"; then
11350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11351 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11352 echo "local: *; };" >> $output_objdir/$libname.ver~
11353 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11354 fi
11355 ;;
11356 esac
11357 else
11358 ld_shlibs=no
11359 fi
11360 ;;
11361
11362 netbsd* | netbsdelf*-gnu)
11363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11364 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11365 wlarc=
11366 else
11367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11369 fi
11370 ;;
11371
11372 solaris*)
11373 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11374 ld_shlibs=no
11375 cat <<_LT_EOF 1>&2
11376
11377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11378 *** create shared libraries on Solaris systems. Therefore, libtool
11379 *** is disabling shared libraries support. We urge you to upgrade GNU
11380 *** binutils to release 2.9.1 or newer. Another option is to modify
11381 *** your PATH or compiler configuration so that the native linker is
11382 *** used, and then restart.
11383
11384 _LT_EOF
11385 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11387 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11388 else
11389 ld_shlibs=no
11390 fi
11391 ;;
11392
11393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11394 case `$LD -v 2>&1` in
11395 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11396 ld_shlibs=no
11397 cat <<_LT_EOF 1>&2
11398
11399 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11400 *** reliably create shared libraries on SCO systems. Therefore, libtool
11401 *** is disabling shared libraries support. We urge you to upgrade GNU
11402 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11403 *** your PATH or compiler configuration so that the native linker is
11404 *** used, and then restart.
11405
11406 _LT_EOF
11407 ;;
11408 *)
11409 # For security reasons, it is highly recommended that you always
11410 # use absolute paths for naming shared libraries, and exclude the
11411 # DT_RUNPATH tag from executables and libraries. But doing so
11412 # requires that you compile everything twice, which is a pain.
11413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11414 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11417 else
11418 ld_shlibs=no
11419 fi
11420 ;;
11421 esac
11422 ;;
11423
11424 sunos4*)
11425 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11426 wlarc=
11427 hardcode_direct=yes
11428 hardcode_shlibpath_var=no
11429 ;;
11430
11431 *)
11432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11434 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11435 else
11436 ld_shlibs=no
11437 fi
11438 ;;
11439 esac
11440
11441 if test no = "$ld_shlibs"; then
11442 runpath_var=
11443 hardcode_libdir_flag_spec=
11444 export_dynamic_flag_spec=
11445 whole_archive_flag_spec=
11446 fi
11447 else
11448 # PORTME fill in a description of your system's linker (not GNU ld)
11449 case $host_os in
11450 aix3*)
11451 allow_undefined_flag=unsupported
11452 always_export_symbols=yes
11453 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'
11454 # Note: this linker hardcodes the directories in LIBPATH if there
11455 # are no directories specified by -L.
11456 hardcode_minus_L=yes
11457 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11458 # Neither direct hardcoding nor static linking is supported with a
11459 # broken collect2.
11460 hardcode_direct=unsupported
11461 fi
11462 ;;
11463
11464 aix[4-9]*)
11465 if test ia64 = "$host_cpu"; then
11466 # On IA64, the linker does run time linking by default, so we don't
11467 # have to do anything special.
11468 aix_use_runtimelinking=no
11469 exp_sym_flag='-Bexport'
11470 no_entry_flag=
11471 else
11472 # If we're using GNU nm, then we don't want the "-C" option.
11473 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11474 # Without the "-l" option, or with the "-B" option, AIX nm treats
11475 # weak defined symbols like other global defined symbols, whereas
11476 # GNU nm marks them as "W".
11477 # While the 'weak' keyword is ignored in the Export File, we need
11478 # it in the Import File for the 'aix-soname' feature, so we have
11479 # to replace the "-B" option with "-P" for AIX nm.
11480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11481 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'
11482 else
11483 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'
11484 fi
11485 aix_use_runtimelinking=no
11486
11487 # Test if we are trying to use run time linking or normal
11488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11489 # have runtime linking enabled, and use it for executables.
11490 # For shared libraries, we enable/disable runtime linking
11491 # depending on the kind of the shared library created -
11492 # when "with_aix_soname,aix_use_runtimelinking" is:
11493 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11494 # "aix,yes" lib.so shared, rtl:yes, for executables
11495 # lib.a static archive
11496 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11497 # lib.a(lib.so.V) shared, rtl:no, for executables
11498 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11499 # lib.a(lib.so.V) shared, rtl:no
11500 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11501 # lib.a static archive
11502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11503 for ld_flag in $LDFLAGS; do
11504 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11505 aix_use_runtimelinking=yes
11506 break
11507 fi
11508 done
11509 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11510 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11511 # so we don't have lib.a shared libs to link our executables.
11512 # We have to force runtime linking in this case.
11513 aix_use_runtimelinking=yes
11514 LDFLAGS="$LDFLAGS -Wl,-brtl"
11515 fi
11516 ;;
11517 esac
11518
11519 exp_sym_flag='-bexport'
11520 no_entry_flag='-bnoentry'
11521 fi
11522
11523 # When large executables or shared objects are built, AIX ld can
11524 # have problems creating the table of contents. If linking a library
11525 # or program results in "error TOC overflow" add -mminimal-toc to
11526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11528
11529 archive_cmds=''
11530 hardcode_direct=yes
11531 hardcode_direct_absolute=yes
11532 hardcode_libdir_separator=':'
11533 link_all_deplibs=yes
11534 file_list_spec='$wl-f,'
11535 case $with_aix_soname,$aix_use_runtimelinking in
11536 aix,*) ;; # traditional, no import file
11537 svr4,* | *,yes) # use import file
11538 # The Import File defines what to hardcode.
11539 hardcode_direct=no
11540 hardcode_direct_absolute=no
11541 ;;
11542 esac
11543
11544 if test yes = "$GCC"; then
11545 case $host_os in aix4.[012]|aix4.[012].*)
11546 # We only want to do this on AIX 4.2 and lower, the check
11547 # below for broken collect2 doesn't work under 4.3+
11548 collect2name=`$CC -print-prog-name=collect2`
11549 if test -f "$collect2name" &&
11550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11551 then
11552 # We have reworked collect2
11553 :
11554 else
11555 # We have old collect2
11556 hardcode_direct=unsupported
11557 # It fails to find uninstalled libraries when the uninstalled
11558 # path is not listed in the libpath. Setting hardcode_minus_L
11559 # to unsupported forces relinking
11560 hardcode_minus_L=yes
11561 hardcode_libdir_flag_spec='-L$libdir'
11562 hardcode_libdir_separator=
11563 fi
11564 ;;
11565 esac
11566 shared_flag='-shared'
11567 if test yes = "$aix_use_runtimelinking"; then
11568 shared_flag="$shared_flag "'$wl-G'
11569 fi
11570 # Need to ensure runtime linking is disabled for the traditional
11571 # shared library, or the linker may eventually find shared libraries
11572 # /with/ Import File - we do not want to mix them.
11573 shared_flag_aix='-shared'
11574 shared_flag_svr4='-shared $wl-G'
11575 else
11576 # not using gcc
11577 if test ia64 = "$host_cpu"; then
11578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11579 # chokes on -Wl,-G. The following line is correct:
11580 shared_flag='-G'
11581 else
11582 if test yes = "$aix_use_runtimelinking"; then
11583 shared_flag='$wl-G'
11584 else
11585 shared_flag='$wl-bM:SRE'
11586 fi
11587 shared_flag_aix='$wl-bM:SRE'
11588 shared_flag_svr4='$wl-G'
11589 fi
11590 fi
11591
11592 export_dynamic_flag_spec='$wl-bexpall'
11593 # It seems that -bexpall does not export symbols beginning with
11594 # underscore (_), so it is better to generate a list of symbols to export.
11595 always_export_symbols=yes
11596 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11597 # Warning - without using the other runtime loading flags (-brtl),
11598 # -berok will link without error, but may produce a broken library.
11599 allow_undefined_flag='-berok'
11600 # Determine the default libpath from the value encoded in an
11601 # empty executable.
11602 if test set = "${lt_cv_aix_libpath+set}"; then
11603 aix_libpath=$lt_cv_aix_libpath
11604 else
11605 if test ${lt_cv_aix_libpath_+y}
11606 then :
11607 printf %s "(cached) " >&6
11608 else $as_nop
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611
11612 int
11613 main (void)
11614 {
11615
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"
11621 then :
11622
11623 lt_aix_libpath_sed='
11624 /Import File Strings/,/^$/ {
11625 /^0/ {
11626 s/^0 *\([^ ]*\) *$/\1/
11627 p
11628 }
11629 }'
11630 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11631 # Check for a 64-bit object if we didn't find anything.
11632 if test -z "$lt_cv_aix_libpath_"; then
11633 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11634 fi
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11637 conftest$ac_exeext conftest.$ac_ext
11638 if test -z "$lt_cv_aix_libpath_"; then
11639 lt_cv_aix_libpath_=/usr/lib:/lib
11640 fi
11641
11642 fi
11643
11644 aix_libpath=$lt_cv_aix_libpath_
11645 fi
11646
11647 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11648 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
11649 else
11650 if test ia64 = "$host_cpu"; then
11651 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11652 allow_undefined_flag="-z nodefs"
11653 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"
11654 else
11655 # Determine the default libpath from the value encoded in an
11656 # empty executable.
11657 if test set = "${lt_cv_aix_libpath+set}"; then
11658 aix_libpath=$lt_cv_aix_libpath
11659 else
11660 if test ${lt_cv_aix_libpath_+y}
11661 then :
11662 printf %s "(cached) " >&6
11663 else $as_nop
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666
11667 int
11668 main (void)
11669 {
11670
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"
11676 then :
11677
11678 lt_aix_libpath_sed='
11679 /Import File Strings/,/^$/ {
11680 /^0/ {
11681 s/^0 *\([^ ]*\) *$/\1/
11682 p
11683 }
11684 }'
11685 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686 # Check for a 64-bit object if we didn't find anything.
11687 if test -z "$lt_cv_aix_libpath_"; then
11688 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11689 fi
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11692 conftest$ac_exeext conftest.$ac_ext
11693 if test -z "$lt_cv_aix_libpath_"; then
11694 lt_cv_aix_libpath_=/usr/lib:/lib
11695 fi
11696
11697 fi
11698
11699 aix_libpath=$lt_cv_aix_libpath_
11700 fi
11701
11702 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11703 # Warning - without using the other run time loading flags,
11704 # -berok will link without error, but may produce a broken library.
11705 no_undefined_flag=' $wl-bernotok'
11706 allow_undefined_flag=' $wl-berok'
11707 if test yes = "$with_gnu_ld"; then
11708 # We only use this code for GNU lds that support --whole-archive.
11709 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11710 else
11711 # Exported symbols can be pulled into shared objects from archives
11712 whole_archive_flag_spec='$convenience'
11713 fi
11714 archive_cmds_need_lc=yes
11715 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11716 # -brtl affects multiple linker settings, -berok does not and is overridden later
11717 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11718 if test svr4 != "$with_aix_soname"; then
11719 # This is similar to how AIX traditionally builds its shared libraries.
11720 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'
11721 fi
11722 if test aix != "$with_aix_soname"; then
11723 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'
11724 else
11725 # used by -dlpreopen to get the symbols
11726 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11727 fi
11728 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11729 fi
11730 fi
11731 ;;
11732
11733 amigaos*)
11734 case $host_cpu in
11735 powerpc)
11736 # see comment about AmigaOS4 .so support
11737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11738 archive_expsym_cmds=''
11739 ;;
11740 m68k)
11741 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)'
11742 hardcode_libdir_flag_spec='-L$libdir'
11743 hardcode_minus_L=yes
11744 ;;
11745 esac
11746 ;;
11747
11748 bsdi[45]*)
11749 export_dynamic_flag_spec=-rdynamic
11750 ;;
11751
11752 cygwin* | mingw* | pw32* | cegcc*)
11753 # When not using gcc, we currently assume that we are using
11754 # Microsoft Visual C++ or Intel C++ Compiler.
11755 # hardcode_libdir_flag_spec is actually meaningless, as there is
11756 # no search path for DLLs.
11757 case $cc_basename in
11758 cl* | icl*)
11759 # Native MSVC or ICC
11760 hardcode_libdir_flag_spec=' '
11761 allow_undefined_flag=unsupported
11762 always_export_symbols=yes
11763 file_list_spec='@'
11764 # Tell ltmain to make .lib files, not .a files.
11765 libext=lib
11766 # Tell ltmain to make .dll files, not .so files.
11767 shrext_cmds=.dll
11768 # FIXME: Setting linknames here is a bad hack.
11769 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11770 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11771 cp "$export_symbols" "$output_objdir/$soname.def";
11772 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11773 else
11774 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11775 fi~
11776 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11777 linknames='
11778 # The linker will not automatically build a static lib if we build a DLL.
11779 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11780 enable_shared_with_static_runtimes=yes
11781 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11783 # Don't use ranlib
11784 old_postinstall_cmds='chmod 644 $oldlib'
11785 postlink_cmds='lt_outputfile="@OUTPUT@"~
11786 lt_tool_outputfile="@TOOL_OUTPUT@"~
11787 case $lt_outputfile in
11788 *.exe|*.EXE) ;;
11789 *)
11790 lt_outputfile=$lt_outputfile.exe
11791 lt_tool_outputfile=$lt_tool_outputfile.exe
11792 ;;
11793 esac~
11794 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11795 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11796 $RM "$lt_outputfile.manifest";
11797 fi'
11798 ;;
11799 *)
11800 # Assume MSVC and ICC wrapper
11801 hardcode_libdir_flag_spec=' '
11802 allow_undefined_flag=unsupported
11803 # Tell ltmain to make .lib files, not .a files.
11804 libext=lib
11805 # Tell ltmain to make .dll files, not .so files.
11806 shrext_cmds=.dll
11807 # FIXME: Setting linknames here is a bad hack.
11808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11809 # The linker will automatically build a .lib file if we build a DLL.
11810 old_archive_from_new_cmds='true'
11811 # FIXME: Should let the user specify the lib program.
11812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11813 enable_shared_with_static_runtimes=yes
11814 ;;
11815 esac
11816 ;;
11817
11818 darwin* | rhapsody*)
11819
11820
11821 archive_cmds_need_lc=no
11822 hardcode_direct=no
11823 hardcode_automatic=yes
11824 hardcode_shlibpath_var=unsupported
11825 if test yes = "$lt_cv_ld_force_load"; then
11826 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\"`'
11827
11828 else
11829 whole_archive_flag_spec=''
11830 fi
11831 link_all_deplibs=yes
11832 allow_undefined_flag=$_lt_dar_allow_undefined
11833 case $cc_basename in
11834 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11835 *) _lt_dar_can_shared=$GCC ;;
11836 esac
11837 if test yes = "$_lt_dar_can_shared"; then
11838 output_verbose_link_cmd=func_echo_all
11839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11841 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"
11842 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"
11843
11844 else
11845 ld_shlibs=no
11846 fi
11847
11848 ;;
11849
11850 dgux*)
11851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11852 hardcode_libdir_flag_spec='-L$libdir'
11853 hardcode_shlibpath_var=no
11854 ;;
11855
11856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11857 # support. Future versions do this automatically, but an explicit c++rt0.o
11858 # does not break anything, and helps significantly (at the cost of a little
11859 # extra space).
11860 freebsd2.2*)
11861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11862 hardcode_libdir_flag_spec='-R$libdir'
11863 hardcode_direct=yes
11864 hardcode_shlibpath_var=no
11865 ;;
11866
11867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11868 freebsd2.*)
11869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_direct=yes
11871 hardcode_minus_L=yes
11872 hardcode_shlibpath_var=no
11873 ;;
11874
11875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11876 freebsd* | dragonfly* | midnightbsd*)
11877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11878 hardcode_libdir_flag_spec='-R$libdir'
11879 hardcode_direct=yes
11880 hardcode_shlibpath_var=no
11881 ;;
11882
11883 hpux9*)
11884 if test yes = "$GCC"; then
11885 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'
11886 else
11887 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'
11888 fi
11889 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11890 hardcode_libdir_separator=:
11891 hardcode_direct=yes
11892
11893 # hardcode_minus_L: Not really in the search PATH,
11894 # but as the default location of the library.
11895 hardcode_minus_L=yes
11896 export_dynamic_flag_spec='$wl-E'
11897 ;;
11898
11899 hpux10*)
11900 if test yes,no = "$GCC,$with_gnu_ld"; then
11901 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11902 else
11903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11904 fi
11905 if test no = "$with_gnu_ld"; then
11906 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11907 hardcode_libdir_separator=:
11908 hardcode_direct=yes
11909 hardcode_direct_absolute=yes
11910 export_dynamic_flag_spec='$wl-E'
11911 # hardcode_minus_L: Not really in the search PATH,
11912 # but as the default location of the library.
11913 hardcode_minus_L=yes
11914 fi
11915 ;;
11916
11917 hpux11*)
11918 if test yes,no = "$GCC,$with_gnu_ld"; then
11919 case $host_cpu in
11920 hppa*64*)
11921 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 ;;
11923 ia64*)
11924 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11925 ;;
11926 *)
11927 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11928 ;;
11929 esac
11930 else
11931 case $host_cpu in
11932 hppa*64*)
11933 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11934 ;;
11935 ia64*)
11936 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11937 ;;
11938 *)
11939
11940 # Older versions of the 11.00 compiler do not understand -b yet
11941 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11943 printf %s "checking if $CC understands -b... " >&6; }
11944 if test ${lt_cv_prog_compiler__b+y}
11945 then :
11946 printf %s "(cached) " >&6
11947 else $as_nop
11948 lt_cv_prog_compiler__b=no
11949 save_LDFLAGS=$LDFLAGS
11950 LDFLAGS="$LDFLAGS -b"
11951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11953 # The linker can only warn and ignore the option if not recognized
11954 # So say no if there are warnings
11955 if test -s conftest.err; then
11956 # Append any errors to the config.log.
11957 cat conftest.err 1>&5
11958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11960 if diff conftest.exp conftest.er2 >/dev/null; then
11961 lt_cv_prog_compiler__b=yes
11962 fi
11963 else
11964 lt_cv_prog_compiler__b=yes
11965 fi
11966 fi
11967 $RM -r conftest*
11968 LDFLAGS=$save_LDFLAGS
11969
11970 fi
11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11972 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11973
11974 if test yes = "$lt_cv_prog_compiler__b"; then
11975 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11976 else
11977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11978 fi
11979
11980 ;;
11981 esac
11982 fi
11983 if test no = "$with_gnu_ld"; then
11984 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11985 hardcode_libdir_separator=:
11986
11987 case $host_cpu in
11988 hppa*64*|ia64*)
11989 hardcode_direct=no
11990 hardcode_shlibpath_var=no
11991 ;;
11992 *)
11993 hardcode_direct=yes
11994 hardcode_direct_absolute=yes
11995 export_dynamic_flag_spec='$wl-E'
11996
11997 # hardcode_minus_L: Not really in the search PATH,
11998 # but as the default location of the library.
11999 hardcode_minus_L=yes
12000 ;;
12001 esac
12002 fi
12003 ;;
12004
12005 irix5* | irix6* | nonstopux*)
12006 if test yes = "$GCC"; then
12007 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'
12008 # Try to use the -exported_symbol ld option, if it does not
12009 # work, assume that -exports_file does not work either and
12010 # implicitly export all symbols.
12011 # This should be the same for all languages, so no per-tag cache variable.
12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12013 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12014 if test ${lt_cv_irix_exported_symbol+y}
12015 then :
12016 printf %s "(cached) " >&6
12017 else $as_nop
12018 save_LDFLAGS=$LDFLAGS
12019 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 int foo (void) { return 0; }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"
12025 then :
12026 lt_cv_irix_exported_symbol=yes
12027 else $as_nop
12028 lt_cv_irix_exported_symbol=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LDFLAGS=$save_LDFLAGS
12033 fi
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12035 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12036 if test yes = "$lt_cv_irix_exported_symbol"; then
12037 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'
12038 fi
12039 link_all_deplibs=no
12040 else
12041 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'
12042 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'
12043 fi
12044 archive_cmds_need_lc='no'
12045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12046 hardcode_libdir_separator=:
12047 inherit_rpath=yes
12048 link_all_deplibs=yes
12049 ;;
12050
12051 linux*)
12052 case $cc_basename in
12053 tcc*)
12054 # Fabrice Bellard et al's Tiny C Compiler
12055 ld_shlibs=yes
12056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12058 ;;
12059 esac
12060 ;;
12061
12062 netbsd* | netbsdelf*-gnu)
12063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12065 else
12066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12067 fi
12068 hardcode_libdir_flag_spec='-R$libdir'
12069 hardcode_direct=yes
12070 hardcode_shlibpath_var=no
12071 ;;
12072
12073 newsos6)
12074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12075 hardcode_direct=yes
12076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12077 hardcode_libdir_separator=:
12078 hardcode_shlibpath_var=no
12079 ;;
12080
12081 *nto* | *qnx*)
12082 ;;
12083
12084 openbsd* | bitrig*)
12085 if test -f /usr/libexec/ld.so; then
12086 hardcode_direct=yes
12087 hardcode_shlibpath_var=no
12088 hardcode_direct_absolute=yes
12089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12092 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12093 export_dynamic_flag_spec='$wl-E'
12094 else
12095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12096 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12097 fi
12098 else
12099 ld_shlibs=no
12100 fi
12101 ;;
12102
12103 os2*)
12104 hardcode_libdir_flag_spec='-L$libdir'
12105 hardcode_minus_L=yes
12106 allow_undefined_flag=unsupported
12107 shrext_cmds=.dll
12108 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12109 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12110 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12111 $ECHO EXPORTS >> $output_objdir/$libname.def~
12112 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12113 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12114 emximp -o $lib $output_objdir/$libname.def'
12115 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12118 $ECHO EXPORTS >> $output_objdir/$libname.def~
12119 prefix_cmds="$SED"~
12120 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12121 prefix_cmds="$prefix_cmds -e 1d";
12122 fi~
12123 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12124 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12126 emximp -o $lib $output_objdir/$libname.def'
12127 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12128 enable_shared_with_static_runtimes=yes
12129 file_list_spec='@'
12130 ;;
12131
12132 osf3*)
12133 if test yes = "$GCC"; then
12134 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12135 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'
12136 else
12137 allow_undefined_flag=' -expect_unresolved \*'
12138 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'
12139 fi
12140 archive_cmds_need_lc='no'
12141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12142 hardcode_libdir_separator=:
12143 ;;
12144
12145 osf4* | osf5*) # as osf3* with the addition of -msym flag
12146 if test yes = "$GCC"; then
12147 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12148 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'
12149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12150 else
12151 allow_undefined_flag=' -expect_unresolved \*'
12152 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'
12153 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~
12154 $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'
12155
12156 # Both c and cxx compiler support -rpath directly
12157 hardcode_libdir_flag_spec='-rpath $libdir'
12158 fi
12159 archive_cmds_need_lc='no'
12160 hardcode_libdir_separator=:
12161 ;;
12162
12163 solaris*)
12164 no_undefined_flag=' -z defs'
12165 if test yes = "$GCC"; then
12166 wlarc='$wl'
12167 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12169 $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'
12170 else
12171 case `$CC -V 2>&1` in
12172 *"Compilers 5.0"*)
12173 wlarc=''
12174 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12176 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12177 ;;
12178 *)
12179 wlarc='$wl'
12180 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12182 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12183 ;;
12184 esac
12185 fi
12186 hardcode_libdir_flag_spec='-R$libdir'
12187 hardcode_shlibpath_var=no
12188 case $host_os in
12189 solaris2.[0-5] | solaris2.[0-5].*) ;;
12190 *)
12191 # The compiler driver will combine and reorder linker options,
12192 # but understands '-z linker_flag'. GCC discards it without '$wl',
12193 # but is careful enough not to reorder.
12194 # Supported since Solaris 2.6 (maybe 2.5.1?)
12195 if test yes = "$GCC"; then
12196 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12197 else
12198 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12199 fi
12200 ;;
12201 esac
12202 link_all_deplibs=yes
12203 ;;
12204
12205 sunos4*)
12206 if test sequent = "$host_vendor"; then
12207 # Use $CC to link under sequent, because it throws in some extra .o
12208 # files that make .init and .fini sections work.
12209 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12210 else
12211 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12212 fi
12213 hardcode_libdir_flag_spec='-L$libdir'
12214 hardcode_direct=yes
12215 hardcode_minus_L=yes
12216 hardcode_shlibpath_var=no
12217 ;;
12218
12219 sysv4)
12220 case $host_vendor in
12221 sni)
12222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12223 hardcode_direct=yes # is this really true???
12224 ;;
12225 siemens)
12226 ## LD is ld it makes a PLAMLIB
12227 ## CC just makes a GrossModule.
12228 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12229 reload_cmds='$CC -r -o $output$reload_objs'
12230 hardcode_direct=no
12231 ;;
12232 motorola)
12233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12234 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12235 ;;
12236 esac
12237 runpath_var='LD_RUN_PATH'
12238 hardcode_shlibpath_var=no
12239 ;;
12240
12241 sysv4.3*)
12242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243 hardcode_shlibpath_var=no
12244 export_dynamic_flag_spec='-Bexport'
12245 ;;
12246
12247 sysv4*MP*)
12248 if test -d /usr/nec; then
12249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12250 hardcode_shlibpath_var=no
12251 runpath_var=LD_RUN_PATH
12252 hardcode_runpath_var=yes
12253 ld_shlibs=yes
12254 fi
12255 ;;
12256
12257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12258 no_undefined_flag='$wl-z,text'
12259 archive_cmds_need_lc=no
12260 hardcode_shlibpath_var=no
12261 runpath_var='LD_RUN_PATH'
12262
12263 if test yes = "$GCC"; then
12264 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12266 else
12267 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12269 fi
12270 ;;
12271
12272 sysv5* | sco3.2v5* | sco5v6*)
12273 # Note: We CANNOT use -z defs as we might desire, because we do not
12274 # link with -lc, and that would cause any symbols used from libc to
12275 # always be unresolved, which means just about no library would
12276 # ever link correctly. If we're not using GNU ld we use -z text
12277 # though, which does catch some bad symbols but isn't as heavy-handed
12278 # as -z defs.
12279 no_undefined_flag='$wl-z,text'
12280 allow_undefined_flag='$wl-z,nodefs'
12281 archive_cmds_need_lc=no
12282 hardcode_shlibpath_var=no
12283 hardcode_libdir_flag_spec='$wl-R,$libdir'
12284 hardcode_libdir_separator=':'
12285 link_all_deplibs=yes
12286 export_dynamic_flag_spec='$wl-Bexport'
12287 runpath_var='LD_RUN_PATH'
12288
12289 if test yes = "$GCC"; then
12290 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12291 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12292 else
12293 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12295 fi
12296 ;;
12297
12298 uts4*)
12299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12300 hardcode_libdir_flag_spec='-L$libdir'
12301 hardcode_shlibpath_var=no
12302 ;;
12303
12304 *)
12305 ld_shlibs=no
12306 ;;
12307 esac
12308
12309 if test sni = "$host_vendor"; then
12310 case $host in
12311 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12312 export_dynamic_flag_spec='$wl-Blargedynsym'
12313 ;;
12314 esac
12315 fi
12316 fi
12317
12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12319 printf "%s\n" "$ld_shlibs" >&6; }
12320 test no = "$ld_shlibs" && can_build_shared=no
12321
12322 with_gnu_ld=$with_gnu_ld
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338 #
12339 # Do we need to explicitly link libc?
12340 #
12341 case "x$archive_cmds_need_lc" in
12342 x|xyes)
12343 # Assume -lc should be added
12344 archive_cmds_need_lc=yes
12345
12346 if test yes,yes = "$GCC,$enable_shared"; then
12347 case $archive_cmds in
12348 *'~'*)
12349 # FIXME: we may have to deal with multi-command sequences.
12350 ;;
12351 '$CC '*)
12352 # Test whether the compiler implicitly links with -lc since on some
12353 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12354 # to ld, don't add -lc before -lgcc.
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12356 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12357 if test ${lt_cv_archive_cmds_need_lc+y}
12358 then :
12359 printf %s "(cached) " >&6
12360 else $as_nop
12361 $RM conftest*
12362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12363
12364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12365 (eval $ac_compile) 2>&5
12366 ac_status=$?
12367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12368 test $ac_status = 0; } 2>conftest.err; then
12369 soname=conftest
12370 lib=conftest
12371 libobjs=conftest.$ac_objext
12372 deplibs=
12373 wl=$lt_prog_compiler_wl
12374 pic_flag=$lt_prog_compiler_pic
12375 compiler_flags=-v
12376 linker_flags=-v
12377 verstring=
12378 output_objdir=.
12379 libname=conftest
12380 lt_save_allow_undefined_flag=$allow_undefined_flag
12381 allow_undefined_flag=
12382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12384 ac_status=$?
12385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386 test $ac_status = 0; }
12387 then
12388 lt_cv_archive_cmds_need_lc=no
12389 else
12390 lt_cv_archive_cmds_need_lc=yes
12391 fi
12392 allow_undefined_flag=$lt_save_allow_undefined_flag
12393 else
12394 cat conftest.err 1>&5
12395 fi
12396 $RM conftest*
12397
12398 fi
12399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12400 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12402 ;;
12403 esac
12404 fi
12405 ;;
12406 esac
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12560 printf %s "checking dynamic linker characteristics... " >&6; }
12561
12562 if test yes = "$GCC"; then
12563 case $host_os in
12564 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12565 *) lt_awk_arg='/^libraries:/' ;;
12566 esac
12567 case $host_os in
12568 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12569 *) lt_sed_strip_eq='s|=/|/|g' ;;
12570 esac
12571 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12572 case $lt_search_path_spec in
12573 *\;*)
12574 # if the path contains ";" then we assume it to be the separator
12575 # otherwise default to the standard path separator (i.e. ":") - it is
12576 # assumed that no part of a normal pathname contains ";" but that should
12577 # okay in the real world where ";" in dirpaths is itself problematic.
12578 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12579 ;;
12580 *)
12581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12582 ;;
12583 esac
12584 # Ok, now we have the path, separated by spaces, we can step through it
12585 # and add multilib dir if necessary...
12586 lt_tmp_lt_search_path_spec=
12587 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12588 # ...but if some path component already ends with the multilib dir we assume
12589 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12590 case "$lt_multi_os_dir; $lt_search_path_spec " in
12591 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12592 lt_multi_os_dir=
12593 ;;
12594 esac
12595 for lt_sys_path in $lt_search_path_spec; do
12596 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12598 elif test -n "$lt_multi_os_dir"; then
12599 test -d "$lt_sys_path" && \
12600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12601 fi
12602 done
12603 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12604 BEGIN {RS = " "; FS = "/|\n";} {
12605 lt_foo = "";
12606 lt_count = 0;
12607 for (lt_i = NF; lt_i > 0; lt_i--) {
12608 if ($lt_i != "" && $lt_i != ".") {
12609 if ($lt_i == "..") {
12610 lt_count++;
12611 } else {
12612 if (lt_count == 0) {
12613 lt_foo = "/" $lt_i lt_foo;
12614 } else {
12615 lt_count--;
12616 }
12617 }
12618 }
12619 }
12620 if (lt_foo != "") { lt_freq[lt_foo]++; }
12621 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12622 }'`
12623 # AWK program above erroneously prepends '/' to C:/dos/paths
12624 # for these hosts.
12625 case $host_os in
12626 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12627 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12628 esac
12629 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12630 else
12631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12632 fi
12633 library_names_spec=
12634 libname_spec='lib$name'
12635 soname_spec=
12636 shrext_cmds=.so
12637 postinstall_cmds=
12638 postuninstall_cmds=
12639 finish_cmds=
12640 finish_eval=
12641 shlibpath_var=
12642 shlibpath_overrides_runpath=unknown
12643 version_type=none
12644 dynamic_linker="$host_os ld.so"
12645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12646 need_lib_prefix=unknown
12647 hardcode_into_libs=no
12648
12649 # when you set need_version to no, make sure it does not cause -set_version
12650 # flags to be left without arguments
12651 need_version=unknown
12652
12653
12654
12655 case $host_os in
12656 aix3*)
12657 version_type=linux # correct to gnu/linux during the next big refactor
12658 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12659 shlibpath_var=LIBPATH
12660
12661 # AIX 3 has no versioning support, so we append a major version to the name.
12662 soname_spec='$libname$release$shared_ext$major'
12663 ;;
12664
12665 aix[4-9]*)
12666 version_type=linux # correct to gnu/linux during the next big refactor
12667 need_lib_prefix=no
12668 need_version=no
12669 hardcode_into_libs=yes
12670 if test ia64 = "$host_cpu"; then
12671 # AIX 5 supports IA64
12672 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12673 shlibpath_var=LD_LIBRARY_PATH
12674 else
12675 # With GCC up to 2.95.x, collect2 would create an import file
12676 # for dependence libraries. The import file would start with
12677 # the line '#! .'. This would cause the generated library to
12678 # depend on '.', always an invalid library. This was fixed in
12679 # development snapshots of GCC prior to 3.0.
12680 case $host_os in
12681 aix4 | aix4.[01] | aix4.[01].*)
12682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12683 echo ' yes '
12684 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12685 :
12686 else
12687 can_build_shared=no
12688 fi
12689 ;;
12690 esac
12691 # Using Import Files as archive members, it is possible to support
12692 # filename-based versioning of shared library archives on AIX. While
12693 # this would work for both with and without runtime linking, it will
12694 # prevent static linking of such archives. So we do filename-based
12695 # shared library versioning with .so extension only, which is used
12696 # when both runtime linking and shared linking is enabled.
12697 # Unfortunately, runtime linking may impact performance, so we do
12698 # not want this to be the default eventually. Also, we use the
12699 # versioned .so libs for executables only if there is the -brtl
12700 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12701 # To allow for filename-based versioning support, we need to create
12702 # libNAME.so.V as an archive file, containing:
12703 # *) an Import File, referring to the versioned filename of the
12704 # archive as well as the shared archive member, telling the
12705 # bitwidth (32 or 64) of that shared object, and providing the
12706 # list of exported symbols of that shared object, eventually
12707 # decorated with the 'weak' keyword
12708 # *) the shared object with the F_LOADONLY flag set, to really avoid
12709 # it being seen by the linker.
12710 # At run time we better use the real file rather than another symlink,
12711 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12712
12713 case $with_aix_soname,$aix_use_runtimelinking in
12714 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12715 # soname into executable. Probably we can add versioning support to
12716 # collect2, so additional links can be useful in future.
12717 aix,yes) # traditional libtool
12718 dynamic_linker='AIX unversionable lib.so'
12719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12720 # instead of lib<name>.a to let people know that these are not
12721 # typical AIX shared libraries.
12722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12723 ;;
12724 aix,no) # traditional AIX only
12725 dynamic_linker='AIX lib.a(lib.so.V)'
12726 # We preserve .a as extension for shared libraries through AIX4.2
12727 # and later when we are not doing run time linking.
12728 library_names_spec='$libname$release.a $libname.a'
12729 soname_spec='$libname$release$shared_ext$major'
12730 ;;
12731 svr4,*) # full svr4 only
12732 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12733 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12734 # We do not specify a path in Import Files, so LIBPATH fires.
12735 shlibpath_overrides_runpath=yes
12736 ;;
12737 *,yes) # both, prefer svr4
12738 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12739 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12740 # unpreferred sharedlib libNAME.a needs extra handling
12741 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"'
12742 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"'
12743 # We do not specify a path in Import Files, so LIBPATH fires.
12744 shlibpath_overrides_runpath=yes
12745 ;;
12746 *,no) # both, prefer aix
12747 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12748 library_names_spec='$libname$release.a $libname.a'
12749 soname_spec='$libname$release$shared_ext$major'
12750 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12751 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)'
12752 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"'
12753 ;;
12754 esac
12755 shlibpath_var=LIBPATH
12756 fi
12757 ;;
12758
12759 amigaos*)
12760 case $host_cpu in
12761 powerpc)
12762 # Since July 2007 AmigaOS4 officially supports .so libraries.
12763 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12765 ;;
12766 m68k)
12767 library_names_spec='$libname.ixlibrary $libname.a'
12768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12769 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'
12770 ;;
12771 esac
12772 ;;
12773
12774 beos*)
12775 library_names_spec='$libname$shared_ext'
12776 dynamic_linker="$host_os ld.so"
12777 shlibpath_var=LIBRARY_PATH
12778 ;;
12779
12780 bsdi[45]*)
12781 version_type=linux # correct to gnu/linux during the next big refactor
12782 need_version=no
12783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12784 soname_spec='$libname$release$shared_ext$major'
12785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12786 shlibpath_var=LD_LIBRARY_PATH
12787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12789 # the default ld.so.conf also contains /usr/contrib/lib and
12790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12791 # libtool to hard-code these into programs
12792 ;;
12793
12794 cygwin* | mingw* | pw32* | cegcc*)
12795 version_type=windows
12796 shrext_cmds=.dll
12797 need_version=no
12798 need_lib_prefix=no
12799
12800 case $GCC,$cc_basename in
12801 yes,*)
12802 # gcc
12803 library_names_spec='$libname.dll.a'
12804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12805 postinstall_cmds='base_file=`basename \$file`~
12806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12807 dldir=$destdir/`dirname \$dlpath`~
12808 test -d \$dldir || mkdir -p \$dldir~
12809 $install_prog $dir/$dlname \$dldir/$dlname~
12810 chmod a+x \$dldir/$dlname~
12811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12813 fi'
12814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12815 dlpath=$dir/\$dldll~
12816 $RM \$dlpath'
12817 shlibpath_overrides_runpath=yes
12818
12819 case $host_os in
12820 cygwin*)
12821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12822 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12823
12824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12825 ;;
12826 mingw* | cegcc*)
12827 # MinGW DLLs use traditional 'lib' prefix
12828 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12829 ;;
12830 pw32*)
12831 # pw32 DLLs use 'pw' prefix rather than 'lib'
12832 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12833 ;;
12834 esac
12835 dynamic_linker='Win32 ld.exe'
12836 ;;
12837
12838 *,cl* | *,icl*)
12839 # Native MSVC or ICC
12840 libname_spec='$name'
12841 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12842 library_names_spec='$libname.dll.lib'
12843
12844 case $build_os in
12845 mingw*)
12846 sys_lib_search_path_spec=
12847 lt_save_ifs=$IFS
12848 IFS=';'
12849 for lt_path in $LIB
12850 do
12851 IFS=$lt_save_ifs
12852 # Let DOS variable expansion print the short 8.3 style file name.
12853 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12854 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12855 done
12856 IFS=$lt_save_ifs
12857 # Convert to MSYS style.
12858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12859 ;;
12860 cygwin*)
12861 # Convert to unix form, then to dos form, then back to unix form
12862 # but this time dos style (no spaces!) so that the unix form looks
12863 # like /cygdrive/c/PROGRA~1:/cygdr...
12864 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12865 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12866 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12867 ;;
12868 *)
12869 sys_lib_search_path_spec=$LIB
12870 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12871 # It is most probably a Windows format PATH.
12872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12873 else
12874 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12875 fi
12876 # FIXME: find the short name or the path components, as spaces are
12877 # common. (e.g. "Program Files" -> "PROGRA~1")
12878 ;;
12879 esac
12880
12881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12882 postinstall_cmds='base_file=`basename \$file`~
12883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12884 dldir=$destdir/`dirname \$dlpath`~
12885 test -d \$dldir || mkdir -p \$dldir~
12886 $install_prog $dir/$dlname \$dldir/$dlname'
12887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12888 dlpath=$dir/\$dldll~
12889 $RM \$dlpath'
12890 shlibpath_overrides_runpath=yes
12891 dynamic_linker='Win32 link.exe'
12892 ;;
12893
12894 *)
12895 # Assume MSVC and ICC wrapper
12896 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12897 dynamic_linker='Win32 ld.exe'
12898 ;;
12899 esac
12900 # FIXME: first we should search . and the directory the executable is in
12901 shlibpath_var=PATH
12902 ;;
12903
12904 darwin* | rhapsody*)
12905 dynamic_linker="$host_os dyld"
12906 version_type=darwin
12907 need_lib_prefix=no
12908 need_version=no
12909 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12910 soname_spec='$libname$release$major$shared_ext'
12911 shlibpath_overrides_runpath=yes
12912 shlibpath_var=DYLD_LIBRARY_PATH
12913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12914
12915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12917 ;;
12918
12919 dgux*)
12920 version_type=linux # correct to gnu/linux during the next big refactor
12921 need_lib_prefix=no
12922 need_version=no
12923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12924 soname_spec='$libname$release$shared_ext$major'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 ;;
12927
12928 freebsd* | dragonfly* | midnightbsd*)
12929 # DragonFly does not have aout. When/if they implement a new
12930 # versioning mechanism, adjust this.
12931 if test -x /usr/bin/objformat; then
12932 objformat=`/usr/bin/objformat`
12933 else
12934 case $host_os in
12935 freebsd[23].*) objformat=aout ;;
12936 *) objformat=elf ;;
12937 esac
12938 fi
12939 version_type=freebsd-$objformat
12940 case $version_type in
12941 freebsd-elf*)
12942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943 soname_spec='$libname$release$shared_ext$major'
12944 need_version=no
12945 need_lib_prefix=no
12946 ;;
12947 freebsd-*)
12948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12949 need_version=yes
12950 ;;
12951 esac
12952 shlibpath_var=LD_LIBRARY_PATH
12953 case $host_os in
12954 freebsd2.*)
12955 shlibpath_overrides_runpath=yes
12956 ;;
12957 freebsd3.[01]* | freebsdelf3.[01]*)
12958 shlibpath_overrides_runpath=yes
12959 hardcode_into_libs=yes
12960 ;;
12961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12963 shlibpath_overrides_runpath=no
12964 hardcode_into_libs=yes
12965 ;;
12966 *) # from 4.6 on, and DragonFly
12967 shlibpath_overrides_runpath=yes
12968 hardcode_into_libs=yes
12969 ;;
12970 esac
12971 ;;
12972
12973 haiku*)
12974 version_type=linux # correct to gnu/linux during the next big refactor
12975 need_lib_prefix=no
12976 need_version=no
12977 dynamic_linker="$host_os runtime_loader"
12978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12979 soname_spec='$libname$release$shared_ext$major'
12980 shlibpath_var=LIBRARY_PATH
12981 shlibpath_overrides_runpath=no
12982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12983 hardcode_into_libs=yes
12984 ;;
12985
12986 hpux9* | hpux10* | hpux11*)
12987 # Give a soname corresponding to the major version so that dld.sl refuses to
12988 # link against other versions.
12989 version_type=sunos
12990 need_lib_prefix=no
12991 need_version=no
12992 case $host_cpu in
12993 ia64*)
12994 shrext_cmds='.so'
12995 hardcode_into_libs=yes
12996 dynamic_linker="$host_os dld.so"
12997 shlibpath_var=LD_LIBRARY_PATH
12998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13000 soname_spec='$libname$release$shared_ext$major'
13001 if test 32 = "$HPUX_IA64_MODE"; then
13002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13003 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13004 else
13005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13006 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13007 fi
13008 ;;
13009 hppa*64*)
13010 shrext_cmds='.sl'
13011 hardcode_into_libs=yes
13012 dynamic_linker="$host_os dld.sl"
13013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13016 soname_spec='$libname$release$shared_ext$major'
13017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13019 ;;
13020 *)
13021 shrext_cmds='.sl'
13022 dynamic_linker="$host_os dld.sl"
13023 shlibpath_var=SHLIB_PATH
13024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13026 soname_spec='$libname$release$shared_ext$major'
13027 ;;
13028 esac
13029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13030 postinstall_cmds='chmod 555 $lib'
13031 # or fails outright, so override atomically:
13032 install_override_mode=555
13033 ;;
13034
13035 interix[3-9]*)
13036 version_type=linux # correct to gnu/linux during the next big refactor
13037 need_lib_prefix=no
13038 need_version=no
13039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13040 soname_spec='$libname$release$shared_ext$major'
13041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=no
13044 hardcode_into_libs=yes
13045 ;;
13046
13047 irix5* | irix6* | nonstopux*)
13048 case $host_os in
13049 nonstopux*) version_type=nonstopux ;;
13050 *)
13051 if test yes = "$lt_cv_prog_gnu_ld"; then
13052 version_type=linux # correct to gnu/linux during the next big refactor
13053 else
13054 version_type=irix
13055 fi ;;
13056 esac
13057 need_lib_prefix=no
13058 need_version=no
13059 soname_spec='$libname$release$shared_ext$major'
13060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13061 case $host_os in
13062 irix5* | nonstopux*)
13063 libsuff= shlibsuff=
13064 ;;
13065 *)
13066 case $LD in # libtool.m4 will add one of these switches to LD
13067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13068 libsuff= shlibsuff= libmagic=32-bit;;
13069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13070 libsuff=32 shlibsuff=N32 libmagic=N32;;
13071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13073 *) libsuff= shlibsuff= libmagic=never-match;;
13074 esac
13075 ;;
13076 esac
13077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13078 shlibpath_overrides_runpath=no
13079 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13080 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13081 hardcode_into_libs=yes
13082 ;;
13083
13084 # No shared lib support for Linux oldld, aout, or coff.
13085 linux*oldld* | linux*aout* | linux*coff*)
13086 dynamic_linker=no
13087 ;;
13088
13089 linux*android*)
13090 version_type=none # Android doesn't support versioned libraries.
13091 need_lib_prefix=no
13092 need_version=no
13093 library_names_spec='$libname$release$shared_ext'
13094 soname_spec='$libname$release$shared_ext'
13095 finish_cmds=
13096 shlibpath_var=LD_LIBRARY_PATH
13097 shlibpath_overrides_runpath=yes
13098
13099 # This implies no fast_install, which is unacceptable.
13100 # Some rework will be needed to allow for fast_install
13101 # before this can be enabled.
13102 hardcode_into_libs=yes
13103
13104 dynamic_linker='Android linker'
13105 # Don't embed -rpath directories since the linker doesn't support them.
13106 hardcode_libdir_flag_spec='-L$libdir'
13107 ;;
13108
13109 # This must be glibc/ELF.
13110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13111 version_type=linux # correct to gnu/linux during the next big refactor
13112 need_lib_prefix=no
13113 need_version=no
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115 soname_spec='$libname$release$shared_ext$major'
13116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13117 shlibpath_var=LD_LIBRARY_PATH
13118 shlibpath_overrides_runpath=no
13119
13120 # Some binutils ld are patched to set DT_RUNPATH
13121 if test ${lt_cv_shlibpath_overrides_runpath+y}
13122 then :
13123 printf %s "(cached) " >&6
13124 else $as_nop
13125 lt_cv_shlibpath_overrides_runpath=no
13126 save_LDFLAGS=$LDFLAGS
13127 save_libdir=$libdir
13128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132
13133 int
13134 main (void)
13135 {
13136
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_link "$LINENO"
13142 then :
13143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13144 then :
13145 lt_cv_shlibpath_overrides_runpath=yes
13146 fi
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LDFLAGS=$save_LDFLAGS
13151 libdir=$save_libdir
13152
13153 fi
13154
13155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13156
13157 # This implies no fast_install, which is unacceptable.
13158 # Some rework will be needed to allow for fast_install
13159 # before this can be enabled.
13160 hardcode_into_libs=yes
13161
13162 # Ideally, we could use ldconfig to report *all* directores which are
13163 # searched for libraries, however this is still not possible. Aside from not
13164 # being certain /sbin/ldconfig is available, command
13165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13166 # even though it is searched at run-time. Try to do the best guess by
13167 # appending ld.so.conf contents (and includes) to the search path.
13168 if test -f /etc/ld.so.conf; then
13169 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' ' '`
13170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13171 fi
13172
13173 # We used to test for /lib/ld.so.1 and disable shared libraries on
13174 # powerpc, because MkLinux only supported shared libraries with the
13175 # GNU dynamic linker. Since this was broken with cross compilers,
13176 # most powerpc-linux boxes support dynamic linking these days and
13177 # people can always --disable-shared, the test was removed, and we
13178 # assume the GNU/Linux dynamic linker is in use.
13179 dynamic_linker='GNU/Linux ld.so'
13180 ;;
13181
13182 netbsdelf*-gnu)
13183 version_type=linux
13184 need_lib_prefix=no
13185 need_version=no
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 shlibpath_overrides_runpath=no
13190 hardcode_into_libs=yes
13191 dynamic_linker='NetBSD ld.elf_so'
13192 ;;
13193
13194 netbsd*)
13195 version_type=sunos
13196 need_lib_prefix=no
13197 need_version=no
13198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13199 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13201 dynamic_linker='NetBSD (a.out) ld.so'
13202 else
13203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13204 soname_spec='$libname$release$shared_ext$major'
13205 dynamic_linker='NetBSD ld.elf_so'
13206 fi
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes
13209 hardcode_into_libs=yes
13210 ;;
13211
13212 newsos6)
13213 version_type=linux # correct to gnu/linux during the next big refactor
13214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13217 ;;
13218
13219 *nto* | *qnx*)
13220 version_type=qnx
13221 need_lib_prefix=no
13222 need_version=no
13223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13224 soname_spec='$libname$release$shared_ext$major'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath=no
13227 hardcode_into_libs=yes
13228 dynamic_linker='ldqnx.so'
13229 ;;
13230
13231 openbsd* | bitrig*)
13232 version_type=sunos
13233 sys_lib_dlsearch_path_spec=/usr/lib
13234 need_lib_prefix=no
13235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13236 need_version=no
13237 else
13238 need_version=yes
13239 fi
13240 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13244 ;;
13245
13246 os2*)
13247 libname_spec='$name'
13248 version_type=windows
13249 shrext_cmds=.dll
13250 need_version=no
13251 need_lib_prefix=no
13252 # OS/2 can only load a DLL with a base name of 8 characters or less.
13253 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13254 v=$($ECHO $release$versuffix | tr -d .-);
13255 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13256 $ECHO $n$v`$shared_ext'
13257 library_names_spec='${libname}_dll.$libext'
13258 dynamic_linker='OS/2 ld.exe'
13259 shlibpath_var=BEGINLIBPATH
13260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13262 postinstall_cmds='base_file=`basename \$file`~
13263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13264 dldir=$destdir/`dirname \$dlpath`~
13265 test -d \$dldir || mkdir -p \$dldir~
13266 $install_prog $dir/$dlname \$dldir/$dlname~
13267 chmod a+x \$dldir/$dlname~
13268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13270 fi'
13271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13272 dlpath=$dir/\$dldll~
13273 $RM \$dlpath'
13274 ;;
13275
13276 osf3* | osf4* | osf5*)
13277 version_type=osf
13278 need_lib_prefix=no
13279 need_version=no
13280 soname_spec='$libname$release$shared_ext$major'
13281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13285 ;;
13286
13287 rdos*)
13288 dynamic_linker=no
13289 ;;
13290
13291 solaris*)
13292 version_type=linux # correct to gnu/linux during the next big refactor
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296 soname_spec='$libname$release$shared_ext$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=yes
13299 hardcode_into_libs=yes
13300 # ldd complains unless libraries are executable
13301 postinstall_cmds='chmod +x $lib'
13302 ;;
13303
13304 sunos4*)
13305 version_type=sunos
13306 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=yes
13310 if test yes = "$with_gnu_ld"; then
13311 need_lib_prefix=no
13312 fi
13313 need_version=yes
13314 ;;
13315
13316 sysv4 | sysv4.3*)
13317 version_type=linux # correct to gnu/linux during the next big refactor
13318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13319 soname_spec='$libname$release$shared_ext$major'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 case $host_vendor in
13322 sni)
13323 shlibpath_overrides_runpath=no
13324 need_lib_prefix=no
13325 runpath_var=LD_RUN_PATH
13326 ;;
13327 siemens)
13328 need_lib_prefix=no
13329 ;;
13330 motorola)
13331 need_lib_prefix=no
13332 need_version=no
13333 shlibpath_overrides_runpath=no
13334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13335 ;;
13336 esac
13337 ;;
13338
13339 sysv4*MP*)
13340 if test -d /usr/nec; then
13341 version_type=linux # correct to gnu/linux during the next big refactor
13342 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13343 soname_spec='$libname$shared_ext.$major'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 fi
13346 ;;
13347
13348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13349 version_type=sco
13350 need_lib_prefix=no
13351 need_version=no
13352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13353 soname_spec='$libname$release$shared_ext$major'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13356 hardcode_into_libs=yes
13357 if test yes = "$with_gnu_ld"; then
13358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13359 else
13360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13361 case $host_os in
13362 sco3.2v5*)
13363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13364 ;;
13365 esac
13366 fi
13367 sys_lib_dlsearch_path_spec='/usr/lib'
13368 ;;
13369
13370 tpf*)
13371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13372 version_type=linux # correct to gnu/linux during the next big refactor
13373 need_lib_prefix=no
13374 need_version=no
13375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376 shlibpath_var=LD_LIBRARY_PATH
13377 shlibpath_overrides_runpath=no
13378 hardcode_into_libs=yes
13379 ;;
13380
13381 uts4*)
13382 version_type=linux # correct to gnu/linux during the next big refactor
13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384 soname_spec='$libname$release$shared_ext$major'
13385 shlibpath_var=LD_LIBRARY_PATH
13386 ;;
13387
13388 *)
13389 dynamic_linker=no
13390 ;;
13391 esac
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13393 printf "%s\n" "$dynamic_linker" >&6; }
13394 test no = "$dynamic_linker" && can_build_shared=no
13395
13396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13397 if test yes = "$GCC"; then
13398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13399 fi
13400
13401 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13402 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13403 fi
13404
13405 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13406 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13407 fi
13408
13409 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13410 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13411
13412 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13413 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13414
13415 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13416 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13515 printf %s "checking how to hardcode library paths into programs... " >&6; }
13516 hardcode_action=
13517 if test -n "$hardcode_libdir_flag_spec" ||
13518 test -n "$runpath_var" ||
13519 test yes = "$hardcode_automatic"; then
13520
13521 # We can hardcode non-existent directories.
13522 if test no != "$hardcode_direct" &&
13523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13524 # have to relink, otherwise we might link with an installed library
13525 # when we should be linking with a yet-to-be-installed one
13526 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13527 test no != "$hardcode_minus_L"; then
13528 # Linking always hardcodes the temporary library directory.
13529 hardcode_action=relink
13530 else
13531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13532 hardcode_action=immediate
13533 fi
13534 else
13535 # We cannot hardcode anything, or else we can only hardcode existing
13536 # directories.
13537 hardcode_action=unsupported
13538 fi
13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13540 printf "%s\n" "$hardcode_action" >&6; }
13541
13542 if test relink = "$hardcode_action" ||
13543 test yes = "$inherit_rpath"; then
13544 # Fast installation is not supported
13545 enable_fast_install=no
13546 elif test yes = "$shlibpath_overrides_runpath" ||
13547 test no = "$enable_shared"; then
13548 # Fast installation is not necessary
13549 enable_fast_install=needless
13550 fi
13551
13552
13553
13554
13555
13556
13557 if test yes != "$enable_dlopen"; then
13558 enable_dlopen=unknown
13559 enable_dlopen_self=unknown
13560 enable_dlopen_self_static=unknown
13561 else
13562 lt_cv_dlopen=no
13563 lt_cv_dlopen_libs=
13564
13565 case $host_os in
13566 beos*)
13567 lt_cv_dlopen=load_add_on
13568 lt_cv_dlopen_libs=
13569 lt_cv_dlopen_self=yes
13570 ;;
13571
13572 mingw* | pw32* | cegcc*)
13573 lt_cv_dlopen=LoadLibrary
13574 lt_cv_dlopen_libs=
13575 ;;
13576
13577 cygwin*)
13578 lt_cv_dlopen=dlopen
13579 lt_cv_dlopen_libs=
13580 ;;
13581
13582 darwin*)
13583 # if libdl is installed we need to link against it
13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13585 printf %s "checking for dlopen in -ldl... " >&6; }
13586 if test ${ac_cv_lib_dl_dlopen+y}
13587 then :
13588 printf %s "(cached) " >&6
13589 else $as_nop
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-ldl $LIBS"
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594
13595 /* Override any GCC internal prototype to avoid an error.
13596 Use char because int might match the return type of a GCC
13597 builtin and then its argument prototype would still apply. */
13598 char dlopen ();
13599 int
13600 main (void)
13601 {
13602 return dlopen ();
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"
13608 then :
13609 ac_cv_lib_dl_dlopen=yes
13610 else $as_nop
13611 ac_cv_lib_dl_dlopen=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13614 conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13616 fi
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13618 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13619 if test "x$ac_cv_lib_dl_dlopen" = xyes
13620 then :
13621 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13622 else $as_nop
13623
13624 lt_cv_dlopen=dyld
13625 lt_cv_dlopen_libs=
13626 lt_cv_dlopen_self=yes
13627
13628 fi
13629
13630 ;;
13631
13632 tpf*)
13633 # Don't try to run any link tests for TPF. We know it's impossible
13634 # because TPF is a cross-compiler, and we know how we open DSOs.
13635 lt_cv_dlopen=dlopen
13636 lt_cv_dlopen_libs=
13637 lt_cv_dlopen_self=no
13638 ;;
13639
13640 *)
13641 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13642 if test "x$ac_cv_func_shl_load" = xyes
13643 then :
13644 lt_cv_dlopen=shl_load
13645 else $as_nop
13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13647 printf %s "checking for shl_load in -ldld... " >&6; }
13648 if test ${ac_cv_lib_dld_shl_load+y}
13649 then :
13650 printf %s "(cached) " >&6
13651 else $as_nop
13652 ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-ldld $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660 char shl_load ();
13661 int
13662 main (void)
13663 {
13664 return shl_load ();
13665 ;
13666 return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"
13670 then :
13671 ac_cv_lib_dld_shl_load=yes
13672 else $as_nop
13673 ac_cv_lib_dld_shl_load=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13680 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13681 if test "x$ac_cv_lib_dld_shl_load" = xyes
13682 then :
13683 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13684 else $as_nop
13685 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13686 if test "x$ac_cv_func_dlopen" = xyes
13687 then :
13688 lt_cv_dlopen=dlopen
13689 else $as_nop
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13691 printf %s "checking for dlopen in -ldl... " >&6; }
13692 if test ${ac_cv_lib_dl_dlopen+y}
13693 then :
13694 printf %s "(cached) " >&6
13695 else $as_nop
13696 ac_check_lib_save_LIBS=$LIBS
13697 LIBS="-ldl $LIBS"
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700
13701 /* Override any GCC internal prototype to avoid an error.
13702 Use char because int might match the return type of a GCC
13703 builtin and then its argument prototype would still apply. */
13704 char dlopen ();
13705 int
13706 main (void)
13707 {
13708 return dlopen ();
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"
13714 then :
13715 ac_cv_lib_dl_dlopen=yes
13716 else $as_nop
13717 ac_cv_lib_dl_dlopen=no
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13722 fi
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13724 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13725 if test "x$ac_cv_lib_dl_dlopen" = xyes
13726 then :
13727 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13728 else $as_nop
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13730 printf %s "checking for dlopen in -lsvld... " >&6; }
13731 if test ${ac_cv_lib_svld_dlopen+y}
13732 then :
13733 printf %s "(cached) " >&6
13734 else $as_nop
13735 ac_check_lib_save_LIBS=$LIBS
13736 LIBS="-lsvld $LIBS"
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13743 char dlopen ();
13744 int
13745 main (void)
13746 {
13747 return dlopen ();
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_link "$LINENO"
13753 then :
13754 ac_cv_lib_svld_dlopen=yes
13755 else $as_nop
13756 ac_cv_lib_svld_dlopen=no
13757 fi
13758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13761 fi
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13763 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13764 if test "x$ac_cv_lib_svld_dlopen" = xyes
13765 then :
13766 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13767 else $as_nop
13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13769 printf %s "checking for dld_link in -ldld... " >&6; }
13770 if test ${ac_cv_lib_dld_dld_link+y}
13771 then :
13772 printf %s "(cached) " >&6
13773 else $as_nop
13774 ac_check_lib_save_LIBS=$LIBS
13775 LIBS="-ldld $LIBS"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 char dld_link ();
13783 int
13784 main (void)
13785 {
13786 return dld_link ();
13787 ;
13788 return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_link "$LINENO"
13792 then :
13793 ac_cv_lib_dld_dld_link=yes
13794 else $as_nop
13795 ac_cv_lib_dld_dld_link=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13798 conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13800 fi
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13802 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13803 if test "x$ac_cv_lib_dld_dld_link" = xyes
13804 then :
13805 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13806 fi
13807
13808
13809 fi
13810
13811
13812 fi
13813
13814
13815 fi
13816
13817
13818 fi
13819
13820
13821 fi
13822
13823 ;;
13824 esac
13825
13826 if test no = "$lt_cv_dlopen"; then
13827 enable_dlopen=no
13828 else
13829 enable_dlopen=yes
13830 fi
13831
13832 case $lt_cv_dlopen in
13833 dlopen)
13834 save_CPPFLAGS=$CPPFLAGS
13835 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13836
13837 save_LDFLAGS=$LDFLAGS
13838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13839
13840 save_LIBS=$LIBS
13841 LIBS="$lt_cv_dlopen_libs $LIBS"
13842
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13844 printf %s "checking whether a program can dlopen itself... " >&6; }
13845 if test ${lt_cv_dlopen_self+y}
13846 then :
13847 printf %s "(cached) " >&6
13848 else $as_nop
13849 if test yes = "$cross_compiling"; then :
13850 lt_cv_dlopen_self=cross
13851 else
13852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13853 lt_status=$lt_dlunknown
13854 cat > conftest.$ac_ext <<_LT_EOF
13855 #line $LINENO "configure"
13856 #include "confdefs.h"
13857
13858 #if HAVE_DLFCN_H
13859 #include <dlfcn.h>
13860 #endif
13861
13862 #include <stdio.h>
13863
13864 #ifdef RTLD_GLOBAL
13865 # define LT_DLGLOBAL RTLD_GLOBAL
13866 #else
13867 # ifdef DL_GLOBAL
13868 # define LT_DLGLOBAL DL_GLOBAL
13869 # else
13870 # define LT_DLGLOBAL 0
13871 # endif
13872 #endif
13873
13874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13875 find out it does not work in some platform. */
13876 #ifndef LT_DLLAZY_OR_NOW
13877 # ifdef RTLD_LAZY
13878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13879 # else
13880 # ifdef DL_LAZY
13881 # define LT_DLLAZY_OR_NOW DL_LAZY
13882 # else
13883 # ifdef RTLD_NOW
13884 # define LT_DLLAZY_OR_NOW RTLD_NOW
13885 # else
13886 # ifdef DL_NOW
13887 # define LT_DLLAZY_OR_NOW DL_NOW
13888 # else
13889 # define LT_DLLAZY_OR_NOW 0
13890 # endif
13891 # endif
13892 # endif
13893 # endif
13894 #endif
13895
13896 /* When -fvisibility=hidden is used, assume the code has been annotated
13897 correspondingly for the symbols needed. */
13898 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13899 int fnord () __attribute__((visibility("default")));
13900 #endif
13901
13902 int fnord () { return 42; }
13903 int main ()
13904 {
13905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13906 int status = $lt_dlunknown;
13907
13908 if (self)
13909 {
13910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13911 else
13912 {
13913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13914 else puts (dlerror ());
13915 }
13916 /* dlclose (self); */
13917 }
13918 else
13919 puts (dlerror ());
13920
13921 return status;
13922 }
13923 _LT_EOF
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13925 (eval $ac_link) 2>&5
13926 ac_status=$?
13927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13929 (./conftest; exit; ) >&5 2>/dev/null
13930 lt_status=$?
13931 case x$lt_status in
13932 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13933 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13934 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13935 esac
13936 else :
13937 # compilation failed
13938 lt_cv_dlopen_self=no
13939 fi
13940 fi
13941 rm -fr conftest*
13942
13943
13944 fi
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13946 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13947
13948 if test yes = "$lt_cv_dlopen_self"; then
13949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13951 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13952 if test ${lt_cv_dlopen_self_static+y}
13953 then :
13954 printf %s "(cached) " >&6
13955 else $as_nop
13956 if test yes = "$cross_compiling"; then :
13957 lt_cv_dlopen_self_static=cross
13958 else
13959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13960 lt_status=$lt_dlunknown
13961 cat > conftest.$ac_ext <<_LT_EOF
13962 #line $LINENO "configure"
13963 #include "confdefs.h"
13964
13965 #if HAVE_DLFCN_H
13966 #include <dlfcn.h>
13967 #endif
13968
13969 #include <stdio.h>
13970
13971 #ifdef RTLD_GLOBAL
13972 # define LT_DLGLOBAL RTLD_GLOBAL
13973 #else
13974 # ifdef DL_GLOBAL
13975 # define LT_DLGLOBAL DL_GLOBAL
13976 # else
13977 # define LT_DLGLOBAL 0
13978 # endif
13979 #endif
13980
13981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13982 find out it does not work in some platform. */
13983 #ifndef LT_DLLAZY_OR_NOW
13984 # ifdef RTLD_LAZY
13985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13986 # else
13987 # ifdef DL_LAZY
13988 # define LT_DLLAZY_OR_NOW DL_LAZY
13989 # else
13990 # ifdef RTLD_NOW
13991 # define LT_DLLAZY_OR_NOW RTLD_NOW
13992 # else
13993 # ifdef DL_NOW
13994 # define LT_DLLAZY_OR_NOW DL_NOW
13995 # else
13996 # define LT_DLLAZY_OR_NOW 0
13997 # endif
13998 # endif
13999 # endif
14000 # endif
14001 #endif
14002
14003 /* When -fvisibility=hidden is used, assume the code has been annotated
14004 correspondingly for the symbols needed. */
14005 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14006 int fnord () __attribute__((visibility("default")));
14007 #endif
14008
14009 int fnord () { return 42; }
14010 int main ()
14011 {
14012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14013 int status = $lt_dlunknown;
14014
14015 if (self)
14016 {
14017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14018 else
14019 {
14020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14021 else puts (dlerror ());
14022 }
14023 /* dlclose (self); */
14024 }
14025 else
14026 puts (dlerror ());
14027
14028 return status;
14029 }
14030 _LT_EOF
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14032 (eval $ac_link) 2>&5
14033 ac_status=$?
14034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14036 (./conftest; exit; ) >&5 2>/dev/null
14037 lt_status=$?
14038 case x$lt_status in
14039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14042 esac
14043 else :
14044 # compilation failed
14045 lt_cv_dlopen_self_static=no
14046 fi
14047 fi
14048 rm -fr conftest*
14049
14050
14051 fi
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14053 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14054 fi
14055
14056 CPPFLAGS=$save_CPPFLAGS
14057 LDFLAGS=$save_LDFLAGS
14058 LIBS=$save_LIBS
14059 ;;
14060 esac
14061
14062 case $lt_cv_dlopen_self in
14063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14064 *) enable_dlopen_self=unknown ;;
14065 esac
14066
14067 case $lt_cv_dlopen_self_static in
14068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14069 *) enable_dlopen_self_static=unknown ;;
14070 esac
14071 fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089 striplib=
14090 old_striplib=
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14092 printf %s "checking whether stripping libraries is possible... " >&6; }
14093 if test -z "$STRIP"; then
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 printf "%s\n" "no" >&6; }
14096 else
14097 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14098 old_striplib="$STRIP --strip-debug"
14099 striplib="$STRIP --strip-unneeded"
14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101 printf "%s\n" "yes" >&6; }
14102 else
14103 case $host_os in
14104 darwin*)
14105 # FIXME - insert some real tests, host_os isn't really good enough
14106 striplib="$STRIP -x"
14107 old_striplib="$STRIP -S"
14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14109 printf "%s\n" "yes" >&6; }
14110 ;;
14111 freebsd*)
14112 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14113 old_striplib="$STRIP --strip-debug"
14114 striplib="$STRIP --strip-unneeded"
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14116 printf "%s\n" "yes" >&6; }
14117 else
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 printf "%s\n" "no" >&6; }
14120 fi
14121 ;;
14122 *)
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 printf "%s\n" "no" >&6; }
14125 ;;
14126 esac
14127 fi
14128 fi
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141 # Report what library types will actually be built
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14143 printf %s "checking if libtool supports shared libraries... " >&6; }
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14145 printf "%s\n" "$can_build_shared" >&6; }
14146
14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14148 printf %s "checking whether to build shared libraries... " >&6; }
14149 test no = "$can_build_shared" && enable_shared=no
14150
14151 # On AIX, shared libraries and static libraries use the same namespace, and
14152 # are all built from PIC.
14153 case $host_os in
14154 aix3*)
14155 test yes = "$enable_shared" && enable_static=no
14156 if test -n "$RANLIB"; then
14157 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14158 postinstall_cmds='$RANLIB $lib'
14159 fi
14160 ;;
14161
14162 aix[4-9]*)
14163 if test ia64 != "$host_cpu"; then
14164 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14165 yes,aix,yes) ;; # shared object as lib.so file only
14166 yes,svr4,*) ;; # shared object as lib.so archive member only
14167 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14168 esac
14169 fi
14170 ;;
14171 esac
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14173 printf "%s\n" "$enable_shared" >&6; }
14174
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14176 printf %s "checking whether to build static libraries... " >&6; }
14177 # Make sure either enable_shared or enable_static is yes.
14178 test yes = "$enable_shared" || enable_static=yes
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14180 printf "%s\n" "$enable_static" >&6; }
14181
14182
14183
14184
14185 fi
14186 ac_ext=c
14187 ac_cpp='$CPP $CPPFLAGS'
14188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14191
14192 CC=$lt_save_CC
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208 ac_config_commands="$ac_config_commands libtool"
14209
14210
14211
14212
14213 # Only expand once:
14214
14215
14216 # By default we simply use the C compiler to build assembly code.
14217
14218 test "${CCAS+set}" = set || CCAS=$CC
14219 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
14220
14221
14222
14223 depcc="$CCAS" am_compiler_list=
14224
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14226 printf %s "checking dependency style of $depcc... " >&6; }
14227 if test ${am_cv_CCAS_dependencies_compiler_type+y}
14228 then :
14229 printf %s "(cached) " >&6
14230 else $as_nop
14231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14232 # We make a subdir and do the tests there. Otherwise we can end up
14233 # making bogus files that we don't know about and never remove. For
14234 # instance it was reported that on HP-UX the gcc test will end up
14235 # making a dummy file named 'D' -- because '-MD' means "put the output
14236 # in D".
14237 rm -rf conftest.dir
14238 mkdir conftest.dir
14239 # Copy depcomp to subdir because otherwise we won't find it if we're
14240 # using a relative directory.
14241 cp "$am_depcomp" conftest.dir
14242 cd conftest.dir
14243 # We will build objects and dependencies in a subdirectory because
14244 # it helps to detect inapplicable dependency modes. For instance
14245 # both Tru64's cc and ICC support -MD to output dependencies as a
14246 # side effect of compilation, but ICC will put the dependencies in
14247 # the current directory while Tru64 will put them in the object
14248 # directory.
14249 mkdir sub
14250
14251 am_cv_CCAS_dependencies_compiler_type=none
14252 if test "$am_compiler_list" = ""; then
14253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14254 fi
14255 am__universal=false
14256
14257
14258 for depmode in $am_compiler_list; do
14259 # Setup a source with many dependencies, because some compilers
14260 # like to wrap large dependency lists on column 80 (with \), and
14261 # we should not choose a depcomp mode which is confused by this.
14262 #
14263 # We need to recreate these files for each test, as the compiler may
14264 # overwrite some of them when testing with obscure command lines.
14265 # This happens at least with the AIX C compiler.
14266 : > sub/conftest.c
14267 for i in 1 2 3 4 5 6; do
14268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14269 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14270 # Solaris 10 /bin/sh.
14271 echo '/* dummy */' > sub/conftst$i.h
14272 done
14273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14274
14275 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14276 # mode. It turns out that the SunPro C++ compiler does not properly
14277 # handle '-M -o', and we need to detect this. Also, some Intel
14278 # versions had trouble with output in subdirs.
14279 am__obj=sub/conftest.${OBJEXT-o}
14280 am__minus_obj="-o $am__obj"
14281 case $depmode in
14282 gcc)
14283 # This depmode causes a compiler race in universal mode.
14284 test "$am__universal" = false || continue
14285 ;;
14286 nosideeffect)
14287 # After this tag, mechanisms are not by side-effect, so they'll
14288 # only be used when explicitly requested.
14289 if test "x$enable_dependency_tracking" = xyes; then
14290 continue
14291 else
14292 break
14293 fi
14294 ;;
14295 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14296 # This compiler won't grok '-c -o', but also, the minuso test has
14297 # not run yet. These depmodes are late enough in the game, and
14298 # so weak that their functioning should not be impacted.
14299 am__obj=conftest.${OBJEXT-o}
14300 am__minus_obj=
14301 ;;
14302 none) break ;;
14303 esac
14304 if depmode=$depmode \
14305 source=sub/conftest.c object=$am__obj \
14306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14308 >/dev/null 2>conftest.err &&
14309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14313 # icc doesn't choke on unknown options, it will just issue warnings
14314 # or remarks (even with -Werror). So we grep stderr for any message
14315 # that says an option was ignored or not supported.
14316 # When given -MP, icc 7.0 and 7.1 complain thusly:
14317 # icc: Command line warning: ignoring option '-M'; no argument required
14318 # The diagnosis changed in icc 8.0:
14319 # icc: Command line remark: option '-MP' not supported
14320 if (grep 'ignoring option' conftest.err ||
14321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14322 am_cv_CCAS_dependencies_compiler_type=$depmode
14323 break
14324 fi
14325 fi
14326 done
14327
14328 cd ..
14329 rm -rf conftest.dir
14330 else
14331 am_cv_CCAS_dependencies_compiler_type=none
14332 fi
14333
14334 fi
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
14336 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
14337 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
14338
14339 if
14340 test "x$enable_dependency_tracking" != xno \
14341 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
14342 am__fastdepCCAS_TRUE=
14343 am__fastdepCCAS_FALSE='#'
14344 else
14345 am__fastdepCCAS_TRUE='#'
14346 am__fastdepCCAS_FALSE=
14347 fi
14348
14349
14350
14351
14352
14353
14354
14355
14356 ac_ext=cpp
14357 ac_cpp='$CXXCPP $CPPFLAGS'
14358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14361 if test -z "$CXX"; then
14362 if test -n "$CCC"; then
14363 CXX=$CCC
14364 else
14365 if test -n "$ac_tool_prefix"; then
14366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14367 do
14368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 printf %s "checking for $ac_word... " >&6; }
14372 if test ${ac_cv_prog_CXX+y}
14373 then :
14374 printf %s "(cached) " >&6
14375 else $as_nop
14376 if test -n "$CXX"; then
14377 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14378 else
14379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380 for as_dir in $PATH
14381 do
14382 IFS=$as_save_IFS
14383 case $as_dir in #(((
14384 '') as_dir=./ ;;
14385 */) ;;
14386 *) as_dir=$as_dir/ ;;
14387 esac
14388 for ac_exec_ext in '' $ac_executable_extensions; do
14389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14392 break 2
14393 fi
14394 done
14395 done
14396 IFS=$as_save_IFS
14397
14398 fi
14399 fi
14400 CXX=$ac_cv_prog_CXX
14401 if test -n "$CXX"; then
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14403 printf "%s\n" "$CXX" >&6; }
14404 else
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 printf "%s\n" "no" >&6; }
14407 fi
14408
14409
14410 test -n "$CXX" && break
14411 done
14412 fi
14413 if test -z "$CXX"; then
14414 ac_ct_CXX=$CXX
14415 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14416 do
14417 # Extract the first word of "$ac_prog", so it can be a program name with args.
14418 set dummy $ac_prog; ac_word=$2
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 printf %s "checking for $ac_word... " >&6; }
14421 if test ${ac_cv_prog_ac_ct_CXX+y}
14422 then :
14423 printf %s "(cached) " >&6
14424 else $as_nop
14425 if test -n "$ac_ct_CXX"; then
14426 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14427 else
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14430 do
14431 IFS=$as_save_IFS
14432 case $as_dir in #(((
14433 '') as_dir=./ ;;
14434 */) ;;
14435 *) as_dir=$as_dir/ ;;
14436 esac
14437 for ac_exec_ext in '' $ac_executable_extensions; do
14438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14439 ac_cv_prog_ac_ct_CXX="$ac_prog"
14440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14441 break 2
14442 fi
14443 done
14444 done
14445 IFS=$as_save_IFS
14446
14447 fi
14448 fi
14449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14450 if test -n "$ac_ct_CXX"; then
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14452 printf "%s\n" "$ac_ct_CXX" >&6; }
14453 else
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 printf "%s\n" "no" >&6; }
14456 fi
14457
14458
14459 test -n "$ac_ct_CXX" && break
14460 done
14461
14462 if test "x$ac_ct_CXX" = x; then
14463 CXX="g++"
14464 else
14465 case $cross_compiling:$ac_tool_warned in
14466 yes:)
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14469 ac_tool_warned=yes ;;
14470 esac
14471 CXX=$ac_ct_CXX
14472 fi
14473 fi
14474
14475 fi
14476 fi
14477 # Provide some information about the compiler.
14478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14479 set X $ac_compile
14480 ac_compiler=$2
14481 for ac_option in --version -v -V -qversion; do
14482 { { ac_try="$ac_compiler $ac_option >&5"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14488 printf "%s\n" "$ac_try_echo"; } >&5
14489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14490 ac_status=$?
14491 if test -s conftest.err; then
14492 sed '10a\
14493 ... rest of stderr output deleted ...
14494 10q' conftest.err >conftest.er1
14495 cat conftest.er1 >&5
14496 fi
14497 rm -f conftest.er1 conftest.err
14498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; }
14500 done
14501
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14503 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14504 if test ${ac_cv_cxx_compiler_gnu+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else $as_nop
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510
14511 int
14512 main (void)
14513 {
14514 #ifndef __GNUC__
14515 choke me
14516 #endif
14517
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_cxx_try_compile "$LINENO"
14523 then :
14524 ac_compiler_gnu=yes
14525 else $as_nop
14526 ac_compiler_gnu=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14529 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14530
14531 fi
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14533 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14535
14536 if test $ac_compiler_gnu = yes; then
14537 GXX=yes
14538 else
14539 GXX=
14540 fi
14541 ac_test_CXXFLAGS=${CXXFLAGS+y}
14542 ac_save_CXXFLAGS=$CXXFLAGS
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14544 printf %s "checking whether $CXX accepts -g... " >&6; }
14545 if test ${ac_cv_prog_cxx_g+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else $as_nop
14549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14550 ac_cxx_werror_flag=yes
14551 ac_cv_prog_cxx_g=no
14552 CXXFLAGS="-g"
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555
14556 int
14557 main (void)
14558 {
14559
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_cxx_try_compile "$LINENO"
14565 then :
14566 ac_cv_prog_cxx_g=yes
14567 else $as_nop
14568 CXXFLAGS=""
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571
14572 int
14573 main (void)
14574 {
14575
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_cxx_try_compile "$LINENO"
14581 then :
14582
14583 else $as_nop
14584 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14585 CXXFLAGS="-g"
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588
14589 int
14590 main (void)
14591 {
14592
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_cxx_try_compile "$LINENO"
14598 then :
14599 ac_cv_prog_cxx_g=yes
14600 fi
14601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14602 fi
14603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14604 fi
14605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14607 fi
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14609 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14610 if test $ac_test_CXXFLAGS; then
14611 CXXFLAGS=$ac_save_CXXFLAGS
14612 elif test $ac_cv_prog_cxx_g = yes; then
14613 if test "$GXX" = yes; then
14614 CXXFLAGS="-g -O2"
14615 else
14616 CXXFLAGS="-g"
14617 fi
14618 else
14619 if test "$GXX" = yes; then
14620 CXXFLAGS="-O2"
14621 else
14622 CXXFLAGS=
14623 fi
14624 fi
14625 ac_prog_cxx_stdcxx=no
14626 if test x$ac_prog_cxx_stdcxx = xno
14627 then :
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14629 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14630 if test ${ac_cv_prog_cxx_cxx11+y}
14631 then :
14632 printf %s "(cached) " >&6
14633 else $as_nop
14634 ac_cv_prog_cxx_cxx11=no
14635 ac_save_CXX=$CXX
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 $ac_cxx_conftest_cxx11_program
14639 _ACEOF
14640 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14641 do
14642 CXX="$ac_save_CXX $ac_arg"
14643 if ac_fn_cxx_try_compile "$LINENO"
14644 then :
14645 ac_cv_prog_cxx_cxx11=$ac_arg
14646 fi
14647 rm -f core conftest.err conftest.$ac_objext conftest.beam
14648 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14649 done
14650 rm -f conftest.$ac_ext
14651 CXX=$ac_save_CXX
14652 fi
14653
14654 if test "x$ac_cv_prog_cxx_cxx11" = xno
14655 then :
14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14657 printf "%s\n" "unsupported" >&6; }
14658 else $as_nop
14659 if test "x$ac_cv_prog_cxx_cxx11" = x
14660 then :
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14662 printf "%s\n" "none needed" >&6; }
14663 else $as_nop
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14665 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14666 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14667 fi
14668 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14669 ac_prog_cxx_stdcxx=cxx11
14670 fi
14671 fi
14672 if test x$ac_prog_cxx_stdcxx = xno
14673 then :
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14675 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14676 if test ${ac_cv_prog_cxx_cxx98+y}
14677 then :
14678 printf %s "(cached) " >&6
14679 else $as_nop
14680 ac_cv_prog_cxx_cxx98=no
14681 ac_save_CXX=$CXX
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 $ac_cxx_conftest_cxx98_program
14685 _ACEOF
14686 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14687 do
14688 CXX="$ac_save_CXX $ac_arg"
14689 if ac_fn_cxx_try_compile "$LINENO"
14690 then :
14691 ac_cv_prog_cxx_cxx98=$ac_arg
14692 fi
14693 rm -f core conftest.err conftest.$ac_objext conftest.beam
14694 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14695 done
14696 rm -f conftest.$ac_ext
14697 CXX=$ac_save_CXX
14698 fi
14699
14700 if test "x$ac_cv_prog_cxx_cxx98" = xno
14701 then :
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14703 printf "%s\n" "unsupported" >&6; }
14704 else $as_nop
14705 if test "x$ac_cv_prog_cxx_cxx98" = x
14706 then :
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14708 printf "%s\n" "none needed" >&6; }
14709 else $as_nop
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14711 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14712 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14713 fi
14714 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14715 ac_prog_cxx_stdcxx=cxx98
14716 fi
14717 fi
14718
14719 ac_ext=c
14720 ac_cpp='$CPP $CPPFLAGS'
14721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14724
14725 depcc="$CXX" am_compiler_list=
14726
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14728 printf %s "checking dependency style of $depcc... " >&6; }
14729 if test ${am_cv_CXX_dependencies_compiler_type+y}
14730 then :
14731 printf %s "(cached) " >&6
14732 else $as_nop
14733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14734 # We make a subdir and do the tests there. Otherwise we can end up
14735 # making bogus files that we don't know about and never remove. For
14736 # instance it was reported that on HP-UX the gcc test will end up
14737 # making a dummy file named 'D' -- because '-MD' means "put the output
14738 # in D".
14739 rm -rf conftest.dir
14740 mkdir conftest.dir
14741 # Copy depcomp to subdir because otherwise we won't find it if we're
14742 # using a relative directory.
14743 cp "$am_depcomp" conftest.dir
14744 cd conftest.dir
14745 # We will build objects and dependencies in a subdirectory because
14746 # it helps to detect inapplicable dependency modes. For instance
14747 # both Tru64's cc and ICC support -MD to output dependencies as a
14748 # side effect of compilation, but ICC will put the dependencies in
14749 # the current directory while Tru64 will put them in the object
14750 # directory.
14751 mkdir sub
14752
14753 am_cv_CXX_dependencies_compiler_type=none
14754 if test "$am_compiler_list" = ""; then
14755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14756 fi
14757 am__universal=false
14758 case " $depcc " in #(
14759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14760 esac
14761
14762 for depmode in $am_compiler_list; do
14763 # Setup a source with many dependencies, because some compilers
14764 # like to wrap large dependency lists on column 80 (with \), and
14765 # we should not choose a depcomp mode which is confused by this.
14766 #
14767 # We need to recreate these files for each test, as the compiler may
14768 # overwrite some of them when testing with obscure command lines.
14769 # This happens at least with the AIX C compiler.
14770 : > sub/conftest.c
14771 for i in 1 2 3 4 5 6; do
14772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14773 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14774 # Solaris 10 /bin/sh.
14775 echo '/* dummy */' > sub/conftst$i.h
14776 done
14777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14778
14779 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14780 # mode. It turns out that the SunPro C++ compiler does not properly
14781 # handle '-M -o', and we need to detect this. Also, some Intel
14782 # versions had trouble with output in subdirs.
14783 am__obj=sub/conftest.${OBJEXT-o}
14784 am__minus_obj="-o $am__obj"
14785 case $depmode in
14786 gcc)
14787 # This depmode causes a compiler race in universal mode.
14788 test "$am__universal" = false || continue
14789 ;;
14790 nosideeffect)
14791 # After this tag, mechanisms are not by side-effect, so they'll
14792 # only be used when explicitly requested.
14793 if test "x$enable_dependency_tracking" = xyes; then
14794 continue
14795 else
14796 break
14797 fi
14798 ;;
14799 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14800 # This compiler won't grok '-c -o', but also, the minuso test has
14801 # not run yet. These depmodes are late enough in the game, and
14802 # so weak that their functioning should not be impacted.
14803 am__obj=conftest.${OBJEXT-o}
14804 am__minus_obj=
14805 ;;
14806 none) break ;;
14807 esac
14808 if depmode=$depmode \
14809 source=sub/conftest.c object=$am__obj \
14810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14812 >/dev/null 2>conftest.err &&
14813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14817 # icc doesn't choke on unknown options, it will just issue warnings
14818 # or remarks (even with -Werror). So we grep stderr for any message
14819 # that says an option was ignored or not supported.
14820 # When given -MP, icc 7.0 and 7.1 complain thusly:
14821 # icc: Command line warning: ignoring option '-M'; no argument required
14822 # The diagnosis changed in icc 8.0:
14823 # icc: Command line remark: option '-MP' not supported
14824 if (grep 'ignoring option' conftest.err ||
14825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14826 am_cv_CXX_dependencies_compiler_type=$depmode
14827 break
14828 fi
14829 fi
14830 done
14831
14832 cd ..
14833 rm -rf conftest.dir
14834 else
14835 am_cv_CXX_dependencies_compiler_type=none
14836 fi
14837
14838 fi
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14840 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14841 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14842
14843 if
14844 test "x$enable_dependency_tracking" != xno \
14845 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14846 am__fastdepCXX_TRUE=
14847 am__fastdepCXX_FALSE='#'
14848 else
14849 am__fastdepCXX_TRUE='#'
14850 am__fastdepCXX_FALSE=
14851 fi
14852
14853
14854
14855
14856 func_stripname_cnf ()
14857 {
14858 case $2 in
14859 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14860 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14861 esac
14862 } # func_stripname_cnf
14863
14864 if test -n "$CXX" && ( test no != "$CXX" &&
14865 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14866 (test g++ != "$CXX"))); then
14867 ac_ext=cpp
14868 ac_cpp='$CXXCPP $CPPFLAGS'
14869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14873 printf %s "checking how to run the C++ preprocessor... " >&6; }
14874 if test -z "$CXXCPP"; then
14875 if test ${ac_cv_prog_CXXCPP+y}
14876 then :
14877 printf %s "(cached) " >&6
14878 else $as_nop
14879 # Double quotes because $CXX needs to be expanded
14880 for CXXCPP in "$CXX -E" cpp /lib/cpp
14881 do
14882 ac_preproc_ok=false
14883 for ac_cxx_preproc_warn_flag in '' yes
14884 do
14885 # Use a header file that comes with gcc, so configuring glibc
14886 # with a fresh cross-compiler works.
14887 # On the NeXT, cc -E runs the code through the compiler's parser,
14888 # not just through cpp. "Syntax error" is here to catch this case.
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <limits.h>
14892 Syntax error
14893 _ACEOF
14894 if ac_fn_cxx_try_cpp "$LINENO"
14895 then :
14896
14897 else $as_nop
14898 # Broken: fails on valid input.
14899 continue
14900 fi
14901 rm -f conftest.err conftest.i conftest.$ac_ext
14902
14903 # OK, works on sane cases. Now check whether nonexistent headers
14904 # can be detected and how.
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14907 #include <ac_nonexistent.h>
14908 _ACEOF
14909 if ac_fn_cxx_try_cpp "$LINENO"
14910 then :
14911 # Broken: success on invalid input.
14912 continue
14913 else $as_nop
14914 # Passes both tests.
14915 ac_preproc_ok=:
14916 break
14917 fi
14918 rm -f conftest.err conftest.i conftest.$ac_ext
14919
14920 done
14921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14922 rm -f conftest.i conftest.err conftest.$ac_ext
14923 if $ac_preproc_ok
14924 then :
14925 break
14926 fi
14927
14928 done
14929 ac_cv_prog_CXXCPP=$CXXCPP
14930
14931 fi
14932 CXXCPP=$ac_cv_prog_CXXCPP
14933 else
14934 ac_cv_prog_CXXCPP=$CXXCPP
14935 fi
14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14937 printf "%s\n" "$CXXCPP" >&6; }
14938 ac_preproc_ok=false
14939 for ac_cxx_preproc_warn_flag in '' yes
14940 do
14941 # Use a header file that comes with gcc, so configuring glibc
14942 # with a fresh cross-compiler works.
14943 # On the NeXT, cc -E runs the code through the compiler's parser,
14944 # not just through cpp. "Syntax error" is here to catch this case.
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 #include <limits.h>
14948 Syntax error
14949 _ACEOF
14950 if ac_fn_cxx_try_cpp "$LINENO"
14951 then :
14952
14953 else $as_nop
14954 # Broken: fails on valid input.
14955 continue
14956 fi
14957 rm -f conftest.err conftest.i conftest.$ac_ext
14958
14959 # OK, works on sane cases. Now check whether nonexistent headers
14960 # can be detected and how.
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <ac_nonexistent.h>
14964 _ACEOF
14965 if ac_fn_cxx_try_cpp "$LINENO"
14966 then :
14967 # Broken: success on invalid input.
14968 continue
14969 else $as_nop
14970 # Passes both tests.
14971 ac_preproc_ok=:
14972 break
14973 fi
14974 rm -f conftest.err conftest.i conftest.$ac_ext
14975
14976 done
14977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14978 rm -f conftest.i conftest.err conftest.$ac_ext
14979 if $ac_preproc_ok
14980 then :
14981
14982 else $as_nop
14983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14985 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14986 See \`config.log' for more details" "$LINENO" 5; }
14987 fi
14988
14989 ac_ext=c
14990 ac_cpp='$CPP $CPPFLAGS'
14991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994
14995 else
14996 _lt_caught_CXX_error=yes
14997 fi
14998
14999 ac_ext=cpp
15000 ac_cpp='$CXXCPP $CPPFLAGS'
15001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15004
15005 archive_cmds_need_lc_CXX=no
15006 allow_undefined_flag_CXX=
15007 always_export_symbols_CXX=no
15008 archive_expsym_cmds_CXX=
15009 compiler_needs_object_CXX=no
15010 export_dynamic_flag_spec_CXX=
15011 hardcode_direct_CXX=no
15012 hardcode_direct_absolute_CXX=no
15013 hardcode_libdir_flag_spec_CXX=
15014 hardcode_libdir_separator_CXX=
15015 hardcode_minus_L_CXX=no
15016 hardcode_shlibpath_var_CXX=unsupported
15017 hardcode_automatic_CXX=no
15018 inherit_rpath_CXX=no
15019 module_cmds_CXX=
15020 module_expsym_cmds_CXX=
15021 link_all_deplibs_CXX=unknown
15022 old_archive_cmds_CXX=$old_archive_cmds
15023 reload_flag_CXX=$reload_flag
15024 reload_cmds_CXX=$reload_cmds
15025 no_undefined_flag_CXX=
15026 whole_archive_flag_spec_CXX=
15027 enable_shared_with_static_runtimes_CXX=no
15028
15029 # Source file extension for C++ test sources.
15030 ac_ext=cpp
15031
15032 # Object file extension for compiled C++ test sources.
15033 objext=o
15034 objext_CXX=$objext
15035
15036 # No sense in running all these tests if we already determined that
15037 # the CXX compiler isn't working. Some variables (like enable_shared)
15038 # are currently assumed to apply to all compilers on this platform,
15039 # and will be corrupted by setting them based on a non-working compiler.
15040 if test yes != "$_lt_caught_CXX_error"; then
15041 # Code to be used in simple compile tests
15042 lt_simple_compile_test_code="int some_variable = 0;"
15043
15044 # Code to be used in simple link tests
15045 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15046
15047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15048
15049
15050
15051
15052
15053
15054 # If no C compiler was specified, use CC.
15055 LTCC=${LTCC-"$CC"}
15056
15057 # If no C compiler flags were specified, use CFLAGS.
15058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15059
15060 # Allow CC to be a program name with arguments.
15061 compiler=$CC
15062
15063
15064 # save warnings/boilerplate of simple test code
15065 ac_outfile=conftest.$ac_objext
15066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15068 _lt_compiler_boilerplate=`cat conftest.err`
15069 $RM conftest*
15070
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15074 _lt_linker_boilerplate=`cat conftest.err`
15075 $RM -r conftest*
15076
15077
15078 # Allow CC to be a program name with arguments.
15079 lt_save_CC=$CC
15080 lt_save_CFLAGS=$CFLAGS
15081 lt_save_LD=$LD
15082 lt_save_GCC=$GCC
15083 GCC=$GXX
15084 lt_save_with_gnu_ld=$with_gnu_ld
15085 lt_save_path_LD=$lt_cv_path_LD
15086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15088 else
15089 $as_unset lt_cv_prog_gnu_ld
15090 fi
15091 if test -n "${lt_cv_path_LDCXX+set}"; then
15092 lt_cv_path_LD=$lt_cv_path_LDCXX
15093 else
15094 $as_unset lt_cv_path_LD
15095 fi
15096 test -z "${LDCXX+set}" || LD=$LDCXX
15097 CC=${CXX-"c++"}
15098 CFLAGS=$CXXFLAGS
15099 compiler=$CC
15100 compiler_CXX=$CC
15101 func_cc_basename $compiler
15102 cc_basename=$func_cc_basename_result
15103
15104
15105 if test -n "$compiler"; then
15106 # We don't want -fno-exception when compiling C++ code, so set the
15107 # no_builtin_flag separately
15108 if test yes = "$GXX"; then
15109 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15110 else
15111 lt_prog_compiler_no_builtin_flag_CXX=
15112 fi
15113
15114 if test yes = "$GXX"; then
15115 # Set up default GNU C++ configuration
15116
15117
15118
15119 # Check whether --with-gnu-ld was given.
15120 if test ${with_gnu_ld+y}
15121 then :
15122 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15123 else $as_nop
15124 with_gnu_ld=no
15125 fi
15126
15127 ac_prog=ld
15128 if test yes = "$GCC"; then
15129 # Check if gcc -print-prog-name=ld gives a path.
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15131 printf %s "checking for ld used by $CC... " >&6; }
15132 case $host in
15133 *-*-mingw*)
15134 # gcc leaves a trailing carriage return, which upsets mingw
15135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15136 *)
15137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15138 esac
15139 case $ac_prog in
15140 # Accept absolute paths.
15141 [\\/]* | ?:[\\/]*)
15142 re_direlt='/[^/][^/]*/\.\./'
15143 # Canonicalize the pathname of ld
15144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15147 done
15148 test -z "$LD" && LD=$ac_prog
15149 ;;
15150 "")
15151 # If it fails, then pretend we aren't using GCC.
15152 ac_prog=ld
15153 ;;
15154 *)
15155 # If it is relative, then search for the first ld in PATH.
15156 with_gnu_ld=unknown
15157 ;;
15158 esac
15159 elif test yes = "$with_gnu_ld"; then
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15161 printf %s "checking for GNU ld... " >&6; }
15162 else
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15164 printf %s "checking for non-GNU ld... " >&6; }
15165 fi
15166 if test ${lt_cv_path_LD+y}
15167 then :
15168 printf %s "(cached) " >&6
15169 else $as_nop
15170 if test -z "$LD"; then
15171 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15172 for ac_dir in $PATH; do
15173 IFS=$lt_save_ifs
15174 test -z "$ac_dir" && ac_dir=.
15175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15176 lt_cv_path_LD=$ac_dir/$ac_prog
15177 # Check to see if the program is GNU ld. I'd rather use --version,
15178 # but apparently some variants of GNU ld only accept -v.
15179 # Break only if it was the GNU/non-GNU ld that we prefer.
15180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15181 *GNU* | *'with BFD'*)
15182 test no != "$with_gnu_ld" && break
15183 ;;
15184 *)
15185 test yes != "$with_gnu_ld" && break
15186 ;;
15187 esac
15188 fi
15189 done
15190 IFS=$lt_save_ifs
15191 else
15192 lt_cv_path_LD=$LD # Let the user override the test with a path.
15193 fi
15194 fi
15195
15196 LD=$lt_cv_path_LD
15197 if test -n "$LD"; then
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15199 printf "%s\n" "$LD" >&6; }
15200 else
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 printf "%s\n" "no" >&6; }
15203 fi
15204 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15206 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15207 if test ${lt_cv_prog_gnu_ld+y}
15208 then :
15209 printf %s "(cached) " >&6
15210 else $as_nop
15211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15212 case `$LD -v 2>&1 </dev/null` in
15213 *GNU* | *'with BFD'*)
15214 lt_cv_prog_gnu_ld=yes
15215 ;;
15216 *)
15217 lt_cv_prog_gnu_ld=no
15218 ;;
15219 esac
15220 fi
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15222 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15223 with_gnu_ld=$lt_cv_prog_gnu_ld
15224
15225
15226
15227
15228
15229
15230
15231 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15232 # archiving commands below assume that GNU ld is being used.
15233 if test yes = "$with_gnu_ld"; then
15234 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15235 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15236
15237 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15238 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15239
15240 # If archive_cmds runs LD, not CC, wlarc should be empty
15241 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15242 # investigate it a little bit more. (MM)
15243 wlarc='$wl'
15244
15245 # ancient GNU ld didn't support --whole-archive et. al.
15246 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15247 $GREP 'no-whole-archive' > /dev/null; then
15248 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15249 else
15250 whole_archive_flag_spec_CXX=
15251 fi
15252 else
15253 with_gnu_ld=no
15254 wlarc=
15255
15256 # A generic and very simple default shared library creation
15257 # command for GNU C++ for the case where it uses the native
15258 # linker, instead of GNU ld. If possible, this setting should
15259 # overridden to take advantage of the native linker features on
15260 # the platform it is being used on.
15261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15262 fi
15263
15264 # Commands to make compiler produce verbose output that lists
15265 # what "hidden" libraries, object files and flags are used when
15266 # linking a shared library.
15267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15268
15269 else
15270 GXX=no
15271 with_gnu_ld=no
15272 wlarc=
15273 fi
15274
15275 # PORTME: fill in a description of your system's C++ link characteristics
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15277 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15278 ld_shlibs_CXX=yes
15279 case $host_os in
15280 aix3*)
15281 # FIXME: insert proper C++ library support
15282 ld_shlibs_CXX=no
15283 ;;
15284 aix[4-9]*)
15285 if test ia64 = "$host_cpu"; then
15286 # On IA64, the linker does run time linking by default, so we don't
15287 # have to do anything special.
15288 aix_use_runtimelinking=no
15289 exp_sym_flag='-Bexport'
15290 no_entry_flag=
15291 else
15292 aix_use_runtimelinking=no
15293
15294 # Test if we are trying to use run time linking or normal
15295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15296 # have runtime linking enabled, and use it for executables.
15297 # For shared libraries, we enable/disable runtime linking
15298 # depending on the kind of the shared library created -
15299 # when "with_aix_soname,aix_use_runtimelinking" is:
15300 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15301 # "aix,yes" lib.so shared, rtl:yes, for executables
15302 # lib.a static archive
15303 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15304 # lib.a(lib.so.V) shared, rtl:no, for executables
15305 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15306 # lib.a(lib.so.V) shared, rtl:no
15307 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15308 # lib.a static archive
15309 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15310 for ld_flag in $LDFLAGS; do
15311 case $ld_flag in
15312 *-brtl*)
15313 aix_use_runtimelinking=yes
15314 break
15315 ;;
15316 esac
15317 done
15318 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15319 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15320 # so we don't have lib.a shared libs to link our executables.
15321 # We have to force runtime linking in this case.
15322 aix_use_runtimelinking=yes
15323 LDFLAGS="$LDFLAGS -Wl,-brtl"
15324 fi
15325 ;;
15326 esac
15327
15328 exp_sym_flag='-bexport'
15329 no_entry_flag='-bnoentry'
15330 fi
15331
15332 # When large executables or shared objects are built, AIX ld can
15333 # have problems creating the table of contents. If linking a library
15334 # or program results in "error TOC overflow" add -mminimal-toc to
15335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15337
15338 archive_cmds_CXX=''
15339 hardcode_direct_CXX=yes
15340 hardcode_direct_absolute_CXX=yes
15341 hardcode_libdir_separator_CXX=':'
15342 link_all_deplibs_CXX=yes
15343 file_list_spec_CXX='$wl-f,'
15344 case $with_aix_soname,$aix_use_runtimelinking in
15345 aix,*) ;; # no import file
15346 svr4,* | *,yes) # use import file
15347 # The Import File defines what to hardcode.
15348 hardcode_direct_CXX=no
15349 hardcode_direct_absolute_CXX=no
15350 ;;
15351 esac
15352
15353 if test yes = "$GXX"; then
15354 case $host_os in aix4.[012]|aix4.[012].*)
15355 # We only want to do this on AIX 4.2 and lower, the check
15356 # below for broken collect2 doesn't work under 4.3+
15357 collect2name=`$CC -print-prog-name=collect2`
15358 if test -f "$collect2name" &&
15359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15360 then
15361 # We have reworked collect2
15362 :
15363 else
15364 # We have old collect2
15365 hardcode_direct_CXX=unsupported
15366 # It fails to find uninstalled libraries when the uninstalled
15367 # path is not listed in the libpath. Setting hardcode_minus_L
15368 # to unsupported forces relinking
15369 hardcode_minus_L_CXX=yes
15370 hardcode_libdir_flag_spec_CXX='-L$libdir'
15371 hardcode_libdir_separator_CXX=
15372 fi
15373 esac
15374 shared_flag='-shared'
15375 if test yes = "$aix_use_runtimelinking"; then
15376 shared_flag=$shared_flag' $wl-G'
15377 fi
15378 # Need to ensure runtime linking is disabled for the traditional
15379 # shared library, or the linker may eventually find shared libraries
15380 # /with/ Import File - we do not want to mix them.
15381 shared_flag_aix='-shared'
15382 shared_flag_svr4='-shared $wl-G'
15383 else
15384 # not using gcc
15385 if test ia64 = "$host_cpu"; then
15386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15387 # chokes on -Wl,-G. The following line is correct:
15388 shared_flag='-G'
15389 else
15390 if test yes = "$aix_use_runtimelinking"; then
15391 shared_flag='$wl-G'
15392 else
15393 shared_flag='$wl-bM:SRE'
15394 fi
15395 shared_flag_aix='$wl-bM:SRE'
15396 shared_flag_svr4='$wl-G'
15397 fi
15398 fi
15399
15400 export_dynamic_flag_spec_CXX='$wl-bexpall'
15401 # It seems that -bexpall does not export symbols beginning with
15402 # underscore (_), so it is better to generate a list of symbols to
15403 # export.
15404 always_export_symbols_CXX=yes
15405 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15406 # Warning - without using the other runtime loading flags (-brtl),
15407 # -berok will link without error, but may produce a broken library.
15408 # The "-G" linker flag allows undefined symbols.
15409 no_undefined_flag_CXX='-bernotok'
15410 # Determine the default libpath from the value encoded in an empty
15411 # executable.
15412 if test set = "${lt_cv_aix_libpath+set}"; then
15413 aix_libpath=$lt_cv_aix_libpath
15414 else
15415 if test ${lt_cv_aix_libpath__CXX+y}
15416 then :
15417 printf %s "(cached) " >&6
15418 else $as_nop
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421
15422 int
15423 main (void)
15424 {
15425
15426 ;
15427 return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_cxx_try_link "$LINENO"
15431 then :
15432
15433 lt_aix_libpath_sed='
15434 /Import File Strings/,/^$/ {
15435 /^0/ {
15436 s/^0 *\([^ ]*\) *$/\1/
15437 p
15438 }
15439 }'
15440 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15441 # Check for a 64-bit object if we didn't find anything.
15442 if test -z "$lt_cv_aix_libpath__CXX"; then
15443 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15444 fi
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15447 conftest$ac_exeext conftest.$ac_ext
15448 if test -z "$lt_cv_aix_libpath__CXX"; then
15449 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15450 fi
15451
15452 fi
15453
15454 aix_libpath=$lt_cv_aix_libpath__CXX
15455 fi
15456
15457 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15458
15459 archive_expsym_cmds_CXX='$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
15460 else
15461 if test ia64 = "$host_cpu"; then
15462 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15463 allow_undefined_flag_CXX="-z nodefs"
15464 archive_expsym_cmds_CXX="\$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"
15465 else
15466 # Determine the default libpath from the value encoded in an
15467 # empty executable.
15468 if test set = "${lt_cv_aix_libpath+set}"; then
15469 aix_libpath=$lt_cv_aix_libpath
15470 else
15471 if test ${lt_cv_aix_libpath__CXX+y}
15472 then :
15473 printf %s "(cached) " >&6
15474 else $as_nop
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477
15478 int
15479 main (void)
15480 {
15481
15482 ;
15483 return 0;
15484 }
15485 _ACEOF
15486 if ac_fn_cxx_try_link "$LINENO"
15487 then :
15488
15489 lt_aix_libpath_sed='
15490 /Import File Strings/,/^$/ {
15491 /^0/ {
15492 s/^0 *\([^ ]*\) *$/\1/
15493 p
15494 }
15495 }'
15496 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15497 # Check for a 64-bit object if we didn't find anything.
15498 if test -z "$lt_cv_aix_libpath__CXX"; then
15499 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15500 fi
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15503 conftest$ac_exeext conftest.$ac_ext
15504 if test -z "$lt_cv_aix_libpath__CXX"; then
15505 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15506 fi
15507
15508 fi
15509
15510 aix_libpath=$lt_cv_aix_libpath__CXX
15511 fi
15512
15513 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15514 # Warning - without using the other run time loading flags,
15515 # -berok will link without error, but may produce a broken library.
15516 no_undefined_flag_CXX=' $wl-bernotok'
15517 allow_undefined_flag_CXX=' $wl-berok'
15518 if test yes = "$with_gnu_ld"; then
15519 # We only use this code for GNU lds that support --whole-archive.
15520 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15521 else
15522 # Exported symbols can be pulled into shared objects from archives
15523 whole_archive_flag_spec_CXX='$convenience'
15524 fi
15525 archive_cmds_need_lc_CXX=yes
15526 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15527 # -brtl affects multiple linker settings, -berok does not and is overridden later
15528 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15529 if test svr4 != "$with_aix_soname"; then
15530 # This is similar to how AIX traditionally builds its shared
15531 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15532 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15533 fi
15534 if test aix != "$with_aix_soname"; then
15535 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
15536 else
15537 # used by -dlpreopen to get the symbols
15538 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15539 fi
15540 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15541 fi
15542 fi
15543 ;;
15544
15545 beos*)
15546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15547 allow_undefined_flag_CXX=unsupported
15548 # Joseph Beckenbach <[email protected]> says some releases of gcc
15549 # support --undefined. This deserves some investigation. FIXME
15550 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15551 else
15552 ld_shlibs_CXX=no
15553 fi
15554 ;;
15555
15556 chorus*)
15557 case $cc_basename in
15558 *)
15559 # FIXME: insert proper C++ library support
15560 ld_shlibs_CXX=no
15561 ;;
15562 esac
15563 ;;
15564
15565 cygwin* | mingw* | pw32* | cegcc*)
15566 case $GXX,$cc_basename in
15567 ,cl* | no,cl* | ,icl* | no,icl*)
15568 # Native MSVC or ICC
15569 # hardcode_libdir_flag_spec is actually meaningless, as there is
15570 # no search path for DLLs.
15571 hardcode_libdir_flag_spec_CXX=' '
15572 allow_undefined_flag_CXX=unsupported
15573 always_export_symbols_CXX=yes
15574 file_list_spec_CXX='@'
15575 # Tell ltmain to make .lib files, not .a files.
15576 libext=lib
15577 # Tell ltmain to make .dll files, not .so files.
15578 shrext_cmds=.dll
15579 # FIXME: Setting linknames here is a bad hack.
15580 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15581 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15582 cp "$export_symbols" "$output_objdir/$soname.def";
15583 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15584 else
15585 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15586 fi~
15587 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15588 linknames='
15589 # The linker will not automatically build a static lib if we build a DLL.
15590 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15591 enable_shared_with_static_runtimes_CXX=yes
15592 # Don't use ranlib
15593 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15594 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15595 lt_tool_outputfile="@TOOL_OUTPUT@"~
15596 case $lt_outputfile in
15597 *.exe|*.EXE) ;;
15598 *)
15599 lt_outputfile=$lt_outputfile.exe
15600 lt_tool_outputfile=$lt_tool_outputfile.exe
15601 ;;
15602 esac~
15603 func_to_tool_file "$lt_outputfile"~
15604 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15605 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15606 $RM "$lt_outputfile.manifest";
15607 fi'
15608 ;;
15609 *)
15610 # g++
15611 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15612 # as there is no search path for DLLs.
15613 hardcode_libdir_flag_spec_CXX='-L$libdir'
15614 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15615 allow_undefined_flag_CXX=unsupported
15616 always_export_symbols_CXX=no
15617 enable_shared_with_static_runtimes_CXX=yes
15618
15619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15621 # If the export-symbols file already is a .def file, use it as
15622 # is; otherwise, prepend EXPORTS...
15623 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15624 cp $export_symbols $output_objdir/$soname.def;
15625 else
15626 echo EXPORTS > $output_objdir/$soname.def;
15627 cat $export_symbols >> $output_objdir/$soname.def;
15628 fi~
15629 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15630 else
15631 ld_shlibs_CXX=no
15632 fi
15633 ;;
15634 esac
15635 ;;
15636 darwin* | rhapsody*)
15637
15638
15639 archive_cmds_need_lc_CXX=no
15640 hardcode_direct_CXX=no
15641 hardcode_automatic_CXX=yes
15642 hardcode_shlibpath_var_CXX=unsupported
15643 if test yes = "$lt_cv_ld_force_load"; then
15644 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15645
15646 else
15647 whole_archive_flag_spec_CXX=''
15648 fi
15649 link_all_deplibs_CXX=yes
15650 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15651 case $cc_basename in
15652 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15653 *) _lt_dar_can_shared=$GCC ;;
15654 esac
15655 if test yes = "$_lt_dar_can_shared"; then
15656 output_verbose_link_cmd=func_echo_all
15657 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15658 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15659 archive_expsym_cmds_CXX="$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"
15660 module_expsym_cmds_CXX="$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"
15661 if test yes != "$lt_cv_apple_cc_single_mod"; then
15662 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15663 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15664 fi
15665
15666 else
15667 ld_shlibs_CXX=no
15668 fi
15669
15670 ;;
15671
15672 os2*)
15673 hardcode_libdir_flag_spec_CXX='-L$libdir'
15674 hardcode_minus_L_CXX=yes
15675 allow_undefined_flag_CXX=unsupported
15676 shrext_cmds=.dll
15677 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15678 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15679 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15680 $ECHO EXPORTS >> $output_objdir/$libname.def~
15681 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15682 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15683 emximp -o $lib $output_objdir/$libname.def'
15684 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15687 $ECHO EXPORTS >> $output_objdir/$libname.def~
15688 prefix_cmds="$SED"~
15689 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15690 prefix_cmds="$prefix_cmds -e 1d";
15691 fi~
15692 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15693 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15694 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15695 emximp -o $lib $output_objdir/$libname.def'
15696 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15697 enable_shared_with_static_runtimes_CXX=yes
15698 file_list_spec_CXX='@'
15699 ;;
15700
15701 dgux*)
15702 case $cc_basename in
15703 ec++*)
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 ;;
15707 ghcx*)
15708 # Green Hills C++ Compiler
15709 # FIXME: insert proper C++ library support
15710 ld_shlibs_CXX=no
15711 ;;
15712 *)
15713 # FIXME: insert proper C++ library support
15714 ld_shlibs_CXX=no
15715 ;;
15716 esac
15717 ;;
15718
15719 freebsd2.*)
15720 # C++ shared libraries reported to be fairly broken before
15721 # switch to ELF
15722 ld_shlibs_CXX=no
15723 ;;
15724
15725 freebsd-elf*)
15726 archive_cmds_need_lc_CXX=no
15727 ;;
15728
15729 freebsd* | dragonfly* | midnightbsd*)
15730 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15731 # conventions
15732 ld_shlibs_CXX=yes
15733 ;;
15734
15735 haiku*)
15736 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15737 link_all_deplibs_CXX=yes
15738 ;;
15739
15740 hpux9*)
15741 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15742 hardcode_libdir_separator_CXX=:
15743 export_dynamic_flag_spec_CXX='$wl-E'
15744 hardcode_direct_CXX=yes
15745 hardcode_minus_L_CXX=yes # Not in the search PATH,
15746 # but as the default
15747 # location of the library.
15748
15749 case $cc_basename in
15750 CC*)
15751 # FIXME: insert proper C++ library support
15752 ld_shlibs_CXX=no
15753 ;;
15754 aCC*)
15755 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15756 # Commands to make compiler produce verbose output that lists
15757 # what "hidden" libraries, object files and flags are used when
15758 # linking a shared library.
15759 #
15760 # There doesn't appear to be a way to prevent this compiler from
15761 # explicitly linking system object files so we need to strip them
15762 # from the output so that they don't get included in the library
15763 # dependencies.
15764 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15765 ;;
15766 *)
15767 if test yes = "$GXX"; then
15768 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15769 else
15770 # FIXME: insert proper C++ library support
15771 ld_shlibs_CXX=no
15772 fi
15773 ;;
15774 esac
15775 ;;
15776
15777 hpux10*|hpux11*)
15778 if test no = "$with_gnu_ld"; then
15779 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15780 hardcode_libdir_separator_CXX=:
15781
15782 case $host_cpu in
15783 hppa*64*|ia64*)
15784 ;;
15785 *)
15786 export_dynamic_flag_spec_CXX='$wl-E'
15787 ;;
15788 esac
15789 fi
15790 case $host_cpu in
15791 hppa*64*|ia64*)
15792 hardcode_direct_CXX=no
15793 hardcode_shlibpath_var_CXX=no
15794 ;;
15795 *)
15796 hardcode_direct_CXX=yes
15797 hardcode_direct_absolute_CXX=yes
15798 hardcode_minus_L_CXX=yes # Not in the search PATH,
15799 # but as the default
15800 # location of the library.
15801 ;;
15802 esac
15803
15804 case $cc_basename in
15805 CC*)
15806 # FIXME: insert proper C++ library support
15807 ld_shlibs_CXX=no
15808 ;;
15809 aCC*)
15810 case $host_cpu in
15811 hppa*64*)
15812 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15813 ;;
15814 ia64*)
15815 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15816 ;;
15817 *)
15818 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15819 ;;
15820 esac
15821 # Commands to make compiler produce verbose output that lists
15822 # what "hidden" libraries, object files and flags are used when
15823 # linking a shared library.
15824 #
15825 # There doesn't appear to be a way to prevent this compiler from
15826 # explicitly linking system object files so we need to strip them
15827 # from the output so that they don't get included in the library
15828 # dependencies.
15829 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15830 ;;
15831 *)
15832 if test yes = "$GXX"; then
15833 if test no = "$with_gnu_ld"; then
15834 case $host_cpu in
15835 hppa*64*)
15836 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15837 ;;
15838 ia64*)
15839 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15840 ;;
15841 *)
15842 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15843 ;;
15844 esac
15845 fi
15846 else
15847 # FIXME: insert proper C++ library support
15848 ld_shlibs_CXX=no
15849 fi
15850 ;;
15851 esac
15852 ;;
15853
15854 interix[3-9]*)
15855 hardcode_direct_CXX=no
15856 hardcode_shlibpath_var_CXX=no
15857 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15858 export_dynamic_flag_spec_CXX='$wl-E'
15859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15860 # Instead, shared libraries are loaded at an image base (0x10000000 by
15861 # default) and relocated if they conflict, which is a slow very memory
15862 # consuming and fragmenting process. To avoid this, we pick a random,
15863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15865 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15866 archive_expsym_cmds_CXX='$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'
15867 ;;
15868 irix5* | irix6*)
15869 case $cc_basename in
15870 CC*)
15871 # SGI C++
15872 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15873
15874 # Archives containing C++ object files must be created using
15875 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15876 # necessary to make sure instantiated templates are included
15877 # in the archive.
15878 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15879 ;;
15880 *)
15881 if test yes = "$GXX"; then
15882 if test no = "$with_gnu_ld"; then
15883 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15884 else
15885 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15886 fi
15887 fi
15888 link_all_deplibs_CXX=yes
15889 ;;
15890 esac
15891 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15892 hardcode_libdir_separator_CXX=:
15893 inherit_rpath_CXX=yes
15894 ;;
15895
15896 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15897 case $cc_basename in
15898 KCC*)
15899 # Kuck and Associates, Inc. (KAI) C++ Compiler
15900
15901 # KCC will only create a shared library if the output file
15902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15903 # to its proper name (with version) after linking.
15904 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15905 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15906 # Commands to make compiler produce verbose output that lists
15907 # what "hidden" libraries, object files and flags are used when
15908 # linking a shared library.
15909 #
15910 # There doesn't appear to be a way to prevent this compiler from
15911 # explicitly linking system object files so we need to strip them
15912 # from the output so that they don't get included in the library
15913 # dependencies.
15914 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15915
15916 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15917 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15918
15919 # Archives containing C++ object files must be created using
15920 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15921 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15922 ;;
15923 icpc* | ecpc* )
15924 # Intel C++
15925 with_gnu_ld=yes
15926 # version 8.0 and above of icpc choke on multiply defined symbols
15927 # if we add $predep_objects and $postdep_objects, however 7.1 and
15928 # earlier do not add the objects themselves.
15929 case `$CC -V 2>&1` in
15930 *"Version 7."*)
15931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15932 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15933 ;;
15934 *) # Version 8.0 or newer
15935 tmp_idyn=
15936 case $host_cpu in
15937 ia64*) tmp_idyn=' -i_dynamic';;
15938 esac
15939 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15940 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15941 ;;
15942 esac
15943 archive_cmds_need_lc_CXX=no
15944 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15945 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15946 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15947 ;;
15948 pgCC* | pgcpp*)
15949 # Portland Group C++ compiler
15950 case `$CC -V` in
15951 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15952 prelink_cmds_CXX='tpldir=Template.dir~
15953 rm -rf $tpldir~
15954 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15955 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15956 old_archive_cmds_CXX='tpldir=Template.dir~
15957 rm -rf $tpldir~
15958 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15959 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15960 $RANLIB $oldlib'
15961 archive_cmds_CXX='tpldir=Template.dir~
15962 rm -rf $tpldir~
15963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15964 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15965 archive_expsym_cmds_CXX='tpldir=Template.dir~
15966 rm -rf $tpldir~
15967 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15968 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15969 ;;
15970 *) # Version 6 and above use weak symbols
15971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15972 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15973 ;;
15974 esac
15975
15976 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15977 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15978 whole_archive_flag_spec_CXX='$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'
15979 ;;
15980 cxx*)
15981 # Compaq C++
15982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15983 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15984
15985 runpath_var=LD_RUN_PATH
15986 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15987 hardcode_libdir_separator_CXX=:
15988
15989 # Commands to make compiler produce verbose output that lists
15990 # what "hidden" libraries, object files and flags are used when
15991 # linking a shared library.
15992 #
15993 # There doesn't appear to be a way to prevent this compiler from
15994 # explicitly linking system object files so we need to strip them
15995 # from the output so that they don't get included in the library
15996 # dependencies.
15997 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15998 ;;
15999 xl* | mpixl* | bgxl*)
16000 # IBM XL 8.0 on PPC, with GNU ld
16001 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16002 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16003 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16004 if test yes = "$supports_anon_versioning"; then
16005 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16006 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16007 echo "local: *; };" >> $output_objdir/$libname.ver~
16008 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16009 fi
16010 ;;
16011 *)
16012 case `$CC -V 2>&1 | $SED 5q` in
16013 *Sun\ C*)
16014 # Sun C++ 5.9
16015 no_undefined_flag_CXX=' -zdefs'
16016 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16017 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16018 hardcode_libdir_flag_spec_CXX='-R$libdir'
16019 whole_archive_flag_spec_CXX='$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'
16020 compiler_needs_object_CXX=yes
16021
16022 # Not sure whether something based on
16023 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16024 # would be better.
16025 output_verbose_link_cmd='func_echo_all'
16026
16027 # Archives containing C++ object files must be created using
16028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16029 # necessary to make sure instantiated templates are included
16030 # in the archive.
16031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16032 ;;
16033 esac
16034 ;;
16035 esac
16036 ;;
16037
16038 lynxos*)
16039 # FIXME: insert proper C++ library support
16040 ld_shlibs_CXX=no
16041 ;;
16042
16043 m88k*)
16044 # FIXME: insert proper C++ library support
16045 ld_shlibs_CXX=no
16046 ;;
16047
16048 mvs*)
16049 case $cc_basename in
16050 cxx*)
16051 # FIXME: insert proper C++ library support
16052 ld_shlibs_CXX=no
16053 ;;
16054 *)
16055 # FIXME: insert proper C++ library support
16056 ld_shlibs_CXX=no
16057 ;;
16058 esac
16059 ;;
16060
16061 netbsd*)
16062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16063 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16064 wlarc=
16065 hardcode_libdir_flag_spec_CXX='-R$libdir'
16066 hardcode_direct_CXX=yes
16067 hardcode_shlibpath_var_CXX=no
16068 fi
16069 # Workaround some broken pre-1.5 toolchains
16070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16071 ;;
16072
16073 *nto* | *qnx*)
16074 ld_shlibs_CXX=yes
16075 ;;
16076
16077 openbsd* | bitrig*)
16078 if test -f /usr/libexec/ld.so; then
16079 hardcode_direct_CXX=yes
16080 hardcode_shlibpath_var_CXX=no
16081 hardcode_direct_absolute_CXX=yes
16082 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16083 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16085 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16086 export_dynamic_flag_spec_CXX='$wl-E'
16087 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16088 fi
16089 output_verbose_link_cmd=func_echo_all
16090 else
16091 ld_shlibs_CXX=no
16092 fi
16093 ;;
16094
16095 osf3* | osf4* | osf5*)
16096 case $cc_basename in
16097 KCC*)
16098 # Kuck and Associates, Inc. (KAI) C++ Compiler
16099
16100 # KCC will only create a shared library if the output file
16101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16102 # to its proper name (with version) after linking.
16103 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16104
16105 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16106 hardcode_libdir_separator_CXX=:
16107
16108 # Archives containing C++ object files must be created using
16109 # the KAI C++ compiler.
16110 case $host in
16111 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16112 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16113 esac
16114 ;;
16115 RCC*)
16116 # Rational C++ 2.4.1
16117 # FIXME: insert proper C++ library support
16118 ld_shlibs_CXX=no
16119 ;;
16120 cxx*)
16121 case $host in
16122 osf3*)
16123 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16124 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16125 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16126 ;;
16127 *)
16128 allow_undefined_flag_CXX=' -expect_unresolved \*'
16129 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16130 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16131 echo "-hidden">> $lib.exp~
16132 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16133 $RM $lib.exp'
16134 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16135 ;;
16136 esac
16137
16138 hardcode_libdir_separator_CXX=:
16139
16140 # Commands to make compiler produce verbose output that lists
16141 # what "hidden" libraries, object files and flags are used when
16142 # linking a shared library.
16143 #
16144 # There doesn't appear to be a way to prevent this compiler from
16145 # explicitly linking system object files so we need to strip them
16146 # from the output so that they don't get included in the library
16147 # dependencies.
16148 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16149 ;;
16150 *)
16151 if test yes,no = "$GXX,$with_gnu_ld"; then
16152 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16153 case $host in
16154 osf3*)
16155 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16156 ;;
16157 *)
16158 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16159 ;;
16160 esac
16161
16162 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16163 hardcode_libdir_separator_CXX=:
16164
16165 # Commands to make compiler produce verbose output that lists
16166 # what "hidden" libraries, object files and flags are used when
16167 # linking a shared library.
16168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16169
16170 else
16171 # FIXME: insert proper C++ library support
16172 ld_shlibs_CXX=no
16173 fi
16174 ;;
16175 esac
16176 ;;
16177
16178 psos*)
16179 # FIXME: insert proper C++ library support
16180 ld_shlibs_CXX=no
16181 ;;
16182
16183 sunos4*)
16184 case $cc_basename in
16185 CC*)
16186 # Sun C++ 4.x
16187 # FIXME: insert proper C++ library support
16188 ld_shlibs_CXX=no
16189 ;;
16190 lcc*)
16191 # Lucid
16192 # FIXME: insert proper C++ library support
16193 ld_shlibs_CXX=no
16194 ;;
16195 *)
16196 # FIXME: insert proper C++ library support
16197 ld_shlibs_CXX=no
16198 ;;
16199 esac
16200 ;;
16201
16202 solaris*)
16203 case $cc_basename in
16204 CC* | sunCC*)
16205 # Sun C++ 4.2, 5.x and Centerline C++
16206 archive_cmds_need_lc_CXX=yes
16207 no_undefined_flag_CXX=' -zdefs'
16208 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16209 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16210 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16211
16212 hardcode_libdir_flag_spec_CXX='-R$libdir'
16213 hardcode_shlibpath_var_CXX=no
16214 case $host_os in
16215 solaris2.[0-5] | solaris2.[0-5].*) ;;
16216 *)
16217 # The compiler driver will combine and reorder linker options,
16218 # but understands '-z linker_flag'.
16219 # Supported since Solaris 2.6 (maybe 2.5.1?)
16220 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16221 ;;
16222 esac
16223 link_all_deplibs_CXX=yes
16224
16225 output_verbose_link_cmd='func_echo_all'
16226
16227 # Archives containing C++ object files must be created using
16228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16229 # necessary to make sure instantiated templates are included
16230 # in the archive.
16231 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16232 ;;
16233 gcx*)
16234 # Green Hills C++ Compiler
16235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16236
16237 # The C++ compiler must be used to create the archive.
16238 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16239 ;;
16240 *)
16241 # GNU C++ compiler with Solaris linker
16242 if test yes,no = "$GXX,$with_gnu_ld"; then
16243 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16244 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16245 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16247 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16248
16249 # Commands to make compiler produce verbose output that lists
16250 # what "hidden" libraries, object files and flags are used when
16251 # linking a shared library.
16252 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16253 else
16254 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16255 # platform.
16256 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16257 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16258 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16259
16260 # Commands to make compiler produce verbose output that lists
16261 # what "hidden" libraries, object files and flags are used when
16262 # linking a shared library.
16263 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16264 fi
16265
16266 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16267 case $host_os in
16268 solaris2.[0-5] | solaris2.[0-5].*) ;;
16269 *)
16270 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16271 ;;
16272 esac
16273 fi
16274 ;;
16275 esac
16276 ;;
16277
16278 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16279 no_undefined_flag_CXX='$wl-z,text'
16280 archive_cmds_need_lc_CXX=no
16281 hardcode_shlibpath_var_CXX=no
16282 runpath_var='LD_RUN_PATH'
16283
16284 case $cc_basename in
16285 CC*)
16286 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 ;;
16289 *)
16290 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16292 ;;
16293 esac
16294 ;;
16295
16296 sysv5* | sco3.2v5* | sco5v6*)
16297 # Note: We CANNOT use -z defs as we might desire, because we do not
16298 # link with -lc, and that would cause any symbols used from libc to
16299 # always be unresolved, which means just about no library would
16300 # ever link correctly. If we're not using GNU ld we use -z text
16301 # though, which does catch some bad symbols but isn't as heavy-handed
16302 # as -z defs.
16303 no_undefined_flag_CXX='$wl-z,text'
16304 allow_undefined_flag_CXX='$wl-z,nodefs'
16305 archive_cmds_need_lc_CXX=no
16306 hardcode_shlibpath_var_CXX=no
16307 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16308 hardcode_libdir_separator_CXX=':'
16309 link_all_deplibs_CXX=yes
16310 export_dynamic_flag_spec_CXX='$wl-Bexport'
16311 runpath_var='LD_RUN_PATH'
16312
16313 case $cc_basename in
16314 CC*)
16315 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16318 '"$old_archive_cmds_CXX"
16319 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16320 '"$reload_cmds_CXX"
16321 ;;
16322 *)
16323 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16325 ;;
16326 esac
16327 ;;
16328
16329 tandem*)
16330 case $cc_basename in
16331 NCC*)
16332 # NonStop-UX NCC 3.20
16333 # FIXME: insert proper C++ library support
16334 ld_shlibs_CXX=no
16335 ;;
16336 *)
16337 # FIXME: insert proper C++ library support
16338 ld_shlibs_CXX=no
16339 ;;
16340 esac
16341 ;;
16342
16343 vxworks*)
16344 # FIXME: insert proper C++ library support
16345 ld_shlibs_CXX=no
16346 ;;
16347
16348 *)
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352 esac
16353
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16355 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16356 test no = "$ld_shlibs_CXX" && can_build_shared=no
16357
16358 GCC_CXX=$GXX
16359 LD_CXX=$LD
16360
16361 ## CAVEAT EMPTOR:
16362 ## There is no encapsulation within the following macros, do not change
16363 ## the running order or otherwise move them around unless you know exactly
16364 ## what you are doing...
16365 # Dependencies to place before and after the object being linked:
16366 predep_objects_CXX=
16367 postdep_objects_CXX=
16368 predeps_CXX=
16369 postdeps_CXX=
16370 compiler_lib_search_path_CXX=
16371
16372 cat > conftest.$ac_ext <<_LT_EOF
16373 class Foo
16374 {
16375 public:
16376 Foo (void) { a = 0; }
16377 private:
16378 int a;
16379 };
16380 _LT_EOF
16381
16382
16383 _lt_libdeps_save_CFLAGS=$CFLAGS
16384 case "$CC $CFLAGS " in #(
16385 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16386 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16387 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16388 esac
16389
16390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16391 (eval $ac_compile) 2>&5
16392 ac_status=$?
16393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16394 test $ac_status = 0; }; then
16395 # Parse the compiler output and extract the necessary
16396 # objects, libraries and library flags.
16397
16398 # Sentinel used to keep track of whether or not we are before
16399 # the conftest object file.
16400 pre_test_object_deps_done=no
16401
16402 for p in `eval "$output_verbose_link_cmd"`; do
16403 case $prev$p in
16404
16405 -L* | -R* | -l*)
16406 # Some compilers place space between "-{L,R}" and the path.
16407 # Remove the space.
16408 if test x-L = "$p" ||
16409 test x-R = "$p"; then
16410 prev=$p
16411 continue
16412 fi
16413
16414 # Expand the sysroot to ease extracting the directories later.
16415 if test -z "$prev"; then
16416 case $p in
16417 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16418 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16419 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16420 esac
16421 fi
16422 case $p in
16423 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16424 esac
16425 if test no = "$pre_test_object_deps_done"; then
16426 case $prev in
16427 -L | -R)
16428 # Internal compiler library paths should come after those
16429 # provided the user. The postdeps already come after the
16430 # user supplied libs so there is no need to process them.
16431 if test -z "$compiler_lib_search_path_CXX"; then
16432 compiler_lib_search_path_CXX=$prev$p
16433 else
16434 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16435 fi
16436 ;;
16437 # The "-l" case would never come before the object being
16438 # linked, so don't bother handling this case.
16439 esac
16440 else
16441 if test -z "$postdeps_CXX"; then
16442 postdeps_CXX=$prev$p
16443 else
16444 postdeps_CXX="${postdeps_CXX} $prev$p"
16445 fi
16446 fi
16447 prev=
16448 ;;
16449
16450 *.lto.$objext) ;; # Ignore GCC LTO objects
16451 *.$objext)
16452 # This assumes that the test object file only shows up
16453 # once in the compiler output.
16454 if test "$p" = "conftest.$objext"; then
16455 pre_test_object_deps_done=yes
16456 continue
16457 fi
16458
16459 if test no = "$pre_test_object_deps_done"; then
16460 if test -z "$predep_objects_CXX"; then
16461 predep_objects_CXX=$p
16462 else
16463 predep_objects_CXX="$predep_objects_CXX $p"
16464 fi
16465 else
16466 if test -z "$postdep_objects_CXX"; then
16467 postdep_objects_CXX=$p
16468 else
16469 postdep_objects_CXX="$postdep_objects_CXX $p"
16470 fi
16471 fi
16472 ;;
16473
16474 *) ;; # Ignore the rest.
16475
16476 esac
16477 done
16478
16479 # Clean up.
16480 rm -f a.out a.exe
16481 else
16482 echo "libtool.m4: error: problem compiling CXX test program"
16483 fi
16484
16485 $RM -f confest.$objext
16486 CFLAGS=$_lt_libdeps_save_CFLAGS
16487
16488 # PORTME: override above test on systems where it is broken
16489 case $host_os in
16490 interix[3-9]*)
16491 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16492 # hack all around it, let's just trust "g++" to DTRT.
16493 predep_objects_CXX=
16494 postdep_objects_CXX=
16495 postdeps_CXX=
16496 ;;
16497 esac
16498
16499
16500 case " $postdeps_CXX " in
16501 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16502 esac
16503 compiler_lib_search_dirs_CXX=
16504 if test -n "${compiler_lib_search_path_CXX}"; then
16505 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16506 fi
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538 lt_prog_compiler_wl_CXX=
16539 lt_prog_compiler_pic_CXX=
16540 lt_prog_compiler_static_CXX=
16541
16542
16543 # C++ specific cases for pic, static, wl, etc.
16544 if test yes = "$GXX"; then
16545 lt_prog_compiler_wl_CXX='-Wl,'
16546 lt_prog_compiler_static_CXX='-static'
16547
16548 case $host_os in
16549 aix*)
16550 # All AIX code is PIC.
16551 if test ia64 = "$host_cpu"; then
16552 # AIX 5 now supports IA64 processor
16553 lt_prog_compiler_static_CXX='-Bstatic'
16554 fi
16555 lt_prog_compiler_pic_CXX='-fPIC'
16556 ;;
16557
16558 amigaos*)
16559 case $host_cpu in
16560 powerpc)
16561 # see comment about AmigaOS4 .so support
16562 lt_prog_compiler_pic_CXX='-fPIC'
16563 ;;
16564 m68k)
16565 # FIXME: we need at least 68020 code to build shared libraries, but
16566 # adding the '-m68020' flag to GCC prevents building anything better,
16567 # like '-m68040'.
16568 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16569 ;;
16570 esac
16571 ;;
16572
16573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16574 # PIC is the default for these OSes.
16575 ;;
16576 mingw* | cygwin* | os2* | pw32* | cegcc*)
16577 # This hack is so that the source file can tell whether it is being
16578 # built for inclusion in a dll (and should export symbols for example).
16579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16580 # (--disable-auto-import) libraries
16581 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16582 case $host_os in
16583 os2*)
16584 lt_prog_compiler_static_CXX='$wl-static'
16585 ;;
16586 esac
16587 ;;
16588 darwin* | rhapsody*)
16589 # PIC is the default on this platform
16590 # Common symbols not allowed in MH_DYLIB files
16591 lt_prog_compiler_pic_CXX='-fno-common'
16592 ;;
16593 *djgpp*)
16594 # DJGPP does not support shared libraries at all
16595 lt_prog_compiler_pic_CXX=
16596 ;;
16597 haiku*)
16598 # PIC is the default for Haiku.
16599 # The "-static" flag exists, but is broken.
16600 lt_prog_compiler_static_CXX=
16601 ;;
16602 interix[3-9]*)
16603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16604 # Instead, we relocate shared libraries at runtime.
16605 ;;
16606 sysv4*MP*)
16607 if test -d /usr/nec; then
16608 lt_prog_compiler_pic_CXX=-Kconform_pic
16609 fi
16610 ;;
16611 hpux*)
16612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16614 # sets the default TLS model and affects inlining.
16615 case $host_cpu in
16616 hppa*64*)
16617 ;;
16618 *)
16619 lt_prog_compiler_pic_CXX='-fPIC'
16620 ;;
16621 esac
16622 ;;
16623 *qnx* | *nto*)
16624 # QNX uses GNU C++, but need to define -shared option too, otherwise
16625 # it will coredump.
16626 lt_prog_compiler_pic_CXX='-fPIC -shared'
16627 ;;
16628 *)
16629 lt_prog_compiler_pic_CXX='-fPIC'
16630 ;;
16631 esac
16632 else
16633 case $host_os in
16634 aix[4-9]*)
16635 # All AIX code is PIC.
16636 if test ia64 = "$host_cpu"; then
16637 # AIX 5 now supports IA64 processor
16638 lt_prog_compiler_static_CXX='-Bstatic'
16639 else
16640 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16641 fi
16642 ;;
16643 chorus*)
16644 case $cc_basename in
16645 cxch68*)
16646 # Green Hills C++ Compiler
16647 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16648 ;;
16649 esac
16650 ;;
16651 mingw* | cygwin* | os2* | pw32* | cegcc*)
16652 # This hack is so that the source file can tell whether it is being
16653 # built for inclusion in a dll (and should export symbols for example).
16654 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16655 ;;
16656 dgux*)
16657 case $cc_basename in
16658 ec++*)
16659 lt_prog_compiler_pic_CXX='-KPIC'
16660 ;;
16661 ghcx*)
16662 # Green Hills C++ Compiler
16663 lt_prog_compiler_pic_CXX='-pic'
16664 ;;
16665 *)
16666 ;;
16667 esac
16668 ;;
16669 freebsd* | dragonfly* | midnightbsd*)
16670 # FreeBSD uses GNU C++
16671 ;;
16672 hpux9* | hpux10* | hpux11*)
16673 case $cc_basename in
16674 CC*)
16675 lt_prog_compiler_wl_CXX='-Wl,'
16676 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16677 if test ia64 != "$host_cpu"; then
16678 lt_prog_compiler_pic_CXX='+Z'
16679 fi
16680 ;;
16681 aCC*)
16682 lt_prog_compiler_wl_CXX='-Wl,'
16683 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16684 case $host_cpu in
16685 hppa*64*|ia64*)
16686 # +Z the default
16687 ;;
16688 *)
16689 lt_prog_compiler_pic_CXX='+Z'
16690 ;;
16691 esac
16692 ;;
16693 *)
16694 ;;
16695 esac
16696 ;;
16697 interix*)
16698 # This is c89, which is MS Visual C++ (no shared libs)
16699 # Anyone wants to do a port?
16700 ;;
16701 irix5* | irix6* | nonstopux*)
16702 case $cc_basename in
16703 CC*)
16704 lt_prog_compiler_wl_CXX='-Wl,'
16705 lt_prog_compiler_static_CXX='-non_shared'
16706 # CC pic flag -KPIC is the default.
16707 ;;
16708 *)
16709 ;;
16710 esac
16711 ;;
16712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16713 case $cc_basename in
16714 KCC*)
16715 # KAI C++ Compiler
16716 lt_prog_compiler_wl_CXX='--backend -Wl,'
16717 lt_prog_compiler_pic_CXX='-fPIC'
16718 ;;
16719 ecpc* )
16720 # old Intel C++ for x86_64, which still supported -KPIC.
16721 lt_prog_compiler_wl_CXX='-Wl,'
16722 lt_prog_compiler_pic_CXX='-KPIC'
16723 lt_prog_compiler_static_CXX='-static'
16724 ;;
16725 icpc* )
16726 # Intel C++, used to be incompatible with GCC.
16727 # ICC 10 doesn't accept -KPIC any more.
16728 lt_prog_compiler_wl_CXX='-Wl,'
16729 lt_prog_compiler_pic_CXX='-fPIC'
16730 lt_prog_compiler_static_CXX='-static'
16731 ;;
16732 pgCC* | pgcpp*)
16733 # Portland Group C++ compiler
16734 lt_prog_compiler_wl_CXX='-Wl,'
16735 lt_prog_compiler_pic_CXX='-fpic'
16736 lt_prog_compiler_static_CXX='-Bstatic'
16737 ;;
16738 cxx*)
16739 # Compaq C++
16740 # Make sure the PIC flag is empty. It appears that all Alpha
16741 # Linux and Compaq Tru64 Unix objects are PIC.
16742 lt_prog_compiler_pic_CXX=
16743 lt_prog_compiler_static_CXX='-non_shared'
16744 ;;
16745 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16746 # IBM XL 8.0, 9.0 on PPC and BlueGene
16747 lt_prog_compiler_wl_CXX='-Wl,'
16748 lt_prog_compiler_pic_CXX='-qpic'
16749 lt_prog_compiler_static_CXX='-qstaticlink'
16750 ;;
16751 *)
16752 case `$CC -V 2>&1 | $SED 5q` in
16753 *Sun\ C*)
16754 # Sun C++ 5.9
16755 lt_prog_compiler_pic_CXX='-KPIC'
16756 lt_prog_compiler_static_CXX='-Bstatic'
16757 lt_prog_compiler_wl_CXX='-Qoption ld '
16758 ;;
16759 esac
16760 ;;
16761 esac
16762 ;;
16763 lynxos*)
16764 ;;
16765 m88k*)
16766 ;;
16767 mvs*)
16768 case $cc_basename in
16769 cxx*)
16770 lt_prog_compiler_pic_CXX='-W c,exportall'
16771 ;;
16772 *)
16773 ;;
16774 esac
16775 ;;
16776 netbsd* | netbsdelf*-gnu)
16777 ;;
16778 *qnx* | *nto*)
16779 # QNX uses GNU C++, but need to define -shared option too, otherwise
16780 # it will coredump.
16781 lt_prog_compiler_pic_CXX='-fPIC -shared'
16782 ;;
16783 osf3* | osf4* | osf5*)
16784 case $cc_basename in
16785 KCC*)
16786 lt_prog_compiler_wl_CXX='--backend -Wl,'
16787 ;;
16788 RCC*)
16789 # Rational C++ 2.4.1
16790 lt_prog_compiler_pic_CXX='-pic'
16791 ;;
16792 cxx*)
16793 # Digital/Compaq C++
16794 lt_prog_compiler_wl_CXX='-Wl,'
16795 # Make sure the PIC flag is empty. It appears that all Alpha
16796 # Linux and Compaq Tru64 Unix objects are PIC.
16797 lt_prog_compiler_pic_CXX=
16798 lt_prog_compiler_static_CXX='-non_shared'
16799 ;;
16800 *)
16801 ;;
16802 esac
16803 ;;
16804 psos*)
16805 ;;
16806 solaris*)
16807 case $cc_basename in
16808 CC* | sunCC*)
16809 # Sun C++ 4.2, 5.x and Centerline C++
16810 lt_prog_compiler_pic_CXX='-KPIC'
16811 lt_prog_compiler_static_CXX='-Bstatic'
16812 lt_prog_compiler_wl_CXX='-Qoption ld '
16813 ;;
16814 gcx*)
16815 # Green Hills C++ Compiler
16816 lt_prog_compiler_pic_CXX='-PIC'
16817 ;;
16818 *)
16819 ;;
16820 esac
16821 ;;
16822 sunos4*)
16823 case $cc_basename in
16824 CC*)
16825 # Sun C++ 4.x
16826 lt_prog_compiler_pic_CXX='-pic'
16827 lt_prog_compiler_static_CXX='-Bstatic'
16828 ;;
16829 lcc*)
16830 # Lucid
16831 lt_prog_compiler_pic_CXX='-pic'
16832 ;;
16833 *)
16834 ;;
16835 esac
16836 ;;
16837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16838 case $cc_basename in
16839 CC*)
16840 lt_prog_compiler_wl_CXX='-Wl,'
16841 lt_prog_compiler_pic_CXX='-KPIC'
16842 lt_prog_compiler_static_CXX='-Bstatic'
16843 ;;
16844 esac
16845 ;;
16846 tandem*)
16847 case $cc_basename in
16848 NCC*)
16849 # NonStop-UX NCC 3.20
16850 lt_prog_compiler_pic_CXX='-KPIC'
16851 ;;
16852 *)
16853 ;;
16854 esac
16855 ;;
16856 vxworks*)
16857 ;;
16858 *)
16859 lt_prog_compiler_can_build_shared_CXX=no
16860 ;;
16861 esac
16862 fi
16863
16864 case $host_os in
16865 # For platforms that do not support PIC, -DPIC is meaningless:
16866 *djgpp*)
16867 lt_prog_compiler_pic_CXX=
16868 ;;
16869 *)
16870 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16871 ;;
16872 esac
16873
16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16875 printf %s "checking for $compiler option to produce PIC... " >&6; }
16876 if test ${lt_cv_prog_compiler_pic_CXX+y}
16877 then :
16878 printf %s "(cached) " >&6
16879 else $as_nop
16880 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16881 fi
16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16883 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16884 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16885
16886 #
16887 # Check to make sure the PIC flag actually works.
16888 #
16889 if test -n "$lt_prog_compiler_pic_CXX"; then
16890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16891 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16892 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16893 then :
16894 printf %s "(cached) " >&6
16895 else $as_nop
16896 lt_cv_prog_compiler_pic_works_CXX=no
16897 ac_outfile=conftest.$ac_objext
16898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16899 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16900 # Insert the option either (1) after the last *FLAGS variable, or
16901 # (2) before a word containing "conftest.", or (3) at the end.
16902 # Note that $ac_compile itself does not contain backslashes and begins
16903 # with a dollar sign (not a hyphen), so the echo should work correctly.
16904 # The option is referenced via a variable to avoid confusing sed.
16905 lt_compile=`echo "$ac_compile" | $SED \
16906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16908 -e 's:$: $lt_compiler_flag:'`
16909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16910 (eval "$lt_compile" 2>conftest.err)
16911 ac_status=$?
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 if (exit $ac_status) && test -s "$ac_outfile"; then
16915 # The compiler can only warn and ignore the option if not recognized
16916 # So say no if there are warnings other than the usual output.
16917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16919 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16920 lt_cv_prog_compiler_pic_works_CXX=yes
16921 fi
16922 fi
16923 $RM conftest*
16924
16925 fi
16926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16927 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16928
16929 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16930 case $lt_prog_compiler_pic_CXX in
16931 "" | " "*) ;;
16932 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16933 esac
16934 else
16935 lt_prog_compiler_pic_CXX=
16936 lt_prog_compiler_can_build_shared_CXX=no
16937 fi
16938
16939 fi
16940
16941
16942
16943
16944
16945 #
16946 # Check to make sure the static flag actually works.
16947 #
16948 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16950 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16951 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16952 then :
16953 printf %s "(cached) " >&6
16954 else $as_nop
16955 lt_cv_prog_compiler_static_works_CXX=no
16956 save_LDFLAGS=$LDFLAGS
16957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16960 # The linker can only warn and ignore the option if not recognized
16961 # So say no if there are warnings
16962 if test -s conftest.err; then
16963 # Append any errors to the config.log.
16964 cat conftest.err 1>&5
16965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16967 if diff conftest.exp conftest.er2 >/dev/null; then
16968 lt_cv_prog_compiler_static_works_CXX=yes
16969 fi
16970 else
16971 lt_cv_prog_compiler_static_works_CXX=yes
16972 fi
16973 fi
16974 $RM -r conftest*
16975 LDFLAGS=$save_LDFLAGS
16976
16977 fi
16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16979 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16980
16981 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16982 :
16983 else
16984 lt_prog_compiler_static_CXX=
16985 fi
16986
16987
16988
16989
16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16991 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16992 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16993 then :
16994 printf %s "(cached) " >&6
16995 else $as_nop
16996 lt_cv_prog_compiler_c_o_CXX=no
16997 $RM -r conftest 2>/dev/null
16998 mkdir conftest
16999 cd conftest
17000 mkdir out
17001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002
17003 lt_compiler_flag="-o out/conftest2.$ac_objext"
17004 # Insert the option either (1) after the last *FLAGS variable, or
17005 # (2) before a word containing "conftest.", or (3) at the end.
17006 # Note that $ac_compile itself does not contain backslashes and begins
17007 # with a dollar sign (not a hyphen), so the echo should work correctly.
17008 lt_compile=`echo "$ac_compile" | $SED \
17009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011 -e 's:$: $lt_compiler_flag:'`
17012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17013 (eval "$lt_compile" 2>out/conftest.err)
17014 ac_status=$?
17015 cat out/conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17018 then
17019 # The compiler can only warn and ignore the option if not recognized
17020 # So say no if there are warnings
17021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17024 lt_cv_prog_compiler_c_o_CXX=yes
17025 fi
17026 fi
17027 chmod u+w . 2>&5
17028 $RM conftest*
17029 # SGI C++ compiler will create directory out/ii_files/ for
17030 # template instantiation
17031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17032 $RM out/* && rmdir out
17033 cd ..
17034 $RM -r conftest
17035 $RM conftest*
17036
17037 fi
17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17039 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17040
17041
17042
17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17044 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17045 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17046 then :
17047 printf %s "(cached) " >&6
17048 else $as_nop
17049 lt_cv_prog_compiler_c_o_CXX=no
17050 $RM -r conftest 2>/dev/null
17051 mkdir conftest
17052 cd conftest
17053 mkdir out
17054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17055
17056 lt_compiler_flag="-o out/conftest2.$ac_objext"
17057 # Insert the option either (1) after the last *FLAGS variable, or
17058 # (2) before a word containing "conftest.", or (3) at the end.
17059 # Note that $ac_compile itself does not contain backslashes and begins
17060 # with a dollar sign (not a hyphen), so the echo should work correctly.
17061 lt_compile=`echo "$ac_compile" | $SED \
17062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17064 -e 's:$: $lt_compiler_flag:'`
17065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17066 (eval "$lt_compile" 2>out/conftest.err)
17067 ac_status=$?
17068 cat out/conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17071 then
17072 # The compiler can only warn and ignore the option if not recognized
17073 # So say no if there are warnings
17074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17077 lt_cv_prog_compiler_c_o_CXX=yes
17078 fi
17079 fi
17080 chmod u+w . 2>&5
17081 $RM conftest*
17082 # SGI C++ compiler will create directory out/ii_files/ for
17083 # template instantiation
17084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17085 $RM out/* && rmdir out
17086 cd ..
17087 $RM -r conftest
17088 $RM conftest*
17089
17090 fi
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17092 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17093
17094
17095
17096
17097 hard_links=nottested
17098 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17099 # do not overwrite the value of need_locks provided by the user
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17101 printf %s "checking if we can lock with hard links... " >&6; }
17102 hard_links=yes
17103 $RM conftest*
17104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17105 touch conftest.a
17106 ln conftest.a conftest.b 2>&5 || hard_links=no
17107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17109 printf "%s\n" "$hard_links" >&6; }
17110 if test no = "$hard_links"; then
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17112 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17113 need_locks=warn
17114 fi
17115 else
17116 need_locks=no
17117 fi
17118
17119
17120
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17122 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17123
17124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17125 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17126 case $host_os in
17127 aix[4-9]*)
17128 # If we're using GNU nm, then we don't want the "-C" option.
17129 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17130 # Without the "-l" option, or with the "-B" option, AIX nm treats
17131 # weak defined symbols like other global defined symbols, whereas
17132 # GNU nm marks them as "W".
17133 # While the 'weak' keyword is ignored in the Export File, we need
17134 # it in the Import File for the 'aix-soname' feature, so we have
17135 # to replace the "-B" option with "-P" for AIX nm.
17136 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17137 export_symbols_cmds_CXX='$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'
17138 else
17139 export_symbols_cmds_CXX='`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'
17140 fi
17141 ;;
17142 pw32*)
17143 export_symbols_cmds_CXX=$ltdll_cmds
17144 ;;
17145 cygwin* | mingw* | cegcc*)
17146 case $cc_basename in
17147 cl* | icl*)
17148 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17149 ;;
17150 *)
17151 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17152 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17153 ;;
17154 esac
17155 ;;
17156 linux* | k*bsd*-gnu | gnu*)
17157 link_all_deplibs_CXX=no
17158 ;;
17159 *)
17160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17161 ;;
17162 esac
17163
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17165 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17166 test no = "$ld_shlibs_CXX" && can_build_shared=no
17167
17168 with_gnu_ld_CXX=$with_gnu_ld
17169
17170
17171
17172
17173
17174
17175 #
17176 # Do we need to explicitly link libc?
17177 #
17178 case "x$archive_cmds_need_lc_CXX" in
17179 x|xyes)
17180 # Assume -lc should be added
17181 archive_cmds_need_lc_CXX=yes
17182
17183 if test yes,yes = "$GCC,$enable_shared"; then
17184 case $archive_cmds_CXX in
17185 *'~'*)
17186 # FIXME: we may have to deal with multi-command sequences.
17187 ;;
17188 '$CC '*)
17189 # Test whether the compiler implicitly links with -lc since on some
17190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17191 # to ld, don't add -lc before -lgcc.
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17193 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17194 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17195 then :
17196 printf %s "(cached) " >&6
17197 else $as_nop
17198 $RM conftest*
17199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17200
17201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17202 (eval $ac_compile) 2>&5
17203 ac_status=$?
17204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17205 test $ac_status = 0; } 2>conftest.err; then
17206 soname=conftest
17207 lib=conftest
17208 libobjs=conftest.$ac_objext
17209 deplibs=
17210 wl=$lt_prog_compiler_wl_CXX
17211 pic_flag=$lt_prog_compiler_pic_CXX
17212 compiler_flags=-v
17213 linker_flags=-v
17214 verstring=
17215 output_objdir=.
17216 libname=conftest
17217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17218 allow_undefined_flag_CXX=
17219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17221 ac_status=$?
17222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17223 test $ac_status = 0; }
17224 then
17225 lt_cv_archive_cmds_need_lc_CXX=no
17226 else
17227 lt_cv_archive_cmds_need_lc_CXX=yes
17228 fi
17229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17230 else
17231 cat conftest.err 1>&5
17232 fi
17233 $RM conftest*
17234
17235 fi
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17237 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17238 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17239 ;;
17240 esac
17241 fi
17242 ;;
17243 esac
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17307 printf %s "checking dynamic linker characteristics... " >&6; }
17308
17309 library_names_spec=
17310 libname_spec='lib$name'
17311 soname_spec=
17312 shrext_cmds=.so
17313 postinstall_cmds=
17314 postuninstall_cmds=
17315 finish_cmds=
17316 finish_eval=
17317 shlibpath_var=
17318 shlibpath_overrides_runpath=unknown
17319 version_type=none
17320 dynamic_linker="$host_os ld.so"
17321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17322 need_lib_prefix=unknown
17323 hardcode_into_libs=no
17324
17325 # when you set need_version to no, make sure it does not cause -set_version
17326 # flags to be left without arguments
17327 need_version=unknown
17328
17329
17330
17331 case $host_os in
17332 aix3*)
17333 version_type=linux # correct to gnu/linux during the next big refactor
17334 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17335 shlibpath_var=LIBPATH
17336
17337 # AIX 3 has no versioning support, so we append a major version to the name.
17338 soname_spec='$libname$release$shared_ext$major'
17339 ;;
17340
17341 aix[4-9]*)
17342 version_type=linux # correct to gnu/linux during the next big refactor
17343 need_lib_prefix=no
17344 need_version=no
17345 hardcode_into_libs=yes
17346 if test ia64 = "$host_cpu"; then
17347 # AIX 5 supports IA64
17348 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 else
17351 # With GCC up to 2.95.x, collect2 would create an import file
17352 # for dependence libraries. The import file would start with
17353 # the line '#! .'. This would cause the generated library to
17354 # depend on '.', always an invalid library. This was fixed in
17355 # development snapshots of GCC prior to 3.0.
17356 case $host_os in
17357 aix4 | aix4.[01] | aix4.[01].*)
17358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17359 echo ' yes '
17360 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17361 :
17362 else
17363 can_build_shared=no
17364 fi
17365 ;;
17366 esac
17367 # Using Import Files as archive members, it is possible to support
17368 # filename-based versioning of shared library archives on AIX. While
17369 # this would work for both with and without runtime linking, it will
17370 # prevent static linking of such archives. So we do filename-based
17371 # shared library versioning with .so extension only, which is used
17372 # when both runtime linking and shared linking is enabled.
17373 # Unfortunately, runtime linking may impact performance, so we do
17374 # not want this to be the default eventually. Also, we use the
17375 # versioned .so libs for executables only if there is the -brtl
17376 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17377 # To allow for filename-based versioning support, we need to create
17378 # libNAME.so.V as an archive file, containing:
17379 # *) an Import File, referring to the versioned filename of the
17380 # archive as well as the shared archive member, telling the
17381 # bitwidth (32 or 64) of that shared object, and providing the
17382 # list of exported symbols of that shared object, eventually
17383 # decorated with the 'weak' keyword
17384 # *) the shared object with the F_LOADONLY flag set, to really avoid
17385 # it being seen by the linker.
17386 # At run time we better use the real file rather than another symlink,
17387 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17388
17389 case $with_aix_soname,$aix_use_runtimelinking in
17390 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17391 # soname into executable. Probably we can add versioning support to
17392 # collect2, so additional links can be useful in future.
17393 aix,yes) # traditional libtool
17394 dynamic_linker='AIX unversionable lib.so'
17395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17396 # instead of lib<name>.a to let people know that these are not
17397 # typical AIX shared libraries.
17398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17399 ;;
17400 aix,no) # traditional AIX only
17401 dynamic_linker='AIX lib.a(lib.so.V)'
17402 # We preserve .a as extension for shared libraries through AIX4.2
17403 # and later when we are not doing run time linking.
17404 library_names_spec='$libname$release.a $libname.a'
17405 soname_spec='$libname$release$shared_ext$major'
17406 ;;
17407 svr4,*) # full svr4 only
17408 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17409 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17410 # We do not specify a path in Import Files, so LIBPATH fires.
17411 shlibpath_overrides_runpath=yes
17412 ;;
17413 *,yes) # both, prefer svr4
17414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17416 # unpreferred sharedlib libNAME.a needs extra handling
17417 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"'
17418 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"'
17419 # We do not specify a path in Import Files, so LIBPATH fires.
17420 shlibpath_overrides_runpath=yes
17421 ;;
17422 *,no) # both, prefer aix
17423 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17424 library_names_spec='$libname$release.a $libname.a'
17425 soname_spec='$libname$release$shared_ext$major'
17426 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17427 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)'
17428 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"'
17429 ;;
17430 esac
17431 shlibpath_var=LIBPATH
17432 fi
17433 ;;
17434
17435 amigaos*)
17436 case $host_cpu in
17437 powerpc)
17438 # Since July 2007 AmigaOS4 officially supports .so libraries.
17439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17441 ;;
17442 m68k)
17443 library_names_spec='$libname.ixlibrary $libname.a'
17444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17445 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'
17446 ;;
17447 esac
17448 ;;
17449
17450 beos*)
17451 library_names_spec='$libname$shared_ext'
17452 dynamic_linker="$host_os ld.so"
17453 shlibpath_var=LIBRARY_PATH
17454 ;;
17455
17456 bsdi[45]*)
17457 version_type=linux # correct to gnu/linux during the next big refactor
17458 need_version=no
17459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17460 soname_spec='$libname$release$shared_ext$major'
17461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17465 # the default ld.so.conf also contains /usr/contrib/lib and
17466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17467 # libtool to hard-code these into programs
17468 ;;
17469
17470 cygwin* | mingw* | pw32* | cegcc*)
17471 version_type=windows
17472 shrext_cmds=.dll
17473 need_version=no
17474 need_lib_prefix=no
17475
17476 case $GCC,$cc_basename in
17477 yes,*)
17478 # gcc
17479 library_names_spec='$libname.dll.a'
17480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17481 postinstall_cmds='base_file=`basename \$file`~
17482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17483 dldir=$destdir/`dirname \$dlpath`~
17484 test -d \$dldir || mkdir -p \$dldir~
17485 $install_prog $dir/$dlname \$dldir/$dlname~
17486 chmod a+x \$dldir/$dlname~
17487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17489 fi'
17490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17491 dlpath=$dir/\$dldll~
17492 $RM \$dlpath'
17493 shlibpath_overrides_runpath=yes
17494
17495 case $host_os in
17496 cygwin*)
17497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17498 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17499
17500 ;;
17501 mingw* | cegcc*)
17502 # MinGW DLLs use traditional 'lib' prefix
17503 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17504 ;;
17505 pw32*)
17506 # pw32 DLLs use 'pw' prefix rather than 'lib'
17507 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17508 ;;
17509 esac
17510 dynamic_linker='Win32 ld.exe'
17511 ;;
17512
17513 *,cl* | *,icl*)
17514 # Native MSVC or ICC
17515 libname_spec='$name'
17516 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17517 library_names_spec='$libname.dll.lib'
17518
17519 case $build_os in
17520 mingw*)
17521 sys_lib_search_path_spec=
17522 lt_save_ifs=$IFS
17523 IFS=';'
17524 for lt_path in $LIB
17525 do
17526 IFS=$lt_save_ifs
17527 # Let DOS variable expansion print the short 8.3 style file name.
17528 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17529 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17530 done
17531 IFS=$lt_save_ifs
17532 # Convert to MSYS style.
17533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17534 ;;
17535 cygwin*)
17536 # Convert to unix form, then to dos form, then back to unix form
17537 # but this time dos style (no spaces!) so that the unix form looks
17538 # like /cygdrive/c/PROGRA~1:/cygdr...
17539 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17540 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17541 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17542 ;;
17543 *)
17544 sys_lib_search_path_spec=$LIB
17545 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17546 # It is most probably a Windows format PATH.
17547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17548 else
17549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17550 fi
17551 # FIXME: find the short name or the path components, as spaces are
17552 # common. (e.g. "Program Files" -> "PROGRA~1")
17553 ;;
17554 esac
17555
17556 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17557 postinstall_cmds='base_file=`basename \$file`~
17558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17559 dldir=$destdir/`dirname \$dlpath`~
17560 test -d \$dldir || mkdir -p \$dldir~
17561 $install_prog $dir/$dlname \$dldir/$dlname'
17562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17563 dlpath=$dir/\$dldll~
17564 $RM \$dlpath'
17565 shlibpath_overrides_runpath=yes
17566 dynamic_linker='Win32 link.exe'
17567 ;;
17568
17569 *)
17570 # Assume MSVC and ICC wrapper
17571 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17572 dynamic_linker='Win32 ld.exe'
17573 ;;
17574 esac
17575 # FIXME: first we should search . and the directory the executable is in
17576 shlibpath_var=PATH
17577 ;;
17578
17579 darwin* | rhapsody*)
17580 dynamic_linker="$host_os dyld"
17581 version_type=darwin
17582 need_lib_prefix=no
17583 need_version=no
17584 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17585 soname_spec='$libname$release$major$shared_ext'
17586 shlibpath_overrides_runpath=yes
17587 shlibpath_var=DYLD_LIBRARY_PATH
17588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17589
17590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17591 ;;
17592
17593 dgux*)
17594 version_type=linux # correct to gnu/linux during the next big refactor
17595 need_lib_prefix=no
17596 need_version=no
17597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17598 soname_spec='$libname$release$shared_ext$major'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 ;;
17601
17602 freebsd* | dragonfly* | midnightbsd*)
17603 # DragonFly does not have aout. When/if they implement a new
17604 # versioning mechanism, adjust this.
17605 if test -x /usr/bin/objformat; then
17606 objformat=`/usr/bin/objformat`
17607 else
17608 case $host_os in
17609 freebsd[23].*) objformat=aout ;;
17610 *) objformat=elf ;;
17611 esac
17612 fi
17613 version_type=freebsd-$objformat
17614 case $version_type in
17615 freebsd-elf*)
17616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617 soname_spec='$libname$release$shared_ext$major'
17618 need_version=no
17619 need_lib_prefix=no
17620 ;;
17621 freebsd-*)
17622 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17623 need_version=yes
17624 ;;
17625 esac
17626 shlibpath_var=LD_LIBRARY_PATH
17627 case $host_os in
17628 freebsd2.*)
17629 shlibpath_overrides_runpath=yes
17630 ;;
17631 freebsd3.[01]* | freebsdelf3.[01]*)
17632 shlibpath_overrides_runpath=yes
17633 hardcode_into_libs=yes
17634 ;;
17635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17639 ;;
17640 *) # from 4.6 on, and DragonFly
17641 shlibpath_overrides_runpath=yes
17642 hardcode_into_libs=yes
17643 ;;
17644 esac
17645 ;;
17646
17647 haiku*)
17648 version_type=linux # correct to gnu/linux during the next big refactor
17649 need_lib_prefix=no
17650 need_version=no
17651 dynamic_linker="$host_os runtime_loader"
17652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17653 soname_spec='$libname$release$shared_ext$major'
17654 shlibpath_var=LIBRARY_PATH
17655 shlibpath_overrides_runpath=no
17656 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17657 hardcode_into_libs=yes
17658 ;;
17659
17660 hpux9* | hpux10* | hpux11*)
17661 # Give a soname corresponding to the major version so that dld.sl refuses to
17662 # link against other versions.
17663 version_type=sunos
17664 need_lib_prefix=no
17665 need_version=no
17666 case $host_cpu in
17667 ia64*)
17668 shrext_cmds='.so'
17669 hardcode_into_libs=yes
17670 dynamic_linker="$host_os dld.so"
17671 shlibpath_var=LD_LIBRARY_PATH
17672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17674 soname_spec='$libname$release$shared_ext$major'
17675 if test 32 = "$HPUX_IA64_MODE"; then
17676 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17677 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17678 else
17679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17680 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17681 fi
17682 ;;
17683 hppa*64*)
17684 shrext_cmds='.sl'
17685 hardcode_into_libs=yes
17686 dynamic_linker="$host_os dld.sl"
17687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17690 soname_spec='$libname$release$shared_ext$major'
17691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17693 ;;
17694 *)
17695 shrext_cmds='.sl'
17696 dynamic_linker="$host_os dld.sl"
17697 shlibpath_var=SHLIB_PATH
17698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17700 soname_spec='$libname$release$shared_ext$major'
17701 ;;
17702 esac
17703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17704 postinstall_cmds='chmod 555 $lib'
17705 # or fails outright, so override atomically:
17706 install_override_mode=555
17707 ;;
17708
17709 interix[3-9]*)
17710 version_type=linux # correct to gnu/linux during the next big refactor
17711 need_lib_prefix=no
17712 need_version=no
17713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17714 soname_spec='$libname$release$shared_ext$major'
17715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 shlibpath_overrides_runpath=no
17718 hardcode_into_libs=yes
17719 ;;
17720
17721 irix5* | irix6* | nonstopux*)
17722 case $host_os in
17723 nonstopux*) version_type=nonstopux ;;
17724 *)
17725 if test yes = "$lt_cv_prog_gnu_ld"; then
17726 version_type=linux # correct to gnu/linux during the next big refactor
17727 else
17728 version_type=irix
17729 fi ;;
17730 esac
17731 need_lib_prefix=no
17732 need_version=no
17733 soname_spec='$libname$release$shared_ext$major'
17734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17735 case $host_os in
17736 irix5* | nonstopux*)
17737 libsuff= shlibsuff=
17738 ;;
17739 *)
17740 case $LD in # libtool.m4 will add one of these switches to LD
17741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17742 libsuff= shlibsuff= libmagic=32-bit;;
17743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17744 libsuff=32 shlibsuff=N32 libmagic=N32;;
17745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17747 *) libsuff= shlibsuff= libmagic=never-match;;
17748 esac
17749 ;;
17750 esac
17751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17752 shlibpath_overrides_runpath=no
17753 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17754 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17755 hardcode_into_libs=yes
17756 ;;
17757
17758 # No shared lib support for Linux oldld, aout, or coff.
17759 linux*oldld* | linux*aout* | linux*coff*)
17760 dynamic_linker=no
17761 ;;
17762
17763 linux*android*)
17764 version_type=none # Android doesn't support versioned libraries.
17765 need_lib_prefix=no
17766 need_version=no
17767 library_names_spec='$libname$release$shared_ext'
17768 soname_spec='$libname$release$shared_ext'
17769 finish_cmds=
17770 shlibpath_var=LD_LIBRARY_PATH
17771 shlibpath_overrides_runpath=yes
17772
17773 # This implies no fast_install, which is unacceptable.
17774 # Some rework will be needed to allow for fast_install
17775 # before this can be enabled.
17776 hardcode_into_libs=yes
17777
17778 dynamic_linker='Android linker'
17779 # Don't embed -rpath directories since the linker doesn't support them.
17780 hardcode_libdir_flag_spec_CXX='-L$libdir'
17781 ;;
17782
17783 # This must be glibc/ELF.
17784 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17785 version_type=linux # correct to gnu/linux during the next big refactor
17786 need_lib_prefix=no
17787 need_version=no
17788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17789 soname_spec='$libname$release$shared_ext$major'
17790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17791 shlibpath_var=LD_LIBRARY_PATH
17792 shlibpath_overrides_runpath=no
17793
17794 # Some binutils ld are patched to set DT_RUNPATH
17795 if test ${lt_cv_shlibpath_overrides_runpath+y}
17796 then :
17797 printf %s "(cached) " >&6
17798 else $as_nop
17799 lt_cv_shlibpath_overrides_runpath=no
17800 save_LDFLAGS=$LDFLAGS
17801 save_libdir=$libdir
17802 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17803 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17806
17807 int
17808 main (void)
17809 {
17810
17811 ;
17812 return 0;
17813 }
17814 _ACEOF
17815 if ac_fn_cxx_try_link "$LINENO"
17816 then :
17817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17818 then :
17819 lt_cv_shlibpath_overrides_runpath=yes
17820 fi
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LDFLAGS=$save_LDFLAGS
17825 libdir=$save_libdir
17826
17827 fi
17828
17829 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17830
17831 # This implies no fast_install, which is unacceptable.
17832 # Some rework will be needed to allow for fast_install
17833 # before this can be enabled.
17834 hardcode_into_libs=yes
17835
17836 # Ideally, we could use ldconfig to report *all* directores which are
17837 # searched for libraries, however this is still not possible. Aside from not
17838 # being certain /sbin/ldconfig is available, command
17839 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17840 # even though it is searched at run-time. Try to do the best guess by
17841 # appending ld.so.conf contents (and includes) to the search path.
17842 if test -f /etc/ld.so.conf; then
17843 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' ' '`
17844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17845 fi
17846
17847 # We used to test for /lib/ld.so.1 and disable shared libraries on
17848 # powerpc, because MkLinux only supported shared libraries with the
17849 # GNU dynamic linker. Since this was broken with cross compilers,
17850 # most powerpc-linux boxes support dynamic linking these days and
17851 # people can always --disable-shared, the test was removed, and we
17852 # assume the GNU/Linux dynamic linker is in use.
17853 dynamic_linker='GNU/Linux ld.so'
17854 ;;
17855
17856 netbsdelf*-gnu)
17857 version_type=linux
17858 need_lib_prefix=no
17859 need_version=no
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17861 soname_spec='${libname}${release}${shared_ext}$major'
17862 shlibpath_var=LD_LIBRARY_PATH
17863 shlibpath_overrides_runpath=no
17864 hardcode_into_libs=yes
17865 dynamic_linker='NetBSD ld.elf_so'
17866 ;;
17867
17868 netbsd*)
17869 version_type=sunos
17870 need_lib_prefix=no
17871 need_version=no
17872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17873 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17875 dynamic_linker='NetBSD (a.out) ld.so'
17876 else
17877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17878 soname_spec='$libname$release$shared_ext$major'
17879 dynamic_linker='NetBSD ld.elf_so'
17880 fi
17881 shlibpath_var=LD_LIBRARY_PATH
17882 shlibpath_overrides_runpath=yes
17883 hardcode_into_libs=yes
17884 ;;
17885
17886 newsos6)
17887 version_type=linux # correct to gnu/linux during the next big refactor
17888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 shlibpath_overrides_runpath=yes
17891 ;;
17892
17893 *nto* | *qnx*)
17894 version_type=qnx
17895 need_lib_prefix=no
17896 need_version=no
17897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17898 soname_spec='$libname$release$shared_ext$major'
17899 shlibpath_var=LD_LIBRARY_PATH
17900 shlibpath_overrides_runpath=no
17901 hardcode_into_libs=yes
17902 dynamic_linker='ldqnx.so'
17903 ;;
17904
17905 openbsd* | bitrig*)
17906 version_type=sunos
17907 sys_lib_dlsearch_path_spec=/usr/lib
17908 need_lib_prefix=no
17909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17910 need_version=no
17911 else
17912 need_version=yes
17913 fi
17914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=yes
17918 ;;
17919
17920 os2*)
17921 libname_spec='$name'
17922 version_type=windows
17923 shrext_cmds=.dll
17924 need_version=no
17925 need_lib_prefix=no
17926 # OS/2 can only load a DLL with a base name of 8 characters or less.
17927 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17928 v=$($ECHO $release$versuffix | tr -d .-);
17929 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17930 $ECHO $n$v`$shared_ext'
17931 library_names_spec='${libname}_dll.$libext'
17932 dynamic_linker='OS/2 ld.exe'
17933 shlibpath_var=BEGINLIBPATH
17934 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17936 postinstall_cmds='base_file=`basename \$file`~
17937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17938 dldir=$destdir/`dirname \$dlpath`~
17939 test -d \$dldir || mkdir -p \$dldir~
17940 $install_prog $dir/$dlname \$dldir/$dlname~
17941 chmod a+x \$dldir/$dlname~
17942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17944 fi'
17945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17946 dlpath=$dir/\$dldll~
17947 $RM \$dlpath'
17948 ;;
17949
17950 osf3* | osf4* | osf5*)
17951 version_type=osf
17952 need_lib_prefix=no
17953 need_version=no
17954 soname_spec='$libname$release$shared_ext$major'
17955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17956 shlibpath_var=LD_LIBRARY_PATH
17957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17959 ;;
17960
17961 rdos*)
17962 dynamic_linker=no
17963 ;;
17964
17965 solaris*)
17966 version_type=linux # correct to gnu/linux during the next big refactor
17967 need_lib_prefix=no
17968 need_version=no
17969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17970 soname_spec='$libname$release$shared_ext$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=yes
17973 hardcode_into_libs=yes
17974 # ldd complains unless libraries are executable
17975 postinstall_cmds='chmod +x $lib'
17976 ;;
17977
17978 sunos4*)
17979 version_type=sunos
17980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 shlibpath_overrides_runpath=yes
17984 if test yes = "$with_gnu_ld"; then
17985 need_lib_prefix=no
17986 fi
17987 need_version=yes
17988 ;;
17989
17990 sysv4 | sysv4.3*)
17991 version_type=linux # correct to gnu/linux during the next big refactor
17992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17993 soname_spec='$libname$release$shared_ext$major'
17994 shlibpath_var=LD_LIBRARY_PATH
17995 case $host_vendor in
17996 sni)
17997 shlibpath_overrides_runpath=no
17998 need_lib_prefix=no
17999 runpath_var=LD_RUN_PATH
18000 ;;
18001 siemens)
18002 need_lib_prefix=no
18003 ;;
18004 motorola)
18005 need_lib_prefix=no
18006 need_version=no
18007 shlibpath_overrides_runpath=no
18008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18009 ;;
18010 esac
18011 ;;
18012
18013 sysv4*MP*)
18014 if test -d /usr/nec; then
18015 version_type=linux # correct to gnu/linux during the next big refactor
18016 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18017 soname_spec='$libname$shared_ext.$major'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 fi
18020 ;;
18021
18022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18023 version_type=sco
18024 need_lib_prefix=no
18025 need_version=no
18026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18027 soname_spec='$libname$release$shared_ext$major'
18028 shlibpath_var=LD_LIBRARY_PATH
18029 shlibpath_overrides_runpath=yes
18030 hardcode_into_libs=yes
18031 if test yes = "$with_gnu_ld"; then
18032 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18033 else
18034 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18035 case $host_os in
18036 sco3.2v5*)
18037 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18038 ;;
18039 esac
18040 fi
18041 sys_lib_dlsearch_path_spec='/usr/lib'
18042 ;;
18043
18044 tpf*)
18045 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18046 version_type=linux # correct to gnu/linux during the next big refactor
18047 need_lib_prefix=no
18048 need_version=no
18049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18050 shlibpath_var=LD_LIBRARY_PATH
18051 shlibpath_overrides_runpath=no
18052 hardcode_into_libs=yes
18053 ;;
18054
18055 uts4*)
18056 version_type=linux # correct to gnu/linux during the next big refactor
18057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18058 soname_spec='$libname$release$shared_ext$major'
18059 shlibpath_var=LD_LIBRARY_PATH
18060 ;;
18061
18062 *)
18063 dynamic_linker=no
18064 ;;
18065 esac
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18067 printf "%s\n" "$dynamic_linker" >&6; }
18068 test no = "$dynamic_linker" && can_build_shared=no
18069
18070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18071 if test yes = "$GCC"; then
18072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18073 fi
18074
18075 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18076 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18077 fi
18078
18079 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18080 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18081 fi
18082
18083 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18084 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18085
18086 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18087 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18088
18089 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18090 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18132 printf %s "checking how to hardcode library paths into programs... " >&6; }
18133 hardcode_action_CXX=
18134 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18135 test -n "$runpath_var_CXX" ||
18136 test yes = "$hardcode_automatic_CXX"; then
18137
18138 # We can hardcode non-existent directories.
18139 if test no != "$hardcode_direct_CXX" &&
18140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18141 # have to relink, otherwise we might link with an installed library
18142 # when we should be linking with a yet-to-be-installed one
18143 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18144 test no != "$hardcode_minus_L_CXX"; then
18145 # Linking always hardcodes the temporary library directory.
18146 hardcode_action_CXX=relink
18147 else
18148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18149 hardcode_action_CXX=immediate
18150 fi
18151 else
18152 # We cannot hardcode anything, or else we can only hardcode existing
18153 # directories.
18154 hardcode_action_CXX=unsupported
18155 fi
18156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18157 printf "%s\n" "$hardcode_action_CXX" >&6; }
18158
18159 if test relink = "$hardcode_action_CXX" ||
18160 test yes = "$inherit_rpath_CXX"; then
18161 # Fast installation is not supported
18162 enable_fast_install=no
18163 elif test yes = "$shlibpath_overrides_runpath" ||
18164 test no = "$enable_shared"; then
18165 # Fast installation is not necessary
18166 enable_fast_install=needless
18167 fi
18168
18169
18170
18171
18172
18173
18174
18175 fi # test -n "$compiler"
18176
18177 CC=$lt_save_CC
18178 CFLAGS=$lt_save_CFLAGS
18179 LDCXX=$LD
18180 LD=$lt_save_LD
18181 GCC=$lt_save_GCC
18182 with_gnu_ld=$lt_save_with_gnu_ld
18183 lt_cv_path_LDCXX=$lt_cv_path_LD
18184 lt_cv_path_LD=$lt_save_path_LD
18185 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18186 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18187 fi # test yes != "$_lt_caught_CXX_error"
18188
18189 ac_ext=c
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194
18195
18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the CLANG C compiler" >&5
18197 printf %s "checking whether we are using the CLANG C compiler... " >&6; }
18198 if test ${xiph_cv_c_compiler_clang+y}
18199 then :
18200 printf %s "(cached) " >&6
18201 else $as_nop
18202
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205
18206 #include <stdio.h>
18207
18208 int
18209 main (void)
18210 {
18211
18212 #ifndef __clang__
18213 This is not clang!
18214 #endif
18215
18216 ;
18217 return 0;
18218 }
18219 _ACEOF
18220 if ac_fn_c_try_link "$LINENO"
18221 then :
18222 xiph_cv_c_compiler_clang=yes
18223 else $as_nop
18224 xiph_cv_c_compiler_clang=no
18225
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18228 conftest$ac_exeext conftest.$ac_ext
18229
18230 fi
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xiph_cv_c_compiler_clang" >&5
18232 printf "%s\n" "$xiph_cv_c_compiler_clang" >&6; }
18233
18234
18235 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238
18239 #include <stdio.h>
18240
18241 int
18242 main (void)
18243 {
18244
18245 #ifdef __clang__
18246 This is clang!
18247 #endif
18248
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_link "$LINENO"
18254 then :
18255 ac_cv_c_compiler_gnu=yes
18256 else $as_nop
18257 ac_cv_c_compiler_gnu=no
18258
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18261 conftest$ac_exeext conftest.$ac_ext
18262 fi
18263
18264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18265 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18266 set x ${MAKE-make}
18267 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18268 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
18269 then :
18270 printf %s "(cached) " >&6
18271 else $as_nop
18272 cat >conftest.make <<\_ACEOF
18273 SHELL = /bin/sh
18274 all:
18275 @echo '@@@%%%=$(MAKE)=@@@%%%'
18276 _ACEOF
18277 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18278 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18279 *@@@%%%=?*=@@@%%%*)
18280 eval ac_cv_prog_make_${ac_make}_set=yes;;
18281 *)
18282 eval ac_cv_prog_make_${ac_make}_set=no;;
18283 esac
18284 rm -f conftest.make
18285 fi
18286 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288 printf "%s\n" "yes" >&6; }
18289 SET_MAKE=
18290 else
18291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 printf "%s\n" "no" >&6; }
18293 SET_MAKE="MAKE=${MAKE-make}"
18294 fi
18295
18296
18297
18298 # Check whether --enable-largefile was given.
18299 if test ${enable_largefile+y}
18300 then :
18301 enableval=$enable_largefile;
18302 fi
18303
18304 if test "$enable_largefile" != no; then
18305
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18307 printf %s "checking for special C compiler options needed for large files... " >&6; }
18308 if test ${ac_cv_sys_largefile_CC+y}
18309 then :
18310 printf %s "(cached) " >&6
18311 else $as_nop
18312 ac_cv_sys_largefile_CC=no
18313 if test "$GCC" != yes; then
18314 ac_save_CC=$CC
18315 while :; do
18316 # IRIX 6.2 and later do not support large files by default,
18317 # so use the C compiler's -n32 option if that helps.
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <sys/types.h>
18321 /* Check that off_t can represent 2**63 - 1 correctly.
18322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18323 since some C++ compilers masquerading as C compilers
18324 incorrectly reject 9223372036854775807. */
18325 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18327 && LARGE_OFF_T % 2147483647 == 1)
18328 ? 1 : -1];
18329 int
18330 main (void)
18331 {
18332
18333 ;
18334 return 0;
18335 }
18336 _ACEOF
18337 if ac_fn_c_try_compile "$LINENO"
18338 then :
18339 break
18340 fi
18341 rm -f core conftest.err conftest.$ac_objext conftest.beam
18342 CC="$CC -n32"
18343 if ac_fn_c_try_compile "$LINENO"
18344 then :
18345 ac_cv_sys_largefile_CC=' -n32'; break
18346 fi
18347 rm -f core conftest.err conftest.$ac_objext conftest.beam
18348 break
18349 done
18350 CC=$ac_save_CC
18351 rm -f conftest.$ac_ext
18352 fi
18353 fi
18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18355 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
18356 if test "$ac_cv_sys_largefile_CC" != no; then
18357 CC=$CC$ac_cv_sys_largefile_CC
18358 fi
18359
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18361 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18362 if test ${ac_cv_sys_file_offset_bits+y}
18363 then :
18364 printf %s "(cached) " >&6
18365 else $as_nop
18366 while :; do
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369 #include <sys/types.h>
18370 /* Check that off_t can represent 2**63 - 1 correctly.
18371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18372 since some C++ compilers masquerading as C compilers
18373 incorrectly reject 9223372036854775807. */
18374 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18376 && LARGE_OFF_T % 2147483647 == 1)
18377 ? 1 : -1];
18378 int
18379 main (void)
18380 {
18381
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_compile "$LINENO"
18387 then :
18388 ac_cv_sys_file_offset_bits=no; break
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18393 #define _FILE_OFFSET_BITS 64
18394 #include <sys/types.h>
18395 /* Check that off_t can represent 2**63 - 1 correctly.
18396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18397 since some C++ compilers masquerading as C compilers
18398 incorrectly reject 9223372036854775807. */
18399 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18401 && LARGE_OFF_T % 2147483647 == 1)
18402 ? 1 : -1];
18403 int
18404 main (void)
18405 {
18406
18407 ;
18408 return 0;
18409 }
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"
18412 then :
18413 ac_cv_sys_file_offset_bits=64; break
18414 fi
18415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18416 ac_cv_sys_file_offset_bits=unknown
18417 break
18418 done
18419 fi
18420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18421 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
18422 case $ac_cv_sys_file_offset_bits in #(
18423 no | unknown) ;;
18424 *)
18425 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
18426 ;;
18427 esac
18428 rm -rf conftest*
18429 if test $ac_cv_sys_file_offset_bits = unknown; then
18430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18431 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
18432 if test ${ac_cv_sys_large_files+y}
18433 then :
18434 printf %s "(cached) " >&6
18435 else $as_nop
18436 while :; do
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 #include <sys/types.h>
18440 /* Check that off_t can represent 2**63 - 1 correctly.
18441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18442 since some C++ compilers masquerading as C compilers
18443 incorrectly reject 9223372036854775807. */
18444 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18446 && LARGE_OFF_T % 2147483647 == 1)
18447 ? 1 : -1];
18448 int
18449 main (void)
18450 {
18451
18452 ;
18453 return 0;
18454 }
18455 _ACEOF
18456 if ac_fn_c_try_compile "$LINENO"
18457 then :
18458 ac_cv_sys_large_files=no; break
18459 fi
18460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 #define _LARGE_FILES 1
18464 #include <sys/types.h>
18465 /* Check that off_t can represent 2**63 - 1 correctly.
18466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18467 since some C++ compilers masquerading as C compilers
18468 incorrectly reject 9223372036854775807. */
18469 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
18470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18471 && LARGE_OFF_T % 2147483647 == 1)
18472 ? 1 : -1];
18473 int
18474 main (void)
18475 {
18476
18477 ;
18478 return 0;
18479 }
18480 _ACEOF
18481 if ac_fn_c_try_compile "$LINENO"
18482 then :
18483 ac_cv_sys_large_files=1; break
18484 fi
18485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18486 ac_cv_sys_large_files=unknown
18487 break
18488 done
18489 fi
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18491 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
18492 case $ac_cv_sys_large_files in #(
18493 no | unknown) ;;
18494 *)
18495 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
18496 ;;
18497 esac
18498 rm -rf conftest*
18499 fi
18500 fi
18501
18502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18503 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18504 if test ${ac_cv_sys_largefile_source+y}
18505 then :
18506 printf %s "(cached) " >&6
18507 else $as_nop
18508 while :; do
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18511 #include <sys/types.h> /* for off_t */
18512 #include <stdio.h>
18513 int
18514 main (void)
18515 {
18516 int (*fp) (FILE *, off_t, int) = fseeko;
18517 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18518 ;
18519 return 0;
18520 }
18521 _ACEOF
18522 if ac_fn_c_try_link "$LINENO"
18523 then :
18524 ac_cv_sys_largefile_source=no; break
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18527 conftest$ac_exeext conftest.$ac_ext
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18530 #define _LARGEFILE_SOURCE 1
18531 #include <sys/types.h> /* for off_t */
18532 #include <stdio.h>
18533 int
18534 main (void)
18535 {
18536 int (*fp) (FILE *, off_t, int) = fseeko;
18537 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18538 ;
18539 return 0;
18540 }
18541 _ACEOF
18542 if ac_fn_c_try_link "$LINENO"
18543 then :
18544 ac_cv_sys_largefile_source=1; break
18545 fi
18546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18547 conftest$ac_exeext conftest.$ac_ext
18548 ac_cv_sys_largefile_source=unknown
18549 break
18550 done
18551 fi
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
18553 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
18554 case $ac_cv_sys_largefile_source in #(
18555 no | unknown) ;;
18556 *)
18557 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
18558 ;;
18559 esac
18560 rm -rf conftest*
18561
18562 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18563 # in glibc 2.1.3, but that breaks too many other things.
18564 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18565 if test $ac_cv_sys_largefile_source != unknown; then
18566
18567 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
18568
18569 fi
18570
18571
18572 # The cast to long int works around a bug in the HP C Compiler
18573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18575 # This bug is HP SR number 8606223364.
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
18577 printf %s "checking size of off_t... " >&6; }
18578 if test ${ac_cv_sizeof_off_t+y}
18579 then :
18580 printf %s "(cached) " >&6
18581 else $as_nop
18582 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
18583 then :
18584
18585 else $as_nop
18586 if test "$ac_cv_type_off_t" = yes; then
18587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18589 as_fn_error 77 "cannot compute sizeof (off_t)
18590 See \`config.log' for more details" "$LINENO" 5; }
18591 else
18592 ac_cv_sizeof_off_t=0
18593 fi
18594 fi
18595
18596 fi
18597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
18598 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
18599
18600
18601
18602 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
18603
18604 # Fake default value.
18605 # The cast to long int works around a bug in the HP C Compiler
18606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18608 # This bug is HP SR number 8606223364.
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
18610 printf %s "checking size of void*... " >&6; }
18611 if test ${ac_cv_sizeof_voidp+y}
18612 then :
18613 printf %s "(cached) " >&6
18614 else $as_nop
18615 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
18616 then :
18617
18618 else $as_nop
18619 if test "$ac_cv_type_voidp" = yes; then
18620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18621 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18622 as_fn_error 77 "cannot compute sizeof (void*)
18623 See \`config.log' for more details" "$LINENO" 5; }
18624 else
18625 ac_cv_sizeof_voidp=0
18626 fi
18627 fi
18628
18629 fi
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
18631 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
18632
18633
18634
18635 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
18636
18637
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lround" >&5
18639 printf %s "checking for library containing lround... " >&6; }
18640 if test ${ac_cv_search_lround+y}
18641 then :
18642 printf %s "(cached) " >&6
18643 else $as_nop
18644 ac_func_search_save_LIBS=$LIBS
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18647
18648 /* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651 char lround ();
18652 int
18653 main (void)
18654 {
18655 return lround ();
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 for ac_lib in '' m
18661 do
18662 if test -z "$ac_lib"; then
18663 ac_res="none required"
18664 else
18665 ac_res=-l$ac_lib
18666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18667 fi
18668 if ac_fn_c_try_link "$LINENO"
18669 then :
18670 ac_cv_search_lround=$ac_res
18671 fi
18672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18673 conftest$ac_exeext
18674 if test ${ac_cv_search_lround+y}
18675 then :
18676 break
18677 fi
18678 done
18679 if test ${ac_cv_search_lround+y}
18680 then :
18681
18682 else $as_nop
18683 ac_cv_search_lround=no
18684 fi
18685 rm conftest.$ac_ext
18686 LIBS=$ac_func_search_save_LIBS
18687 fi
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lround" >&5
18689 printf "%s\n" "$ac_cv_search_lround" >&6; }
18690 ac_res=$ac_cv_search_lround
18691 if test "$ac_res" != no
18692 then :
18693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18694
18695 printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
18696
18697 fi
18698
18699
18700
18701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18702 printf %s "checking for inline... " >&6; }
18703 if test ${ac_cv_c_inline+y}
18704 then :
18705 printf %s "(cached) " >&6
18706 else $as_nop
18707 ac_cv_c_inline=no
18708 for ac_kw in inline __inline__ __inline; do
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #ifndef __cplusplus
18712 typedef int foo_t;
18713 static $ac_kw foo_t static_foo (void) {return 0; }
18714 $ac_kw foo_t foo (void) {return 0; }
18715 #endif
18716
18717 _ACEOF
18718 if ac_fn_c_try_compile "$LINENO"
18719 then :
18720 ac_cv_c_inline=$ac_kw
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18723 test "$ac_cv_c_inline" != no && break
18724 done
18725
18726 fi
18727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18728 printf "%s\n" "$ac_cv_c_inline" >&6; }
18729
18730 case $ac_cv_c_inline in
18731 inline | yes) ;;
18732 *)
18733 case $ac_cv_c_inline in
18734 no) ac_val=;;
18735 *) ac_val=$ac_cv_c_inline;;
18736 esac
18737 cat >>confdefs.h <<_ACEOF
18738 #ifndef __cplusplus
18739 #define inline $ac_val
18740 #endif
18741 _ACEOF
18742 ;;
18743 esac
18744
18745
18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
18747 printf %s "checking for typeof syntax and keyword spelling... " >&6; }
18748 if test ${ac_cv_c_typeof+y}
18749 then :
18750 printf %s "(cached) " >&6
18751 else $as_nop
18752 ac_cv_c_typeof=no
18753 for ac_kw in typeof __typeof__ no; do
18754 test $ac_kw = no && break
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18757
18758 int
18759 main (void)
18760 {
18761
18762 int value;
18763 typedef struct {
18764 char a [1
18765 + ! (($ac_kw (value))
18766 (($ac_kw (value)) 0 < ($ac_kw (value)) -1
18767 ? ($ac_kw (value)) - 1
18768 : ~ (~ ($ac_kw (value)) 0
18769 << sizeof ($ac_kw (value)))))]; }
18770 ac__typeof_type_;
18771 return
18772 (! ((void) ((ac__typeof_type_ *) 0), 0));
18773
18774 ;
18775 return 0;
18776 }
18777 _ACEOF
18778 if ac_fn_c_try_compile "$LINENO"
18779 then :
18780 ac_cv_c_typeof=$ac_kw
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18783 test $ac_cv_c_typeof != no && break
18784 done
18785 fi
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
18787 printf "%s\n" "$ac_cv_c_typeof" >&6; }
18788 if test $ac_cv_c_typeof != no; then
18789
18790 printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h
18791
18792 if test $ac_cv_c_typeof != typeof; then
18793
18794 printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h
18795
18796 fi
18797 fi
18798
18799
18800 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18801 if test "x$ac_cv_header_stdint_h" = xyes
18802 then :
18803 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
18804
18805 fi
18806 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
18807 if test "x$ac_cv_header_stdbool_h" = xyes
18808 then :
18809 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
18810
18811 fi
18812 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
18813 if test "x$ac_cv_header_inttypes_h" = xyes
18814 then :
18815 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
18816
18817 fi
18818 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
18819 if test "x$ac_cv_header_byteswap_h" = xyes
18820 then :
18821 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
18822
18823 fi
18824 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
18825 if test "x$ac_cv_header_sys_auxv_h" = xyes
18826 then :
18827 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
18828
18829 fi
18830 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18831 if test "x$ac_cv_header_sys_param_h" = xyes
18832 then :
18833 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18834
18835 fi
18836 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18837 if test "x$ac_cv_header_sys_ioctl_h" = xyes
18838 then :
18839 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
18840
18841 fi
18842 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18843 if test "x$ac_cv_header_sys_time_h" = xyes
18844 then :
18845 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18846
18847 fi
18848 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
18849 if test "x$ac_cv_header_termios_h" = xyes
18850 then :
18851 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
18852
18853 fi
18854 ac_fn_c_check_header_compile "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default"
18855 if test "x$ac_cv_header_x86intrin_h" = xyes
18856 then :
18857 printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h
18858
18859 fi
18860 ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
18861 if test "x$ac_cv_header_cpuid_h" = xyes
18862 then :
18863 printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h
18864
18865 fi
18866 ac_fn_c_check_header_compile "$LINENO" "arm_neon.h" "ac_cv_header_arm_neon_h" "$ac_includes_default"
18867 if test "x$ac_cv_header_arm_neon_h" = xyes
18868 then :
18869 printf "%s\n" "#define HAVE_ARM_NEON_H 1" >>confdefs.h
18870
18871 fi
18872
18873
18874 if test "x$ac_cv_header_stdint_h" != xyes -o "x$ac_cv_header_stdbool_h" != xyes; then
18875 as_fn_error $? "\"Header stdint.h and/or stdbool.h not found\"" "$LINENO" 5
18876 fi
18877
18878
18879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap32 intrinsic" >&5
18880 printf %s "checking for bswap32 intrinsic... " >&6; }
18881 if test ${ac_cv_c_bswap32+y}
18882 then :
18883 printf %s "(cached) " >&6
18884 else $as_nop
18885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18887
18888 int
18889 main (void)
18890 {
18891 return __builtin_bswap32 (0) ;
18892 ;
18893 return 0;
18894 }
18895 _ACEOF
18896 if ac_fn_c_try_link "$LINENO"
18897 then :
18898 ac_cv_c_bswap32=yes
18899 else $as_nop
18900 ac_cv_c_bswap32=no
18901 fi
18902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18903 conftest$ac_exeext conftest.$ac_ext
18904 if test $ac_cv_c_bswap32 = yes; then
18905
18906 printf "%s\n" "#define HAVE_BSWAP32 1" >>confdefs.h
18907
18908 fi
18909
18910 fi
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap32" >&5
18912 printf "%s\n" "$ac_cv_c_bswap32" >&6; }
18913
18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 intrinsic" >&5
18915 printf %s "checking for bswap16 intrinsic... " >&6; }
18916 if test ${ac_cv_c_bswap16+y}
18917 then :
18918 printf %s "(cached) " >&6
18919 else $as_nop
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922
18923 int
18924 main (void)
18925 {
18926 return __builtin_bswap16 (0) ;
18927 ;
18928 return 0;
18929 }
18930 _ACEOF
18931 if ac_fn_c_try_link "$LINENO"
18932 then :
18933 ac_cv_c_bswap16=yes
18934 else $as_nop
18935 ac_cv_c_bswap16=no
18936 fi
18937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18938 conftest$ac_exeext conftest.$ac_ext
18939 if test $ac_cv_c_bswap16 = yes; then
18940
18941 printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h
18942
18943 fi
18944
18945 fi
18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bswap16" >&5
18947 printf "%s\n" "$ac_cv_c_bswap16" >&6; }
18948
18949
18950 ac_cv_c_big_endian=0
18951 ac_cv_c_little_endian=0
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18953 printf %s "checking whether byte ordering is bigendian... " >&6; }
18954 if test ${ac_cv_c_bigendian+y}
18955 then :
18956 printf %s "(cached) " >&6
18957 else $as_nop
18958 ac_cv_c_bigendian=unknown
18959 # See if we're dealing with a universal compiler.
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18962 #ifndef __APPLE_CC__
18963 not a universal capable compiler
18964 #endif
18965 typedef int dummy;
18966
18967 _ACEOF
18968 if ac_fn_c_try_compile "$LINENO"
18969 then :
18970
18971 # Check for potential -arch flags. It is not universal unless
18972 # there are at least two -arch flags with different values.
18973 ac_arch=
18974 ac_prev=
18975 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18976 if test -n "$ac_prev"; then
18977 case $ac_word in
18978 i?86 | x86_64 | ppc | ppc64)
18979 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18980 ac_arch=$ac_word
18981 else
18982 ac_cv_c_bigendian=universal
18983 break
18984 fi
18985 ;;
18986 esac
18987 ac_prev=
18988 elif test "x$ac_word" = "x-arch"; then
18989 ac_prev=arch
18990 fi
18991 done
18992 fi
18993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18994 if test $ac_cv_c_bigendian = unknown; then
18995 # See if sys/param.h defines the BYTE_ORDER macro.
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18998 #include <sys/types.h>
18999 #include <sys/param.h>
19000
19001 int
19002 main (void)
19003 {
19004 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19005 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19006 && LITTLE_ENDIAN)
19007 bogus endian macros
19008 #endif
19009
19010 ;
19011 return 0;
19012 }
19013 _ACEOF
19014 if ac_fn_c_try_compile "$LINENO"
19015 then :
19016 # It does; now see whether it defined to BIG_ENDIAN or not.
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 #include <sys/types.h>
19020 #include <sys/param.h>
19021
19022 int
19023 main (void)
19024 {
19025 #if BYTE_ORDER != BIG_ENDIAN
19026 not big endian
19027 #endif
19028
19029 ;
19030 return 0;
19031 }
19032 _ACEOF
19033 if ac_fn_c_try_compile "$LINENO"
19034 then :
19035 ac_cv_c_bigendian=yes
19036 else $as_nop
19037 ac_cv_c_bigendian=no
19038 fi
19039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19042 fi
19043 if test $ac_cv_c_bigendian = unknown; then
19044 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 #include <limits.h>
19048
19049 int
19050 main (void)
19051 {
19052 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19053 bogus endian macros
19054 #endif
19055
19056 ;
19057 return 0;
19058 }
19059 _ACEOF
19060 if ac_fn_c_try_compile "$LINENO"
19061 then :
19062 # It does; now see whether it defined to _BIG_ENDIAN or not.
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19065 #include <limits.h>
19066
19067 int
19068 main (void)
19069 {
19070 #ifndef _BIG_ENDIAN
19071 not big endian
19072 #endif
19073
19074 ;
19075 return 0;
19076 }
19077 _ACEOF
19078 if ac_fn_c_try_compile "$LINENO"
19079 then :
19080 ac_cv_c_bigendian=yes
19081 else $as_nop
19082 ac_cv_c_bigendian=no
19083 fi
19084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19085 fi
19086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19087 fi
19088 if test $ac_cv_c_bigendian = unknown; then
19089 # Compile a test program.
19090 if test "$cross_compiling" = yes
19091 then :
19092 # Try to guess by grepping values from an object file.
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19095 unsigned short int ascii_mm[] =
19096 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19097 unsigned short int ascii_ii[] =
19098 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19099 int use_ascii (int i) {
19100 return ascii_mm[i] + ascii_ii[i];
19101 }
19102 unsigned short int ebcdic_ii[] =
19103 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19104 unsigned short int ebcdic_mm[] =
19105 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19106 int use_ebcdic (int i) {
19107 return ebcdic_mm[i] + ebcdic_ii[i];
19108 }
19109 extern int foo;
19110
19111 int
19112 main (void)
19113 {
19114 return use_ascii (foo) == use_ebcdic (foo);
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 if ac_fn_c_try_compile "$LINENO"
19120 then :
19121 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19122 ac_cv_c_bigendian=yes
19123 fi
19124 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19125 if test "$ac_cv_c_bigendian" = unknown; then
19126 ac_cv_c_bigendian=no
19127 else
19128 # finding both strings is unlikely to happen, but who knows?
19129 ac_cv_c_bigendian=unknown
19130 fi
19131 fi
19132 fi
19133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19134 else $as_nop
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19137 $ac_includes_default
19138 int
19139 main (void)
19140 {
19141
19142 /* Are we little or big endian? From Harbison&Steele. */
19143 union
19144 {
19145 long int l;
19146 char c[sizeof (long int)];
19147 } u;
19148 u.l = 1;
19149 return u.c[sizeof (long int) - 1] == 1;
19150
19151 ;
19152 return 0;
19153 }
19154 _ACEOF
19155 if ac_fn_c_try_run "$LINENO"
19156 then :
19157 ac_cv_c_bigendian=no
19158 else $as_nop
19159 ac_cv_c_bigendian=yes
19160 fi
19161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19162 conftest.$ac_objext conftest.beam conftest.$ac_ext
19163 fi
19164
19165 fi
19166 fi
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19168 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
19169 case $ac_cv_c_bigendian in #(
19170 yes)
19171 ac_cv_c_big_endian=1;; #(
19172 no)
19173 ac_cv_c_little_endian=1 ;; #(
19174 universal)
19175
19176 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19177
19178 ;; #(
19179 *)
19180
19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
19182 printf "%s\n" "$as_me: WARNING: *****************************************************************" >&2;}
19183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
19184 printf "%s\n" "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
19186 printf "%s\n" "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** config.h may need to be hand editied. " >&5
19188 printf "%s\n" "$as_me: WARNING: *** config.h may need to be hand editied. " >&2;}
19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
19190 printf "%s\n" "$as_me: WARNING: *****************************************************************" >&2;}
19191 ;;
19192 esac
19193
19194
19195 printf "%s\n" "#define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}" >>confdefs.h
19196
19197
19198 printf "%s\n" "#define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}" >>confdefs.h
19199
19200
19201 printf "%s\n" "#define WORDS_BIGENDIAN ${ac_cv_c_big_endian}" >>confdefs.h
19202
19203
19204 # Check whether --enable-asm-optimizations was given.
19205 if test ${enable_asm_optimizations+y}
19206 then :
19207 enableval=$enable_asm_optimizations; asm_opt=${enableval}
19208 else $as_nop
19209 asm_opt=yes
19210 fi
19211
19212 if test "x$asm_opt" = xno; then
19213 FLaC__NO_ASM_TRUE=
19214 FLaC__NO_ASM_FALSE='#'
19215 else
19216 FLaC__NO_ASM_TRUE='#'
19217 FLaC__NO_ASM_FALSE=
19218 fi
19219
19220 if test "x$asm_opt" = xno ; then
19221 printf "%s\n" "#define FLAC__NO_ASM 1" >>confdefs.h
19222
19223
19224 fi
19225
19226 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19227 if test "x$ac_cv_func_getauxval" = xyes
19228 then :
19229 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
19230
19231 fi
19232
19233
19234 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
19235 if test "x$ac_cv_func_getopt_long" = xyes
19236 then :
19237 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19238
19239 fi
19240
19241
19242 # The cast to long int works around a bug in the HP C Compiler
19243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19245 # This bug is HP SR number 8606223364.
19246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
19247 printf %s "checking size of void*... " >&6; }
19248 if test ${ac_cv_sizeof_voidp+y}
19249 then :
19250 printf %s "(cached) " >&6
19251 else $as_nop
19252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
19253 then :
19254
19255 else $as_nop
19256 if test "$ac_cv_type_voidp" = yes; then
19257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19258 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19259 as_fn_error 77 "cannot compute sizeof (void*)
19260 See \`config.log' for more details" "$LINENO" 5; }
19261 else
19262 ac_cv_sizeof_voidp=0
19263 fi
19264 fi
19265
19266 fi
19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
19268 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
19269
19270
19271
19272 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
19273
19274
19275
19276 asm_optimisation=no
19277 case "$host_cpu" in
19278 amd64|x86_64)
19279 case "$host" in
19280 *gnux32)
19281 # x32 user space and 64 bit kernel.
19282 cpu_x86_64=true
19283 printf "%s\n" "#define FLAC__CPU_X86_64 1" >>confdefs.h
19284
19285
19286 ;;
19287 *)
19288 if test $ac_cv_sizeof_voidp = 4 ; then
19289 # This must be a 32 bit user space running on 64 bit kernel so treat
19290 # this as ia32.
19291 cpu_ia32=true
19292 printf "%s\n" "#define FLAC__CPU_IA32 1" >>confdefs.h
19293
19294
19295 else
19296 # x86_64 user space and kernel.
19297 cpu_x86_64=true
19298 printf "%s\n" "#define FLAC__CPU_X86_64 1" >>confdefs.h
19299
19300
19301 fi
19302 ;;
19303 esac
19304 ;;
19305 i*86)
19306 cpu_ia32=true
19307 printf "%s\n" "#define FLAC__CPU_IA32 1" >>confdefs.h
19308
19309
19310 ;;
19311 arm64|aarch64)
19312 cpu_arm64=true
19313 printf "%s\n" "#define FLAC__CPU_ARM64 1" >>confdefs.h
19314
19315
19316 ;;
19317 esac
19318 if test "x$cpu_x86_64" = xtrue; then
19319 FLAC__CPU_X86_64_TRUE=
19320 FLAC__CPU_X86_64_FALSE='#'
19321 else
19322 FLAC__CPU_X86_64_TRUE='#'
19323 FLAC__CPU_X86_64_FALSE=
19324 fi
19325
19326 if test "x$cpu_ia32" = xtrue; then
19327 FLaC__CPU_IA32_TRUE=
19328 FLaC__CPU_IA32_FALSE='#'
19329 else
19330 FLaC__CPU_IA32_TRUE='#'
19331 FLaC__CPU_IA32_FALSE=
19332 fi
19333
19334 if test "x$cpu_arm64" = xtrue; then
19335 FLAC__CPU_ARM64_TRUE=
19336 FLAC__CPU_ARM64_FALSE='#'
19337 else
19338 FLAC__CPU_ARM64_TRUE='#'
19339 FLAC__CPU_ARM64_FALSE=
19340 fi
19341
19342
19343 if test "x$ac_cv_header_x86intrin_h" = xyes -a "x$asm_opt" = xyes; then
19344
19345 printf "%s\n" "#define FLAC__HAS_X86INTRIN 1" >>confdefs.h
19346
19347 asm_optimisation=yes
19348 else
19349 printf "%s\n" "#define FLAC__HAS_X86INTRIN 0" >>confdefs.h
19350
19351 fi
19352
19353 if test "x$ac_cv_header_arm_neon_h" = xyes -a "x$asm_opt" = xyes; then
19354
19355 printf "%s\n" "#define FLAC__HAS_NEONINTRIN 1" >>confdefs.h
19356
19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arm_neon.h has A64 functions" >&5
19358 printf %s "checking whether arm_neon.h has A64 functions... " >&6; }
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <arm_neon.h>
19362 int
19363 main (void)
19364 {
19365 float64x2_t sum5; sum5 = vdupq_n_f64(0.0f);
19366 ;
19367 return 0;
19368 }
19369 _ACEOF
19370 if ac_fn_c_try_compile "$LINENO"
19371 then :
19372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19373 printf "%s\n" "yes" >&6; }
19374 has_a64neon=yes
19375 else $as_nop
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377 printf "%s\n" "no" >&6; }
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19380 if test "x$has_a64neon" = xyes; then
19381
19382 printf "%s\n" "#define FLAC__HAS_A64NEONINTRIN 1" >>confdefs.h
19383
19384 asm_optimisation=yes
19385 else
19386 printf "%s\n" "#define FLAC__HAS_A64NEONINTRIN 0" >>confdefs.h
19387
19388 fi
19389 else
19390 printf "%s\n" "#define FLAC__HAS_NEONINTRIN 0" >>confdefs.h
19391
19392 fi
19393
19394 case "$host" in
19395 i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;;
19396 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
19397 *-*-darwin*) OBJ_FORMAT=macho ;;
19398 *emx*) OBJ_FORMAT=aout ;;
19399 *djgpp) OBJ_FORMAT=coff ;;
19400 *) OBJ_FORMAT=elf ;;
19401 esac
19402
19403
19404 os_is_windows=no
19405 case "$host" in
19406 *mingw*)
19407 os_is_windows=yes
19408 if test -n "$ac_tool_prefix"; then
19409 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19410 set dummy ${ac_tool_prefix}windres; ac_word=$2
19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19412 printf %s "checking for $ac_word... " >&6; }
19413 if test ${ac_cv_prog_RC+y}
19414 then :
19415 printf %s "(cached) " >&6
19416 else $as_nop
19417 if test -n "$RC"; then
19418 ac_cv_prog_RC="$RC" # Let the user override the test.
19419 else
19420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19421 for as_dir in $PATH
19422 do
19423 IFS=$as_save_IFS
19424 case $as_dir in #(((
19425 '') as_dir=./ ;;
19426 */) ;;
19427 *) as_dir=$as_dir/ ;;
19428 esac
19429 for ac_exec_ext in '' $ac_executable_extensions; do
19430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19431 ac_cv_prog_RC="${ac_tool_prefix}windres"
19432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19433 break 2
19434 fi
19435 done
19436 done
19437 IFS=$as_save_IFS
19438
19439 fi
19440 fi
19441 RC=$ac_cv_prog_RC
19442 if test -n "$RC"; then
19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
19444 printf "%s\n" "$RC" >&6; }
19445 else
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19447 printf "%s\n" "no" >&6; }
19448 fi
19449
19450
19451 fi
19452 if test -z "$ac_cv_prog_RC"; then
19453 ac_ct_RC=$RC
19454 # Extract the first word of "windres", so it can be a program name with args.
19455 set dummy windres; ac_word=$2
19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19457 printf %s "checking for $ac_word... " >&6; }
19458 if test ${ac_cv_prog_ac_ct_RC+y}
19459 then :
19460 printf %s "(cached) " >&6
19461 else $as_nop
19462 if test -n "$ac_ct_RC"; then
19463 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
19464 else
19465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19466 for as_dir in $PATH
19467 do
19468 IFS=$as_save_IFS
19469 case $as_dir in #(((
19470 '') as_dir=./ ;;
19471 */) ;;
19472 *) as_dir=$as_dir/ ;;
19473 esac
19474 for ac_exec_ext in '' $ac_executable_extensions; do
19475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19476 ac_cv_prog_ac_ct_RC="windres"
19477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19478 break 2
19479 fi
19480 done
19481 done
19482 IFS=$as_save_IFS
19483
19484 fi
19485 fi
19486 ac_ct_RC=$ac_cv_prog_ac_ct_RC
19487 if test -n "$ac_ct_RC"; then
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
19489 printf "%s\n" "$ac_ct_RC" >&6; }
19490 else
19491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 printf "%s\n" "no" >&6; }
19493 fi
19494
19495 if test "x$ac_ct_RC" = x; then
19496 RC=":"
19497 else
19498 case $cross_compiling:$ac_tool_warned in
19499 yes:)
19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19501 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19502 ac_tool_warned=yes ;;
19503 esac
19504 RC=$ac_ct_RC
19505 fi
19506 else
19507 RC="$ac_cv_prog_RC"
19508 fi
19509
19510 ;;
19511 esac
19512
19513 if test "x$os_is_windows" = xyes; then
19514 OS_IS_WINDOWS_TRUE=
19515 OS_IS_WINDOWS_FALSE='#'
19516 else
19517 OS_IS_WINDOWS_TRUE='#'
19518 OS_IS_WINDOWS_FALSE=
19519 fi
19520
19521 if test "x$RC" != "x:"; then
19522 HAVE_WINDRES_TRUE=
19523 HAVE_WINDRES_FALSE='#'
19524 else
19525 HAVE_WINDRES_TRUE='#'
19526 HAVE_WINDRES_FALSE=
19527 fi
19528
19529
19530 case "$host" in
19531 *-linux-*)
19532 sys_linux=true
19533 printf "%s\n" "#define FLAC__SYS_LINUX 1" >>confdefs.h
19534
19535
19536 ;;
19537 *-*-darwin*)
19538 sys_darwin=true
19539 printf "%s\n" "#define FLAC__SYS_DARWIN 1" >>confdefs.h
19540
19541
19542 ;;
19543 esac
19544 if test "x$sys_darwin" = xtrue; then
19545 FLaC__SYS_DARWIN_TRUE=
19546 FLaC__SYS_DARWIN_FALSE='#'
19547 else
19548 FLaC__SYS_DARWIN_TRUE='#'
19549 FLaC__SYS_DARWIN_FALSE=
19550 fi
19551
19552 if test "x$sys_linux" = xtrue; then
19553 FLaC__SYS_LINUX_TRUE=
19554 FLaC__SYS_LINUX_FALSE='#'
19555 else
19556 FLaC__SYS_LINUX_TRUE='#'
19557 FLaC__SYS_LINUX_FALSE=
19558 fi
19559
19560
19561 if test "x$cpu_ia32" = xtrue || test "x$cpu_x86_64" = xtrue ; then
19562 printf "%s\n" "#define FLAC__ALIGN_MALLOC_DATA 1" >>confdefs.h
19563
19564
19565 fi
19566
19567 if test "x${ax_enable_debug}" = "xyes" || test "x${ax_enable_debug}" = "xinfo"; then
19568 DEBUG_TRUE=
19569 DEBUG_FALSE='#'
19570 else
19571 DEBUG_TRUE='#'
19572 DEBUG_FALSE=
19573 fi
19574
19575
19576 # Check whether --enable-avx was given.
19577 if test ${enable_avx+y}
19578 then :
19579 enableval=$enable_avx; case "${enableval}" in
19580 yes) use_avx=true ;;
19581 no) use_avx=false ;;
19582 *) as_fn_error $? "bad value ${enableval} for --enable-avx" "$LINENO" 5 ;;
19583 esac
19584 else $as_nop
19585 use_avx=true
19586 fi
19587
19588 if test "x$use_avx" = xtrue; then
19589 FLaC__USE_AVX_TRUE=
19590 FLaC__USE_AVX_FALSE='#'
19591 else
19592 FLaC__USE_AVX_TRUE='#'
19593 FLaC__USE_AVX_FALSE=
19594 fi
19595
19596 if test "x$use_avx" = xtrue ; then
19597 printf "%s\n" "#define FLAC__USE_AVX 1" >>confdefs.h
19598
19599
19600 fi
19601
19602 # Check whether --enable-thorough-tests was given.
19603 if test ${enable_thorough_tests+y}
19604 then :
19605 enableval=$enable_thorough_tests; case "${enableval}" in
19606 yes) thorough_tests=true ;;
19607 no) thorough_tests=false ;;
19608 *) as_fn_error $? "bad value ${enableval} for --enable-thorough-tests" "$LINENO" 5 ;;
19609 esac
19610 else $as_nop
19611 thorough_tests=true
19612 fi
19613
19614 # Check whether --enable-exhaustive-tests was given.
19615 if test ${enable_exhaustive_tests+y}
19616 then :
19617 enableval=$enable_exhaustive_tests; case "${enableval}" in
19618 yes) exhaustive_tests=true ;;
19619 no) exhaustive_tests=false ;;
19620 *) as_fn_error $? "bad value ${enableval} for --enable-exhaustive-tests" "$LINENO" 5 ;;
19621 esac
19622 else $as_nop
19623 exhaustive_tests=false
19624 fi
19625
19626 if test "x$thorough_tests" = xfalse ; then
19627 FLAC__TEST_LEVEL=0
19628 elif test "x$exhaustive_tests" = xfalse ; then
19629 FLAC__TEST_LEVEL=1
19630 else
19631 FLAC__TEST_LEVEL=2
19632 fi
19633
19634
19635 # Check whether --enable-werror was given.
19636 if test ${enable_werror+y}
19637 then :
19638 enableval=$enable_werror;
19639 fi
19640
19641
19642 # Check whether --enable-stack-smash-protection was given.
19643 if test ${enable_stack_smash_protection+y}
19644 then :
19645 enableval=$enable_stack_smash_protection;
19646 else $as_nop
19647 if test "$ac_cv_c_compiler_gnu" = "yes"
19648 then :
19649 enable_stack_smash_protection=yes
19650 else $as_nop
19651 enable_stack_smash_protection=no
19652 fi
19653 fi
19654
19655
19656 # Check whether --enable-fortify-source was given.
19657 if test ${enable_fortify_source+y}
19658 then :
19659 enableval=$enable_fortify_source;
19660 else $as_nop
19661 if test "$ac_cv_c_compiler_gnu" = "yes"
19662 then :
19663 enable_fortify_source=yes
19664 else $as_nop
19665 enable_fortify_source=no
19666 fi
19667 fi
19668
19669
19670 case "$host" in
19671 *mingw*)
19672 if test "$enable_fortify_source" = "yes"; then
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __memset_chk" >&5
19674 printf %s "checking for library containing __memset_chk... " >&6; }
19675 if test ${ac_cv_search___memset_chk+y}
19676 then :
19677 printf %s "(cached) " >&6
19678 else $as_nop
19679 ac_func_search_save_LIBS=$LIBS
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19686 char __memset_chk ();
19687 int
19688 main (void)
19689 {
19690 return __memset_chk ();
19691 ;
19692 return 0;
19693 }
19694 _ACEOF
19695 for ac_lib in '' ssp
19696 do
19697 if test -z "$ac_lib"; then
19698 ac_res="none required"
19699 else
19700 ac_res=-l$ac_lib
19701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19702 fi
19703 if ac_fn_c_try_link "$LINENO"
19704 then :
19705 ac_cv_search___memset_chk=$ac_res
19706 fi
19707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19708 conftest$ac_exeext
19709 if test ${ac_cv_search___memset_chk+y}
19710 then :
19711 break
19712 fi
19713 done
19714 if test ${ac_cv_search___memset_chk+y}
19715 then :
19716
19717 else $as_nop
19718 ac_cv_search___memset_chk=no
19719 fi
19720 rm conftest.$ac_ext
19721 LIBS=$ac_func_search_save_LIBS
19722 fi
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___memset_chk" >&5
19724 printf "%s\n" "$ac_cv_search___memset_chk" >&6; }
19725 ac_res=$ac_cv_search___memset_chk
19726 if test "$ac_res" != no
19727 then :
19728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19729
19730 else $as_nop
19731 mingw_has_memset_chk=no
19732 fi
19733
19734 fi
19735 if test "$enable_stack_smash_protection" = "yes"; then
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __stack_chk_fail" >&5
19737 printf %s "checking for library containing __stack_chk_fail... " >&6; }
19738 if test ${ac_cv_search___stack_chk_fail+y}
19739 then :
19740 printf %s "(cached) " >&6
19741 else $as_nop
19742 ac_func_search_save_LIBS=$LIBS
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19749 char __stack_chk_fail ();
19750 int
19751 main (void)
19752 {
19753 return __stack_chk_fail ();
19754 ;
19755 return 0;
19756 }
19757 _ACEOF
19758 for ac_lib in '' ssp
19759 do
19760 if test -z "$ac_lib"; then
19761 ac_res="none required"
19762 else
19763 ac_res=-l$ac_lib
19764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19765 fi
19766 if ac_fn_c_try_link "$LINENO"
19767 then :
19768 ac_cv_search___stack_chk_fail=$ac_res
19769 fi
19770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19771 conftest$ac_exeext
19772 if test ${ac_cv_search___stack_chk_fail+y}
19773 then :
19774 break
19775 fi
19776 done
19777 if test ${ac_cv_search___stack_chk_fail+y}
19778 then :
19779
19780 else $as_nop
19781 ac_cv_search___stack_chk_fail=no
19782 fi
19783 rm conftest.$ac_ext
19784 LIBS=$ac_func_search_save_LIBS
19785 fi
19786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___stack_chk_fail" >&5
19787 printf "%s\n" "$ac_cv_search___stack_chk_fail" >&6; }
19788 ac_res=$ac_cv_search___stack_chk_fail
19789 if test "$ac_res" != no
19790 then :
19791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19792
19793 else $as_nop
19794 mingw_has_stack_chk_fail=no
19795 fi
19796
19797 fi
19798 ;;
19799 esac
19800
19801
19802 # Check whether --enable-64-bit-words was given.
19803 if test ${enable_64_bit_words+y}
19804 then :
19805 enableval=$enable_64_bit_words;
19806 fi
19807
19808 if test "x$enable_64_bit_words" = xno ; then
19809
19810 printf "%s\n" "#define ENABLE_64_BIT_WORDS 0" >>confdefs.h
19811
19812 else
19813 printf "%s\n" "#define ENABLE_64_BIT_WORDS 1" >>confdefs.h
19814
19815 fi
19816
19817
19818 # Check whether --enable-valgrind-testing was given.
19819 if test ${enable_valgrind_testing+y}
19820 then :
19821 enableval=$enable_valgrind_testing; case "${enableval}" in
19822 yes) FLAC__TEST_WITH_VALGRIND=yes ;;
19823 no) FLAC__TEST_WITH_VALGRIND=no ;;
19824 *) as_fn_error $? "bad value ${enableval} for --enable-valgrind-testing" "$LINENO" 5 ;;
19825 esac
19826 else $as_nop
19827 FLAC__TEST_WITH_VALGRIND=no
19828 fi
19829
19830
19831
19832 # Check whether --enable-doxygen-docs was given.
19833 if test ${enable_doxygen_docs+y}
19834 then :
19835 enableval=$enable_doxygen_docs; case "${enableval}" in
19836 yes) enable_doxygen_docs=true ;;
19837 no) enable_doxygen_docs=false ;;
19838 *) as_fn_error $? "bad value ${enableval} for --enable-doxygen-docs" "$LINENO" 5 ;;
19839 esac
19840 else $as_nop
19841 enable_doxygen_docs=true
19842 fi
19843
19844 if test "x$enable_doxygen_docs" != xfalse ; then
19845 for ac_prog in doxygen
19846 do
19847 # Extract the first word of "$ac_prog", so it can be a program name with args.
19848 set dummy $ac_prog; ac_word=$2
19849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19850 printf %s "checking for $ac_word... " >&6; }
19851 if test ${ac_cv_prog_DOXYGEN+y}
19852 then :
19853 printf %s "(cached) " >&6
19854 else $as_nop
19855 if test -n "$DOXYGEN"; then
19856 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19857 else
19858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19859 for as_dir in $PATH
19860 do
19861 IFS=$as_save_IFS
19862 case $as_dir in #(((
19863 '') as_dir=./ ;;
19864 */) ;;
19865 *) as_dir=$as_dir/ ;;
19866 esac
19867 for ac_exec_ext in '' $ac_executable_extensions; do
19868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19869 ac_cv_prog_DOXYGEN="$ac_prog"
19870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19871 break 2
19872 fi
19873 done
19874 done
19875 IFS=$as_save_IFS
19876
19877 fi
19878 fi
19879 DOXYGEN=$ac_cv_prog_DOXYGEN
19880 if test -n "$DOXYGEN"; then
19881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19882 printf "%s\n" "$DOXYGEN" >&6; }
19883 else
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19885 printf "%s\n" "no" >&6; }
19886 fi
19887
19888
19889 test -n "$DOXYGEN" && break
19890 done
19891
19892 fi
19893 if test -n "$DOXYGEN"; then
19894 FLaC__HAS_DOXYGEN_TRUE=
19895 FLaC__HAS_DOXYGEN_FALSE='#'
19896 else
19897 FLaC__HAS_DOXYGEN_TRUE='#'
19898 FLaC__HAS_DOXYGEN_FALSE=
19899 fi
19900
19901
19902 if test ! -n "$DOXYGEN" && test -f "$srcdir/doc/FLAC.tag" && test -f "$srcdir/doc/api/modules.html" ; then
19903 HAS_PREBUILT_DOXYGEN=yes
19904 fi
19905 if test "x$HAS_PREBUILT_DOXYGEN" = xyes; then
19906 FLaC__HAS_PREBUILT_DOXYGEN_TRUE=
19907 FLaC__HAS_PREBUILT_DOXYGEN_FALSE='#'
19908 else
19909 FLaC__HAS_PREBUILT_DOXYGEN_TRUE='#'
19910 FLaC__HAS_PREBUILT_DOXYGEN_FALSE=
19911 fi
19912
19913
19914 # Check whether --enable-cpplibs was given.
19915 if test ${enable_cpplibs+y}
19916 then :
19917 enableval=$enable_cpplibs; case "${enableval}" in
19918 yes) disable_cpplibs=false ;;
19919 no) disable_cpplibs=true ;;
19920 *) as_fn_error $? "bad value ${enableval} for --enable-cpplibs" "$LINENO" 5 ;;
19921 esac
19922 else $as_nop
19923 disable_cpplibs=false
19924 fi
19925
19926 if test "x$disable_cpplibs" != xtrue; then
19927 FLaC__WITH_CPPLIBS_TRUE=
19928 FLaC__WITH_CPPLIBS_FALSE='#'
19929 else
19930 FLaC__WITH_CPPLIBS_TRUE='#'
19931 FLaC__WITH_CPPLIBS_FALSE=
19932 fi
19933
19934
19935 # Check whether --enable-oss-fuzzers was given.
19936 if test ${enable_oss_fuzzers+y}
19937 then :
19938 enableval=$enable_oss_fuzzers; have_oss_fuzzers=yes
19939 else $as_nop
19940 have_oss_fuzzers=no
19941 fi
19942
19943
19944 if test "x$have_oss_fuzzers" = "xyes"; then
19945 if test "x$xiph_cv_c_compiler_clang" = "xyes" ; then
19946 if test "x$have_oss_fuzzers" = "xyes"; then
19947 USE_OSSFUZZERS_TRUE=
19948 USE_OSSFUZZERS_FALSE='#'
19949 else
19950 USE_OSSFUZZERS_TRUE='#'
19951 USE_OSSFUZZERS_FALSE=
19952 fi
19953
19954 if test "x$LIB_FUZZING_ENGINE" = "x" ; then
19955 # Only set this if it is empty.
19956 LIB_FUZZING_ENGINE=-fsanitize=fuzzer
19957 fi
19958 else
19959 if test "false" = "true"; then
19960 USE_OSSFUZZERS_TRUE=
19961 USE_OSSFUZZERS_FALSE='#'
19962 else
19963 USE_OSSFUZZERS_TRUE='#'
19964 USE_OSSFUZZERS_FALSE=
19965 fi
19966
19967 # Disable fuzzer if the compiler is not Clang.
19968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Ozz-Fuzz is disabled because that requires the Clang compiler." >&5
19969 printf "%s\n" "$as_me: WARNING: *** Ozz-Fuzz is disabled because that requires the Clang compiler." >&2;}
19970 have_oss_fuzzers="no (compiler is not Clang)"
19971 fi
19972 else
19973 if test "false" = "true"; then
19974 USE_OSSFUZZERS_TRUE=
19975 USE_OSSFUZZERS_FALSE='#'
19976 else
19977 USE_OSSFUZZERS_TRUE='#'
19978 USE_OSSFUZZERS_FALSE=
19979 fi
19980
19981 fi
19982
19983
19984
19985 # Check whether --enable-ogg was given.
19986 if test ${enable_ogg+y}
19987 then :
19988 enableval=$enable_ogg; want_ogg=$enableval
19989 else $as_nop
19990 want_ogg=yes
19991 fi
19992
19993
19994 if test "x$want_ogg" != "xno"; then
19995
19996 # Check whether --with-ogg was given.
19997 if test ${with_ogg+y}
19998 then :
19999 withval=$with_ogg; ogg_prefix="$withval"
20000 else $as_nop
20001 ogg_prefix=""
20002 fi
20003
20004
20005 # Check whether --with-ogg-libraries was given.
20006 if test ${with_ogg_libraries+y}
20007 then :
20008 withval=$with_ogg_libraries; ogg_libraries="$withval"
20009 else $as_nop
20010 ogg_libraries=""
20011 fi
20012
20013
20014 # Check whether --with-ogg-includes was given.
20015 if test ${with_ogg_includes+y}
20016 then :
20017 withval=$with_ogg_includes; ogg_includes="$withval"
20018 else $as_nop
20019 ogg_includes=""
20020 fi
20021
20022 # Check whether --enable-oggtest was given.
20023 if test ${enable_oggtest+y}
20024 then :
20025 enableval=$enable_oggtest;
20026 else $as_nop
20027 enable_oggtest=yes
20028 fi
20029
20030
20031 if test "x$ogg_libraries" != "x" ; then
20032 OGG_LIBS="-L$ogg_libraries"
20033 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
20034 OGG_LIBS=""
20035 elif test "x$ogg_prefix" != "x" ; then
20036 OGG_LIBS="-L$ogg_prefix/lib"
20037 elif test "x$prefix" != "xNONE" ; then
20038 OGG_LIBS="-L$prefix/lib"
20039 fi
20040
20041 if test "x$ogg_prefix" != "xno" ; then
20042 OGG_LIBS="$OGG_LIBS -logg"
20043 fi
20044
20045 if test "x$ogg_includes" != "x" ; then
20046 OGG_CFLAGS="-I$ogg_includes"
20047 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
20048 OGG_CFLAGS=""
20049 elif test "x$ogg_prefix" != "x" ; then
20050 OGG_CFLAGS="-I$ogg_prefix/include"
20051 elif test "x$prefix" != "xNONE"; then
20052 OGG_CFLAGS="-I$prefix/include"
20053 fi
20054
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
20056 printf %s "checking for Ogg... " >&6; }
20057 if test "x$ogg_prefix" = "xno" ; then
20058 no_ogg="disabled"
20059 enable_oggtest="no"
20060 else
20061 no_ogg=""
20062 fi
20063
20064
20065 if test "x$enable_oggtest" = "xyes" ; then
20066 ac_save_CFLAGS="$CFLAGS"
20067 ac_save_LIBS="$LIBS"
20068 CFLAGS="$CFLAGS $OGG_CFLAGS"
20069 LIBS="$LIBS $OGG_LIBS"
20070 rm -f conf.oggtest
20071 if test "$cross_compiling" = yes
20072 then :
20073 echo $ac_n "cross compiling; assumed OK... $ac_c"
20074 else $as_nop
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077
20078 #include <stdio.h>
20079 #include <stdlib.h>
20080 #include <string.h>
20081 #include <ogg/ogg.h>
20082
20083 int main ()
20084 {
20085 system("touch conf.oggtest");
20086 return 0;
20087 }
20088
20089
20090 _ACEOF
20091 if ac_fn_c_try_run "$LINENO"
20092 then :
20093
20094 else $as_nop
20095 no_ogg=yes
20096 fi
20097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20098 conftest.$ac_objext conftest.beam conftest.$ac_ext
20099 fi
20100
20101 CFLAGS="$ac_save_CFLAGS"
20102 LIBS="$ac_save_LIBS"
20103 fi
20104
20105 if test "x$no_ogg" = "xdisabled" ; then
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20107 printf "%s\n" "no" >&6; }
20108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development environment not installed - Ogg support will not be built" >&5
20109 printf "%s\n" "$as_me: WARNING: *** Ogg development environment not installed - Ogg support will not be built" >&2;}
20110 elif test "x$no_ogg" = "x" ; then
20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20112 printf "%s\n" "yes" >&6; }
20113 have_ogg=yes
20114 else
20115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20116 printf "%s\n" "no" >&6; }
20117 if test -f conf.oggtest ; then
20118 :
20119 else
20120 echo "*** Could not run Ogg test program, checking why..."
20121 CFLAGS="$CFLAGS $OGG_CFLAGS"
20122 LIBS="$LIBS $OGG_LIBS"
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20125
20126 #include <stdio.h>
20127 #include <ogg/ogg.h>
20128
20129 int
20130 main (void)
20131 {
20132 return 0;
20133 ;
20134 return 0;
20135 }
20136 _ACEOF
20137 if ac_fn_c_try_link "$LINENO"
20138 then :
20139 echo "*** The test program compiled, but did not run. This usually means"
20140 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
20141 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
20142 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20143 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20144 echo "*** is required on your system"
20145 echo "***"
20146 echo "*** If you have an old version installed, it is best to remove it, although"
20147 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20148 else $as_nop
20149 echo "*** The test program failed to compile or link. See the file config.log for the"
20150 echo "*** exact error that occurred. This usually means Ogg was incorrectly installed"
20151 echo "*** or that you have moved Ogg since it was installed."
20152 fi
20153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20154 conftest$ac_exeext conftest.$ac_ext
20155 CFLAGS="$ac_save_CFLAGS"
20156 LIBS="$ac_save_LIBS"
20157 fi
20158 OGG_CFLAGS=""
20159 OGG_LIBS=""
20160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Ogg development environment not installed - Ogg support will not be built" >&5
20161 printf "%s\n" "$as_me: WARNING: *** Ogg development environment not installed - Ogg support will not be built" >&2;}
20162 fi
20163
20164
20165 rm -f conf.oggtest
20166
20167 fi
20168
20169 FLAC__HAS_OGG=0
20170 if test "x$have_ogg" = xyes; then
20171 FLaC__HAS_OGG_TRUE=
20172 FLaC__HAS_OGG_FALSE='#'
20173 else
20174 FLaC__HAS_OGG_TRUE='#'
20175 FLaC__HAS_OGG_FALSE=
20176 fi
20177
20178 if test "x$have_ogg" = xyes ; then
20179 FLAC__HAS_OGG=1
20180 OGG_PACKAGE="ogg"
20181 else
20182 have_ogg=no
20183 fi
20184
20185 printf "%s\n" "#define FLAC__HAS_OGG $FLAC__HAS_OGG" >>confdefs.h
20186
20187
20188
20189
20190 # Check whether --enable-programs was given.
20191 if test ${enable_programs+y}
20192 then :
20193 enableval=$enable_programs;
20194 fi
20195
20196 if test "x$enable_programs" != "xno"; then
20197 FLaC__WITH_PROGRAMS_TRUE=
20198 FLaC__WITH_PROGRAMS_FALSE='#'
20199 else
20200 FLaC__WITH_PROGRAMS_TRUE='#'
20201 FLaC__WITH_PROGRAMS_FALSE=
20202 fi
20203
20204
20205 # Check whether --enable-examples was given.
20206 if test ${enable_examples+y}
20207 then :
20208 enableval=$enable_examples;
20209 fi
20210
20211 if test "x$enable_examples" != "xno"; then
20212 EXAMPLES_TRUE=
20213 EXAMPLES_FALSE='#'
20214 else
20215 EXAMPLES_TRUE='#'
20216 EXAMPLES_FALSE=
20217 fi
20218
20219
20220 # Check whether --enable-version-from-git was given.
20221 if test ${enable_version_from_git+y}
20222 then :
20223 enableval=$enable_version_from_git; enable_version_from_git=$enableval
20224 else $as_nop
20225 enable_version_from_git=yes
20226 fi
20227
20228
20229 # Check whether --enable-multithreading was given.
20230 if test ${enable_multithreading+y}
20231 then :
20232 enableval=$enable_multithreading;
20233 fi
20234
20235
20236 HAVE_PTHREAD=no
20237 if test "x$enable_multithreading" != "xno" ; then
20238 ac_ext=c
20239 ac_cpp='$CPP $CPPFLAGS'
20240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20244 printf %s "checking how to run the C preprocessor... " >&6; }
20245 # On Suns, sometimes $CPP names a directory.
20246 if test -n "$CPP" && test -d "$CPP"; then
20247 CPP=
20248 fi
20249 if test -z "$CPP"; then
20250 if test ${ac_cv_prog_CPP+y}
20251 then :
20252 printf %s "(cached) " >&6
20253 else $as_nop
20254 # Double quotes because $CC needs to be expanded
20255 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20256 do
20257 ac_preproc_ok=false
20258 for ac_c_preproc_warn_flag in '' yes
20259 do
20260 # Use a header file that comes with gcc, so configuring glibc
20261 # with a fresh cross-compiler works.
20262 # On the NeXT, cc -E runs the code through the compiler's parser,
20263 # not just through cpp. "Syntax error" is here to catch this case.
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266 #include <limits.h>
20267 Syntax error
20268 _ACEOF
20269 if ac_fn_c_try_cpp "$LINENO"
20270 then :
20271
20272 else $as_nop
20273 # Broken: fails on valid input.
20274 continue
20275 fi
20276 rm -f conftest.err conftest.i conftest.$ac_ext
20277
20278 # OK, works on sane cases. Now check whether nonexistent headers
20279 # can be detected and how.
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20282 #include <ac_nonexistent.h>
20283 _ACEOF
20284 if ac_fn_c_try_cpp "$LINENO"
20285 then :
20286 # Broken: success on invalid input.
20287 continue
20288 else $as_nop
20289 # Passes both tests.
20290 ac_preproc_ok=:
20291 break
20292 fi
20293 rm -f conftest.err conftest.i conftest.$ac_ext
20294
20295 done
20296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20297 rm -f conftest.i conftest.err conftest.$ac_ext
20298 if $ac_preproc_ok
20299 then :
20300 break
20301 fi
20302
20303 done
20304 ac_cv_prog_CPP=$CPP
20305
20306 fi
20307 CPP=$ac_cv_prog_CPP
20308 else
20309 ac_cv_prog_CPP=$CPP
20310 fi
20311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20312 printf "%s\n" "$CPP" >&6; }
20313 ac_preproc_ok=false
20314 for ac_c_preproc_warn_flag in '' yes
20315 do
20316 # Use a header file that comes with gcc, so configuring glibc
20317 # with a fresh cross-compiler works.
20318 # On the NeXT, cc -E runs the code through the compiler's parser,
20319 # not just through cpp. "Syntax error" is here to catch this case.
20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h. */
20322 #include <limits.h>
20323 Syntax error
20324 _ACEOF
20325 if ac_fn_c_try_cpp "$LINENO"
20326 then :
20327
20328 else $as_nop
20329 # Broken: fails on valid input.
20330 continue
20331 fi
20332 rm -f conftest.err conftest.i conftest.$ac_ext
20333
20334 # OK, works on sane cases. Now check whether nonexistent headers
20335 # can be detected and how.
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20338 #include <ac_nonexistent.h>
20339 _ACEOF
20340 if ac_fn_c_try_cpp "$LINENO"
20341 then :
20342 # Broken: success on invalid input.
20343 continue
20344 else $as_nop
20345 # Passes both tests.
20346 ac_preproc_ok=:
20347 break
20348 fi
20349 rm -f conftest.err conftest.i conftest.$ac_ext
20350
20351 done
20352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20353 rm -f conftest.i conftest.err conftest.$ac_ext
20354 if $ac_preproc_ok
20355 then :
20356
20357 else $as_nop
20358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20359 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20360 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20361 See \`config.log' for more details" "$LINENO" 5; }
20362 fi
20363
20364 ac_ext=c
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370
20371
20372
20373
20374
20375 ac_ext=c
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380
20381 ax_pthread_ok=no
20382
20383 # We used to check for pthread.h first, but this fails if pthread.h
20384 # requires special compiler flags (e.g. on Tru64 or Sequent).
20385 # It gets checked for in the link test anyway.
20386
20387 # First of all, check if the user has set any of the PTHREAD_LIBS,
20388 # etcetera environment variables, and if threads linking works using
20389 # them:
20390 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
20391 ax_pthread_save_CC="$CC"
20392 ax_pthread_save_CFLAGS="$CFLAGS"
20393 ax_pthread_save_LIBS="$LIBS"
20394 if test "x$PTHREAD_CC" != "x"
20395 then :
20396 CC="$PTHREAD_CC"
20397 fi
20398 if test "x$PTHREAD_CXX" != "x"
20399 then :
20400 CXX="$PTHREAD_CXX"
20401 fi
20402 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20403 LIBS="$PTHREAD_LIBS $LIBS"
20404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
20405 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412 char pthread_join ();
20413 int
20414 main (void)
20415 {
20416 return pthread_join ();
20417 ;
20418 return 0;
20419 }
20420 _ACEOF
20421 if ac_fn_c_try_link "$LINENO"
20422 then :
20423 ax_pthread_ok=yes
20424 fi
20425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20426 conftest$ac_exeext conftest.$ac_ext
20427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20428 printf "%s\n" "$ax_pthread_ok" >&6; }
20429 if test "x$ax_pthread_ok" = "xno"; then
20430 PTHREAD_LIBS=""
20431 PTHREAD_CFLAGS=""
20432 fi
20433 CC="$ax_pthread_save_CC"
20434 CFLAGS="$ax_pthread_save_CFLAGS"
20435 LIBS="$ax_pthread_save_LIBS"
20436 fi
20437
20438 # We must check for the threads library under a number of different
20439 # names; the ordering is very important because some systems
20440 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20441 # libraries is broken (non-POSIX).
20442
20443 # Create a list of thread flags to try. Items with a "," contain both
20444 # C compiler flags (before ",") and linker flags (after ","). Other items
20445 # starting with a "-" are C compiler flags, and remaining items are
20446 # library names, except for "none" which indicates that we try without
20447 # any flags at all, and "pthread-config" which is a program returning
20448 # the flags for the Pth emulation library.
20449
20450 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20451
20452 # The ordering *is* (sometimes) important. Some notes on the
20453 # individual items follow:
20454
20455 # pthreads: AIX (must check this before -lpthread)
20456 # none: in case threads are in libc; should be tried before -Kthread and
20457 # other compiler flags to prevent continual compiler warnings
20458 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20459 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20460 # (Note: HP C rejects this with "bad form for `-t' option")
20461 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20462 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20463 # doesn't hurt to check since this sometimes defines pthreads and
20464 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20465 # is present but should not be used directly; and before -mthreads,
20466 # because the compiler interprets this as "-mt" + "-hreads")
20467 # -mthreads: Mingw32/gcc, Lynx/gcc
20468 # pthread: Linux, etcetera
20469 # --thread-safe: KAI C++
20470 # pthread-config: use pthread-config program (for GNU Pth library)
20471
20472 case $host_os in
20473
20474 freebsd*)
20475
20476 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20477 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20478
20479 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20480 ;;
20481
20482 hpux*)
20483
20484 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20485 # multi-threading and also sets -lpthread."
20486
20487 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20488 ;;
20489
20490 openedition*)
20491
20492 # IBM z/OS requires a feature-test macro to be defined in order to
20493 # enable POSIX threads at all, so give the user a hint if this is
20494 # not set. (We don't define these ourselves, as they can affect
20495 # other portions of the system API in unpredictable ways.)
20496
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499
20500 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20501 AX_PTHREAD_ZOS_MISSING
20502 # endif
20503
20504 _ACEOF
20505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20506 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
20507 then :
20508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20509 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20510 fi
20511 rm -rf conftest*
20512
20513 ;;
20514
20515 solaris*)
20516
20517 # On Solaris (at least, for some versions), libc contains stubbed
20518 # (non-functional) versions of the pthreads routines, so link-based
20519 # tests will erroneously succeed. (N.B.: The stubs are missing
20520 # pthread_cleanup_push, or rather a function called by this macro,
20521 # so we could check for that, but who knows whether they'll stub
20522 # that too in a future libc.) So we'll check first for the
20523 # standard Solaris way of linking pthreads (-mt -lpthread).
20524
20525 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
20526 ;;
20527 esac
20528
20529 # Are we compiling with Clang?
20530
20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20532 printf %s "checking whether $CC is Clang... " >&6; }
20533 if test ${ax_cv_PTHREAD_CLANG+y}
20534 then :
20535 printf %s "(cached) " >&6
20536 else $as_nop
20537 ax_cv_PTHREAD_CLANG=no
20538 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20539 if test "x$GCC" = "xyes"; then
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h. */
20542 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20543 # if defined(__clang__) && defined(__llvm__)
20544 AX_PTHREAD_CC_IS_CLANG
20545 # endif
20546
20547 _ACEOF
20548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20549 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
20550 then :
20551 ax_cv_PTHREAD_CLANG=yes
20552 fi
20553 rm -rf conftest*
20554
20555 fi
20556
20557 fi
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20559 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
20560 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20561
20562
20563 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20564
20565 # Note that for GCC and Clang -pthread generally implies -lpthread,
20566 # except when -nostdlib is passed.
20567 # This is problematic using libtool to build C++ shared libraries with pthread:
20568 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
20569 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
20570 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
20571 # To solve this, first try -pthread together with -lpthread for GCC
20572
20573 if test "x$GCC" = "xyes"
20574 then :
20575 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
20576 fi
20577
20578 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
20579
20580 if test "x$ax_pthread_clang" = "xyes"
20581 then :
20582 ax_pthread_flags="-pthread,-lpthread -pthread"
20583 fi
20584
20585
20586 # The presence of a feature test macro requesting re-entrant function
20587 # definitions is, on some systems, a strong hint that pthreads support is
20588 # correctly enabled
20589
20590 case $host_os in
20591 darwin* | hpux* | linux* | osf* | solaris*)
20592 ax_pthread_check_macro="_REENTRANT"
20593 ;;
20594
20595 aix*)
20596 ax_pthread_check_macro="_THREAD_SAFE"
20597 ;;
20598
20599 *)
20600 ax_pthread_check_macro="--"
20601 ;;
20602 esac
20603 if test "x$ax_pthread_check_macro" = "x--"
20604 then :
20605 ax_pthread_check_cond=0
20606 else $as_nop
20607 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20608 fi
20609
20610
20611 if test "x$ax_pthread_ok" = "xno"; then
20612 for ax_pthread_try_flag in $ax_pthread_flags; do
20613
20614 case $ax_pthread_try_flag in
20615 none)
20616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20617 printf %s "checking whether pthreads work without any flags... " >&6; }
20618 ;;
20619
20620 *,*)
20621 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
20622 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
20623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
20624 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
20625 ;;
20626
20627 -*)
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20629 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20630 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20631 ;;
20632
20633 pthread-config)
20634 # Extract the first word of "pthread-config", so it can be a program name with args.
20635 set dummy pthread-config; ac_word=$2
20636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20637 printf %s "checking for $ac_word... " >&6; }
20638 if test ${ac_cv_prog_ax_pthread_config+y}
20639 then :
20640 printf %s "(cached) " >&6
20641 else $as_nop
20642 if test -n "$ax_pthread_config"; then
20643 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20644 else
20645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20646 for as_dir in $PATH
20647 do
20648 IFS=$as_save_IFS
20649 case $as_dir in #(((
20650 '') as_dir=./ ;;
20651 */) ;;
20652 *) as_dir=$as_dir/ ;;
20653 esac
20654 for ac_exec_ext in '' $ac_executable_extensions; do
20655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20656 ac_cv_prog_ax_pthread_config="yes"
20657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20658 break 2
20659 fi
20660 done
20661 done
20662 IFS=$as_save_IFS
20663
20664 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20665 fi
20666 fi
20667 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20668 if test -n "$ax_pthread_config"; then
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20670 printf "%s\n" "$ax_pthread_config" >&6; }
20671 else
20672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20673 printf "%s\n" "no" >&6; }
20674 fi
20675
20676
20677 if test "x$ax_pthread_config" = "xno"
20678 then :
20679 continue
20680 fi
20681 PTHREAD_CFLAGS="`pthread-config --cflags`"
20682 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20683 ;;
20684
20685 *)
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20687 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20688 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20689 ;;
20690 esac
20691
20692 ax_pthread_save_CFLAGS="$CFLAGS"
20693 ax_pthread_save_LIBS="$LIBS"
20694 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20695 LIBS="$PTHREAD_LIBS $LIBS"
20696
20697 # Check for various functions. We must include pthread.h,
20698 # since some functions may be macros. (On the Sequent, we
20699 # need a special flag -Kthread to make this header compile.)
20700 # We check for pthread_join because it is in -lpthread on IRIX
20701 # while pthread_create is in libc. We check for pthread_attr_init
20702 # due to DEC craziness with -lpthreads. We check for
20703 # pthread_cleanup_push because it is one of the few pthread
20704 # functions on Solaris that doesn't have a non-functional libc stub.
20705 # We try pthread_create on general principles.
20706
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h. */
20709 #include <pthread.h>
20710 # if $ax_pthread_check_cond
20711 # error "$ax_pthread_check_macro must be defined"
20712 # endif
20713 static void *some_global = NULL;
20714 static void routine(void *a)
20715 {
20716 /* To avoid any unused-parameter or
20717 unused-but-set-parameter warning. */
20718 some_global = a;
20719 }
20720 static void *start_routine(void *a) { return a; }
20721 int
20722 main (void)
20723 {
20724 pthread_t th; pthread_attr_t attr;
20725 pthread_create(&th, 0, start_routine, 0);
20726 pthread_join(th, 0);
20727 pthread_attr_init(&attr);
20728 pthread_cleanup_push(routine, 0);
20729 pthread_cleanup_pop(0) /* ; */
20730 ;
20731 return 0;
20732 }
20733 _ACEOF
20734 if ac_fn_c_try_link "$LINENO"
20735 then :
20736 ax_pthread_ok=yes
20737 fi
20738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20739 conftest$ac_exeext conftest.$ac_ext
20740
20741 CFLAGS="$ax_pthread_save_CFLAGS"
20742 LIBS="$ax_pthread_save_LIBS"
20743
20744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20745 printf "%s\n" "$ax_pthread_ok" >&6; }
20746 if test "x$ax_pthread_ok" = "xyes"
20747 then :
20748 break
20749 fi
20750
20751 PTHREAD_LIBS=""
20752 PTHREAD_CFLAGS=""
20753 done
20754 fi
20755
20756
20757 # Clang needs special handling, because older versions handle the -pthread
20758 # option in a rather... idiosyncratic way
20759
20760 if test "x$ax_pthread_clang" = "xyes"; then
20761
20762 # Clang takes -pthread; it has never supported any other flag
20763
20764 # (Note 1: This will need to be revisited if a system that Clang
20765 # supports has POSIX threads in a separate library. This tends not
20766 # to be the way of modern systems, but it's conceivable.)
20767
20768 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20769 # to get POSIX threads support; the API is always present and
20770 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20771 # -pthread does define _REENTRANT, and while the Darwin headers
20772 # ignore this macro, third-party headers might not.)
20773
20774 # However, older versions of Clang make a point of warning the user
20775 # that, in an invocation where only linking and no compilation is
20776 # taking place, the -pthread option has no effect ("argument unused
20777 # during compilation"). They expect -pthread to be passed in only
20778 # when source code is being compiled.
20779 #
20780 # Problem is, this is at odds with the way Automake and most other
20781 # C build frameworks function, which is that the same flags used in
20782 # compilation (CFLAGS) are also used in linking. Many systems
20783 # supported by AX_PTHREAD require exactly this for POSIX threads
20784 # support, and in fact it is often not straightforward to specify a
20785 # flag that is used only in the compilation phase and not in
20786 # linking. Such a scenario is extremely rare in practice.
20787 #
20788 # Even though use of the -pthread flag in linking would only print
20789 # a warning, this can be a nuisance for well-run software projects
20790 # that build with -Werror. So if the active version of Clang has
20791 # this misfeature, we search for an option to squash it.
20792
20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20794 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20795 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
20796 then :
20797 printf %s "(cached) " >&6
20798 else $as_nop
20799 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20800 # Create an alternate version of $ac_link that compiles and
20801 # links in two steps (.c -> .o, .o -> exe) instead of one
20802 # (.c -> exe), because the warning occurs only in the second
20803 # step
20804 ax_pthread_save_ac_link="$ac_link"
20805 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20806 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
20807 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20808 ax_pthread_save_CFLAGS="$CFLAGS"
20809 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20810 if test "x$ax_pthread_try" = "xunknown"
20811 then :
20812 break
20813 fi
20814 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20815 ac_link="$ax_pthread_save_ac_link"
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 int main(void){return 0;}
20819 _ACEOF
20820 if ac_fn_c_try_link "$LINENO"
20821 then :
20822 ac_link="$ax_pthread_2step_ac_link"
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825 int main(void){return 0;}
20826 _ACEOF
20827 if ac_fn_c_try_link "$LINENO"
20828 then :
20829 break
20830 fi
20831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20832 conftest$ac_exeext conftest.$ac_ext
20833
20834 fi
20835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20836 conftest$ac_exeext conftest.$ac_ext
20837 done
20838 ac_link="$ax_pthread_save_ac_link"
20839 CFLAGS="$ax_pthread_save_CFLAGS"
20840 if test "x$ax_pthread_try" = "x"
20841 then :
20842 ax_pthread_try=no
20843 fi
20844 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20845
20846 fi
20847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20848 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20849
20850 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20851 no | unknown) ;;
20852 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20853 esac
20854
20855 fi # $ax_pthread_clang = yes
20856
20857
20858
20859 # Various other checks:
20860 if test "x$ax_pthread_ok" = "xyes"; then
20861 ax_pthread_save_CFLAGS="$CFLAGS"
20862 ax_pthread_save_LIBS="$LIBS"
20863 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20864 LIBS="$PTHREAD_LIBS $LIBS"
20865
20866 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20868 printf %s "checking for joinable pthread attribute... " >&6; }
20869 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
20870 then :
20871 printf %s "(cached) " >&6
20872 else $as_nop
20873 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20874 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h. */
20877 #include <pthread.h>
20878 int
20879 main (void)
20880 {
20881 int attr = $ax_pthread_attr; return attr /* ; */
20882 ;
20883 return 0;
20884 }
20885 _ACEOF
20886 if ac_fn_c_try_link "$LINENO"
20887 then :
20888 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20889 fi
20890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20891 conftest$ac_exeext conftest.$ac_ext
20892 done
20893
20894 fi
20895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20896 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20897 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20898 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20899 test "x$ax_pthread_joinable_attr_defined" != "xyes"
20900 then :
20901
20902 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
20903
20904 ax_pthread_joinable_attr_defined=yes
20905
20906 fi
20907
20908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20909 printf %s "checking whether more special flags are required for pthreads... " >&6; }
20910 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
20911 then :
20912 printf %s "(cached) " >&6
20913 else $as_nop
20914 ax_cv_PTHREAD_SPECIAL_FLAGS=no
20915 case $host_os in
20916 solaris*)
20917 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20918 ;;
20919 esac
20920
20921 fi
20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20923 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20924 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20925 test "x$ax_pthread_special_flags_added" != "xyes"
20926 then :
20927 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20928 ax_pthread_special_flags_added=yes
20929 fi
20930
20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20932 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20933 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20934 then :
20935 printf %s "(cached) " >&6
20936 else $as_nop
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20939 #include <pthread.h>
20940 int
20941 main (void)
20942 {
20943 int i = PTHREAD_PRIO_INHERIT;
20944 return i;
20945 ;
20946 return 0;
20947 }
20948 _ACEOF
20949 if ac_fn_c_try_link "$LINENO"
20950 then :
20951 ax_cv_PTHREAD_PRIO_INHERIT=yes
20952 else $as_nop
20953 ax_cv_PTHREAD_PRIO_INHERIT=no
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20956 conftest$ac_exeext conftest.$ac_ext
20957
20958 fi
20959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20960 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20961 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20962 test "x$ax_pthread_prio_inherit_defined" != "xyes"
20963 then :
20964
20965 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20966
20967 ax_pthread_prio_inherit_defined=yes
20968
20969 fi
20970
20971 CFLAGS="$ax_pthread_save_CFLAGS"
20972 LIBS="$ax_pthread_save_LIBS"
20973
20974 # More AIX lossage: compile with *_r variant
20975 if test "x$GCC" != "xyes"; then
20976 case $host_os in
20977 aix*)
20978 case "x/$CC" in #(
20979 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20980 #handle absolute path differently from PATH based program lookup
20981 case "x$CC" in #(
20982 x/*) :
20983
20984 if as_fn_executable_p ${CC}_r
20985 then :
20986 PTHREAD_CC="${CC}_r"
20987 fi
20988 if test "x${CXX}" != "x"
20989 then :
20990 if as_fn_executable_p ${CXX}_r
20991 then :
20992 PTHREAD_CXX="${CXX}_r"
20993 fi
20994 fi
20995 ;; #(
20996 *) :
20997
20998 for ac_prog in ${CC}_r
20999 do
21000 # Extract the first word of "$ac_prog", so it can be a program name with args.
21001 set dummy $ac_prog; ac_word=$2
21002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21003 printf %s "checking for $ac_word... " >&6; }
21004 if test ${ac_cv_prog_PTHREAD_CC+y}
21005 then :
21006 printf %s "(cached) " >&6
21007 else $as_nop
21008 if test -n "$PTHREAD_CC"; then
21009 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21010 else
21011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21012 for as_dir in $PATH
21013 do
21014 IFS=$as_save_IFS
21015 case $as_dir in #(((
21016 '') as_dir=./ ;;
21017 */) ;;
21018 *) as_dir=$as_dir/ ;;
21019 esac
21020 for ac_exec_ext in '' $ac_executable_extensions; do
21021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21022 ac_cv_prog_PTHREAD_CC="$ac_prog"
21023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21024 break 2
21025 fi
21026 done
21027 done
21028 IFS=$as_save_IFS
21029
21030 fi
21031 fi
21032 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21033 if test -n "$PTHREAD_CC"; then
21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21035 printf "%s\n" "$PTHREAD_CC" >&6; }
21036 else
21037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21038 printf "%s\n" "no" >&6; }
21039 fi
21040
21041
21042 test -n "$PTHREAD_CC" && break
21043 done
21044 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21045
21046 if test "x${CXX}" != "x"
21047 then :
21048 for ac_prog in ${CXX}_r
21049 do
21050 # Extract the first word of "$ac_prog", so it can be a program name with args.
21051 set dummy $ac_prog; ac_word=$2
21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21053 printf %s "checking for $ac_word... " >&6; }
21054 if test ${ac_cv_prog_PTHREAD_CXX+y}
21055 then :
21056 printf %s "(cached) " >&6
21057 else $as_nop
21058 if test -n "$PTHREAD_CXX"; then
21059 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
21060 else
21061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21062 for as_dir in $PATH
21063 do
21064 IFS=$as_save_IFS
21065 case $as_dir in #(((
21066 '') as_dir=./ ;;
21067 */) ;;
21068 *) as_dir=$as_dir/ ;;
21069 esac
21070 for ac_exec_ext in '' $ac_executable_extensions; do
21071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21072 ac_cv_prog_PTHREAD_CXX="$ac_prog"
21073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21074 break 2
21075 fi
21076 done
21077 done
21078 IFS=$as_save_IFS
21079
21080 fi
21081 fi
21082 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
21083 if test -n "$PTHREAD_CXX"; then
21084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
21085 printf "%s\n" "$PTHREAD_CXX" >&6; }
21086 else
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21088 printf "%s\n" "no" >&6; }
21089 fi
21090
21091
21092 test -n "$PTHREAD_CXX" && break
21093 done
21094 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
21095
21096 fi
21097
21098 ;;
21099 esac
21100 ;; #(
21101 *) :
21102 ;;
21103 esac
21104 ;;
21105 esac
21106 fi
21107 fi
21108
21109 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21110 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
21111
21112
21113
21114
21115
21116
21117 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21118 if test "x$ax_pthread_ok" = "xyes"; then
21119
21120 HAVE_PTHREAD=yes
21121
21122 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
21123
21124 LIBS="$PTHREAD_LIBS $LIBS"
21125 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21126 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
21127 CC="$PTHREAD_CC"
21128 CXX="$PTHREAD_CXX"
21129
21130 :
21131 else
21132 ax_pthread_ok=no
21133 HAVE_PTHREAD=no
21134 fi
21135 ac_ext=c
21136 ac_cpp='$CPP $CPPFLAGS'
21137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21140
21141
21142 if test "x${HAVE_PTHREAD}" == "xno"; then
21143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"pthread support" >&5
21144 printf "%s\n" "$as_me: WARNING: \"pthread support" >&2;}
21145 fi
21146 fi
21147
21148
21149 if test "X$prefix" = "XNONE"; then
21150 acl_final_prefix="$ac_default_prefix"
21151 else
21152 acl_final_prefix="$prefix"
21153 fi
21154 if test "X$exec_prefix" = "XNONE"; then
21155 acl_final_exec_prefix='${prefix}'
21156 else
21157 acl_final_exec_prefix="$exec_prefix"
21158 fi
21159 acl_save_prefix="$prefix"
21160 prefix="$acl_final_prefix"
21161 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21162 prefix="$acl_save_prefix"
21163
21164
21165
21166 # Check whether --with-gnu-ld was given.
21167 if test ${with_gnu_ld+y}
21168 then :
21169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21170 else $as_nop
21171 with_gnu_ld=no
21172 fi
21173
21174 # Prepare PATH_SEPARATOR.
21175 # The user is always right.
21176 if test "${PATH_SEPARATOR+set}" != set; then
21177 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21178 # contains only /bin. Note that ksh looks also at the FPATH variable,
21179 # so we have to set that as well for the test.
21180 PATH_SEPARATOR=:
21181 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21182 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21183 || PATH_SEPARATOR=';'
21184 }
21185 fi
21186
21187 ac_prog=ld
21188 if test "$GCC" = yes; then
21189 # Check if gcc -print-prog-name=ld gives a path.
21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21191 printf %s "checking for ld used by $CC... " >&6; }
21192 case $host in
21193 *-*-mingw*)
21194 # gcc leaves a trailing carriage return which upsets mingw
21195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21196 *)
21197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21198 esac
21199 case $ac_prog in
21200 # Accept absolute paths.
21201 [\\/]* | ?:[\\/]*)
21202 re_direlt='/[^/][^/]*/\.\./'
21203 # Canonicalize the pathname of ld
21204 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
21205 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
21206 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21207 done
21208 test -z "$LD" && LD="$ac_prog"
21209 ;;
21210 "")
21211 # If it fails, then pretend we aren't using GCC.
21212 ac_prog=ld
21213 ;;
21214 *)
21215 # If it is relative, then search for the first ld in PATH.
21216 with_gnu_ld=unknown
21217 ;;
21218 esac
21219 elif test "$with_gnu_ld" = yes; then
21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21221 printf %s "checking for GNU ld... " >&6; }
21222 else
21223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21224 printf %s "checking for non-GNU ld... " >&6; }
21225 fi
21226 if test ${acl_cv_path_LD+y}
21227 then :
21228 printf %s "(cached) " >&6
21229 else $as_nop
21230 if test -z "$LD"; then
21231 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21232 for ac_dir in $PATH; do
21233 IFS="$acl_save_ifs"
21234 test -z "$ac_dir" && ac_dir=.
21235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21236 acl_cv_path_LD="$ac_dir/$ac_prog"
21237 # Check to see if the program is GNU ld. I'd rather use --version,
21238 # but apparently some variants of GNU ld only accept -v.
21239 # Break only if it was the GNU/non-GNU ld that we prefer.
21240 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
21241 *GNU* | *'with BFD'*)
21242 test "$with_gnu_ld" != no && break
21243 ;;
21244 *)
21245 test "$with_gnu_ld" != yes && break
21246 ;;
21247 esac
21248 fi
21249 done
21250 IFS="$acl_save_ifs"
21251 else
21252 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21253 fi
21254 fi
21255
21256 LD="$acl_cv_path_LD"
21257 if test -n "$LD"; then
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21259 printf "%s\n" "$LD" >&6; }
21260 else
21261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21262 printf "%s\n" "no" >&6; }
21263 fi
21264 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21266 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
21267 if test ${acl_cv_prog_gnu_ld+y}
21268 then :
21269 printf %s "(cached) " >&6
21270 else $as_nop
21271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
21272 case `$LD -v 2>&1 </dev/null` in
21273 *GNU* | *'with BFD'*)
21274 acl_cv_prog_gnu_ld=yes
21275 ;;
21276 *)
21277 acl_cv_prog_gnu_ld=no
21278 ;;
21279 esac
21280 fi
21281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21282 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
21283 with_gnu_ld=$acl_cv_prog_gnu_ld
21284
21285
21286
21287
21288
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21290 printf %s "checking for shared library run path origin... " >&6; }
21291 if test ${acl_cv_rpath+y}
21292 then :
21293 printf %s "(cached) " >&6
21294 else $as_nop
21295
21296 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21297 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21298 . ./conftest.sh
21299 rm -f ./conftest.sh
21300 acl_cv_rpath=done
21301
21302 fi
21303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21304 printf "%s\n" "$acl_cv_rpath" >&6; }
21305 wl="$acl_cv_wl"
21306 acl_libext="$acl_cv_libext"
21307 acl_shlibext="$acl_cv_shlibext"
21308 acl_libname_spec="$acl_cv_libname_spec"
21309 acl_library_names_spec="$acl_cv_library_names_spec"
21310 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21311 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21312 acl_hardcode_direct="$acl_cv_hardcode_direct"
21313 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
21314 # Check whether --enable-rpath was given.
21315 if test ${enable_rpath+y}
21316 then :
21317 enableval=$enable_rpath; :
21318 else $as_nop
21319 enable_rpath=yes
21320 fi
21321
21322
21323
21324
21325 acl_libdirstem=lib
21326 acl_libdirstem2=
21327 case "$host_os" in
21328 solaris*)
21329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
21330 printf %s "checking for 64-bit host... " >&6; }
21331 if test ${gl_cv_solaris_64bit+y}
21332 then :
21333 printf %s "(cached) " >&6
21334 else $as_nop
21335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21336 /* end confdefs.h. */
21337
21338 #ifdef _LP64
21339 sixtyfour bits
21340 #endif
21341
21342 _ACEOF
21343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21344 $EGREP "sixtyfour bits" >/dev/null 2>&1
21345 then :
21346 gl_cv_solaris_64bit=yes
21347 else $as_nop
21348 gl_cv_solaris_64bit=no
21349 fi
21350 rm -rf conftest*
21351
21352
21353 fi
21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
21355 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
21356 if test $gl_cv_solaris_64bit = yes; then
21357 acl_libdirstem=lib/64
21358 case "$host_cpu" in
21359 sparc*) acl_libdirstem2=lib/sparcv9 ;;
21360 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
21361 esac
21362 fi
21363 ;;
21364 *)
21365 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21366 if test -n "$searchpath"; then
21367 acl_save_IFS="${IFS= }"; IFS=":"
21368 for searchdir in $searchpath; do
21369 if test -d "$searchdir"; then
21370 case "$searchdir" in
21371 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21372 */../ | */.. )
21373 # Better ignore directories of this form. They are misleading.
21374 ;;
21375 *) searchdir=`cd "$searchdir" && pwd`
21376 case "$searchdir" in
21377 */lib64 ) acl_libdirstem=lib64 ;;
21378 esac ;;
21379 esac
21380 fi
21381 done
21382 IFS="$acl_save_IFS"
21383 fi
21384 ;;
21385 esac
21386 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399 use_additional=yes
21400
21401 acl_save_prefix="$prefix"
21402 prefix="$acl_final_prefix"
21403 acl_save_exec_prefix="$exec_prefix"
21404 exec_prefix="$acl_final_exec_prefix"
21405
21406 eval additional_includedir=\"$includedir\"
21407 eval additional_libdir=\"$libdir\"
21408
21409 exec_prefix="$acl_save_exec_prefix"
21410 prefix="$acl_save_prefix"
21411
21412
21413 # Check whether --with-libiconv-prefix was given.
21414 if test ${with_libiconv_prefix+y}
21415 then :
21416 withval=$with_libiconv_prefix;
21417 if test "X$withval" = "Xno"; then
21418 use_additional=no
21419 else
21420 if test "X$withval" = "X"; then
21421
21422 acl_save_prefix="$prefix"
21423 prefix="$acl_final_prefix"
21424 acl_save_exec_prefix="$exec_prefix"
21425 exec_prefix="$acl_final_exec_prefix"
21426
21427 eval additional_includedir=\"$includedir\"
21428 eval additional_libdir=\"$libdir\"
21429
21430 exec_prefix="$acl_save_exec_prefix"
21431 prefix="$acl_save_prefix"
21432
21433 else
21434 additional_includedir="$withval/include"
21435 additional_libdir="$withval/$acl_libdirstem"
21436 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21437 && ! test -d "$withval/$acl_libdirstem"; then
21438 additional_libdir="$withval/$acl_libdirstem2"
21439 fi
21440 fi
21441 fi
21442
21443 fi
21444
21445 LIBICONV=
21446 LTLIBICONV=
21447 INCICONV=
21448 LIBICONV_PREFIX=
21449 HAVE_LIBICONV=
21450 rpathdirs=
21451 ltrpathdirs=
21452 names_already_handled=
21453 names_next_round='iconv '
21454 while test -n "$names_next_round"; do
21455 names_this_round="$names_next_round"
21456 names_next_round=
21457 for name in $names_this_round; do
21458 already_handled=
21459 for n in $names_already_handled; do
21460 if test "$n" = "$name"; then
21461 already_handled=yes
21462 break
21463 fi
21464 done
21465 if test -z "$already_handled"; then
21466 names_already_handled="$names_already_handled $name"
21467 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21468 eval value=\"\$HAVE_LIB$uppername\"
21469 if test -n "$value"; then
21470 if test "$value" = yes; then
21471 eval value=\"\$LIB$uppername\"
21472 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21473 eval value=\"\$LTLIB$uppername\"
21474 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21475 else
21476 :
21477 fi
21478 else
21479 found_dir=
21480 found_la=
21481 found_so=
21482 found_a=
21483 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21484 if test -n "$acl_shlibext"; then
21485 shrext=".$acl_shlibext" # typically: shrext=.so
21486 else
21487 shrext=
21488 fi
21489 if test $use_additional = yes; then
21490 dir="$additional_libdir"
21491 if test -n "$acl_shlibext"; then
21492 if test -f "$dir/$libname$shrext"; then
21493 found_dir="$dir"
21494 found_so="$dir/$libname$shrext"
21495 else
21496 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21497 ver=`(cd "$dir" && \
21498 for f in "$libname$shrext".*; do echo "$f"; done \
21499 | sed -e "s,^$libname$shrext\\\\.,," \
21500 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21501 | sed 1q ) 2>/dev/null`
21502 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21503 found_dir="$dir"
21504 found_so="$dir/$libname$shrext.$ver"
21505 fi
21506 else
21507 eval library_names=\"$acl_library_names_spec\"
21508 for f in $library_names; do
21509 if test -f "$dir/$f"; then
21510 found_dir="$dir"
21511 found_so="$dir/$f"
21512 break
21513 fi
21514 done
21515 fi
21516 fi
21517 fi
21518 if test "X$found_dir" = "X"; then
21519 if test -f "$dir/$libname.$acl_libext"; then
21520 found_dir="$dir"
21521 found_a="$dir/$libname.$acl_libext"
21522 fi
21523 fi
21524 if test "X$found_dir" != "X"; then
21525 if test -f "$dir/$libname.la"; then
21526 found_la="$dir/$libname.la"
21527 fi
21528 fi
21529 fi
21530 if test "X$found_dir" = "X"; then
21531 for x in $LDFLAGS $LTLIBICONV; do
21532
21533 acl_save_prefix="$prefix"
21534 prefix="$acl_final_prefix"
21535 acl_save_exec_prefix="$exec_prefix"
21536 exec_prefix="$acl_final_exec_prefix"
21537 eval x=\"$x\"
21538 exec_prefix="$acl_save_exec_prefix"
21539 prefix="$acl_save_prefix"
21540
21541 case "$x" in
21542 -L*)
21543 dir=`echo "X$x" | sed -e 's/^X-L//'`
21544 if test -n "$acl_shlibext"; then
21545 if test -f "$dir/$libname$shrext"; then
21546 found_dir="$dir"
21547 found_so="$dir/$libname$shrext"
21548 else
21549 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21550 ver=`(cd "$dir" && \
21551 for f in "$libname$shrext".*; do echo "$f"; done \
21552 | sed -e "s,^$libname$shrext\\\\.,," \
21553 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21554 | sed 1q ) 2>/dev/null`
21555 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21556 found_dir="$dir"
21557 found_so="$dir/$libname$shrext.$ver"
21558 fi
21559 else
21560 eval library_names=\"$acl_library_names_spec\"
21561 for f in $library_names; do
21562 if test -f "$dir/$f"; then
21563 found_dir="$dir"
21564 found_so="$dir/$f"
21565 break
21566 fi
21567 done
21568 fi
21569 fi
21570 fi
21571 if test "X$found_dir" = "X"; then
21572 if test -f "$dir/$libname.$acl_libext"; then
21573 found_dir="$dir"
21574 found_a="$dir/$libname.$acl_libext"
21575 fi
21576 fi
21577 if test "X$found_dir" != "X"; then
21578 if test -f "$dir/$libname.la"; then
21579 found_la="$dir/$libname.la"
21580 fi
21581 fi
21582 ;;
21583 esac
21584 if test "X$found_dir" != "X"; then
21585 break
21586 fi
21587 done
21588 fi
21589 if test "X$found_dir" != "X"; then
21590 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21591 if test "X$found_so" != "X"; then
21592 if test "$enable_rpath" = no \
21593 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21594 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21595 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21596 else
21597 haveit=
21598 for x in $ltrpathdirs; do
21599 if test "X$x" = "X$found_dir"; then
21600 haveit=yes
21601 break
21602 fi
21603 done
21604 if test -z "$haveit"; then
21605 ltrpathdirs="$ltrpathdirs $found_dir"
21606 fi
21607 if test "$acl_hardcode_direct" = yes; then
21608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21609 else
21610 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21612 haveit=
21613 for x in $rpathdirs; do
21614 if test "X$x" = "X$found_dir"; then
21615 haveit=yes
21616 break
21617 fi
21618 done
21619 if test -z "$haveit"; then
21620 rpathdirs="$rpathdirs $found_dir"
21621 fi
21622 else
21623 haveit=
21624 for x in $LDFLAGS $LIBICONV; do
21625
21626 acl_save_prefix="$prefix"
21627 prefix="$acl_final_prefix"
21628 acl_save_exec_prefix="$exec_prefix"
21629 exec_prefix="$acl_final_exec_prefix"
21630 eval x=\"$x\"
21631 exec_prefix="$acl_save_exec_prefix"
21632 prefix="$acl_save_prefix"
21633
21634 if test "X$x" = "X-L$found_dir"; then
21635 haveit=yes
21636 break
21637 fi
21638 done
21639 if test -z "$haveit"; then
21640 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21641 fi
21642 if test "$acl_hardcode_minus_L" != no; then
21643 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21644 else
21645 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21646 fi
21647 fi
21648 fi
21649 fi
21650 else
21651 if test "X$found_a" != "X"; then
21652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21653 else
21654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21655 fi
21656 fi
21657 additional_includedir=
21658 case "$found_dir" in
21659 */$acl_libdirstem | */$acl_libdirstem/)
21660 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21661 if test "$name" = 'iconv'; then
21662 LIBICONV_PREFIX="$basedir"
21663 fi
21664 additional_includedir="$basedir/include"
21665 ;;
21666 */$acl_libdirstem2 | */$acl_libdirstem2/)
21667 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21668 if test "$name" = 'iconv'; then
21669 LIBICONV_PREFIX="$basedir"
21670 fi
21671 additional_includedir="$basedir/include"
21672 ;;
21673 esac
21674 if test "X$additional_includedir" != "X"; then
21675 if test "X$additional_includedir" != "X/usr/include"; then
21676 haveit=
21677 if test "X$additional_includedir" = "X/usr/local/include"; then
21678 if test -n "$GCC"; then
21679 case $host_os in
21680 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21681 esac
21682 fi
21683 fi
21684 if test -z "$haveit"; then
21685 for x in $CPPFLAGS $INCICONV; do
21686
21687 acl_save_prefix="$prefix"
21688 prefix="$acl_final_prefix"
21689 acl_save_exec_prefix="$exec_prefix"
21690 exec_prefix="$acl_final_exec_prefix"
21691 eval x=\"$x\"
21692 exec_prefix="$acl_save_exec_prefix"
21693 prefix="$acl_save_prefix"
21694
21695 if test "X$x" = "X-I$additional_includedir"; then
21696 haveit=yes
21697 break
21698 fi
21699 done
21700 if test -z "$haveit"; then
21701 if test -d "$additional_includedir"; then
21702 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21703 fi
21704 fi
21705 fi
21706 fi
21707 fi
21708 if test -n "$found_la"; then
21709 save_libdir="$libdir"
21710 case "$found_la" in
21711 */* | *\\*) . "$found_la" ;;
21712 *) . "./$found_la" ;;
21713 esac
21714 libdir="$save_libdir"
21715 for dep in $dependency_libs; do
21716 case "$dep" in
21717 -L*)
21718 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21719 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21720 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21721 haveit=
21722 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21723 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21724 if test -n "$GCC"; then
21725 case $host_os in
21726 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21727 esac
21728 fi
21729 fi
21730 if test -z "$haveit"; then
21731 haveit=
21732 for x in $LDFLAGS $LIBICONV; do
21733
21734 acl_save_prefix="$prefix"
21735 prefix="$acl_final_prefix"
21736 acl_save_exec_prefix="$exec_prefix"
21737 exec_prefix="$acl_final_exec_prefix"
21738 eval x=\"$x\"
21739 exec_prefix="$acl_save_exec_prefix"
21740 prefix="$acl_save_prefix"
21741
21742 if test "X$x" = "X-L$additional_libdir"; then
21743 haveit=yes
21744 break
21745 fi
21746 done
21747 if test -z "$haveit"; then
21748 if test -d "$additional_libdir"; then
21749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21750 fi
21751 fi
21752 haveit=
21753 for x in $LDFLAGS $LTLIBICONV; do
21754
21755 acl_save_prefix="$prefix"
21756 prefix="$acl_final_prefix"
21757 acl_save_exec_prefix="$exec_prefix"
21758 exec_prefix="$acl_final_exec_prefix"
21759 eval x=\"$x\"
21760 exec_prefix="$acl_save_exec_prefix"
21761 prefix="$acl_save_prefix"
21762
21763 if test "X$x" = "X-L$additional_libdir"; then
21764 haveit=yes
21765 break
21766 fi
21767 done
21768 if test -z "$haveit"; then
21769 if test -d "$additional_libdir"; then
21770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21771 fi
21772 fi
21773 fi
21774 fi
21775 ;;
21776 -R*)
21777 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21778 if test "$enable_rpath" != no; then
21779 haveit=
21780 for x in $rpathdirs; do
21781 if test "X$x" = "X$dir"; then
21782 haveit=yes
21783 break
21784 fi
21785 done
21786 if test -z "$haveit"; then
21787 rpathdirs="$rpathdirs $dir"
21788 fi
21789 haveit=
21790 for x in $ltrpathdirs; do
21791 if test "X$x" = "X$dir"; then
21792 haveit=yes
21793 break
21794 fi
21795 done
21796 if test -z "$haveit"; then
21797 ltrpathdirs="$ltrpathdirs $dir"
21798 fi
21799 fi
21800 ;;
21801 -l*)
21802 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21803 ;;
21804 *.la)
21805 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21806 ;;
21807 *)
21808 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21809 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21810 ;;
21811 esac
21812 done
21813 fi
21814 else
21815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21816 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21817 fi
21818 fi
21819 fi
21820 done
21821 done
21822 if test "X$rpathdirs" != "X"; then
21823 if test -n "$acl_hardcode_libdir_separator"; then
21824 alldirs=
21825 for found_dir in $rpathdirs; do
21826 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21827 done
21828 acl_save_libdir="$libdir"
21829 libdir="$alldirs"
21830 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21831 libdir="$acl_save_libdir"
21832 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21833 else
21834 for found_dir in $rpathdirs; do
21835 acl_save_libdir="$libdir"
21836 libdir="$found_dir"
21837 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21838 libdir="$acl_save_libdir"
21839 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21840 done
21841 fi
21842 fi
21843 if test "X$ltrpathdirs" != "X"; then
21844 for found_dir in $ltrpathdirs; do
21845 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21846 done
21847 fi
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860 gl_saved_CPPFLAGS="$CPPFLAGS"
21861
21862 for element in $INCICONV; do
21863 haveit=
21864 for x in $CPPFLAGS; do
21865
21866 acl_save_prefix="$prefix"
21867 prefix="$acl_final_prefix"
21868 acl_save_exec_prefix="$exec_prefix"
21869 exec_prefix="$acl_final_exec_prefix"
21870 eval x=\"$x\"
21871 exec_prefix="$acl_save_exec_prefix"
21872 prefix="$acl_save_prefix"
21873
21874 if test "X$x" = "X$element"; then
21875 haveit=yes
21876 break
21877 fi
21878 done
21879 if test -z "$haveit"; then
21880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21881 fi
21882 done
21883
21884
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21886 printf %s "checking for iconv... " >&6; }
21887 if test ${am_cv_func_iconv+y}
21888 then :
21889 printf %s "(cached) " >&6
21890 else $as_nop
21891
21892 am_cv_func_iconv="no, consider installing GNU libiconv"
21893 am_cv_lib_iconv=no
21894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21895 /* end confdefs.h. */
21896
21897 #include <stdlib.h>
21898 #include <iconv.h>
21899
21900 int
21901 main (void)
21902 {
21903 iconv_t cd = iconv_open("","");
21904 iconv(cd,NULL,NULL,NULL,NULL);
21905 iconv_close(cd);
21906 ;
21907 return 0;
21908 }
21909 _ACEOF
21910 if ac_fn_c_try_link "$LINENO"
21911 then :
21912 am_cv_func_iconv=yes
21913 fi
21914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21915 conftest$ac_exeext conftest.$ac_ext
21916 if test "$am_cv_func_iconv" != yes; then
21917 gl_saved_LIBS="$LIBS"
21918 LIBS="$LIBS $LIBICONV"
21919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21920 /* end confdefs.h. */
21921
21922 #include <stdlib.h>
21923 #include <iconv.h>
21924
21925 int
21926 main (void)
21927 {
21928 iconv_t cd = iconv_open("","");
21929 iconv(cd,NULL,NULL,NULL,NULL);
21930 iconv_close(cd);
21931 ;
21932 return 0;
21933 }
21934 _ACEOF
21935 if ac_fn_c_try_link "$LINENO"
21936 then :
21937 am_cv_lib_iconv=yes
21938 am_cv_func_iconv=yes
21939 fi
21940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21941 conftest$ac_exeext conftest.$ac_ext
21942 LIBS="$gl_saved_LIBS"
21943 fi
21944
21945 fi
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21947 printf "%s\n" "$am_cv_func_iconv" >&6; }
21948 if test "$am_cv_func_iconv" = yes; then
21949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
21950 printf %s "checking for working iconv... " >&6; }
21951 if test ${am_cv_func_iconv_works+y}
21952 then :
21953 printf %s "(cached) " >&6
21954 else $as_nop
21955
21956 gl_saved_LIBS="$LIBS"
21957 if test $am_cv_lib_iconv = yes; then
21958 LIBS="$LIBS $LIBICONV"
21959 fi
21960 am_cv_func_iconv_works=no
21961 for ac_iconv_const in '' 'const'; do
21962 if test "$cross_compiling" = yes
21963 then :
21964 case "$host_os" in
21965 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21966 *) am_cv_func_iconv_works="guessing yes" ;;
21967 esac
21968 else $as_nop
21969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21970 /* end confdefs.h. */
21971
21972 #include <iconv.h>
21973 #include <string.h>
21974
21975 #ifndef ICONV_CONST
21976 # define ICONV_CONST $ac_iconv_const
21977 #endif
21978
21979 int
21980 main (void)
21981 {
21982 int result = 0;
21983 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
21984 successful returns. This is even documented in
21985 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
21986 {
21987 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21988 if (cd_utf8_to_88591 != (iconv_t)(-1))
21989 {
21990 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
21991 char buf[10];
21992 ICONV_CONST char *inptr = input;
21993 size_t inbytesleft = strlen (input);
21994 char *outptr = buf;
21995 size_t outbytesleft = sizeof (buf);
21996 size_t res = iconv (cd_utf8_to_88591,
21997 &inptr, &inbytesleft,
21998 &outptr, &outbytesleft);
21999 if (res == 0)
22000 result |= 1;
22001 iconv_close (cd_utf8_to_88591);
22002 }
22003 }
22004 /* Test against Solaris 10 bug: Failures are not distinguishable from
22005 successful returns. */
22006 {
22007 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
22008 if (cd_ascii_to_88591 != (iconv_t)(-1))
22009 {
22010 static ICONV_CONST char input[] = "\263";
22011 char buf[10];
22012 ICONV_CONST char *inptr = input;
22013 size_t inbytesleft = strlen (input);
22014 char *outptr = buf;
22015 size_t outbytesleft = sizeof (buf);
22016 size_t res = iconv (cd_ascii_to_88591,
22017 &inptr, &inbytesleft,
22018 &outptr, &outbytesleft);
22019 if (res == 0)
22020 result |= 2;
22021 iconv_close (cd_ascii_to_88591);
22022 }
22023 }
22024 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
22025 {
22026 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
22027 if (cd_88591_to_utf8 != (iconv_t)(-1))
22028 {
22029 static ICONV_CONST char input[] = "\304";
22030 static char buf[2] = { (char)0xDE, (char)0xAD };
22031 ICONV_CONST char *inptr = input;
22032 size_t inbytesleft = 1;
22033 char *outptr = buf;
22034 size_t outbytesleft = 1;
22035 size_t res = iconv (cd_88591_to_utf8,
22036 &inptr, &inbytesleft,
22037 &outptr, &outbytesleft);
22038 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
22039 result |= 4;
22040 iconv_close (cd_88591_to_utf8);
22041 }
22042 }
22043 #if 0 /* This bug could be worked around by the caller. */
22044 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22045 {
22046 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22047 if (cd_88591_to_utf8 != (iconv_t)(-1))
22048 {
22049 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22050 char buf[50];
22051 ICONV_CONST char *inptr = input;
22052 size_t inbytesleft = strlen (input);
22053 char *outptr = buf;
22054 size_t outbytesleft = sizeof (buf);
22055 size_t res = iconv (cd_88591_to_utf8,
22056 &inptr, &inbytesleft,
22057 &outptr, &outbytesleft);
22058 if ((int)res > 0)
22059 result |= 8;
22060 iconv_close (cd_88591_to_utf8);
22061 }
22062 }
22063 #endif
22064 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22065 provided. */
22066 {
22067 /* Try standardized names. */
22068 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
22069 /* Try IRIX, OSF/1 names. */
22070 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
22071 /* Try AIX names. */
22072 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
22073 /* Try HP-UX names. */
22074 iconv_t cd4 = iconv_open ("utf8", "eucJP");
22075 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
22076 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
22077 result |= 16;
22078 if (cd1 != (iconv_t)(-1))
22079 iconv_close (cd1);
22080 if (cd2 != (iconv_t)(-1))
22081 iconv_close (cd2);
22082 if (cd3 != (iconv_t)(-1))
22083 iconv_close (cd3);
22084 if (cd4 != (iconv_t)(-1))
22085 iconv_close (cd4);
22086 }
22087 return result;
22088
22089 ;
22090 return 0;
22091 }
22092 _ACEOF
22093 if ac_fn_c_try_run "$LINENO"
22094 then :
22095 am_cv_func_iconv_works=yes
22096 fi
22097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22098 conftest.$ac_objext conftest.beam conftest.$ac_ext
22099 fi
22100
22101 test "$am_cv_func_iconv_works" = no || break
22102 done
22103 LIBS="$gl_saved_LIBS"
22104
22105 fi
22106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
22107 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
22108 case "$am_cv_func_iconv_works" in
22109 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22110 *) am_func_iconv=yes ;;
22111 esac
22112 else
22113 am_func_iconv=no am_cv_lib_iconv=no
22114 fi
22115 if test "$am_func_iconv" = yes; then
22116
22117 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
22118
22119 fi
22120 if test "$am_cv_lib_iconv" = yes; then
22121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22122 printf %s "checking how to link with libiconv... " >&6; }
22123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22124 printf "%s\n" "$LIBICONV" >&6; }
22125 else
22126 CPPFLAGS="$gl_saved_CPPFLAGS"
22127 LIBICONV=
22128 LTLIBICONV=
22129 fi
22130
22131
22132
22133 if test "$am_cv_func_iconv" = yes; then
22134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
22135 printf %s "checking whether iconv is compatible with its POSIX signature... " >&6; }
22136 if test ${gl_cv_iconv_nonconst+y}
22137 then :
22138 printf %s "(cached) " >&6
22139 else $as_nop
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22142
22143 #include <stdlib.h>
22144 #include <iconv.h>
22145 extern
22146 #ifdef __cplusplus
22147 "C"
22148 #endif
22149 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22150
22151 int
22152 main (void)
22153 {
22154
22155 ;
22156 return 0;
22157 }
22158 _ACEOF
22159 if ac_fn_c_try_compile "$LINENO"
22160 then :
22161 gl_cv_iconv_nonconst=yes
22162 else $as_nop
22163 gl_cv_iconv_nonconst=no
22164 fi
22165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22166
22167 fi
22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
22169 printf "%s\n" "$gl_cv_iconv_nonconst" >&6; }
22170 else
22171 gl_cv_iconv_nonconst=yes
22172 fi
22173 if test $gl_cv_iconv_nonconst = yes; then
22174 iconv_arg1=""
22175 else
22176 iconv_arg1="const"
22177 fi
22178
22179 printf "%s\n" "#define ICONV_CONST $iconv_arg1" >>confdefs.h
22180
22181
22182
22183 if test "$am_func_iconv" = yes; then
22184 if test -n "$LIBICONV"; then
22185 am_cv_func_iconv_summary='yes, in libiconv'
22186 else
22187 am_cv_func_iconv_summary='yes, in libc'
22188 fi
22189 else
22190 if test "$am_cv_func_iconv" = yes; then
22191 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
22192 else
22193 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
22194 fi
22195 fi
22196
22197
22198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22199 printf %s "checking for nl_langinfo and CODESET... " >&6; }
22200 if test ${am_cv_langinfo_codeset+y}
22201 then :
22202 printf %s "(cached) " >&6
22203 else $as_nop
22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205 /* end confdefs.h. */
22206 #include <langinfo.h>
22207 int
22208 main (void)
22209 {
22210 char* cs = nl_langinfo(CODESET); return !cs;
22211 ;
22212 return 0;
22213 }
22214 _ACEOF
22215 if ac_fn_c_try_link "$LINENO"
22216 then :
22217 am_cv_langinfo_codeset=yes
22218 else $as_nop
22219 am_cv_langinfo_codeset=no
22220 fi
22221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22222 conftest$ac_exeext conftest.$ac_ext
22223
22224 fi
22225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22226 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
22227 if test $am_cv_langinfo_codeset = yes; then
22228
22229 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22230
22231 fi
22232
22233
22234 for ac_prog in pandoc
22235 do
22236 # Extract the first word of "$ac_prog", so it can be a program name with args.
22237 set dummy $ac_prog; ac_word=$2
22238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22239 printf %s "checking for $ac_word... " >&6; }
22240 if test ${ac_cv_prog_PANDOC+y}
22241 then :
22242 printf %s "(cached) " >&6
22243 else $as_nop
22244 if test -n "$PANDOC"; then
22245 ac_cv_prog_PANDOC="$PANDOC" # Let the user override the test.
22246 else
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22249 do
22250 IFS=$as_save_IFS
22251 case $as_dir in #(((
22252 '') as_dir=./ ;;
22253 */) ;;
22254 *) as_dir=$as_dir/ ;;
22255 esac
22256 for ac_exec_ext in '' $ac_executable_extensions; do
22257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22258 ac_cv_prog_PANDOC="$ac_prog"
22259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22260 break 2
22261 fi
22262 done
22263 done
22264 IFS=$as_save_IFS
22265
22266 fi
22267 fi
22268 PANDOC=$ac_cv_prog_PANDOC
22269 if test -n "$PANDOC"; then
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
22271 printf "%s\n" "$PANDOC" >&6; }
22272 else
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22274 printf "%s\n" "no" >&6; }
22275 fi
22276
22277
22278 test -n "$PANDOC" && break
22279 done
22280
22281 if test -n "$PANDOC"; then
22282 FLaC__HAS_PANDOC_TRUE=
22283 FLaC__HAS_PANDOC_FALSE='#'
22284 else
22285 FLaC__HAS_PANDOC_TRUE='#'
22286 FLaC__HAS_PANDOC_FALSE=
22287 fi
22288
22289 if test -n "$PANDOC" ; then
22290 printf "%s\n" "#define FLAC__HAS_PANDOC 1" >>confdefs.h
22291
22292
22293 else
22294 if test -f "$srcdir/man/flac.1" && test -f "$srcdir/man/metaflac.1" ; then
22295 HAS_PREBUILT_MANPAGES=yes
22296 fi
22297 fi
22298 if test "x$HAS_PREBUILT_MANPAGES" = "xyes"; then
22299 FLaC__HAS_PREBUILT_MANPAGES_TRUE=
22300 FLaC__HAS_PREBUILT_MANPAGES_FALSE='#'
22301 else
22302 FLaC__HAS_PREBUILT_MANPAGES_TRUE='#'
22303 FLaC__HAS_PREBUILT_MANPAGES_FALSE=
22304 fi
22305
22306
22307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22308 printf %s "checking for clock_gettime in -lrt... " >&6; }
22309 if test ${ac_cv_lib_rt_clock_gettime+y}
22310 then :
22311 printf %s "(cached) " >&6
22312 else $as_nop
22313 ac_check_lib_save_LIBS=$LIBS
22314 LIBS="-lrt $LIBS"
22315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316 /* end confdefs.h. */
22317
22318 /* Override any GCC internal prototype to avoid an error.
22319 Use char because int might match the return type of a GCC
22320 builtin and then its argument prototype would still apply. */
22321 char clock_gettime ();
22322 int
22323 main (void)
22324 {
22325 return clock_gettime ();
22326 ;
22327 return 0;
22328 }
22329 _ACEOF
22330 if ac_fn_c_try_link "$LINENO"
22331 then :
22332 ac_cv_lib_rt_clock_gettime=yes
22333 else $as_nop
22334 ac_cv_lib_rt_clock_gettime=no
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22337 conftest$ac_exeext conftest.$ac_ext
22338 LIBS=$ac_check_lib_save_LIBS
22339 fi
22340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22341 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
22342 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
22343 then :
22344 LIB_CLOCK_GETTIME=-lrt
22345 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22346
22347
22348 fi
22349
22350
22351
22352
22353 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
22354
22355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
22356 printf %s "checking for version of $CC... " >&6; }
22357 GCC_VERSION=`$CC -dumpversion`
22358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
22359 printf "%s\n" "$GCC_VERSION" >&6; }
22360
22361 GCC_MAJOR_VERSION=`echo $GCC_VERSION | cut -d. -f 1`
22362 GCC_MINOR_VERSION=`echo $GCC_VERSION | cut -d. -f 2`
22363 else
22364 GCC_MAJOR_VERSION=0
22365 GCC_MINOR_VERSION=0
22366 fi
22367
22368
22369
22370
22371
22372
22373 if test x$ac_cv_c_compiler_gnu = xyes -o x$xiph_cv_c_compiler_clang = xyes ; then
22374 if test "x${ax_enable_debug}" = "xno"
22375 then :
22376
22377 CFLAGS="-O3 -funroll-loops $CFLAGS"
22378 CXXFLAGS="-O3 $CXXFLAGS"
22379
22380 fi
22381
22382 CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Wconversion
22383 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations
22384
22385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
22386 printf %s "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
22387 ac_add_cflags__old_cflags="$CFLAGS"
22388 CFLAGS="-Wdeclaration-after-statement"
22389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22390 /* end confdefs.h. */
22391
22392 #include <stdio.h>
22393
22394 int
22395 main (void)
22396 {
22397 puts("Hello, World!"); return 0;
22398 ;
22399 return 0;
22400 }
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"
22403 then :
22404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22405 printf "%s\n" "yes" >&6; }
22406 CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement"
22407 else $as_nop
22408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22409 printf "%s\n" "no" >&6; }
22410 CFLAGS="$ac_add_cflags__old_cflags"
22411
22412 fi
22413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22414 conftest$ac_exeext conftest.$ac_ext
22415
22416
22417
22418 if test "$enable_fortify_source" = "yes" && test "x$mingw_has_memset_chk" != "xno"
22419 then
22420
22421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
22422 printf %s "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
22423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22424 /* end confdefs.h. */
22425
22426
22427 int main() {
22428 #ifndef _FORTIFY_SOURCE
22429 return 0;
22430 #else
22431 this_is_an_error;
22432 #endif
22433 }
22434
22435
22436 _ACEOF
22437 if ac_fn_c_try_link "$LINENO"
22438 then :
22439
22440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22441 printf "%s\n" "yes" >&6; }
22442 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
22443
22444 else $as_nop
22445
22446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22447 printf "%s\n" "no" >&6; }
22448
22449 fi
22450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22451 conftest$ac_exeext conftest.$ac_ext
22452
22453 fi
22454
22455 ac_ext=cpp
22456 ac_cpp='$CXXCPP $CPPFLAGS'
22457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22460
22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Weffc++" >&5
22462 printf %s "checking if $CXX accepts -Weffc++... " >&6; }
22463
22464 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
22465 CXXFLAGS="-Weffc++"
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22468
22469 #include <cstdio>
22470
22471 int
22472 main (void)
22473 {
22474 puts("Hello, World!"); return 0;
22475 ;
22476 return 0;
22477 }
22478 _ACEOF
22479 if ac_fn_cxx_try_link "$LINENO"
22480 then :
22481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22482 printf "%s\n" "yes" >&6; }
22483 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Weffc++"
22484 else $as_nop
22485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486 printf "%s\n" "no" >&6; }
22487 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
22488
22489 fi
22490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22491 conftest$ac_exeext conftest.$ac_ext
22492
22493 ac_ext=c
22494 ac_cpp='$CPP $CPPFLAGS'
22495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22498
22499
22500 if test x$xiph_cv_c_compiler_clang = xyes -a "$OBJ_FORMAT" = elf; then
22501 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
22502 CFLAGS="$CFLAGS -fvisibility=hidden"
22503 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22504 elif test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = elf; then
22505 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
22506 CFLAGS="$CFLAGS -fvisibility=hidden"
22507 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22508 fi
22509
22510
22511 if test x$xiph_cv_c_compiler_clang = xyes -a "$OBJ_FORMAT" = macho; then
22512 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
22513 CFLAGS="$CFLAGS -fvisibility=hidden"
22514 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22515 elif test "$GCC_MAJOR_VERSION" -ge 4 && test "$OBJ_FORMAT" = macho; then
22516 CPPFLAGS="$CPPFLAGS -DFLAC__USE_VISIBILITY_ATTR"
22517 CFLAGS="$CFLAGS -fvisibility=hidden"
22518 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22519 fi
22520
22521 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
22522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
22523 printf %s "checking if $CC accepts -fgnu89-inline... " >&6; }
22524 ac_add_cflags__old_cflags="$CFLAGS"
22525 CFLAGS="-fgnu89-inline"
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22528
22529 #include <stdio.h>
22530
22531 int
22532 main (void)
22533 {
22534 puts("Hello, World!"); return 0;
22535 ;
22536 return 0;
22537 }
22538 _ACEOF
22539 if ac_fn_c_try_link "$LINENO"
22540 then :
22541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22542 printf "%s\n" "yes" >&6; }
22543 CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline"
22544 else $as_nop
22545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 printf "%s\n" "no" >&6; }
22547 CFLAGS="$ac_add_cflags__old_cflags"
22548
22549 fi
22550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22551 conftest$ac_exeext conftest.$ac_ext
22552
22553 fi
22554
22555 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x47" ; then
22556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline-small-functions" >&5
22557 printf %s "checking if $CC accepts -fno-inline-small-functions... " >&6; }
22558 ac_add_cflags__old_cflags="$CFLAGS"
22559 CFLAGS="-fno-inline-small-functions"
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22562
22563 #include <stdio.h>
22564
22565 int
22566 main (void)
22567 {
22568 puts("Hello, World!"); return 0;
22569 ;
22570 return 0;
22571 }
22572 _ACEOF
22573 if ac_fn_c_try_link "$LINENO"
22574 then :
22575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22576 printf "%s\n" "yes" >&6; }
22577 CFLAGS="$ac_add_cflags__old_cflags -fno-inline-small-functions"
22578 else $as_nop
22579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22580 printf "%s\n" "no" >&6; }
22581 CFLAGS="$ac_add_cflags__old_cflags"
22582
22583 fi
22584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22585 conftest$ac_exeext conftest.$ac_ext
22586
22587 fi
22588
22589 fi
22590
22591 case "$host_os" in
22592 "mingw32"|"os2")
22593 if test "$host_cpu" = "i686"; then
22594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -mstackrealign" >&5
22595 printf %s "checking if $CC accepts -mstackrealign... " >&6; }
22596 ac_add_cflags__old_cflags="$CFLAGS"
22597 CFLAGS="-mstackrealign"
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22600
22601 #include <stdio.h>
22602
22603 int
22604 main (void)
22605 {
22606 puts("Hello, World!"); return 0;
22607 ;
22608 return 0;
22609 }
22610 _ACEOF
22611 if ac_fn_c_try_link "$LINENO"
22612 then :
22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22614 printf "%s\n" "yes" >&6; }
22615 CFLAGS="$ac_add_cflags__old_cflags -mstackrealign"
22616 else $as_nop
22617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22618 printf "%s\n" "no" >&6; }
22619 CFLAGS="$ac_add_cflags__old_cflags"
22620
22621 fi
22622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22623 conftest$ac_exeext conftest.$ac_ext
22624
22625 fi
22626 esac
22627
22628 if test x$enable_werror = "xyes" ; then
22629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
22630 printf %s "checking if $CC accepts -Werror... " >&6; }
22631 ac_add_cflags__old_cflags="$CFLAGS"
22632 CFLAGS="-Werror"
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635
22636 #include <stdio.h>
22637
22638 int
22639 main (void)
22640 {
22641 puts("Hello, World!"); return 0;
22642 ;
22643 return 0;
22644 }
22645 _ACEOF
22646 if ac_fn_c_try_link "$LINENO"
22647 then :
22648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22649 printf "%s\n" "yes" >&6; }
22650 CFLAGS="$ac_add_cflags__old_cflags -Werror"
22651 else $as_nop
22652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 printf "%s\n" "no" >&6; }
22654 CFLAGS="$ac_add_cflags__old_cflags"
22655
22656 fi
22657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22658 conftest$ac_exeext conftest.$ac_ext
22659
22660 ac_ext=cpp
22661 ac_cpp='$CXXCPP $CPPFLAGS'
22662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22665
22666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror" >&5
22667 printf %s "checking if $CXX accepts -Werror... " >&6; }
22668
22669 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
22670 CXXFLAGS="-Werror"
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673
22674 #include <cstdio>
22675
22676 int
22677 main (void)
22678 {
22679 puts("Hello, World!"); return 0;
22680 ;
22681 return 0;
22682 }
22683 _ACEOF
22684 if ac_fn_cxx_try_link "$LINENO"
22685 then :
22686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22687 printf "%s\n" "yes" >&6; }
22688 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Werror"
22689 else $as_nop
22690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22691 printf "%s\n" "no" >&6; }
22692 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
22693
22694 fi
22695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22696 conftest$ac_exeext conftest.$ac_ext
22697
22698 ac_ext=c
22699 ac_cpp='$CPP $CPPFLAGS'
22700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22703
22704 fi
22705
22706 if test x$enable_stack_smash_protection = "xyes" && test "x$mingw_has_stack_chk_fail" != "xno" ; then
22707
22708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports stack smash protection" >&5
22709 printf %s "checking if $CC supports stack smash protection... " >&6; }
22710 xiph_stack_check_old_cflags="$CFLAGS"
22711 SSP_FLAGS="-fstack-protector-strong"
22712 CFLAGS=$SSP_FLAGS
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715
22716 #include <stdio.h>
22717
22718 int
22719 main (void)
22720 {
22721 puts("Hello, World!"); return 0;
22722 ;
22723 return 0;
22724 }
22725 _ACEOF
22726 if ac_fn_c_try_link "$LINENO"
22727 then :
22728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22729 printf "%s\n" "yes" >&6; }
22730 CFLAGS="$xiph_stack_check_old_cflags $SSP_FLAGS"
22731 else $as_nop
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22733 printf "%s\n" "no" >&6; }
22734 CFLAGS="$xiph_stack_check_old_cflags"
22735
22736 fi
22737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22738 conftest$ac_exeext conftest.$ac_ext
22739
22740 ac_ext=cpp
22741 ac_cpp='$CXXCPP $CPPFLAGS'
22742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22745
22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CXX supports stack smash protection" >&5
22747 printf %s "checking if $CXX supports stack smash protection... " >&6; }
22748 xiph_stack_check_old_cxxflags="$CXXFLAGS"
22749 SSP_FLAGS="-fstack-protector-strong"
22750 CXXFLAGS=$SSP_FLAGS
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22753
22754 #include <cstdio>
22755
22756 int
22757 main (void)
22758 {
22759 puts("Hello, World!"); return 0;
22760 ;
22761 return 0;
22762 }
22763 _ACEOF
22764 if ac_fn_cxx_try_link "$LINENO"
22765 then :
22766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22767 printf "%s\n" "yes" >&6; }
22768 CXXFLAGS="$xiph_stack_check_old_cxxflags $SSP_FLAGS"
22769 else $as_nop
22770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 printf "%s\n" "no" >&6; }
22772 CXXFLAGS="$xiph_stack_check_old_cxxflags"
22773
22774 fi
22775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22776 conftest$ac_exeext conftest.$ac_ext
22777 ac_ext=c
22778 ac_cpp='$CPP $CPPFLAGS'
22779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22782
22783
22784 else
22785 enable_stack_smash_protection=no
22786 fi
22787
22788
22789
22790 if test x$enable_static = "xyes" ; then
22791 CPPFLAGS="-DFLAC__NO_DLL $CPPFLAGS"
22792 fi
22793
22794 # Extract the first word of "git", so it can be a program name with args.
22795 set dummy git; ac_word=$2
22796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22797 printf %s "checking for $ac_word... " >&6; }
22798 if test ${ac_cv_prog_GIT_FOUND+y}
22799 then :
22800 printf %s "(cached) " >&6
22801 else $as_nop
22802 if test -n "$GIT_FOUND"; then
22803 ac_cv_prog_GIT_FOUND="$GIT_FOUND" # Let the user override the test.
22804 else
22805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22806 for as_dir in $PATH
22807 do
22808 IFS=$as_save_IFS
22809 case $as_dir in #(((
22810 '') as_dir=./ ;;
22811 */) ;;
22812 *) as_dir=$as_dir/ ;;
22813 esac
22814 for ac_exec_ext in '' $ac_executable_extensions; do
22815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22816 ac_cv_prog_GIT_FOUND="yes"
22817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22818 break 2
22819 fi
22820 done
22821 done
22822 IFS=$as_save_IFS
22823
22824 fi
22825 fi
22826 GIT_FOUND=$ac_cv_prog_GIT_FOUND
22827 if test -n "$GIT_FOUND"; then
22828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT_FOUND" >&5
22829 printf "%s\n" "$GIT_FOUND" >&6; }
22830 else
22831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 printf "%s\n" "no" >&6; }
22833 fi
22834
22835
22836
22837 if test x$GIT_FOUND$enable_version_from_git = "xyesyes"; then
22838 GIT_COMMIT_TAG=`git -C $srcdir --git-dir=.git describe --tags --exact-match 2>/dev/null`
22839 GIT_COMMIT_HASH=`git -C $srcdir --git-dir=.git log -1 --pretty=format:%H 2>/dev/null | head -c 8`
22840 GIT_COMMIT_DATE=`git -C $srcdir --git-dir=.git log -1 --pretty=format:%cd --date=format:%Y%m%d 2>/dev/null`
22841 if test ${#GIT_COMMIT_HASH} = 8 && test ${#GIT_COMMIT_DATE} = 8; then
22842 GIT_COMMIT_VERSION_AVAIL=yes
22843 if test ${#GIT_COMMIT_TAG} != 0 ; then
22844 GIT_COMMIT_TAG_AVAIL=yes
22845
22846 printf "%s\n" "#define GIT_COMMIT_TAG \"${GIT_COMMIT_TAG}\"" >>confdefs.h
22847
22848 else
22849 GIT_COMMIT_VERSION_HASH=yes
22850 fi
22851
22852 printf "%s\n" "#define GIT_COMMIT_HASH \"${GIT_COMMIT_HASH}\"" >>confdefs.h
22853
22854
22855 printf "%s\n" "#define GIT_COMMIT_DATE \"${GIT_COMMIT_DATE}\"" >>confdefs.h
22856
22857 fi
22858 fi
22859
22860
22861
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fassociative-math -fno-signed-zeros -fno-trapping-math -freciprocal-math" >&5
22863 printf %s "checking whether C compiler accepts -fassociative-math -fno-signed-zeros -fno-trapping-math -freciprocal-math... " >&6; }
22864 if test ${ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math+y}
22865 then :
22866 printf %s "(cached) " >&6
22867 else $as_nop
22868
22869 ax_check_save_flags=$CFLAGS
22870 CFLAGS="$CFLAGS -fassociative-math -fno-signed-zeros -fno-trapping-math -freciprocal-math"
22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22872 /* end confdefs.h. */
22873
22874 int
22875 main (void)
22876 {
22877
22878 ;
22879 return 0;
22880 }
22881 _ACEOF
22882 if ac_fn_c_try_compile "$LINENO"
22883 then :
22884 ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math=yes
22885 else $as_nop
22886 ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math=no
22887 fi
22888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22889 CFLAGS=$ax_check_save_flags
22890 fi
22891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math" >&5
22892 printf "%s\n" "$ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math" >&6; }
22893 if test "x$ax_cv_check_cflags___fassociative_math__fno_signed_zeros__fno_trapping_math__freciprocal_math" = xyes
22894 then :
22895 HAVE_ASSOC_MATH=yes
22896 else $as_nop
22897 :
22898 fi
22899
22900 if test "x$HAVE_ASSOC_MATH" = "xyes"; then
22901 ASSOC_MATH_AVAILABLE_TRUE=
22902 ASSOC_MATH_AVAILABLE_FALSE='#'
22903 else
22904 ASSOC_MATH_AVAILABLE_TRUE='#'
22905 ASSOC_MATH_AVAILABLE_FALSE=
22906 fi
22907
22908
22909
22910 ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/share/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile src/utils/Makefile src/utils/flacdiff/Makefile src/utils/flactimer/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Doxyfile doc/Makefile doc/images/Makefile m4/Makefile man/Makefile test/common.sh test/Makefile test/cuesheets/Makefile test/foreign-metadata-test-files/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile oss-fuzz/Makefile"
22911
22912 cat >confcache <<\_ACEOF
22913 # This file is a shell script that caches the results of configure
22914 # tests run on this system so they can be shared between configure
22915 # scripts and configure runs, see configure's option --config-cache.
22916 # It is not useful on other systems. If it contains results you don't
22917 # want to keep, you may remove or edit it.
22918 #
22919 # config.status only pays attention to the cache file if you give it
22920 # the --recheck option to rerun configure.
22921 #
22922 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22923 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22924 # following values.
22925
22926 _ACEOF
22927
22928 # The following way of writing the cache mishandles newlines in values,
22929 # but we know of no workaround that is simple, portable, and efficient.
22930 # So, we kill variables containing newlines.
22931 # Ultrix sh set writes to stderr and can't be redirected directly,
22932 # and sets the high bit in the cache file unless we assign to the vars.
22933 (
22934 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22935 eval ac_val=\$$ac_var
22936 case $ac_val in #(
22937 *${as_nl}*)
22938 case $ac_var in #(
22939 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22940 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22941 esac
22942 case $ac_var in #(
22943 _ | IFS | as_nl) ;; #(
22944 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22945 *) { eval $ac_var=; unset $ac_var;} ;;
22946 esac ;;
22947 esac
22948 done
22949
22950 (set) 2>&1 |
22951 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22952 *${as_nl}ac_space=\ *)
22953 # `set' does not quote correctly, so add quotes: double-quote
22954 # substitution turns \\\\ into \\, and sed turns \\ into \.
22955 sed -n \
22956 "s/'/'\\\\''/g;
22957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22958 ;; #(
22959 *)
22960 # `set' quotes correctly as required by POSIX, so do not add quotes.
22961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22962 ;;
22963 esac |
22964 sort
22965 ) |
22966 sed '
22967 /^ac_cv_env_/b end
22968 t clear
22969 :clear
22970 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22971 t end
22972 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22973 :end' >>confcache
22974 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22975 if test -w "$cache_file"; then
22976 if test "x$cache_file" != "x/dev/null"; then
22977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22978 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22979 if test ! -f "$cache_file" || test -h "$cache_file"; then
22980 cat confcache >"$cache_file"
22981 else
22982 case $cache_file in #(
22983 */* | ?:*)
22984 mv -f confcache "$cache_file"$$ &&
22985 mv -f "$cache_file"$$ "$cache_file" ;; #(
22986 *)
22987 mv -f confcache "$cache_file" ;;
22988 esac
22989 fi
22990 fi
22991 else
22992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22993 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22994 fi
22995 fi
22996 rm -f confcache
22997
22998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22999 # Let make expand exec_prefix.
23000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23001
23002 DEFS=-DHAVE_CONFIG_H
23003
23004 ac_libobjs=
23005 ac_ltlibobjs=
23006 U=
23007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23008 # 1. Remove the extension, and $U if already installed.
23009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23010 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23012 # will be set to the directory where LIBOBJS objects are built.
23013 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23014 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23015 done
23016 LIBOBJS=$ac_libobjs
23017
23018 LTLIBOBJS=$ac_ltlibobjs
23019
23020
23021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23022 printf %s "checking that generated files are newer than configure... " >&6; }
23023 if test -n "$am_sleep_pid"; then
23024 # Hide warnings about reused PIDs.
23025 wait $am_sleep_pid 2>/dev/null
23026 fi
23027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23028 printf "%s\n" "done" >&6; }
23029 if test -n "$EXEEXT"; then
23030 am__EXEEXT_TRUE=
23031 am__EXEEXT_FALSE='#'
23032 else
23033 am__EXEEXT_TRUE='#'
23034 am__EXEEXT_FALSE=
23035 fi
23036
23037 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23038 as_fn_error $? "conditional \"AMDEP\" was never defined.
23039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23040 fi
23041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23042 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23044 fi
23045 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23046 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
23047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23048 fi
23049 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23050 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23052 fi
23053
23054 if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then
23055 as_fn_error $? "conditional \"FLaC__NO_ASM\" was never defined.
23056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23057 fi
23058 if test -z "${FLAC__CPU_X86_64_TRUE}" && test -z "${FLAC__CPU_X86_64_FALSE}"; then
23059 as_fn_error $? "conditional \"FLAC__CPU_X86_64\" was never defined.
23060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23061 fi
23062 if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then
23063 as_fn_error $? "conditional \"FLaC__CPU_IA32\" was never defined.
23064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23065 fi
23066 if test -z "${FLAC__CPU_ARM64_TRUE}" && test -z "${FLAC__CPU_ARM64_FALSE}"; then
23067 as_fn_error $? "conditional \"FLAC__CPU_ARM64\" was never defined.
23068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23069 fi
23070 if test -z "${OS_IS_WINDOWS_TRUE}" && test -z "${OS_IS_WINDOWS_FALSE}"; then
23071 as_fn_error $? "conditional \"OS_IS_WINDOWS\" was never defined.
23072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23073 fi
23074 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
23075 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
23076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23077 fi
23078 if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then
23079 as_fn_error $? "conditional \"FLaC__SYS_DARWIN\" was never defined.
23080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23081 fi
23082 if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then
23083 as_fn_error $? "conditional \"FLaC__SYS_LINUX\" was never defined.
23084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23085 fi
23086 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
23087 as_fn_error $? "conditional \"DEBUG\" was never defined.
23088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23089 fi
23090 if test -z "${FLaC__USE_AVX_TRUE}" && test -z "${FLaC__USE_AVX_FALSE}"; then
23091 as_fn_error $? "conditional \"FLaC__USE_AVX\" was never defined.
23092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23093 fi
23094 if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then
23095 as_fn_error $? "conditional \"FLaC__HAS_DOXYGEN\" was never defined.
23096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23097 fi
23098 if test -z "${FLaC__HAS_PREBUILT_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_PREBUILT_DOXYGEN_FALSE}"; then
23099 as_fn_error $? "conditional \"FLaC__HAS_PREBUILT_DOXYGEN\" was never defined.
23100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23101 fi
23102 if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then
23103 as_fn_error $? "conditional \"FLaC__WITH_CPPLIBS\" was never defined.
23104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23105 fi
23106 if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
23107 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
23108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23109 fi
23110 if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
23111 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
23112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23113 fi
23114 if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
23115 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
23116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23117 fi
23118 if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then
23119 as_fn_error $? "conditional \"FLaC__HAS_OGG\" was never defined.
23120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23121 fi
23122 if test -z "${FLaC__WITH_PROGRAMS_TRUE}" && test -z "${FLaC__WITH_PROGRAMS_FALSE}"; then
23123 as_fn_error $? "conditional \"FLaC__WITH_PROGRAMS\" was never defined.
23124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23125 fi
23126 if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
23127 as_fn_error $? "conditional \"EXAMPLES\" was never defined.
23128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23129 fi
23130 if test -z "${FLaC__HAS_PANDOC_TRUE}" && test -z "${FLaC__HAS_PANDOC_FALSE}"; then
23131 as_fn_error $? "conditional \"FLaC__HAS_PANDOC\" was never defined.
23132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23133 fi
23134 if test -z "${FLaC__HAS_PREBUILT_MANPAGES_TRUE}" && test -z "${FLaC__HAS_PREBUILT_MANPAGES_FALSE}"; then
23135 as_fn_error $? "conditional \"FLaC__HAS_PREBUILT_MANPAGES\" was never defined.
23136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23137 fi
23138 if test -z "${ASSOC_MATH_AVAILABLE_TRUE}" && test -z "${ASSOC_MATH_AVAILABLE_FALSE}"; then
23139 as_fn_error $? "conditional \"ASSOC_MATH_AVAILABLE\" was never defined.
23140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23141 fi
23142
23143 : "${CONFIG_STATUS=./config.status}"
23144 ac_write_fail=0
23145 ac_clean_files_save=$ac_clean_files
23146 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23148 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23149 as_write_fail=0
23150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23151 #! $SHELL
23152 # Generated by $as_me.
23153 # Run this file to recreate the current configuration.
23154 # Compiler output produced by configure, useful for debugging
23155 # configure, is in config.log if it exists.
23156
23157 debug=false
23158 ac_cs_recheck=false
23159 ac_cs_silent=false
23160
23161 SHELL=\${CONFIG_SHELL-$SHELL}
23162 export SHELL
23163 _ASEOF
23164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23165 ## -------------------- ##
23166 ## M4sh Initialization. ##
23167 ## -------------------- ##
23168
23169 # Be more Bourne compatible
23170 DUALCASE=1; export DUALCASE # for MKS sh
23171 as_nop=:
23172 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23173 then :
23174 emulate sh
23175 NULLCMD=:
23176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23177 # is contrary to our usage. Disable this feature.
23178 alias -g '${1+"$@"}'='"$@"'
23179 setopt NO_GLOB_SUBST
23180 else $as_nop
23181 case `(set -o) 2>/dev/null` in #(
23182 *posix*) :
23183 set -o posix ;; #(
23184 *) :
23185 ;;
23186 esac
23187 fi
23188
23189
23190
23191 # Reset variables that may have inherited troublesome values from
23192 # the environment.
23193
23194 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23195 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23196 # side effect of setting IFS to empty, thus disabling word splitting.)
23197 # Quoting is to prevent editors from complaining about space-tab.
23198 as_nl='
23199 '
23200 export as_nl
23201 IFS=" "" $as_nl"
23202
23203 PS1='$ '
23204 PS2='> '
23205 PS4='+ '
23206
23207 # Ensure predictable behavior from utilities with locale-dependent output.
23208 LC_ALL=C
23209 export LC_ALL
23210 LANGUAGE=C
23211 export LANGUAGE
23212
23213 # We cannot yet rely on "unset" to work, but we need these variables
23214 # to be unset--not just set to an empty or harmless value--now, to
23215 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23216 # also avoids known problems related to "unset" and subshell syntax
23217 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23218 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23219 do eval test \${$as_var+y} \
23220 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23221 done
23222
23223 # Ensure that fds 0, 1, and 2 are open.
23224 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23225 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23226 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23227
23228 # The user is always right.
23229 if ${PATH_SEPARATOR+false} :; then
23230 PATH_SEPARATOR=:
23231 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23232 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23233 PATH_SEPARATOR=';'
23234 }
23235 fi
23236
23237
23238 # Find who we are. Look in the path if we contain no directory separator.
23239 as_myself=
23240 case $0 in #((
23241 *[\\/]* ) as_myself=$0 ;;
23242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23244 do
23245 IFS=$as_save_IFS
23246 case $as_dir in #(((
23247 '') as_dir=./ ;;
23248 */) ;;
23249 *) as_dir=$as_dir/ ;;
23250 esac
23251 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23252 done
23253 IFS=$as_save_IFS
23254
23255 ;;
23256 esac
23257 # We did not find ourselves, most probably we were run as `sh COMMAND'
23258 # in which case we are not to be found in the path.
23259 if test "x$as_myself" = x; then
23260 as_myself=$0
23261 fi
23262 if test ! -f "$as_myself"; then
23263 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23264 exit 1
23265 fi
23266
23267
23268
23269 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23270 # ----------------------------------------
23271 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23272 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23273 # script with STATUS, using 1 if that was 0.
23274 as_fn_error ()
23275 {
23276 as_status=$1; test $as_status -eq 0 && as_status=1
23277 if test "$4"; then
23278 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23280 fi
23281 printf "%s\n" "$as_me: error: $2" >&2
23282 as_fn_exit $as_status
23283 } # as_fn_error
23284
23285
23286
23287 # as_fn_set_status STATUS
23288 # -----------------------
23289 # Set $? to STATUS, without forking.
23290 as_fn_set_status ()
23291 {
23292 return $1
23293 } # as_fn_set_status
23294
23295 # as_fn_exit STATUS
23296 # -----------------
23297 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23298 as_fn_exit ()
23299 {
23300 set +e
23301 as_fn_set_status $1
23302 exit $1
23303 } # as_fn_exit
23304
23305 # as_fn_unset VAR
23306 # ---------------
23307 # Portably unset VAR.
23308 as_fn_unset ()
23309 {
23310 { eval $1=; unset $1;}
23311 }
23312 as_unset=as_fn_unset
23313
23314 # as_fn_append VAR VALUE
23315 # ----------------------
23316 # Append the text in VALUE to the end of the definition contained in VAR. Take
23317 # advantage of any shell optimizations that allow amortized linear growth over
23318 # repeated appends, instead of the typical quadratic growth present in naive
23319 # implementations.
23320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23321 then :
23322 eval 'as_fn_append ()
23323 {
23324 eval $1+=\$2
23325 }'
23326 else $as_nop
23327 as_fn_append ()
23328 {
23329 eval $1=\$$1\$2
23330 }
23331 fi # as_fn_append
23332
23333 # as_fn_arith ARG...
23334 # ------------------
23335 # Perform arithmetic evaluation on the ARGs, and store the result in the
23336 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23337 # must be portable across $(()) and expr.
23338 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23339 then :
23340 eval 'as_fn_arith ()
23341 {
23342 as_val=$(( $* ))
23343 }'
23344 else $as_nop
23345 as_fn_arith ()
23346 {
23347 as_val=`expr "$@" || test $? -eq 1`
23348 }
23349 fi # as_fn_arith
23350
23351
23352 if expr a : '\(a\)' >/dev/null 2>&1 &&
23353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23354 as_expr=expr
23355 else
23356 as_expr=false
23357 fi
23358
23359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23360 as_basename=basename
23361 else
23362 as_basename=false
23363 fi
23364
23365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23366 as_dirname=dirname
23367 else
23368 as_dirname=false
23369 fi
23370
23371 as_me=`$as_basename -- "$0" ||
23372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23373 X"$0" : 'X\(//\)$' \| \
23374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23375 printf "%s\n" X/"$0" |
23376 sed '/^.*\/\([^/][^/]*\)\/*$/{
23377 s//\1/
23378 q
23379 }
23380 /^X\/\(\/\/\)$/{
23381 s//\1/
23382 q
23383 }
23384 /^X\/\(\/\).*/{
23385 s//\1/
23386 q
23387 }
23388 s/.*/./; q'`
23389
23390 # Avoid depending upon Character Ranges.
23391 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23392 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23393 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23394 as_cr_digits='0123456789'
23395 as_cr_alnum=$as_cr_Letters$as_cr_digits
23396
23397
23398 # Determine whether it's possible to make 'echo' print without a newline.
23399 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23400 # for compatibility with existing Makefiles.
23401 ECHO_C= ECHO_N= ECHO_T=
23402 case `echo -n x` in #(((((
23403 -n*)
23404 case `echo 'xy\c'` in
23405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23406 xy) ECHO_C='\c';;
23407 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23408 ECHO_T=' ';;
23409 esac;;
23410 *)
23411 ECHO_N='-n';;
23412 esac
23413
23414 # For backward compatibility with old third-party macros, we provide
23415 # the shell variables $as_echo and $as_echo_n. New code should use
23416 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23417 as_echo='printf %s\n'
23418 as_echo_n='printf %s'
23419
23420 rm -f conf$$ conf$$.exe conf$$.file
23421 if test -d conf$$.dir; then
23422 rm -f conf$$.dir/conf$$.file
23423 else
23424 rm -f conf$$.dir
23425 mkdir conf$$.dir 2>/dev/null
23426 fi
23427 if (echo >conf$$.file) 2>/dev/null; then
23428 if ln -s conf$$.file conf$$ 2>/dev/null; then
23429 as_ln_s='ln -s'
23430 # ... but there are two gotchas:
23431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23433 # In both cases, we have to default to `cp -pR'.
23434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23435 as_ln_s='cp -pR'
23436 elif ln conf$$.file conf$$ 2>/dev/null; then
23437 as_ln_s=ln
23438 else
23439 as_ln_s='cp -pR'
23440 fi
23441 else
23442 as_ln_s='cp -pR'
23443 fi
23444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23445 rmdir conf$$.dir 2>/dev/null
23446
23447
23448 # as_fn_mkdir_p
23449 # -------------
23450 # Create "$as_dir" as a directory, including parents if necessary.
23451 as_fn_mkdir_p ()
23452 {
23453
23454 case $as_dir in #(
23455 -*) as_dir=./$as_dir;;
23456 esac
23457 test -d "$as_dir" || eval $as_mkdir_p || {
23458 as_dirs=
23459 while :; do
23460 case $as_dir in #(
23461 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23462 *) as_qdir=$as_dir;;
23463 esac
23464 as_dirs="'$as_qdir' $as_dirs"
23465 as_dir=`$as_dirname -- "$as_dir" ||
23466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23467 X"$as_dir" : 'X\(//\)[^/]' \| \
23468 X"$as_dir" : 'X\(//\)$' \| \
23469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23470 printf "%s\n" X"$as_dir" |
23471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23472 s//\1/
23473 q
23474 }
23475 /^X\(\/\/\)[^/].*/{
23476 s//\1/
23477 q
23478 }
23479 /^X\(\/\/\)$/{
23480 s//\1/
23481 q
23482 }
23483 /^X\(\/\).*/{
23484 s//\1/
23485 q
23486 }
23487 s/.*/./; q'`
23488 test -d "$as_dir" && break
23489 done
23490 test -z "$as_dirs" || eval "mkdir $as_dirs"
23491 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23492
23493
23494 } # as_fn_mkdir_p
23495 if mkdir -p . 2>/dev/null; then
23496 as_mkdir_p='mkdir -p "$as_dir"'
23497 else
23498 test -d ./-p && rmdir ./-p
23499 as_mkdir_p=false
23500 fi
23501
23502
23503 # as_fn_executable_p FILE
23504 # -----------------------
23505 # Test if FILE is an executable regular file.
23506 as_fn_executable_p ()
23507 {
23508 test -f "$1" && test -x "$1"
23509 } # as_fn_executable_p
23510 as_test_x='test -x'
23511 as_executable_p=as_fn_executable_p
23512
23513 # Sed expression to map a string onto a valid CPP name.
23514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23515
23516 # Sed expression to map a string onto a valid variable name.
23517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23518
23519
23520 exec 6>&1
23521 ## ----------------------------------- ##
23522 ## Main body of $CONFIG_STATUS script. ##
23523 ## ----------------------------------- ##
23524 _ASEOF
23525 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23526
23527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23528 # Save the log message, to keep $0 and so on meaningful, and to
23529 # report actual input values of CONFIG_FILES etc. instead of their
23530 # values after options handling.
23531 ac_log="
23532 This file was extended by flac $as_me 1.5.0, which was
23533 generated by GNU Autoconf 2.71. Invocation command line was
23534
23535 CONFIG_FILES = $CONFIG_FILES
23536 CONFIG_HEADERS = $CONFIG_HEADERS
23537 CONFIG_LINKS = $CONFIG_LINKS
23538 CONFIG_COMMANDS = $CONFIG_COMMANDS
23539 $ $0 $@
23540
23541 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23542 "
23543
23544 _ACEOF
23545
23546 case $ac_config_files in *"
23547 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23548 esac
23549
23550 case $ac_config_headers in *"
23551 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23552 esac
23553
23554
23555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23556 # Files that config.status was made for.
23557 config_files="$ac_config_files"
23558 config_headers="$ac_config_headers"
23559 config_commands="$ac_config_commands"
23560
23561 _ACEOF
23562
23563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23564 ac_cs_usage="\
23565 \`$as_me' instantiates files and other configuration actions
23566 from templates according to the current configuration. Unless the files
23567 and actions are specified as TAGs, all are instantiated by default.
23568
23569 Usage: $0 [OPTION]... [TAG]...
23570
23571 -h, --help print this help, then exit
23572 -V, --version print version number and configuration settings, then exit
23573 --config print configuration, then exit
23574 -q, --quiet, --silent
23575 do not print progress messages
23576 -d, --debug don't remove temporary files
23577 --recheck update $as_me by reconfiguring in the same conditions
23578 --file=FILE[:TEMPLATE]
23579 instantiate the configuration file FILE
23580 --header=FILE[:TEMPLATE]
23581 instantiate the configuration header FILE
23582
23583 Configuration files:
23584 $config_files
23585
23586 Configuration headers:
23587 $config_headers
23588
23589 Configuration commands:
23590 $config_commands
23591
23592 Report bugs to <[email protected]>.
23593 flac home page: <https://www.xiph.org/flac/>."
23594
23595 _ACEOF
23596 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23597 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23599 ac_cs_config='$ac_cs_config_escaped'
23600 ac_cs_version="\\
23601 flac config.status 1.5.0
23602 configured by $0, generated by GNU Autoconf 2.71,
23603 with options \\"\$ac_cs_config\\"
23604
23605 Copyright (C) 2021 Free Software Foundation, Inc.
23606 This config.status script is free software; the Free Software Foundation
23607 gives unlimited permission to copy, distribute and modify it."
23608
23609 ac_pwd='$ac_pwd'
23610 srcdir='$srcdir'
23611 INSTALL='$INSTALL'
23612 MKDIR_P='$MKDIR_P'
23613 AWK='$AWK'
23614 test -n "\$AWK" || AWK=awk
23615 _ACEOF
23616
23617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23618 # The default lists apply if the user does not specify any file.
23619 ac_need_defaults=:
23620 while test $# != 0
23621 do
23622 case $1 in
23623 --*=?*)
23624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23626 ac_shift=:
23627 ;;
23628 --*=)
23629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23630 ac_optarg=
23631 ac_shift=:
23632 ;;
23633 *)
23634 ac_option=$1
23635 ac_optarg=$2
23636 ac_shift=shift
23637 ;;
23638 esac
23639
23640 case $ac_option in
23641 # Handling of the options.
23642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23643 ac_cs_recheck=: ;;
23644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23645 printf "%s\n" "$ac_cs_version"; exit ;;
23646 --config | --confi | --conf | --con | --co | --c )
23647 printf "%s\n" "$ac_cs_config"; exit ;;
23648 --debug | --debu | --deb | --de | --d | -d )
23649 debug=: ;;
23650 --file | --fil | --fi | --f )
23651 $ac_shift
23652 case $ac_optarg in
23653 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23654 '') as_fn_error $? "missing file argument" ;;
23655 esac
23656 as_fn_append CONFIG_FILES " '$ac_optarg'"
23657 ac_need_defaults=false;;
23658 --header | --heade | --head | --hea )
23659 $ac_shift
23660 case $ac_optarg in
23661 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23662 esac
23663 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23664 ac_need_defaults=false;;
23665 --he | --h)
23666 # Conflict between --help and --header
23667 as_fn_error $? "ambiguous option: \`$1'
23668 Try \`$0 --help' for more information.";;
23669 --help | --hel | -h )
23670 printf "%s\n" "$ac_cs_usage"; exit ;;
23671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23672 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23673 ac_cs_silent=: ;;
23674
23675 # This is an error.
23676 -*) as_fn_error $? "unrecognized option: \`$1'
23677 Try \`$0 --help' for more information." ;;
23678
23679 *) as_fn_append ac_config_targets " $1"
23680 ac_need_defaults=false ;;
23681
23682 esac
23683 shift
23684 done
23685
23686 ac_configure_extra_args=
23687
23688 if $ac_cs_silent; then
23689 exec 6>/dev/null
23690 ac_configure_extra_args="$ac_configure_extra_args --silent"
23691 fi
23692
23693 _ACEOF
23694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23695 if \$ac_cs_recheck; then
23696 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23697 shift
23698 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23699 CONFIG_SHELL='$SHELL'
23700 export CONFIG_SHELL
23701 exec "\$@"
23702 fi
23703
23704 _ACEOF
23705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23706 exec 5>>config.log
23707 {
23708 echo
23709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23710 ## Running $as_me. ##
23711 _ASBOX
23712 printf "%s\n" "$ac_log"
23713 } >&5
23714
23715 _ACEOF
23716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23717 #
23718 # INIT-COMMANDS
23719 #
23720 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23721
23722
23723 # The HP-UX ksh and POSIX shell print the target directory to stdout
23724 # if CDPATH is set.
23725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23726
23727 sed_quote_subst='$sed_quote_subst'
23728 double_quote_subst='$double_quote_subst'
23729 delay_variable_subst='$delay_variable_subst'
23730 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23731 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23732 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23733 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23734 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23735 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23736 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23737 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23738 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23739 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23740 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23741 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23742 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23767 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23772 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23773 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23774 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23789 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23790 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23791 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"`'
23792 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23793 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23794 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23795 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23796 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23797 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23798 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23799 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23801 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23802 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23803 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23804 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23828 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23829 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23830 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23831 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23832 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23833 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23834 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23835 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23836 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23837 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23838 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23839 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23840 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23841 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23842 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23843 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23844 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23845 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23846 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23847 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23848 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23849 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23850 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23851 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23852 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23853 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23854 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23855 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23856 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23857 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23858 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23859 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23860 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23861 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23862 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23863 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23864 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23865 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23866 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23867 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23868 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23869 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23870 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23871 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23872 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23873 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23874 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23875 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23876 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23877 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23878 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23879 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23880 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23881 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23882 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23883 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23884 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23885 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23886 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23887 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23888 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23889 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23890 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23891 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23892 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23893 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23894 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23895 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23896 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23897 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23898 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23899 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23900 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23901 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23902 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23903 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23904 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23905 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23906 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23907 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23908 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23909 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23910 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23911 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23912 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23913 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23914 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23915 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23916 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23917 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23918 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23919 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23920 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23921 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23922
23923 LTCC='$LTCC'
23924 LTCFLAGS='$LTCFLAGS'
23925 compiler='$compiler_DEFAULT'
23926
23927 # A function that is used when there is no print builtin or printf.
23928 func_fallback_echo ()
23929 {
23930 eval 'cat <<_LTECHO_EOF
23931 \$1
23932 _LTECHO_EOF'
23933 }
23934
23935 # Quote evaled strings.
23936 for var in AS \
23937 DLLTOOL \
23938 OBJDUMP \
23939 SHELL \
23940 ECHO \
23941 PATH_SEPARATOR \
23942 SED \
23943 GREP \
23944 EGREP \
23945 FGREP \
23946 LD \
23947 NM \
23948 LN_S \
23949 lt_SP2NL \
23950 lt_NL2SP \
23951 reload_flag \
23952 FILECMD \
23953 deplibs_check_method \
23954 file_magic_cmd \
23955 file_magic_glob \
23956 want_nocaseglob \
23957 sharedlib_from_linklib_cmd \
23958 AR \
23959 archiver_list_spec \
23960 STRIP \
23961 RANLIB \
23962 CC \
23963 CFLAGS \
23964 compiler \
23965 lt_cv_sys_global_symbol_pipe \
23966 lt_cv_sys_global_symbol_to_cdecl \
23967 lt_cv_sys_global_symbol_to_import \
23968 lt_cv_sys_global_symbol_to_c_name_address \
23969 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23970 lt_cv_nm_interface \
23971 nm_file_list_spec \
23972 lt_cv_truncate_bin \
23973 lt_prog_compiler_no_builtin_flag \
23974 lt_prog_compiler_pic \
23975 lt_prog_compiler_wl \
23976 lt_prog_compiler_static \
23977 lt_cv_prog_compiler_c_o \
23978 need_locks \
23979 MANIFEST_TOOL \
23980 DSYMUTIL \
23981 NMEDIT \
23982 LIPO \
23983 OTOOL \
23984 OTOOL64 \
23985 shrext_cmds \
23986 export_dynamic_flag_spec \
23987 whole_archive_flag_spec \
23988 compiler_needs_object \
23989 with_gnu_ld \
23990 allow_undefined_flag \
23991 no_undefined_flag \
23992 hardcode_libdir_flag_spec \
23993 hardcode_libdir_separator \
23994 exclude_expsyms \
23995 include_expsyms \
23996 file_list_spec \
23997 variables_saved_for_relink \
23998 libname_spec \
23999 library_names_spec \
24000 soname_spec \
24001 install_override_mode \
24002 finish_eval \
24003 old_striplib \
24004 striplib \
24005 compiler_lib_search_dirs \
24006 predep_objects \
24007 postdep_objects \
24008 predeps \
24009 postdeps \
24010 compiler_lib_search_path \
24011 LD_CXX \
24012 reload_flag_CXX \
24013 compiler_CXX \
24014 lt_prog_compiler_no_builtin_flag_CXX \
24015 lt_prog_compiler_pic_CXX \
24016 lt_prog_compiler_wl_CXX \
24017 lt_prog_compiler_static_CXX \
24018 lt_cv_prog_compiler_c_o_CXX \
24019 export_dynamic_flag_spec_CXX \
24020 whole_archive_flag_spec_CXX \
24021 compiler_needs_object_CXX \
24022 with_gnu_ld_CXX \
24023 allow_undefined_flag_CXX \
24024 no_undefined_flag_CXX \
24025 hardcode_libdir_flag_spec_CXX \
24026 hardcode_libdir_separator_CXX \
24027 exclude_expsyms_CXX \
24028 include_expsyms_CXX \
24029 file_list_spec_CXX \
24030 compiler_lib_search_dirs_CXX \
24031 predep_objects_CXX \
24032 postdep_objects_CXX \
24033 predeps_CXX \
24034 postdeps_CXX \
24035 compiler_lib_search_path_CXX; do
24036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24037 *[\\\\\\\`\\"\\\$]*)
24038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24039 ;;
24040 *)
24041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24042 ;;
24043 esac
24044 done
24045
24046 # Double-quote double-evaled strings.
24047 for var in reload_cmds \
24048 old_postinstall_cmds \
24049 old_postuninstall_cmds \
24050 old_archive_cmds \
24051 extract_expsyms_cmds \
24052 old_archive_from_new_cmds \
24053 old_archive_from_expsyms_cmds \
24054 archive_cmds \
24055 archive_expsym_cmds \
24056 module_cmds \
24057 module_expsym_cmds \
24058 export_symbols_cmds \
24059 prelink_cmds \
24060 postlink_cmds \
24061 postinstall_cmds \
24062 postuninstall_cmds \
24063 finish_cmds \
24064 sys_lib_search_path_spec \
24065 configure_time_dlsearch_path \
24066 configure_time_lt_sys_library_path \
24067 reload_cmds_CXX \
24068 old_archive_cmds_CXX \
24069 old_archive_from_new_cmds_CXX \
24070 old_archive_from_expsyms_cmds_CXX \
24071 archive_cmds_CXX \
24072 archive_expsym_cmds_CXX \
24073 module_cmds_CXX \
24074 module_expsym_cmds_CXX \
24075 export_symbols_cmds_CXX \
24076 prelink_cmds_CXX \
24077 postlink_cmds_CXX; do
24078 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24079 *[\\\\\\\`\\"\\\$]*)
24080 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24081 ;;
24082 *)
24083 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24084 ;;
24085 esac
24086 done
24087
24088 ac_aux_dir='$ac_aux_dir'
24089
24090 # See if we are running on zsh, and set the options that allow our
24091 # commands through without removal of \ escapes INIT.
24092 if test -n "\${ZSH_VERSION+set}"; then
24093 setopt NO_GLOB_SUBST
24094 fi
24095
24096
24097 PACKAGE='$PACKAGE'
24098 VERSION='$VERSION'
24099 RM='$RM'
24100 ofile='$ofile'
24101
24102
24103
24104
24105
24106
24107 _ACEOF
24108
24109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24110
24111 # Handling of arguments.
24112 for ac_config_target in $ac_config_targets
24113 do
24114 case $ac_config_target in
24115 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24117 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24119 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24120 "src/libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;;
24121 "src/libFLAC/flac.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;;
24122 "src/libFLAC/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;;
24123 "src/libFLAC/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;;
24124 "src/libFLAC/include/protected/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;;
24125 "src/libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;;
24126 "src/libFLAC++/flac++.pc") CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;;
24127 "src/flac/Makefile") CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;;
24128 "src/metaflac/Makefile") CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;;
24129 "src/share/Makefile") CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;;
24130 "src/test_grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;;
24131 "src/test_grabbag/cuesheet/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;;
24132 "src/test_grabbag/picture/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;;
24133 "src/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;;
24134 "src/test_libFLAC/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;;
24135 "src/test_libFLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;;
24136 "src/test_seeking/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;;
24137 "src/test_streams/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;;
24138 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
24139 "src/utils/flacdiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flacdiff/Makefile" ;;
24140 "src/utils/flactimer/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/flactimer/Makefile" ;;
24141 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24142 "examples/c/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;;
24143 "examples/c/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;;
24144 "examples/c/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;;
24145 "examples/c/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;;
24146 "examples/c/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;;
24147 "examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;;
24148 "examples/cpp/decode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;;
24149 "examples/cpp/decode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;;
24150 "examples/cpp/encode/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;;
24151 "examples/cpp/encode/file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;;
24152 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24153 "include/FLAC/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;;
24154 "include/FLAC++/Makefile") CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;;
24155 "include/share/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;;
24156 "include/share/grabbag/Makefile") CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;;
24157 "include/test_libs_common/Makefile") CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;;
24158 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
24159 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24160 "doc/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/images/Makefile" ;;
24161 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
24162 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24163 "test/common.sh") CONFIG_FILES="$CONFIG_FILES test/common.sh" ;;
24164 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24165 "test/cuesheets/Makefile") CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;;
24166 "test/foreign-metadata-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/foreign-metadata-test-files/Makefile" ;;
24167 "test/flac-to-flac-metadata-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;;
24168 "test/metaflac-test-files/Makefile") CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;;
24169 "test/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;;
24170 "oss-fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES oss-fuzz/Makefile" ;;
24171
24172 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24173 esac
24174 done
24175
24176
24177 # If the user did not use the arguments to specify the items to instantiate,
24178 # then the envvar interface is used. Set only those that are not.
24179 # We use the long form for the default assignment because of an extremely
24180 # bizarre bug on SunOS 4.1.3.
24181 if $ac_need_defaults; then
24182 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24183 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24184 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24185 fi
24186
24187 # Have a temporary directory for convenience. Make it in the build tree
24188 # simply because there is no reason against having it here, and in addition,
24189 # creating and moving files from /tmp can sometimes cause problems.
24190 # Hook for its removal unless debugging.
24191 # Note that there is a small window in which the directory will not be cleaned:
24192 # after its creation but before its name has been assigned to `$tmp'.
24193 $debug ||
24194 {
24195 tmp= ac_tmp=
24196 trap 'exit_status=$?
24197 : "${ac_tmp:=$tmp}"
24198 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24199 ' 0
24200 trap 'as_fn_exit 1' 1 2 13 15
24201 }
24202 # Create a (secure) tmp directory for tmp files.
24203
24204 {
24205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24206 test -d "$tmp"
24207 } ||
24208 {
24209 tmp=./conf$$-$RANDOM
24210 (umask 077 && mkdir "$tmp")
24211 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24212 ac_tmp=$tmp
24213
24214 # Set up the scripts for CONFIG_FILES section.
24215 # No need to generate them if there are no CONFIG_FILES.
24216 # This happens for instance with `./config.status config.h'.
24217 if test -n "$CONFIG_FILES"; then
24218
24219
24220 ac_cr=`echo X | tr X '\015'`
24221 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24222 # But we know of no other shell where ac_cr would be empty at this
24223 # point, so we can use a bashism as a fallback.
24224 if test "x$ac_cr" = x; then
24225 eval ac_cr=\$\'\\r\'
24226 fi
24227 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24228 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24229 ac_cs_awk_cr='\\r'
24230 else
24231 ac_cs_awk_cr=$ac_cr
24232 fi
24233
24234 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24235 _ACEOF
24236
24237
24238 {
24239 echo "cat >conf$$subs.awk <<_ACEOF" &&
24240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24241 echo "_ACEOF"
24242 } >conf$$subs.sh ||
24243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24245 ac_delim='%!_!# '
24246 for ac_last_try in false false false false false :; do
24247 . ./conf$$subs.sh ||
24248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24249
24250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24251 if test $ac_delim_n = $ac_delim_num; then
24252 break
24253 elif $ac_last_try; then
24254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24255 else
24256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24257 fi
24258 done
24259 rm -f conf$$subs.sh
24260
24261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24263 _ACEOF
24264 sed -n '
24265 h
24266 s/^/S["/; s/!.*/"]=/
24267 p
24268 g
24269 s/^[^!]*!//
24270 :repl
24271 t repl
24272 s/'"$ac_delim"'$//
24273 t delim
24274 :nl
24275 h
24276 s/\(.\{148\}\)..*/\1/
24277 t more1
24278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24279 p
24280 n
24281 b repl
24282 :more1
24283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24284 p
24285 g
24286 s/.\{148\}//
24287 t nl
24288 :delim
24289 h
24290 s/\(.\{148\}\)..*/\1/
24291 t more2
24292 s/["\\]/\\&/g; s/^/"/; s/$/"/
24293 p
24294 b
24295 :more2
24296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24297 p
24298 g
24299 s/.\{148\}//
24300 t delim
24301 ' <conf$$subs.awk | sed '
24302 /^[^""]/{
24303 N
24304 s/\n//
24305 }
24306 ' >>$CONFIG_STATUS || ac_write_fail=1
24307 rm -f conf$$subs.awk
24308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24309 _ACAWK
24310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24311 for (key in S) S_is_set[key] = 1
24312 FS = ""
24313
24314 }
24315 {
24316 line = $ 0
24317 nfields = split(line, field, "@")
24318 substed = 0
24319 len = length(field[1])
24320 for (i = 2; i < nfields; i++) {
24321 key = field[i]
24322 keylen = length(key)
24323 if (S_is_set[key]) {
24324 value = S[key]
24325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24326 len += length(value) + length(field[++i])
24327 substed = 1
24328 } else
24329 len += 1 + keylen
24330 }
24331
24332 print line
24333 }
24334
24335 _ACAWK
24336 _ACEOF
24337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24338 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24339 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24340 else
24341 cat
24342 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24343 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24344 _ACEOF
24345
24346 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24347 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24348 # trailing colons and then remove the whole line if VPATH becomes empty
24349 # (actually we leave an empty line to preserve line numbers).
24350 if test "x$srcdir" = x.; then
24351 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24352 h
24353 s///
24354 s/^/:/
24355 s/[ ]*$/:/
24356 s/:\$(srcdir):/:/g
24357 s/:\${srcdir}:/:/g
24358 s/:@srcdir@:/:/g
24359 s/^:*//
24360 s/:*$//
24361 x
24362 s/\(=[ ]*\).*/\1/
24363 G
24364 s/\n//
24365 s/^[^=]*=[ ]*$//
24366 }'
24367 fi
24368
24369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24370 fi # test -n "$CONFIG_FILES"
24371
24372 # Set up the scripts for CONFIG_HEADERS section.
24373 # No need to generate them if there are no CONFIG_HEADERS.
24374 # This happens for instance with `./config.status Makefile'.
24375 if test -n "$CONFIG_HEADERS"; then
24376 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24377 BEGIN {
24378 _ACEOF
24379
24380 # Transform confdefs.h into an awk script `defines.awk', embedded as
24381 # here-document in config.status, that substitutes the proper values into
24382 # config.h.in to produce config.h.
24383
24384 # Create a delimiter string that does not exist in confdefs.h, to ease
24385 # handling of long lines.
24386 ac_delim='%!_!# '
24387 for ac_last_try in false false :; do
24388 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24389 if test -z "$ac_tt"; then
24390 break
24391 elif $ac_last_try; then
24392 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24393 else
24394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24395 fi
24396 done
24397
24398 # For the awk script, D is an array of macro values keyed by name,
24399 # likewise P contains macro parameters if any. Preserve backslash
24400 # newline sequences.
24401
24402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24403 sed -n '
24404 s/.\{148\}/&'"$ac_delim"'/g
24405 t rset
24406 :rset
24407 s/^[ ]*#[ ]*define[ ][ ]*/ /
24408 t def
24409 d
24410 :def
24411 s/\\$//
24412 t bsnl
24413 s/["\\]/\\&/g
24414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24415 D["\1"]=" \3"/p
24416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24417 d
24418 :bsnl
24419 s/["\\]/\\&/g
24420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24421 D["\1"]=" \3\\\\\\n"\\/p
24422 t cont
24423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24424 t cont
24425 d
24426 :cont
24427 n
24428 s/.\{148\}/&'"$ac_delim"'/g
24429 t clear
24430 :clear
24431 s/\\$//
24432 t bsnlc
24433 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24434 d
24435 :bsnlc
24436 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24437 b cont
24438 ' <confdefs.h | sed '
24439 s/'"$ac_delim"'/"\\\
24440 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24441
24442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24443 for (key in D) D_is_set[key] = 1
24444 FS = ""
24445 }
24446 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24447 line = \$ 0
24448 split(line, arg, " ")
24449 if (arg[1] == "#") {
24450 defundef = arg[2]
24451 mac1 = arg[3]
24452 } else {
24453 defundef = substr(arg[1], 2)
24454 mac1 = arg[2]
24455 }
24456 split(mac1, mac2, "(") #)
24457 macro = mac2[1]
24458 prefix = substr(line, 1, index(line, defundef) - 1)
24459 if (D_is_set[macro]) {
24460 # Preserve the white space surrounding the "#".
24461 print prefix "define", macro P[macro] D[macro]
24462 next
24463 } else {
24464 # Replace #undef with comments. This is necessary, for example,
24465 # in the case of _POSIX_SOURCE, which is predefined and required
24466 # on some systems where configure will not decide to define it.
24467 if (defundef == "undef") {
24468 print "/*", prefix defundef, macro, "*/"
24469 next
24470 }
24471 }
24472 }
24473 { print }
24474 _ACAWK
24475 _ACEOF
24476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24477 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24478 fi # test -n "$CONFIG_HEADERS"
24479
24480
24481 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24482 shift
24483 for ac_tag
24484 do
24485 case $ac_tag in
24486 :[FHLC]) ac_mode=$ac_tag; continue;;
24487 esac
24488 case $ac_mode$ac_tag in
24489 :[FHL]*:*);;
24490 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24491 :[FH]-) ac_tag=-:-;;
24492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24493 esac
24494 ac_save_IFS=$IFS
24495 IFS=:
24496 set x $ac_tag
24497 IFS=$ac_save_IFS
24498 shift
24499 ac_file=$1
24500 shift
24501
24502 case $ac_mode in
24503 :L) ac_source=$1;;
24504 :[FH])
24505 ac_file_inputs=
24506 for ac_f
24507 do
24508 case $ac_f in
24509 -) ac_f="$ac_tmp/stdin";;
24510 *) # Look for the file first in the build tree, then in the source tree
24511 # (if the path is not absolute). The absolute path cannot be DOS-style,
24512 # because $ac_f cannot contain `:'.
24513 test -f "$ac_f" ||
24514 case $ac_f in
24515 [\\/$]*) false;;
24516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24517 esac ||
24518 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24519 esac
24520 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24521 as_fn_append ac_file_inputs " '$ac_f'"
24522 done
24523
24524 # Let's still pretend it is `configure' which instantiates (i.e., don't
24525 # use $as_me), people would be surprised to read:
24526 # /* config.h. Generated by config.status. */
24527 configure_input='Generated from '`
24528 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24529 `' by configure.'
24530 if test x"$ac_file" != x-; then
24531 configure_input="$ac_file. $configure_input"
24532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24533 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24534 fi
24535 # Neutralize special characters interpreted by sed in replacement strings.
24536 case $configure_input in #(
24537 *\&* | *\|* | *\\* )
24538 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24539 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24540 *) ac_sed_conf_input=$configure_input;;
24541 esac
24542
24543 case $ac_tag in
24544 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24546 esac
24547 ;;
24548 esac
24549
24550 ac_dir=`$as_dirname -- "$ac_file" ||
24551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24552 X"$ac_file" : 'X\(//\)[^/]' \| \
24553 X"$ac_file" : 'X\(//\)$' \| \
24554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24555 printf "%s\n" X"$ac_file" |
24556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24557 s//\1/
24558 q
24559 }
24560 /^X\(\/\/\)[^/].*/{
24561 s//\1/
24562 q
24563 }
24564 /^X\(\/\/\)$/{
24565 s//\1/
24566 q
24567 }
24568 /^X\(\/\).*/{
24569 s//\1/
24570 q
24571 }
24572 s/.*/./; q'`
24573 as_dir="$ac_dir"; as_fn_mkdir_p
24574 ac_builddir=.
24575
24576 case "$ac_dir" in
24577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24578 *)
24579 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24580 # A ".." for each directory in $ac_dir_suffix.
24581 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24582 case $ac_top_builddir_sub in
24583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24585 esac ;;
24586 esac
24587 ac_abs_top_builddir=$ac_pwd
24588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24589 # for backward compatibility:
24590 ac_top_builddir=$ac_top_build_prefix
24591
24592 case $srcdir in
24593 .) # We are building in place.
24594 ac_srcdir=.
24595 ac_top_srcdir=$ac_top_builddir_sub
24596 ac_abs_top_srcdir=$ac_pwd ;;
24597 [\\/]* | ?:[\\/]* ) # Absolute name.
24598 ac_srcdir=$srcdir$ac_dir_suffix;
24599 ac_top_srcdir=$srcdir
24600 ac_abs_top_srcdir=$srcdir ;;
24601 *) # Relative name.
24602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24603 ac_top_srcdir=$ac_top_build_prefix$srcdir
24604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24605 esac
24606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24607
24608
24609 case $ac_mode in
24610 :F)
24611 #
24612 # CONFIG_FILE
24613 #
24614
24615 case $INSTALL in
24616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24617 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24618 esac
24619 ac_MKDIR_P=$MKDIR_P
24620 case $MKDIR_P in
24621 [\\/$]* | ?:[\\/]* ) ;;
24622 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24623 esac
24624 _ACEOF
24625
24626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24627 # If the template does not know about datarootdir, expand it.
24628 # FIXME: This hack should be removed a few years after 2.60.
24629 ac_datarootdir_hack=; ac_datarootdir_seen=
24630 ac_sed_dataroot='
24631 /datarootdir/ {
24632 p
24633 q
24634 }
24635 /@datadir@/p
24636 /@docdir@/p
24637 /@infodir@/p
24638 /@localedir@/p
24639 /@mandir@/p'
24640 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24641 *datarootdir*) ac_datarootdir_seen=yes;;
24642 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24644 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24645 _ACEOF
24646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24647 ac_datarootdir_hack='
24648 s&@datadir@&$datadir&g
24649 s&@docdir@&$docdir&g
24650 s&@infodir@&$infodir&g
24651 s&@localedir@&$localedir&g
24652 s&@mandir@&$mandir&g
24653 s&\\\${datarootdir}&$datarootdir&g' ;;
24654 esac
24655 _ACEOF
24656
24657 # Neutralize VPATH when `$srcdir' = `.'.
24658 # Shell code in configure.ac might set extrasub.
24659 # FIXME: do we really want to maintain this feature?
24660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24661 ac_sed_extra="$ac_vpsub
24662 $extrasub
24663 _ACEOF
24664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24665 :t
24666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24667 s|@configure_input@|$ac_sed_conf_input|;t t
24668 s&@top_builddir@&$ac_top_builddir_sub&;t t
24669 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24670 s&@srcdir@&$ac_srcdir&;t t
24671 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24672 s&@top_srcdir@&$ac_top_srcdir&;t t
24673 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24674 s&@builddir@&$ac_builddir&;t t
24675 s&@abs_builddir@&$ac_abs_builddir&;t t
24676 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24677 s&@INSTALL@&$ac_INSTALL&;t t
24678 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24679 $ac_datarootdir_hack
24680 "
24681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24682 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24683
24684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24685 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24687 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24689 which seems to be undefined. Please make sure it is defined" >&5
24690 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24691 which seems to be undefined. Please make sure it is defined" >&2;}
24692
24693 rm -f "$ac_tmp/stdin"
24694 case $ac_file in
24695 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24696 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24697 esac \
24698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24699 ;;
24700 :H)
24701 #
24702 # CONFIG_HEADER
24703 #
24704 if test x"$ac_file" != x-; then
24705 {
24706 printf "%s\n" "/* $configure_input */" >&1 \
24707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24708 } >"$ac_tmp/config.h" \
24709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24710 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24712 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24713 else
24714 rm -f "$ac_file"
24715 mv "$ac_tmp/config.h" "$ac_file" \
24716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24717 fi
24718 else
24719 printf "%s\n" "/* $configure_input */" >&1 \
24720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24721 || as_fn_error $? "could not create -" "$LINENO" 5
24722 fi
24723 # Compute "$ac_file"'s index in $config_headers.
24724 _am_arg="$ac_file"
24725 _am_stamp_count=1
24726 for _am_header in $config_headers :; do
24727 case $_am_header in
24728 $_am_arg | $_am_arg:* )
24729 break ;;
24730 * )
24731 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24732 esac
24733 done
24734 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24735 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24736 X"$_am_arg" : 'X\(//\)[^/]' \| \
24737 X"$_am_arg" : 'X\(//\)$' \| \
24738 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24739 printf "%s\n" X"$_am_arg" |
24740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24741 s//\1/
24742 q
24743 }
24744 /^X\(\/\/\)[^/].*/{
24745 s//\1/
24746 q
24747 }
24748 /^X\(\/\/\)$/{
24749 s//\1/
24750 q
24751 }
24752 /^X\(\/\).*/{
24753 s//\1/
24754 q
24755 }
24756 s/.*/./; q'`/stamp-h$_am_stamp_count
24757 ;;
24758
24759 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24760 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24761 ;;
24762 esac
24763
24764
24765 case $ac_file$ac_mode in
24766 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24767 # Older Autoconf quotes --file arguments for eval, but not when files
24768 # are listed without --file. Let's play safe and only enable the eval
24769 # if we detect the quoting.
24770 # TODO: see whether this extra hack can be removed once we start
24771 # requiring Autoconf 2.70 or later.
24772 case $CONFIG_FILES in #(
24773 *\'*) :
24774 eval set x "$CONFIG_FILES" ;; #(
24775 *) :
24776 set x $CONFIG_FILES ;; #(
24777 *) :
24778 ;;
24779 esac
24780 shift
24781 # Used to flag and report bootstrapping failures.
24782 am_rc=0
24783 for am_mf
24784 do
24785 # Strip MF so we end up with the name of the file.
24786 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24787 # Check whether this is an Automake generated Makefile which includes
24788 # dependency-tracking related rules and includes.
24789 # Grep'ing the whole file directly is not great: AIX grep has a line
24790 # limit of 2048, but all sed's we know have understand at least 4000.
24791 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24792 || continue
24793 am_dirpart=`$as_dirname -- "$am_mf" ||
24794 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24795 X"$am_mf" : 'X\(//\)[^/]' \| \
24796 X"$am_mf" : 'X\(//\)$' \| \
24797 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24798 printf "%s\n" X"$am_mf" |
24799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24800 s//\1/
24801 q
24802 }
24803 /^X\(\/\/\)[^/].*/{
24804 s//\1/
24805 q
24806 }
24807 /^X\(\/\/\)$/{
24808 s//\1/
24809 q
24810 }
24811 /^X\(\/\).*/{
24812 s//\1/
24813 q
24814 }
24815 s/.*/./; q'`
24816 am_filepart=`$as_basename -- "$am_mf" ||
24817 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24818 X"$am_mf" : 'X\(//\)$' \| \
24819 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24820 printf "%s\n" X/"$am_mf" |
24821 sed '/^.*\/\([^/][^/]*\)\/*$/{
24822 s//\1/
24823 q
24824 }
24825 /^X\/\(\/\/\)$/{
24826 s//\1/
24827 q
24828 }
24829 /^X\/\(\/\).*/{
24830 s//\1/
24831 q
24832 }
24833 s/.*/./; q'`
24834 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24835 && sed -e '/# am--include-marker/d' "$am_filepart" \
24836 | $MAKE -f - am--depfiles" >&5
24837 (cd "$am_dirpart" \
24838 && sed -e '/# am--include-marker/d' "$am_filepart" \
24839 | $MAKE -f - am--depfiles) >&5 2>&5
24840 ac_status=$?
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); } || am_rc=$?
24843 done
24844 if test $am_rc -ne 0; then
24845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24846 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24847 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24848 for automatic dependency tracking. If GNU make was not used, consider
24849 re-running the configure script with MAKE=\"gmake\" (or whatever is
24850 necessary). You can also try re-running configure with the
24851 '--disable-dependency-tracking' option to at least be able to build
24852 the package (albeit without support for automatic dependency tracking).
24853 See \`config.log' for more details" "$LINENO" 5; }
24854 fi
24855 { am_dirpart=; unset am_dirpart;}
24856 { am_filepart=; unset am_filepart;}
24857 { am_mf=; unset am_mf;}
24858 { am_rc=; unset am_rc;}
24859 rm -f conftest-deps.mk
24860 }
24861 ;;
24862 "libtool":C)
24863
24864 # See if we are running on zsh, and set the options that allow our
24865 # commands through without removal of \ escapes.
24866 if test -n "${ZSH_VERSION+set}"; then
24867 setopt NO_GLOB_SUBST
24868 fi
24869
24870 cfgfile=${ofile}T
24871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24872 $RM "$cfgfile"
24873
24874 cat <<_LT_EOF >> "$cfgfile"
24875 #! $SHELL
24876 # Generated automatically by $as_me ($PACKAGE) $VERSION
24877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24878
24879 # Provide generalized library-building support services.
24880 # Written by Gordon Matzigkeit, 1996
24881
24882 # Copyright (C) 2014 Free Software Foundation, Inc.
24883 # This is free software; see the source for copying conditions. There is NO
24884 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24885
24886 # GNU Libtool is free software; you can redistribute it and/or modify
24887 # it under the terms of the GNU General Public License as published by
24888 # the Free Software Foundation; either version 2 of of the License, or
24889 # (at your option) any later version.
24890 #
24891 # As a special exception to the GNU General Public License, if you
24892 # distribute this file as part of a program or library that is built
24893 # using GNU Libtool, you may include this file under the same
24894 # distribution terms that you use for the rest of that program.
24895 #
24896 # GNU Libtool is distributed in the hope that it will be useful, but
24897 # WITHOUT ANY WARRANTY; without even the implied warranty of
24898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24899 # GNU General Public License for more details.
24900 #
24901 # You should have received a copy of the GNU General Public License
24902 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24903
24904
24905 # The names of the tagged configurations supported by this script.
24906 available_tags='CXX '
24907
24908 # Configured defaults for sys_lib_dlsearch_path munging.
24909 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24910
24911 # ### BEGIN LIBTOOL CONFIG
24912
24913 # Which release of libtool.m4 was used?
24914 macro_version=$macro_version
24915 macro_revision=$macro_revision
24916
24917 # Assembler program.
24918 AS=$lt_AS
24919
24920 # DLL creation program.
24921 DLLTOOL=$lt_DLLTOOL
24922
24923 # Object dumper program.
24924 OBJDUMP=$lt_OBJDUMP
24925
24926 # Whether or not to build static libraries.
24927 build_old_libs=$enable_static
24928
24929 # What type of objects to build.
24930 pic_mode=$pic_mode
24931
24932 # Whether or not to build shared libraries.
24933 build_libtool_libs=$enable_shared
24934
24935 # Whether or not to optimize for fast installation.
24936 fast_install=$enable_fast_install
24937
24938 # Shared archive member basename,for filename based shared library versioning on AIX.
24939 shared_archive_member_spec=$shared_archive_member_spec
24940
24941 # Shell to use when invoking shell scripts.
24942 SHELL=$lt_SHELL
24943
24944 # An echo program that protects backslashes.
24945 ECHO=$lt_ECHO
24946
24947 # The PATH separator for the build system.
24948 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24949
24950 # The host system.
24951 host_alias=$host_alias
24952 host=$host
24953 host_os=$host_os
24954
24955 # The build system.
24956 build_alias=$build_alias
24957 build=$build
24958 build_os=$build_os
24959
24960 # A sed program that does not truncate output.
24961 SED=$lt_SED
24962
24963 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24964 Xsed="\$SED -e 1s/^X//"
24965
24966 # A grep program that handles long lines.
24967 GREP=$lt_GREP
24968
24969 # An ERE matcher.
24970 EGREP=$lt_EGREP
24971
24972 # A literal string matcher.
24973 FGREP=$lt_FGREP
24974
24975 # A BSD- or MS-compatible name lister.
24976 NM=$lt_NM
24977
24978 # Whether we need soft or hard links.
24979 LN_S=$lt_LN_S
24980
24981 # What is the maximum length of a command?
24982 max_cmd_len=$max_cmd_len
24983
24984 # Object file suffix (normally "o").
24985 objext=$ac_objext
24986
24987 # Executable file suffix (normally "").
24988 exeext=$exeext
24989
24990 # whether the shell understands "unset".
24991 lt_unset=$lt_unset
24992
24993 # turn spaces into newlines.
24994 SP2NL=$lt_lt_SP2NL
24995
24996 # turn newlines into spaces.
24997 NL2SP=$lt_lt_NL2SP
24998
24999 # convert \$build file names to \$host format.
25000 to_host_file_cmd=$lt_cv_to_host_file_cmd
25001
25002 # convert \$build files to toolchain format.
25003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25004
25005 # A file(cmd) program that detects file types.
25006 FILECMD=$lt_FILECMD
25007
25008 # Method to check whether dependent libraries are shared objects.
25009 deplibs_check_method=$lt_deplibs_check_method
25010
25011 # Command to use when deplibs_check_method = "file_magic".
25012 file_magic_cmd=$lt_file_magic_cmd
25013
25014 # How to find potential files when deplibs_check_method = "file_magic".
25015 file_magic_glob=$lt_file_magic_glob
25016
25017 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25018 want_nocaseglob=$lt_want_nocaseglob
25019
25020 # Command to associate shared and link libraries.
25021 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25022
25023 # The archiver.
25024 AR=$lt_AR
25025
25026 # Flags to create an archive (by configure).
25027 lt_ar_flags=$lt_ar_flags
25028
25029 # Flags to create an archive.
25030 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25031
25032 # How to feed a file listing to the archiver.
25033 archiver_list_spec=$lt_archiver_list_spec
25034
25035 # A symbol stripping program.
25036 STRIP=$lt_STRIP
25037
25038 # Commands used to install an old-style archive.
25039 RANLIB=$lt_RANLIB
25040 old_postinstall_cmds=$lt_old_postinstall_cmds
25041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25042
25043 # Whether to use a lock for old archive extraction.
25044 lock_old_archive_extraction=$lock_old_archive_extraction
25045
25046 # A C compiler.
25047 LTCC=$lt_CC
25048
25049 # LTCC compiler flags.
25050 LTCFLAGS=$lt_CFLAGS
25051
25052 # Take the output of nm and produce a listing of raw symbols and C names.
25053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25054
25055 # Transform the output of nm in a proper C declaration.
25056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25057
25058 # Transform the output of nm into a list of symbols to manually relocate.
25059 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25060
25061 # Transform the output of nm in a C name address pair.
25062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25063
25064 # Transform the output of nm in a C name address pair when lib prefix is needed.
25065 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25066
25067 # The name lister interface.
25068 nm_interface=$lt_lt_cv_nm_interface
25069
25070 # Specify filename containing input files for \$NM.
25071 nm_file_list_spec=$lt_nm_file_list_spec
25072
25073 # The root where to search for dependent libraries,and where our libraries should be installed.
25074 lt_sysroot=$lt_sysroot
25075
25076 # Command to truncate a binary pipe.
25077 lt_truncate_bin=$lt_lt_cv_truncate_bin
25078
25079 # The name of the directory that contains temporary libtool files.
25080 objdir=$objdir
25081
25082 # Used to examine libraries when file_magic_cmd begins with "file".
25083 MAGIC_CMD=$MAGIC_CMD
25084
25085 # Must we lock files when doing compilation?
25086 need_locks=$lt_need_locks
25087
25088 # Manifest tool.
25089 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25090
25091 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25092 DSYMUTIL=$lt_DSYMUTIL
25093
25094 # Tool to change global to local symbols on Mac OS X.
25095 NMEDIT=$lt_NMEDIT
25096
25097 # Tool to manipulate fat objects and archives on Mac OS X.
25098 LIPO=$lt_LIPO
25099
25100 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25101 OTOOL=$lt_OTOOL
25102
25103 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25104 OTOOL64=$lt_OTOOL64
25105
25106 # Old archive suffix (normally "a").
25107 libext=$libext
25108
25109 # Shared library suffix (normally ".so").
25110 shrext_cmds=$lt_shrext_cmds
25111
25112 # The commands to extract the exported symbol list from a shared archive.
25113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25114
25115 # Variables whose values should be saved in libtool wrapper scripts and
25116 # restored at link time.
25117 variables_saved_for_relink=$lt_variables_saved_for_relink
25118
25119 # Do we need the "lib" prefix for modules?
25120 need_lib_prefix=$need_lib_prefix
25121
25122 # Do we need a version for libraries?
25123 need_version=$need_version
25124
25125 # Library versioning type.
25126 version_type=$version_type
25127
25128 # Shared library runtime path variable.
25129 runpath_var=$runpath_var
25130
25131 # Shared library path variable.
25132 shlibpath_var=$shlibpath_var
25133
25134 # Is shlibpath searched before the hard-coded library search path?
25135 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25136
25137 # Format of library name prefix.
25138 libname_spec=$lt_libname_spec
25139
25140 # List of archive names. First name is the real one, the rest are links.
25141 # The last name is the one that the linker finds with -lNAME
25142 library_names_spec=$lt_library_names_spec
25143
25144 # The coded name of the library, if different from the real name.
25145 soname_spec=$lt_soname_spec
25146
25147 # Permission mode override for installation of shared libraries.
25148 install_override_mode=$lt_install_override_mode
25149
25150 # Command to use after installation of a shared archive.
25151 postinstall_cmds=$lt_postinstall_cmds
25152
25153 # Command to use after uninstallation of a shared archive.
25154 postuninstall_cmds=$lt_postuninstall_cmds
25155
25156 # Commands used to finish a libtool library installation in a directory.
25157 finish_cmds=$lt_finish_cmds
25158
25159 # As "finish_cmds", except a single script fragment to be evaled but
25160 # not shown.
25161 finish_eval=$lt_finish_eval
25162
25163 # Whether we should hardcode library paths into libraries.
25164 hardcode_into_libs=$hardcode_into_libs
25165
25166 # Compile-time system search path for libraries.
25167 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25168
25169 # Detected run-time system search path for libraries.
25170 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25171
25172 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25173 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25174
25175 # Whether dlopen is supported.
25176 dlopen_support=$enable_dlopen
25177
25178 # Whether dlopen of programs is supported.
25179 dlopen_self=$enable_dlopen_self
25180
25181 # Whether dlopen of statically linked programs is supported.
25182 dlopen_self_static=$enable_dlopen_self_static
25183
25184 # Commands to strip libraries.
25185 old_striplib=$lt_old_striplib
25186 striplib=$lt_striplib
25187
25188
25189 # The linker used to build libraries.
25190 LD=$lt_LD
25191
25192 # How to create reloadable object files.
25193 reload_flag=$lt_reload_flag
25194 reload_cmds=$lt_reload_cmds
25195
25196 # Commands used to build an old-style archive.
25197 old_archive_cmds=$lt_old_archive_cmds
25198
25199 # A language specific compiler.
25200 CC=$lt_compiler
25201
25202 # Is the compiler the GNU compiler?
25203 with_gcc=$GCC
25204
25205 # Compiler flag to turn off builtin functions.
25206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25207
25208 # Additional compiler flags for building library objects.
25209 pic_flag=$lt_lt_prog_compiler_pic
25210
25211 # How to pass a linker flag through the compiler.
25212 wl=$lt_lt_prog_compiler_wl
25213
25214 # Compiler flag to prevent dynamic linking.
25215 link_static_flag=$lt_lt_prog_compiler_static
25216
25217 # Does compiler simultaneously support -c and -o options?
25218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25219
25220 # Whether or not to add -lc for building shared libraries.
25221 build_libtool_need_lc=$archive_cmds_need_lc
25222
25223 # Whether or not to disallow shared libs when runtime libs are static.
25224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25225
25226 # Compiler flag to allow reflexive dlopens.
25227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25228
25229 # Compiler flag to generate shared objects directly from archives.
25230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25231
25232 # Whether the compiler copes with passing no objects directly.
25233 compiler_needs_object=$lt_compiler_needs_object
25234
25235 # Create an old-style archive from a shared archive.
25236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25237
25238 # Create a temporary old-style archive to link instead of a shared archive.
25239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25240
25241 # Commands used to build a shared archive.
25242 archive_cmds=$lt_archive_cmds
25243 archive_expsym_cmds=$lt_archive_expsym_cmds
25244
25245 # Commands used to build a loadable module if different from building
25246 # a shared archive.
25247 module_cmds=$lt_module_cmds
25248 module_expsym_cmds=$lt_module_expsym_cmds
25249
25250 # Whether we are building with GNU ld or not.
25251 with_gnu_ld=$lt_with_gnu_ld
25252
25253 # Flag that allows shared libraries with undefined symbols to be built.
25254 allow_undefined_flag=$lt_allow_undefined_flag
25255
25256 # Flag that enforces no undefined symbols.
25257 no_undefined_flag=$lt_no_undefined_flag
25258
25259 # Flag to hardcode \$libdir into a binary during linking.
25260 # This must work even if \$libdir does not exist
25261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25262
25263 # Whether we need a single "-rpath" flag with a separated argument.
25264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25265
25266 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25267 # DIR into the resulting binary.
25268 hardcode_direct=$hardcode_direct
25269
25270 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25271 # DIR into the resulting binary and the resulting library dependency is
25272 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25273 # library is relocated.
25274 hardcode_direct_absolute=$hardcode_direct_absolute
25275
25276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25277 # into the resulting binary.
25278 hardcode_minus_L=$hardcode_minus_L
25279
25280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25281 # into the resulting binary.
25282 hardcode_shlibpath_var=$hardcode_shlibpath_var
25283
25284 # Set to "yes" if building a shared library automatically hardcodes DIR
25285 # into the library and all subsequent libraries and executables linked
25286 # against it.
25287 hardcode_automatic=$hardcode_automatic
25288
25289 # Set to yes if linker adds runtime paths of dependent libraries
25290 # to runtime path list.
25291 inherit_rpath=$inherit_rpath
25292
25293 # Whether libtool must link a program against all its dependency libraries.
25294 link_all_deplibs=$link_all_deplibs
25295
25296 # Set to "yes" if exported symbols are required.
25297 always_export_symbols=$always_export_symbols
25298
25299 # The commands to list exported symbols.
25300 export_symbols_cmds=$lt_export_symbols_cmds
25301
25302 # Symbols that should not be listed in the preloaded symbols.
25303 exclude_expsyms=$lt_exclude_expsyms
25304
25305 # Symbols that must always be exported.
25306 include_expsyms=$lt_include_expsyms
25307
25308 # Commands necessary for linking programs (against libraries) with templates.
25309 prelink_cmds=$lt_prelink_cmds
25310
25311 # Commands necessary for finishing linking programs.
25312 postlink_cmds=$lt_postlink_cmds
25313
25314 # Specify filename containing input files.
25315 file_list_spec=$lt_file_list_spec
25316
25317 # How to hardcode a shared library path into an executable.
25318 hardcode_action=$hardcode_action
25319
25320 # The directories searched by this compiler when creating a shared library.
25321 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25322
25323 # Dependencies to place before and after the objects being linked to
25324 # create a shared library.
25325 predep_objects=$lt_predep_objects
25326 postdep_objects=$lt_postdep_objects
25327 predeps=$lt_predeps
25328 postdeps=$lt_postdeps
25329
25330 # The library search path used internally by the compiler when linking
25331 # a shared library.
25332 compiler_lib_search_path=$lt_compiler_lib_search_path
25333
25334 # ### END LIBTOOL CONFIG
25335
25336 _LT_EOF
25337
25338 cat <<'_LT_EOF' >> "$cfgfile"
25339
25340 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25341
25342 # func_munge_path_list VARIABLE PATH
25343 # -----------------------------------
25344 # VARIABLE is name of variable containing _space_ separated list of
25345 # directories to be munged by the contents of PATH, which is string
25346 # having a format:
25347 # "DIR[:DIR]:"
25348 # string "DIR[ DIR]" will be prepended to VARIABLE
25349 # ":DIR[:DIR]"
25350 # string "DIR[ DIR]" will be appended to VARIABLE
25351 # "DIRP[:DIRP]::[DIRA:]DIRA"
25352 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25353 # "DIRA[ DIRA]" will be appended to VARIABLE
25354 # "DIR[:DIR]"
25355 # VARIABLE will be replaced by "DIR[ DIR]"
25356 func_munge_path_list ()
25357 {
25358 case x$2 in
25359 x)
25360 ;;
25361 *:)
25362 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25363 ;;
25364 x:*)
25365 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25366 ;;
25367 *::*)
25368 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25369 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25370 ;;
25371 *)
25372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25373 ;;
25374 esac
25375 }
25376
25377
25378 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25379 func_cc_basename ()
25380 {
25381 for cc_temp in $*""; do
25382 case $cc_temp in
25383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25385 \-*) ;;
25386 *) break;;
25387 esac
25388 done
25389 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25390 }
25391
25392
25393 # ### END FUNCTIONS SHARED WITH CONFIGURE
25394
25395 _LT_EOF
25396
25397 case $host_os in
25398 aix3*)
25399 cat <<\_LT_EOF >> "$cfgfile"
25400 # AIX sometimes has problems with the GCC collect2 program. For some
25401 # reason, if we set the COLLECT_NAMES environment variable, the problems
25402 # vanish in a puff of smoke.
25403 if test set != "${COLLECT_NAMES+set}"; then
25404 COLLECT_NAMES=
25405 export COLLECT_NAMES
25406 fi
25407 _LT_EOF
25408 ;;
25409 esac
25410
25411
25412
25413 ltmain=$ac_aux_dir/ltmain.sh
25414
25415
25416 # We use sed instead of cat because bash on DJGPP gets confused if
25417 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25418 # text mode, it properly converts lines to CR/LF. This bash problem
25419 # is reportedly fixed, but why not run on old versions too?
25420 $SED '$q' "$ltmain" >> "$cfgfile" \
25421 || (rm -f "$cfgfile"; exit 1)
25422
25423 mv -f "$cfgfile" "$ofile" ||
25424 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25425 chmod +x "$ofile"
25426
25427
25428 cat <<_LT_EOF >> "$ofile"
25429
25430 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25431
25432 # The linker used to build libraries.
25433 LD=$lt_LD_CXX
25434
25435 # How to create reloadable object files.
25436 reload_flag=$lt_reload_flag_CXX
25437 reload_cmds=$lt_reload_cmds_CXX
25438
25439 # Commands used to build an old-style archive.
25440 old_archive_cmds=$lt_old_archive_cmds_CXX
25441
25442 # A language specific compiler.
25443 CC=$lt_compiler_CXX
25444
25445 # Is the compiler the GNU compiler?
25446 with_gcc=$GCC_CXX
25447
25448 # Compiler flag to turn off builtin functions.
25449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25450
25451 # Additional compiler flags for building library objects.
25452 pic_flag=$lt_lt_prog_compiler_pic_CXX
25453
25454 # How to pass a linker flag through the compiler.
25455 wl=$lt_lt_prog_compiler_wl_CXX
25456
25457 # Compiler flag to prevent dynamic linking.
25458 link_static_flag=$lt_lt_prog_compiler_static_CXX
25459
25460 # Does compiler simultaneously support -c and -o options?
25461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25462
25463 # Whether or not to add -lc for building shared libraries.
25464 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25465
25466 # Whether or not to disallow shared libs when runtime libs are static.
25467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25468
25469 # Compiler flag to allow reflexive dlopens.
25470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25471
25472 # Compiler flag to generate shared objects directly from archives.
25473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25474
25475 # Whether the compiler copes with passing no objects directly.
25476 compiler_needs_object=$lt_compiler_needs_object_CXX
25477
25478 # Create an old-style archive from a shared archive.
25479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25480
25481 # Create a temporary old-style archive to link instead of a shared archive.
25482 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25483
25484 # Commands used to build a shared archive.
25485 archive_cmds=$lt_archive_cmds_CXX
25486 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25487
25488 # Commands used to build a loadable module if different from building
25489 # a shared archive.
25490 module_cmds=$lt_module_cmds_CXX
25491 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25492
25493 # Whether we are building with GNU ld or not.
25494 with_gnu_ld=$lt_with_gnu_ld_CXX
25495
25496 # Flag that allows shared libraries with undefined symbols to be built.
25497 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25498
25499 # Flag that enforces no undefined symbols.
25500 no_undefined_flag=$lt_no_undefined_flag_CXX
25501
25502 # Flag to hardcode \$libdir into a binary during linking.
25503 # This must work even if \$libdir does not exist
25504 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25505
25506 # Whether we need a single "-rpath" flag with a separated argument.
25507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25508
25509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25510 # DIR into the resulting binary.
25511 hardcode_direct=$hardcode_direct_CXX
25512
25513 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25514 # DIR into the resulting binary and the resulting library dependency is
25515 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25516 # library is relocated.
25517 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25518
25519 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25520 # into the resulting binary.
25521 hardcode_minus_L=$hardcode_minus_L_CXX
25522
25523 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25524 # into the resulting binary.
25525 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25526
25527 # Set to "yes" if building a shared library automatically hardcodes DIR
25528 # into the library and all subsequent libraries and executables linked
25529 # against it.
25530 hardcode_automatic=$hardcode_automatic_CXX
25531
25532 # Set to yes if linker adds runtime paths of dependent libraries
25533 # to runtime path list.
25534 inherit_rpath=$inherit_rpath_CXX
25535
25536 # Whether libtool must link a program against all its dependency libraries.
25537 link_all_deplibs=$link_all_deplibs_CXX
25538
25539 # Set to "yes" if exported symbols are required.
25540 always_export_symbols=$always_export_symbols_CXX
25541
25542 # The commands to list exported symbols.
25543 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25544
25545 # Symbols that should not be listed in the preloaded symbols.
25546 exclude_expsyms=$lt_exclude_expsyms_CXX
25547
25548 # Symbols that must always be exported.
25549 include_expsyms=$lt_include_expsyms_CXX
25550
25551 # Commands necessary for linking programs (against libraries) with templates.
25552 prelink_cmds=$lt_prelink_cmds_CXX
25553
25554 # Commands necessary for finishing linking programs.
25555 postlink_cmds=$lt_postlink_cmds_CXX
25556
25557 # Specify filename containing input files.
25558 file_list_spec=$lt_file_list_spec_CXX
25559
25560 # How to hardcode a shared library path into an executable.
25561 hardcode_action=$hardcode_action_CXX
25562
25563 # The directories searched by this compiler when creating a shared library.
25564 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25565
25566 # Dependencies to place before and after the objects being linked to
25567 # create a shared library.
25568 predep_objects=$lt_predep_objects_CXX
25569 postdep_objects=$lt_postdep_objects_CXX
25570 predeps=$lt_predeps_CXX
25571 postdeps=$lt_postdeps_CXX
25572
25573 # The library search path used internally by the compiler when linking
25574 # a shared library.
25575 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25576
25577 # ### END LIBTOOL TAG CONFIG: CXX
25578 _LT_EOF
25579
25580 ;;
25581
25582 esac
25583 done # for ac_tag
25584
25585
25586 as_fn_exit 0
25587 _ACEOF
25588 ac_clean_files=$ac_clean_files_save
25589
25590 test $ac_write_fail = 0 ||
25591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25592
25593
25594 # configure is writing to config.log, and then calls config.status.
25595 # config.status does its own redirection, appending to config.log.
25596 # Unfortunately, on DOS this fails, as config.log is still kept open
25597 # by configure, so config.status won't be able to write to it; its
25598 # output is simply discarded. So we exec the FD to /dev/null,
25599 # effectively closing config.log, so it can be properly (re)opened and
25600 # appended to by config.status. When coming back to configure, we
25601 # need to make the FD available again.
25602 if test "$no_create" != yes; then
25603 ac_cs_success=:
25604 ac_config_status_args=
25605 test "$silent" = yes &&
25606 ac_config_status_args="$ac_config_status_args --quiet"
25607 exec 5>/dev/null
25608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25609 exec 5>>config.log
25610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25611 # would make configure fail if this is the last instruction.
25612 $ac_cs_success || as_fn_exit 1
25613 fi
25614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25616 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25617 fi
25618
25619
25620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
25621 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
25622
25623 Configuration summary :
25624
25625 FLAC version : ............................ ${VERSION}
25626
25627 Host CPU : ................................ ${host_cpu}
25628 Host Vendor : ............................. ${host_vendor}
25629 Host OS : ................................. ${host_os}
25630 " >&5
25631 printf "%s\n" "
25632 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
25633
25634 Configuration summary :
25635
25636 FLAC version : ............................ ${VERSION}
25637
25638 Host CPU : ................................ ${host_cpu}
25639 Host Vendor : ............................. ${host_vendor}
25640 Host OS : ................................. ${host_os}
25641 " >&6; }
25642
25643 if test x$GIT_COMMIT_TAG_AVAIL = xyes ; then
25644 echo " Version string : reference libFLAC ${GIT_COMMIT_TAG} ${GIT_COMMIT_DATE}"
25645 elif test x$GIT_COMMIT_VERSION_AVAIL = xyes ; then
25646 echo " Version string : reference libFLAC git-${GIT_COMMIT_HASH} ${GIT_COMMIT_DATE}"
25647 fi
25648 echo ""
25649 echo " Compiler is GCC : ......................... ${ac_cv_c_compiler_gnu}"
25650 if test x$ac_cv_c_compiler_gnu = xyes ; then
25651 echo " GCC version : ............................. ${GCC_VERSION}"
25652 fi
25653 echo " Compiler is Clang : ....................... ${xiph_cv_c_compiler_clang}"
25654 echo " Asm optimizations : ....................... ${asm_optimisation}"
25655 echo " Ogg/FLAC support : ........................ ${have_ogg}"
25656 echo " Multithreading : ........................ ${HAVE_PTHREAD}"
25657 echo " Stack protector : ........................ ${enable_stack_smash_protection}"
25658 echo " Fuzzing support (Clang only) : ............ ${have_oss_fuzzers}"
25659 echo
25660